pandora/video: enable REGEN
authornotaz <notasas@gmail.com>
Sat, 2 Jul 2016 14:25:16 +0000 (17:25 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 3 Jul 2016 00:10:27 +0000 (03:10 +0300)
newer kernels can disable it, if user does a hard reset he won't see
the boot menu on CC.

board/pandora/video.c

index 633cb93..1c0dda3 100644 (file)
@@ -110,6 +110,13 @@ static void lcd_init(void)
 
        lcd_spi_init();
 
+       /* some kernels can now disable REGEN which controls the main 5V supply,
+        * LCD is connected to it on CC units. Also enable it on Rebirth as the
+        * user may want to boot the 2.6 kernel that doesn't control REGEN */
+       if (get_cpu_family() != CPU_OMAP36XX)
+               twl4030_i2c_write_u8(TWL4030_CHIP_PM_RECEIVER, 0x2e,
+                                    TWL4030_PM_RECEIVER_REGEN_DEV_GRP);
+
        /* set VPLL2 to 1.8V */
        twl4030_i2c_write_u8(TWL4030_CHIP_PM_RECEIVER, 0x05,
                             TWL4030_PM_RECEIVER_VPLL2_DEDICATED);