diff options
author | Nikhil M Jain <n-jain1@ti.com> | 2023-07-27 12:01:25 +0530 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2023-08-01 13:40:07 +0200 |
commit | 3f9b5a7ffa75871b238f931af37f8f595e998838 (patch) | |
tree | 53975a73d3bb38e0b126aa2a95c0f74c73658e96 /drivers | |
parent | e1a0cafcfb85a681c7ac77c71fed0c392a75fe06 (diff) | |
download | u-boot-3f9b5a7ffa75871b238f931af37f8f595e998838.zip u-boot-3f9b5a7ffa75871b238f931af37f8f595e998838.tar.gz u-boot-3f9b5a7ffa75871b238f931af37f8f595e998838.tar.bz2 |
drivers: video: tidss: tidss_drv: Change remove method
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/tidss/tidss_drv.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/video/tidss/tidss_drv.c b/drivers/video/tidss/tidss_drv.c index 078e3e8..623bf4c 100644 --- a/drivers/video/tidss/tidss_drv.c +++ b/drivers/video/tidss/tidss_drv.c @@ -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; } |