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>
This commit is contained in:
parent
ff2bdfb2c1
commit
0d48926c87
|
@ -36,6 +36,9 @@
|
||||||
#include "videomodes.h"
|
#include "videomodes.h"
|
||||||
#include <mb862xx.h>
|
#include <mb862xx.h>
|
||||||
|
|
||||||
|
#if defined(CONFIG_POST)
|
||||||
|
#include <post.h>
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
* Graphic Device
|
* Graphic Device
|
||||||
*/
|
*/
|
||||||
|
@ -354,7 +357,7 @@ void *video_hw_init (void)
|
||||||
board_disp_init();
|
board_disp_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_LWMON5)
|
#if defined(CONFIG_LWMON5) && !(CONFIG_POST & CFG_POST_SYSMON)
|
||||||
/* Lamp on */
|
/* Lamp on */
|
||||||
board_backlight_switch (1);
|
board_backlight_switch (1);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue