summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2020-05-09 08:49:50 -0700
committerYe Li <ye.li@nxp.com>2022-04-06 18:03:45 +0800
commitf602f01fa3249f846009ffcb095971d796e38776 (patch)
tree0313293fb8d21336ca0b30b6e53e241919a6e978 /drivers
parent93af3167f9ea7e1d0be0c0dcb9dcae007ac3332e (diff)
MLK-23964-6 video: dsi_host: add disable host interface
Current operations structure has provided disable callback, but there is no API from dsi_host uclass to use it. Add this disable host interface, so that dsi bridge can call it to disable host Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit f051226ae38d6035c52629fe12f3d661c9891be1) (cherry picked from commit e2574b3a21789a853c47da95824bd76a657bd3a6) (cherry picked from commit 676d09e8a806e0f126c594c5d7dad101b9b48b98) (cherry picked from commit 00a0f647c645e6fb378f73cf775d9c6ad6094f52)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/dsi-host-uclass.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/video/dsi-host-uclass.c b/drivers/video/dsi-host-uclass.c
index 6e5256eb126..3b6ec8c0a89 100644
--- a/drivers/video/dsi-host-uclass.c
+++ b/drivers/video/dsi-host-uclass.c
@@ -35,6 +35,16 @@ int dsi_host_enable(struct udevice *dev)
return ops->enable(dev);
}
+int dsi_host_disable(struct udevice *dev)
+{
+ struct dsi_host_ops *ops = dsi_host_get_ops(dev);
+
+ if (!ops->disable)
+ return -ENOSYS;
+
+ return ops->disable(dev);
+}
+
UCLASS_DRIVER(dsi_host) = {
.id = UCLASS_DSI_HOST,
.name = "dsi_host",