aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/sunxi
diff options
context:
space:
mode:
authorIcenowy Zheng <icenowy@aosc.io>2017-11-01 22:18:07 +0800
committerJagan Teki <jagan@amarulasolutions.com>2017-12-02 21:51:54 +0530
commit0458e8c6fa660c40f52098e32a71aeee31e3aa92 (patch)
tree810f7956148b55e989b6c985354e1ae9345d3c79 /drivers/video/sunxi
parent6130b1f6bc237df95f057994f5fccffa6be0a6f1 (diff)
downloadu-boot-0458e8c6fa660c40f52098e32a71aeee31e3aa92.zip
u-boot-0458e8c6fa660c40f52098e32a71aeee31e3aa92.tar.gz
u-boot-0458e8c6fa660c40f52098e32a71aeee31e3aa92.tar.bz2
video: sunxi: de2: add support for LCD SimpleFB
Add support for setting up SimpleFB for LCD display output in DE2 SimpleFB setup code. Signed-off-by: Icenowy Zheng <icenowy@aosc.io> Reviewed-by: Jagan Teki <jagan@openedev.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers/video/sunxi')
-rw-r--r--drivers/video/sunxi/sunxi_de2.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c
index 6d6bb2e..8601873 100644
--- a/drivers/video/sunxi/sunxi_de2.c
+++ b/drivers/video/sunxi/sunxi_de2.c
@@ -319,7 +319,7 @@ U_BOOT_DEVICE(sunxi_de2) = {
#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_VIDEO_DT_SIMPLEFB)
int sunxi_simplefb_setup(void *blob)
{
- struct udevice *de2, *hdmi;
+ struct udevice *de2, *hdmi, *lcd;
struct video_priv *de2_priv;
struct video_uc_platdata *de2_plat;
int mux;
@@ -355,6 +355,15 @@ int sunxi_simplefb_setup(void *blob)
debug("HDMI present but not probed\n");
}
+ ret = uclass_find_device_by_name(UCLASS_DISPLAY,
+ "sunxi_lcd", &lcd);
+ if (ret)
+ debug("LCD not present\n");
+ else if (device_active(lcd))
+ pipeline = "mixer0-lcd0";
+ else
+ debug("LCD present but not probed\n");
+
if (!pipeline) {
debug("No active display present\n");
return 0;