]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers: video: tidss: tidss_drv: Change remove method
authorNikhil M Jain <n-jain1@ti.com>
Thu, 27 Jul 2023 06:31:25 +0000 (12:01 +0530)
committerAnatolij Gustschin <agust@denx.de>
Tue, 1 Aug 2023 11:40:07 +0000 (13:40 +0200)
Change remove method of DSS video driver to disable video port instead
of performing a soft reset, as soft reset takes longer duration. Video
port is disabled by setting enable bit of video port to 0.

Signed-off-by: Nikhil M Jain <n-jain1@ti.com>
Reviewed-by: Devarsh Thakkar <devarsht@ti.com>
drivers/video/tidss/tidss_drv.c

index 078e3e82e3a9ae2250a74237266f9f660bb06059..623bf4cf31f0b902d1f0680c4adc658e44485675 100644 (file)
@@ -901,19 +901,9 @@ static int tidss_drv_probe(struct udevice *dev)
 
 static int tidss_drv_remove(struct udevice *dev)
 {
-       u32 val;
-       int ret;
        struct tidss_drv_priv *priv = dev_get_priv(dev);
 
-       priv->base_common = dev_remap_addr_index(dev, 0);
-       REG_FLD_MOD(priv, DSS_SYSCONFIG, 1, 1, 1);
-       /* Wait for reset to complete */
-       ret = readl_poll_timeout(priv->base_common + DSS_SYSSTATUS,
-                                val, val & 1, 5000);
-       if (ret) {
-               dev_warn(priv->dev, "failed to reset priv\n");
-               return ret;
-       }
+       VP_REG_FLD_MOD(priv, 0, DSS_VP_CONTROL, 0, 0, 0);
        return 0;
 }