summaryrefslogtreecommitdiff
path: root/board/avionic-design/common
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2012-06-04 20:02:28 +0000
committerAlbert ARIBAUD (U-Boot) <uboot@lilith.(none)>2012-07-09 22:44:32 +0200
commit22d58506f5d04918d2bde62c5fe71abee24e4ea8 (patch)
tree97759cc2f041f0c60410fc369cef862c7aa5ba70 /board/avionic-design/common
parentcb7a1cf36a59772670adcd2c90cee40c2ed1bc60 (diff)
downloadu-boot-imx-22d58506f5d04918d2bde62c5fe71abee24e4ea8.zip
u-boot-imx-22d58506f5d04918d2bde62c5fe71abee24e4ea8.tar.gz
u-boot-imx-22d58506f5d04918d2bde62c5fe71abee24e4ea8.tar.bz2
tegra: Implement gpio_early_init() on Tamonten
The PI4 GPIO is used on Tamonten to reset carrier board peripherals. Power sequencing hardware on the carrier pulls the reset low before powering up the Tegra, and the CPU is supposed to signal readiness, and therefore bring peripherals out of reset by pulling PI4 high. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'board/avionic-design/common')
-rw-r--r--board/avionic-design/common/tamonten.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/avionic-design/common/tamonten.c b/board/avionic-design/common/tamonten.c
index d9ecd23..915247c 100644
--- a/board/avionic-design/common/tamonten.c
+++ b/board/avionic-design/common/tamonten.c
@@ -49,6 +49,14 @@ void gpio_config_uart(void)
{
}
+#ifdef CONFIG_BOARD_EARLY_INIT_F
+void gpio_early_init(void)
+{
+ gpio_request(GPIO_PI4, NULL);
+ gpio_direction_output(GPIO_PI4, 1);
+}
+#endif
+
#ifdef CONFIG_TEGRA2_MMC
/*
* Routine: pin_mux_mmc