From e1003b1536091a7bdc421e05bd9eefcddd366bfe Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 10 Feb 2014 22:29:31 +0100 Subject: zen/bootloader: power down the LCD at the end of the bootloader if needed On the ZEN, the LCD is fed continuously by the DMA and this refresh needs to be stop when the bootloader gives control to the firmware, otherwise the DMA will source data from invalid region and it might even lock-up if the new code touches the memory setup. Work around this by properly stopping the LCD driver: the bootloader assumes that if the target defines HAVE_LCD_ENABLE in bootloader build (which is unusual) then it needs to stop the LCD. Since stopping the LCD could produce funny screens, power down backlight which is expected to power down the LCD too, giving a nice black screen instead of some random pixels. Change-Id: I7ce5ba9bfd08e596907c4ff8f80feb189f0576ce --- firmware/export/config/creativezen.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/config/creativezen.h b/firmware/export/config/creativezen.h index 0caf499379..004e1403b7 100644 --- a/firmware/export/config/creativezen.h +++ b/firmware/export/config/creativezen.h @@ -49,9 +49,6 @@ /* define this if you would like tagcache to build on this target */ #define HAVE_TAGCACHE -/* define this if you have LCD enable function */ -#define HAVE_LCD_ENABLE - /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE should be defined as well. #define HAVE_LCD_SLEEP @@ -74,6 +71,9 @@ #endif /* !BOOTLOADER */ +/* define this if you have LCD enable function */ +#define HAVE_LCD_ENABLE + /* define this if you have an i.MX23 codec */ #define HAVE_IMX233_CODEC -- cgit v1.2.3