From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 4/5] mxc_ipuv3_fb.c: call display_enable
Date: Mon, 22 Jul 2019 06:49:07 +0200 [thread overview]
Message-ID: <20190722044908.2271574-5-hs@denx.de> (raw)
In-Reply-To: <20190722044908.2271574-1-hs@denx.de>
call display_enable, so a display gets enabled.
Signed-off-by: Heiko Schocher <hs@denx.de>
---
drivers/video/imx/mxc_ipuv3_fb.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c
index cf672156cd..aca76bd9cc 100644
--- a/drivers/video/imx/mxc_ipuv3_fb.c
+++ b/drivers/video/imx/mxc_ipuv3_fb.c
@@ -24,6 +24,7 @@
#include "ipu.h"
#include "mxcfb.h"
#include "ipu_regs.h"
+#include "display.h"
#include <dm.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_priv *uc_priv = dev_get_uclass_priv(dev);
+#if defined(CONFIG_DISPLAY)
+ struct udevice *disp_dev;
+#endif
u32 fb_start, fb_end;
int ret;
@@ -655,6 +659,15 @@ static int ipuv3_video_probe(struct udevice *dev)
if (ret < 0)
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->ysize = gmode->yres;
uc_priv->bpix = LCD_MAX_LOG2_BPP;
--
2.21.0
next prev parent reply other threads:[~2019-07-22 4:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-22 4:49 [U-Boot] [PATCH v1 0/5] imx6, display: enhancements for upcoming aristainetos DM support Heiko Schocher
2019-07-22 4:49 ` [U-Boot] [PATCH v1 1/5] global_data: enable fb_base for DM_VIDEO Heiko Schocher
2019-07-22 4:49 ` [U-Boot] [PATCH v1 2/5] mxc_ipuv3_fb.c: set gd->fb_base Heiko Schocher
2019-07-22 4:49 ` [U-Boot] [PATCH v1 3/5] bdinfo: show fb base with DM_VIDEO Heiko Schocher
2019-07-22 4:49 ` Heiko Schocher [this message]
2019-07-22 4:49 ` [U-Boot] [PATCH v1 5/5] mxc_ipuv3_fb.c: enable a backlight on a panel Heiko Schocher
2019-07-30 12:53 ` [U-Boot] [PATCH v1 0/5] imx6, display: enhancements for upcoming aristainetos DM support Anatolij Gustschin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190722044908.2271574-5-hs@denx.de \
--to=hs@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox