tegra: Implement gpio_early_init() on Tamonten
authorThierry Reding <thierry.reding@avionic-design.de>
Mon, 4 Jun 2012 20:02:28 +0000 (20:02 +0000)
committerAlbert ARIBAUD (U-Boot) <uboot@lilith.(none)>
Mon, 9 Jul 2012 20:44:32 +0000 (22:44 +0200)
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>
board/avionic-design/common/tamonten.c

index d9ecd23..915247c 100644 (file)
@@ -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