[PATCH 2/2] ppc: DA923RC: update board initialisation
Renaud Barbier
renaud.barbier at ge.com
Wed Nov 13 13:05:34 EST 2013
Pull the board device reset GPIO pin high as this prevents
PCI bus probing.
The function da923rc_board_init_r is called at the postcore
initcall level so that the udelay function can take advantage
of the core initialisation.
Signed-off-by: Renaud Barbier <renaud.barbier at ge.com>
---
arch/ppc/boards/geip-da923rc/da923rc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/ppc/boards/geip-da923rc/da923rc.c b/arch/ppc/boards/geip-da923rc/da923rc.c
index 99d1393..976aa8d 100644
--- a/arch/ppc/boards/geip-da923rc/da923rc.c
+++ b/arch/ppc/boards/geip-da923rc/da923rc.c
@@ -195,7 +195,7 @@ static int da923rc_board_init_r(void)
gpio_set_value(1, 1);
/* De-assert Board reset */
udelay(1000);
- gpio_set_value(0, 0);
+ gpio_set_value(0, 1);
}
/* Enable PCI error reporting */
@@ -209,4 +209,4 @@ static int da923rc_board_init_r(void)
return 0;
}
-core_initcall(da923rc_board_init_r);
+postcore_initcall(da923rc_board_init_r);
--
1.7.1
More information about the barebox
mailing list