public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] tegra20: tamonten: Fix the early gpio init
@ 2015-02-24 16:58 Alban Bedel
  2015-02-24 17:02 ` Stephen Warren
  0 siblings, 1 reply; 13+ messages in thread
From: Alban Bedel @ 2015-02-24 16:58 UTC (permalink / raw)
  To: u-boot

To set gpio during the early init we now need to use
tegra_spl_gpio_direction_output(), copied from seaboard.

Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
---
 board/avionic-design/common/tamonten.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/board/avionic-design/common/tamonten.c b/board/avionic-design/common/tamonten.c
index 9c86779..ea2425a 100644
--- a/board/avionic-design/common/tamonten.c
+++ b/board/avionic-design/common/tamonten.c
@@ -23,8 +23,10 @@
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 void gpio_early_init(void)
 {
+#ifndef CONFIG_SPL_BUILD
 	gpio_request(GPIO_PI4, NULL);
-	gpio_direction_output(GPIO_PI4, 1);
+#endif
+	tegra_spl_gpio_direction_output(GPIO_PI4, 1);
 }
 #endif
 
-- 
2.3.0

^ permalink raw reply related	[flat|nested] 13+ messages in thread
* [U-Boot] [PATCH] tegra20: tamonten: Fix the early gpio init
@ 2014-10-02 15:14 Alban Bedel
  2014-10-02 15:42 ` Stephen Warren
  0 siblings, 1 reply; 13+ messages in thread
From: Alban Bedel @ 2014-10-02 15:14 UTC (permalink / raw)
  To: u-boot

To set gpio during the early init we now need to use
tegra_spl_gpio_direction_output(), copied from seaboard.

Change-Id: Id0aadb17a71b78e75e8c3f8de374102b3eab767b
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
---
 board/avionic-design/common/tamonten.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/board/avionic-design/common/tamonten.c b/board/avionic-design/common/tamonten.c
index 9c86779..ea2425a 100644
--- a/board/avionic-design/common/tamonten.c
+++ b/board/avionic-design/common/tamonten.c
@@ -23,8 +23,10 @@
 #ifdef CONFIG_BOARD_EARLY_INIT_F
 void gpio_early_init(void)
 {
+#ifndef CONFIG_SPL_BUILD
 	gpio_request(GPIO_PI4, NULL);
-	gpio_direction_output(GPIO_PI4, 1);
+#endif
+	tegra_spl_gpio_direction_output(GPIO_PI4, 1);
 }
 #endif
 
-- 
2.1.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-02-24 17:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 16:58 [U-Boot] [PATCH] tegra20: tamonten: Fix the early gpio init Alban Bedel
2015-02-24 17:02 ` Stephen Warren
2015-02-24 17:18   ` Alban Bedel
2015-02-24 17:22     ` Stephen Warren
2015-02-24 17:35       ` Alban Bedel
  -- strict thread matches above, loose matches on Subject: below --
2014-10-02 15:14 Alban Bedel
2014-10-02 15:42 ` Stephen Warren
2014-10-02 16:12   ` Alban Bedel
2014-10-02 18:39     ` Stephen Warren
2014-10-02 19:09       ` Simon Glass
2014-10-02 19:05     ` Simon Glass
2014-10-02 19:08       ` Stephen Warren
2014-10-02 19:11         ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox