1 /* 2 * (C) Copyright 2013-2014 3 * NVIDIA Corporation <www.nvidia.com> 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 8 #include <common.h> 9 #include <asm-generic/gpio.h> 10 #include <asm/arch/gpio.h> 11 #include <asm/arch/gp_padctrl.h> 12 #include <asm/arch/pinmux.h> 13 #include "pinmux-config-venice2.h" 14 #include <i2c.h> 15 16 /* 17 * Routine: pinmux_init 18 * Description: Do individual peripheral pinmux configs 19 */ 20 void pinmux_init(void) 21 { 22 pinmux_config_pingrp_table(tegra124_pinmux_set_nontristate, 23 ARRAY_SIZE(tegra124_pinmux_set_nontristate)); 24 25 pinmux_config_pingrp_table(tegra124_pinmux_common, 26 ARRAY_SIZE(tegra124_pinmux_common)); 27 28 pinmux_config_pingrp_table(unused_pins_lowpower, 29 ARRAY_SIZE(unused_pins_lowpower)); 30 31 /* Initialize any non-default pad configs (APB_MISC_GP regs) */ 32 pinmux_config_drvgrp_table(venice2_padctrl, 33 ARRAY_SIZE(venice2_padctrl)); 34 } 35