enable more devices for rev5 boards
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 20 Oct 2009 15:01:19 +0000 (18:01 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 20 Oct 2009 15:01:19 +0000 (18:01 +0300)
board/omap3/pandora/pandora.c

index 92f3366..36e2517 100644 (file)
@@ -81,6 +81,10 @@ int misc_init_r(void)
        writel(GPIO28, &gpio5_base->setdataout);
        writel(GPIO4, &gpio6_base->setdataout);
 
+       /* Enable battery backup capacitor */
+       byte = 0x1E;    /* 3.2V, 0.5mA charge current */
+       i2c_write(0x4B, 0x6D, 1, &byte, 1);
+
        dieid_num_r();
 
        /* this stuff should move to kernel. */
@@ -96,6 +100,12 @@ int misc_init_r(void)
        byte = 0x20;
        i2c_write(0x4B, 0x92, 1, &byte, 1);
 
+       /* set vaux2 to 1.8V (USB HOST PHY power) */
+       byte = 0x05;
+       i2c_write(0x4B, 0x79, 1, &byte, 1);
+       byte = 0x20;
+       i2c_write(0x4B, 0x76, 1, &byte, 1);
+
        return 0;
 }