]> git.sur5r.net Git - u-boot/commitdiff
lwmon5 SYSMON POST: fix backlight control
authorYuri Tikhonov <yur@emcraft.com>
Mon, 24 Mar 2008 10:30:54 +0000 (11:30 +0100)
committerWolfgang Denk <wd@denx.de>
Mon, 24 Mar 2008 23:16:14 +0000 (00:16 +0100)
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>
drivers/video/mb862xx.c

index bfb057f513b668dd964f3adbc772c507f0e18dac..9684cf3b7c0a690d3b765cc0fbe3a06dd3b9ea45 100644 (file)
@@ -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