xref: /openbmc/u-boot/board/nvidia/dalmore/dalmore.c (revision 2a04a317)
107067145STom Warren /*
207067145STom Warren  * Copyright (c) 2010-2013, NVIDIA CORPORATION.  All rights reserved.
307067145STom Warren  *
407067145STom Warren  * This program is free software; you can redistribute it and/or modify it
507067145STom Warren  * under the terms and conditions of the GNU General Public License,
607067145STom Warren  * version 2, as published by the Free Software Foundation.
707067145STom Warren  *
807067145STom Warren  * This program is distributed in the hope it will be useful, but WITHOUT
907067145STom Warren  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1007067145STom Warren  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1107067145STom Warren  * more details.
1207067145STom Warren  *
1307067145STom Warren  * You should have received a copy of the GNU General Public License
1407067145STom Warren  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
1507067145STom Warren  */
1607067145STom Warren 
1707067145STom Warren #include <common.h>
1807067145STom Warren #include <asm/arch/pinmux.h>
19*2a04a317STom Warren #include <asm/arch/gp_padctrl.h>
2007067145STom Warren #include "pinmux-config-dalmore.h"
2107067145STom Warren 
2207067145STom Warren /*
2307067145STom Warren  * Routine: pinmux_init
2407067145STom Warren  * Description: Do individual peripheral pinmux configs
2507067145STom Warren  */
2607067145STom Warren void pinmux_init(void)
2707067145STom Warren {
288b7776b9STom Warren 	pinmux_config_table(tegra114_pinmux_set_nontristate,
298b7776b9STom Warren 		ARRAY_SIZE(tegra114_pinmux_set_nontristate));
308b7776b9STom Warren 
3107067145STom Warren 	pinmux_config_table(tegra114_pinmux_common,
3207067145STom Warren 		ARRAY_SIZE(tegra114_pinmux_common));
3307067145STom Warren 
3407067145STom Warren 	pinmux_config_table(unused_pins_lowpower,
3507067145STom Warren 		ARRAY_SIZE(unused_pins_lowpower));
36*2a04a317STom Warren 
37*2a04a317STom Warren 	/* Initialize any non-default pad configs (APB_MISC_GP regs) */
38*2a04a317STom Warren 	padgrp_config_table(dalmore_padctrl, ARRAY_SIZE(dalmore_padctrl));
3907067145STom Warren }
40