mirror of
https://xff.cz/git/u-boot/
synced 2025-09-04 02:02:08 +02:00
mxc_ipuv3_fb.c: enable a backlight on a panel
check if we get a panel device, if so, enable the backlight on it. Signed-off-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
committed by
Anatolij Gustschin
parent
f4ec1ae08e
commit
42a7ce27d9
@@ -25,6 +25,7 @@
|
|||||||
#include "mxcfb.h"
|
#include "mxcfb.h"
|
||||||
#include "ipu_regs.h"
|
#include "ipu_regs.h"
|
||||||
#include "display.h"
|
#include "display.h"
|
||||||
|
#include <panel.h>
|
||||||
|
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <video.h>
|
#include <video.h>
|
||||||
@@ -641,6 +642,7 @@ static int ipuv3_video_probe(struct udevice *dev)
|
|||||||
#if defined(CONFIG_DISPLAY)
|
#if defined(CONFIG_DISPLAY)
|
||||||
struct udevice *disp_dev;
|
struct udevice *disp_dev;
|
||||||
#endif
|
#endif
|
||||||
|
struct udevice *panel_dev;
|
||||||
u32 fb_start, fb_end;
|
u32 fb_start, fb_end;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
@@ -667,6 +669,9 @@ static int ipuv3_video_probe(struct udevice *dev)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
ret = uclass_get_device(UCLASS_PANEL, 0, &panel_dev);
|
||||||
|
if (panel_dev)
|
||||||
|
panel_enable_backlight(panel_dev);
|
||||||
|
|
||||||
uc_priv->xsize = gmode->xres;
|
uc_priv->xsize = gmode->xres;
|
||||||
uc_priv->ysize = gmode->yres;
|
uc_priv->ysize = gmode->yres;
|
||||||
|
Reference in New Issue
Block a user