diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2017-10-26 21:51:52 -0700 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2017-10-27 09:44:48 +0200 |
commit | 1d7eef3f3fbd82796a4ced3adda0a9041393141d (patch) | |
tree | 74a4b10680ee25fc8851778707eaac76758ced6f /drivers/video/sunxi/sunxi_de2.c | |
parent | 79f285ddebea204eedefb4cb4bfe4a2710138fa3 (diff) |
sunxi: video: add LCD support to DE2 driver
Extend DE2 driver with LCD support. Tested on Pinebook which is based
on A64 and has ANX6345 eDP bridge with eDP panel connected to it.
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
[agust: rebased v5 on u-boot-video/master]
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'drivers/video/sunxi/sunxi_de2.c')
-rw-r--r-- | drivers/video/sunxi/sunxi_de2.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c index 67b937098c..e8903400ec 100644 --- a/drivers/video/sunxi/sunxi_de2.c +++ b/drivers/video/sunxi/sunxi_de2.c @@ -236,6 +236,23 @@ static int sunxi_de2_probe(struct udevice *dev) return 0; ret = uclass_find_device_by_name(UCLASS_DISPLAY, + "sunxi_lcd", &disp); + if (!ret) { + int mux; + + mux = 0; + + ret = sunxi_de2_init(dev, plat->base, VIDEO_BPP32, disp, mux, + false); + if (!ret) { + video_set_flush_dcache(dev, 1); + return 0; + } + } + + debug("%s: lcd display not found (ret=%d)\n", __func__, ret); + + ret = uclass_find_device_by_name(UCLASS_DISPLAY, "sunxi_dw_hdmi", &disp); if (!ret) { int mux; |