From 24b8b7f41a83540433024854736518876257672c Mon Sep 17 00:00:00 2001 From: Steve Sakoman Date: Sat, 29 Jan 2011 00:52:29 +0530 Subject: [PATCH] overo: Fix bug in prcm_init The overo get_cpu_rev function was extended when 37XX support was added, but I neglected to modify the index calculation in prcm_init to compensate. Signed-off-by: Steve Sakoman Tested-by: Philip Balister Signed-off-by: Anand Gadiyar --- board/overo/overo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/overo/overo.c b/board/overo/overo.c index 8df53e5..b2c536a 100644 --- a/board/overo/overo.c +++ b/board/overo/overo.c @@ -610,7 +610,7 @@ void prcm_init(void) * and sil_index will get the values for that SysClk for the * appropriate silicon rev. */ - sil_index = get_cpu_rev() - 1; + sil_index = (get_cpu_rev() == CPU_3XX_ES10) ? 0 : 1; /* Unlock MPU DPLL (slows things down, and needed later) */ sr32(CM_CLKEN_PLL_MPU, 0, 3, PLL_LOW_POWER_BYPASS); -- 2.39.5