Panda: Use proper VCORE3 settings for ES2.1
authorSteve Sakoman <steve@sakoman.com>
Thu, 7 Oct 2010 16:37:17 +0000 (09:37 -0700)
committerSteve Sakoman <steve@sakoman.com>
Thu, 7 Oct 2010 16:37:17 +0000 (09:37 -0700)
This patch based on work by Ricardo Salveti de Araujo and Rob Clark
with help of some other TI folks.

board/omap4430panda/omap4430panda.c

index a7c9fda..d63face 100644 (file)
@@ -580,8 +580,10 @@ static scale_vcores(void)
        /* PRM_VC_VAL_BYPASS */
         if(rev == OMAP4430_ES1_0)
                *(volatile int*)(0x4A307BA0) = 0x316112;
-       else
+       else if(rev == OMAP4430_ES2_0)
                *(volatile int*)(0x4A307BA0) = 0x296112;
+       else if (rev == OMAP4430_ES2_1)
+               *(volatile int*)(0x4A307BA0) = 0x2A6112;
        *(volatile int*)(0x4A307BA0) |= 0x1000000;
        while((*(volatile int*)(0x4A307BA0)) & 0x1000000);