From: Thierry Reding Date: Mon, 4 Jun 2012 20:02:28 +0000 (+0000) Subject: tegra: Implement gpio_early_init() on Tamonten X-Git-Tag: v2012.07-rc1~2^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22d58506f5d04918d2bde62c5fe71abee24e4ea8;p=platform%2Fkernel%2Fu-boot.git 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 Acked-by: Stephen Warren Signed-off-by: Tom Warren --- 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