From: Wolfgang Denk Date: Tue, 25 Mar 2008 00:27:05 +0100 Subject: [U-Boot-Users] [PATCH] lwmon5 SYSMON POST: fix backlight control In-Reply-To: <1206401225-11986-1-git-send-email-wd@denx.de> References: <1206401225-11986-1-git-send-email-wd@denx.de> Message-ID: <1206401225-11986-2-git-send-email-wd@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Yuri Tikhonov 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 --- drivers/video/mb862xx.c | 5 ++++- 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 +#if defined(CONFIG_POST) +#include +#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 -- 1.5.4.2