Tom Warren | f7dc4ac | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 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 | { |
Stephen Warren | dfb42fc | 2014-03-21 12:28:56 -0600 | [diff] [blame] | 22 | pinmux_config_pingrp_table(tegra124_pinmux_set_nontristate, |
| 23 | ARRAY_SIZE(tegra124_pinmux_set_nontristate)); |
Tom Warren | f7dc4ac | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 24 | |
Stephen Warren | dfb42fc | 2014-03-21 12:28:56 -0600 | [diff] [blame] | 25 | pinmux_config_pingrp_table(tegra124_pinmux_common, |
| 26 | ARRAY_SIZE(tegra124_pinmux_common)); |
Tom Warren | f7dc4ac | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 27 | |
Stephen Warren | dfb42fc | 2014-03-21 12:28:56 -0600 | [diff] [blame] | 28 | pinmux_config_pingrp_table(unused_pins_lowpower, |
| 29 | ARRAY_SIZE(unused_pins_lowpower)); |
Tom Warren | f7dc4ac | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 30 | |
| 31 | /* Initialize any non-default pad configs (APB_MISC_GP regs) */ |
Stephen Warren | dfb42fc | 2014-03-21 12:28:56 -0600 | [diff] [blame] | 32 | pinmux_config_drvgrp_table(venice2_padctrl, |
| 33 | ARRAY_SIZE(venice2_padctrl)); |
Tom Warren | f7dc4ac | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 34 | } |