Tom Warren | 15fc984 | 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> |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 9 | #include <asm/arch/gpio.h> |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 10 | #include <asm/arch/pinmux.h> |
| 11 | #include "pinmux-config-venice2.h" |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 12 | |
| 13 | /* |
| 14 | * Routine: pinmux_init |
| 15 | * Description: Do individual peripheral pinmux configs |
| 16 | */ |
| 17 | void pinmux_init(void) |
| 18 | { |
Stephen Warren | 89b19c4 | 2014-04-22 14:37:57 -0600 | [diff] [blame] | 19 | pinmux_set_tristate_input_clamping(); |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 20 | |
Stephen Warren | 89b19c4 | 2014-04-22 14:37:57 -0600 | [diff] [blame] | 21 | gpio_config_table(venice2_gpio_inits, |
| 22 | ARRAY_SIZE(venice2_gpio_inits)); |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 23 | |
Stephen Warren | 89b19c4 | 2014-04-22 14:37:57 -0600 | [diff] [blame] | 24 | pinmux_config_pingrp_table(venice2_pingrps, |
| 25 | ARRAY_SIZE(venice2_pingrps)); |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 26 | |
Stephen Warren | 89b19c4 | 2014-04-22 14:37:57 -0600 | [diff] [blame] | 27 | pinmux_config_drvgrp_table(venice2_drvgrps, |
| 28 | ARRAY_SIZE(venice2_drvgrps)); |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 29 | } |