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> |
Tom Warren | f7dc4ac | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 9 | #include <asm/arch/gpio.h> |
Tom Warren | f7dc4ac | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 10 | #include <asm/arch/pinmux.h> |
Alexandre Courbot | a38a3c4 | 2015-07-09 16:33:01 +0900 | [diff] [blame] | 11 | #include <asm/arch-tegra/gpu.h> |
Tom Warren | f7dc4ac | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 12 | #include "pinmux-config-venice2.h" |
Tom Warren | f7dc4ac | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 13 | |
| 14 | /* |
| 15 | * Routine: pinmux_init |
| 16 | * Description: Do individual peripheral pinmux configs |
| 17 | */ |
| 18 | void pinmux_init(void) |
| 19 | { |
Stephen Warren | 2eba87a | 2014-04-22 14:37:57 -0600 | [diff] [blame] | 20 | pinmux_set_tristate_input_clamping(); |
Tom Warren | f7dc4ac | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 21 | |
Stephen Warren | 2eba87a | 2014-04-22 14:37:57 -0600 | [diff] [blame] | 22 | gpio_config_table(venice2_gpio_inits, |
| 23 | ARRAY_SIZE(venice2_gpio_inits)); |
Tom Warren | f7dc4ac | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 24 | |
Stephen Warren | 2eba87a | 2014-04-22 14:37:57 -0600 | [diff] [blame] | 25 | pinmux_config_pingrp_table(venice2_pingrps, |
| 26 | ARRAY_SIZE(venice2_pingrps)); |
Tom Warren | f7dc4ac | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 27 | |
Stephen Warren | 2eba87a | 2014-04-22 14:37:57 -0600 | [diff] [blame] | 28 | pinmux_config_drvgrp_table(venice2_drvgrps, |
| 29 | ARRAY_SIZE(venice2_drvgrps)); |
Tom Warren | f7dc4ac | 2014-01-24 12:46:18 -0700 | [diff] [blame] | 30 | } |
Alexandre Courbot | a38a3c4 | 2015-07-09 16:33:01 +0900 | [diff] [blame] | 31 | |
| 32 | int ft_board_setup(void *blob, bd_t *bd) |
| 33 | { |
| 34 | gpu_enable_node(blob, "/gpu@0,57000000"); |
| 35 | |
| 36 | return 0; |
| 37 | } |