summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootloader/imx233.c7
-rw-r--r--firmware/export/config/creativezen.h6
2 files changed, 10 insertions, 3 deletions
diff --git a/bootloader/imx233.c b/bootloader/imx233.c
index 6dc503bb16..1169b392aa 100644
--- a/bootloader/imx233.c
+++ b/bootloader/imx233.c
@@ -43,6 +43,7 @@
43#include "version.h" 43#include "version.h"
44#include "powermgmt-imx233.h" 44#include "powermgmt-imx233.h"
45#include "partitions-imx233.h" 45#include "partitions-imx233.h"
46#include "backlight-target.h"
46#include "adc.h" 47#include "adc.h"
47 48
48#include "usb.h" 49#include "usb.h"
@@ -211,6 +212,12 @@ void main(uint32_t arg, uint32_t addr)
211 printf("Executing"); 212 printf("Executing");
212 /* stop what was initialized to start from clean state */ 213 /* stop what was initialized to start from clean state */
213 system_prepare_fw_start(); 214 system_prepare_fw_start();
215 /* if target defines lcd_enable() in bootloader, take this as a hint that
216 * we should use it to properly stop the lcd before moving one, the
217 * _backlight_off() routine is supposed to disable the lcd at the same time */
218#ifdef HAVE_LCD_ENABLE
219 _backlight_off();
220#endif
214 disable_interrupt(IRQ_FIQ_STATUS); 221 disable_interrupt(IRQ_FIQ_STATUS);
215 commit_discard_idcache(); 222 commit_discard_idcache();
216 kernel_entry(); 223 kernel_entry();
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 @@
49/* define this if you would like tagcache to build on this target */ 49/* define this if you would like tagcache to build on this target */
50#define HAVE_TAGCACHE 50#define HAVE_TAGCACHE
51 51
52/* define this if you have LCD enable function */
53#define HAVE_LCD_ENABLE
54
55/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE 52/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
56 should be defined as well. 53 should be defined as well.
57#define HAVE_LCD_SLEEP 54#define HAVE_LCD_SLEEP
@@ -74,6 +71,9 @@
74 71
75#endif /* !BOOTLOADER */ 72#endif /* !BOOTLOADER */
76 73
74/* define this if you have LCD enable function */
75#define HAVE_LCD_ENABLE
76
77/* define this if you have an i.MX23 codec */ 77/* define this if you have an i.MX23 codec */
78#define HAVE_IMX233_CODEC 78#define HAVE_IMX233_CODEC
79 79