Skip to contentSkip to conversation

imx: ventana: fix boot to SD

PATCH New Tim Harvey 2 participants 2 messages May 6, 2015

lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

PATCH 1/1 imx: ventana: fix boot to SD

This fixes a regression caused by e25fbe3fe531029dc7b100ea4c79dbc802e17fc2 (gw_ventana: Move the DCD settings to spl code)

The clock gating must be setup prior to calling arch_cpu_init(). Without this booting to SD (directly via eFuse or via bmode) will hang.

Cc Fabio Estevam <[email protected]>
---
 board/gateworks/gw_ventana/gw_ventana_spl.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
board/gateworks/gw_ventana/gw_ventana_spl.c +4 -1
index 0c0fee3..289a0b8 100644
@@ -530,10 +530,13 @@ void board_init_f(ulong dummy)
 	struct ventana_board_info ventana_info;
 	int board_model;
 
+	/* setup clock gating */
+	ccgr_init();
+
 	/* setup AIPS and disable watchdog */
 	arch_cpu_init();
 
-	ccgr_init();
+	/* setup AXI */
 	gpr_init();
 
 	/* iomux and setup of i2c */
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 imx: ventana: fix boot to SD

Quoted 8 lines · Tim Harvey

This fixes a regression caused by e25fbe3fe531029dc7b100ea4c79dbc802e17fc2 (gw_ventana: Move the DCD settings to spl code)

The clock gating must be setup prior to calling arch_cpu_init(). Without this booting to SD (directly via eFuse or via bmode) will hang.

Cc Fabio Estevam <[email protected]>

Sorry for the breakage.

This makes sense: