summaryrefslogtreecommitdiff
path: root/drivers/video/mb862xx.c
diff options
context:
space:
mode:
authorYuri Tikhonov <yur@emcraft.com>2008-03-24 11:30:54 +0100
committerWolfgang Denk <wd@denx.de>2008-03-25 00:16:14 +0100
commit0d48926c87ec96f974a6ac4034f4a2f2eab3255f (patch)
tree8fa7da26ae17075a8ac63f712d23d30cdb8e7cd2 /drivers/video/mb862xx.c
parentff2bdfb2c1e073f65c065011f1e18d0a130bd3d8 (diff)
downloadu-boot-imx-0d48926c87ec96f974a6ac4034f4a2f2eab3255f.zip
u-boot-imx-0d48926c87ec96f974a6ac4034f4a2f2eab3255f.tar.gz
u-boot-imx-0d48926c87ec96f974a6ac4034f4a2f2eab3255f.tar.bz2
lwmon5 SYSMON POST: fix backlight control
If the LWMON5 config has SYSMON POST among CONFIG_POSTs which may be run on the board, then the SYSMON POST controls the display backlight (doesn't switch backlight ON if POST FAILED, and does switch the backlight ON if PASSED). If not, then the video driver controls the display backlight (just switch ON the backlight upon initialization). Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
Diffstat (limited to 'drivers/video/mb862xx.c')
-rw-r--r--drivers/video/mb862xx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/mb862xx.c b/drivers/video/mb862xx.c
index bfb057f..9684cf3 100644
--- a/drivers/video/mb862xx.c
+++ b/drivers/video/mb862xx.c
@@ -36,6 +36,9 @@
#include "videomodes.h"
#include <mb862xx.h>
+#if defined(CONFIG_POST)
+#include <post.h>
+#endif
/*
* Graphic Device
*/
@@ -354,7 +357,7 @@ void *video_hw_init (void)
board_disp_init();
#endif
-#if defined(CONFIG_LWMON5)
+#if defined(CONFIG_LWMON5) && !(CONFIG_POST & CFG_POST_SYSMON)
/* Lamp on */
board_backlight_switch (1);
#endif