diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-04-22 14:37:55 -0600 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2014-05-13 10:41:32 -0700 |
commit | 9348532f514eb71c9dfe41ddf5b9c59e8ad1f830 (patch) | |
tree | 359dc1679c95d68293c0931d092a818e5be980f0 /board/nvidia/jetson-tk1/jetson-tk1.c | |
parent | bb14469ae088682859411e45573d01ed11373960 (diff) | |
download | u-boot-imx-9348532f514eb71c9dfe41ddf5b9c59e8ad1f830.zip u-boot-imx-9348532f514eb71c9dfe41ddf5b9c59e8ad1f830.tar.gz u-boot-imx-9348532f514eb71c9dfe41ddf5b9c59e8ad1f830.tar.bz2 |
ARM: tegra: make use of GPIO init table on Jetson TK1
The HW-defined procedure for booting Tegra requires that some pins be
set up as GPIOs immediately at boot in order to avoid glitches on those
pins, when the pinmux is programmed. This patch implements this
procedure for Jetson TK1. For pins which are to be used as GPIOs, the
pinmux mux function need not be programmed, so the pinmux table is also
adjusted.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'board/nvidia/jetson-tk1/jetson-tk1.c')
-rw-r--r-- | board/nvidia/jetson-tk1/jetson-tk1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/nvidia/jetson-tk1/jetson-tk1.c b/board/nvidia/jetson-tk1/jetson-tk1.c index f97aafa..9c54bd6 100644 --- a/board/nvidia/jetson-tk1/jetson-tk1.c +++ b/board/nvidia/jetson-tk1/jetson-tk1.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <asm/arch/gpio.h> #include <asm/arch/pinmux.h> #include "pinmux-config-jetson-tk1.h" @@ -15,6 +16,9 @@ */ void pinmux_init(void) { + gpio_config_table(jetson_tk1_gpio_inits, + ARRAY_SIZE(jetson_tk1_gpio_inits)); + pinmux_config_pingrp_table(jetson_tk1_pingrps, ARRAY_SIZE(jetson_tk1_pingrps)); |