From: notaz Date: Sat, 2 Jul 2016 14:25:16 +0000 (+0300) Subject: pandora/video: enable REGEN X-Git-Tag: sz_175~13 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-u-boot.git;a=commitdiff_plain;h=59c52d5b5cc920f10f2ed4be47c86568ba8f8ece pandora/video: enable REGEN newer kernels can disable it, if user does a hard reset he won't see the boot menu on CC. --- diff --git a/board/pandora/video.c b/board/pandora/video.c index 633cb939dd..1c0dda3261 100644 --- a/board/pandora/video.c +++ b/board/pandora/video.c @@ -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);