From: Steve Sakoman Date: Fri, 28 Jan 2011 19:22:29 +0000 (+0530) Subject: overo: Fix bug in prcm_init X-Git-Tag: v1.5.0~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24b8b7f41a83540433024854736518876257672c;p=pandora-x-loader.git 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 --- 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);