[PATCH 5/6] ARM OMAP3 boards: Call omap3_core_init only from SRAM
Sascha Hauer
s.hauer at pengutronix.de
Thu Nov 1 03:55:47 EDT 2012
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/arm/boards/beagle/board.c | 3 ++-
arch/arm/boards/omap343xdsp/board.c | 3 ++-
arch/arm/boards/phycard-a-l1/pca-a-l1.c | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boards/beagle/board.c b/arch/arm/boards/beagle/board.c
index 19bf740..ec26528 100644
--- a/arch/arm/boards/beagle/board.c
+++ b/arch/arm/boards/beagle/board.c
@@ -220,7 +220,8 @@ static int beagle_board_init(void)
{
int in_sdram = running_in_sdram();
- omap3_core_init();
+ if (!in_sdram)
+ omap3_core_init();
mux_config();
/* Dont reconfigure SDRAM while running in SDRAM! */
diff --git a/arch/arm/boards/omap343xdsp/board.c b/arch/arm/boards/omap343xdsp/board.c
index 2343dc0..692cf9a 100644
--- a/arch/arm/boards/omap343xdsp/board.c
+++ b/arch/arm/boards/omap343xdsp/board.c
@@ -76,7 +76,8 @@ static int sdp343x_board_init(void)
{
int in_sdram = running_in_sdram();
- omap3_core_init();
+ if (!in_sdram)
+ omap3_core_init();
mux_config();
if (!in_sdram)
diff --git a/arch/arm/boards/phycard-a-l1/pca-a-l1.c b/arch/arm/boards/phycard-a-l1/pca-a-l1.c
index f2d10f2..6652242 100644
--- a/arch/arm/boards/phycard-a-l1/pca-a-l1.c
+++ b/arch/arm/boards/phycard-a-l1/pca-a-l1.c
@@ -297,7 +297,8 @@ static int pcaal1_board_init(void)
{
int in_sdram = running_in_sdram();
- omap3_core_init();
+ if (!in_sdram)
+ omap3_core_init();
pcaal1_mux_config();
/* Dont reconfigure SDRAM while running in SDRAM! */
--
1.7.10.4
More information about the barebox
mailing list