mxc_ipuv3_fb.c: call display_enable
call display_enable, so a display gets enabled. Signed-off-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
5a760f61c5
commit
f4ec1ae08e
@ -24,6 +24,7 @@
|
|||||||
#include "ipu.h"
|
#include "ipu.h"
|
||||||
#include "mxcfb.h"
|
#include "mxcfb.h"
|
||||||
#include "ipu_regs.h"
|
#include "ipu_regs.h"
|
||||||
|
#include "display.h"
|
||||||
|
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <video.h>
|
#include <video.h>
|
||||||
@ -637,6 +638,9 @@ static int ipuv3_video_probe(struct udevice *dev)
|
|||||||
{
|
{
|
||||||
struct video_uc_platdata *plat = dev_get_uclass_platdata(dev);
|
struct video_uc_platdata *plat = dev_get_uclass_platdata(dev);
|
||||||
struct video_priv *uc_priv = dev_get_uclass_priv(dev);
|
struct video_priv *uc_priv = dev_get_uclass_priv(dev);
|
||||||
|
#if defined(CONFIG_DISPLAY)
|
||||||
|
struct udevice *disp_dev;
|
||||||
|
#endif
|
||||||
u32 fb_start, fb_end;
|
u32 fb_start, fb_end;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
@ -655,6 +659,15 @@ static int ipuv3_video_probe(struct udevice *dev)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
#if defined(CONFIG_DISPLAY)
|
||||||
|
ret = uclass_first_device(UCLASS_DISPLAY, &disp_dev);
|
||||||
|
if (disp_dev) {
|
||||||
|
ret = display_enable(disp_dev, 16, NULL);
|
||||||
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
uc_priv->xsize = gmode->xres;
|
uc_priv->xsize = gmode->xres;
|
||||||
uc_priv->ysize = gmode->yres;
|
uc_priv->ysize = gmode->yres;
|
||||||
uc_priv->bpix = LCD_MAX_LOG2_BPP;
|
uc_priv->bpix = LCD_MAX_LOG2_BPP;
|
||||||
|
Loading…
Reference in New Issue
Block a user