Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2013-2014 |
| 4 | * NVIDIA Corporation <www.nvidia.com> |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 8 | #include <asm/arch/gpio.h> |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 9 | #include <asm/arch/pinmux.h> |
| 10 | #include "pinmux-config-venice2.h" |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 11 | |
| 12 | /* |
| 13 | * Routine: pinmux_init |
| 14 | * Description: Do individual peripheral pinmux configs |
| 15 | */ |
| 16 | void pinmux_init(void) |
| 17 | { |
Stephen Warren | 89b19c4 | 2014-04-22 14:37:57 -0600 | [diff] [blame] | 18 | pinmux_set_tristate_input_clamping(); |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 19 | |
Stephen Warren | 89b19c4 | 2014-04-22 14:37:57 -0600 | [diff] [blame] | 20 | gpio_config_table(venice2_gpio_inits, |
| 21 | ARRAY_SIZE(venice2_gpio_inits)); |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 22 | |
Stephen Warren | 89b19c4 | 2014-04-22 14:37:57 -0600 | [diff] [blame] | 23 | pinmux_config_pingrp_table(venice2_pingrps, |
| 24 | ARRAY_SIZE(venice2_pingrps)); |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 25 | |
Stephen Warren | 89b19c4 | 2014-04-22 14:37:57 -0600 | [diff] [blame] | 26 | pinmux_config_drvgrp_table(venice2_drvgrps, |
| 27 | ARRAY_SIZE(venice2_drvgrps)); |
Tom Warren | 15fc984 | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 28 | } |