check if we get a panel device, if so, enable
the backlight on it.
Signed-off-by: Heiko Schocher <hs@denx.de>
#include "mxcfb.h"
#include "ipu_regs.h"
#include "display.h"
+#include <panel.h>
#include <dm.h>
#include <video.h>
#if defined(CONFIG_DISPLAY)
struct udevice *disp_dev;
#endif
+ struct udevice *panel_dev;
u32 fb_start, fb_end;
int ret;
return ret;
}
#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->ysize = gmode->yres;