summaryrefslogtreecommitdiff
path: root/bootloader
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/imx233.c7
1 files changed, 7 insertions, 0 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 @@
#include "version.h"
#include "powermgmt-imx233.h"
#include "partitions-imx233.h"
+#include "backlight-target.h"
#include "adc.h"
#include "usb.h"
@@ -211,6 +212,12 @@ void main(uint32_t arg, uint32_t addr)
printf("Executing");
/* stop what was initialized to start from clean state */
system_prepare_fw_start();
+ /* if target defines lcd_enable() in bootloader, take this as a hint that
+ * we should use it to properly stop the lcd before moving one, the
+ * _backlight_off() routine is supposed to disable the lcd at the same time */
+#ifdef HAVE_LCD_ENABLE
+ _backlight_off();
+#endif
disable_interrupt(IRQ_FIQ_STATUS);
commit_discard_idcache();
kernel_entry();