From 59c52d5b5cc920f10f2ed4be47c86568ba8f8ece Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 2 Jul 2016 17:25:16 +0300 Subject: [PATCH] pandora/video: enable REGEN newer kernels can disable it, if user does a hard reset he won't see the boot menu on CC. --- board/pandora/video.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/pandora/video.c b/board/pandora/video.c index 633cb939ddb..1c0dda3261b 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); -- 2.39.5