overo: Fix bug in prcm_init
authorSteve Sakoman <steve@sakoman.com>
Fri, 28 Jan 2011 19:22:29 +0000 (00:52 +0530)
committerAnand Gadiyar <gadiyar@ti.com>
Fri, 28 Jan 2011 19:22:29 +0000 (00:52 +0530)
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 <steve@sakoman.com>
Tested-by: Philip Balister <philip@opensdr.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
board/overo/overo.c

index 8df53e5..b2c536a 100644 (file)
@@ -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);