mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
drm/rockchip: lvds: set correct step to power off lvds
Change-Id: I6ce0fea548a0bc66c231ac184b45b74fd9acaf1f Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
This commit is contained in:
committed by
Huang, Tao
parent
56640e72df
commit
b4bf2fa8d7
@@ -342,15 +342,14 @@ static void rockchip_lvds_poweroff(struct rockchip_lvds *lvds)
|
||||
u32 val;
|
||||
|
||||
if (LVDS_CHIP(lvds) == RK3288_LVDS) {
|
||||
ret = regmap_write(lvds->grf,
|
||||
lvds->soc_data->grf_soc_con7, 0xffff8000);
|
||||
if (ret != 0)
|
||||
dev_err(lvds->dev, "Could not write to GRF: %d\n", ret);
|
||||
|
||||
writel(RK3288_LVDS_CFG_REG21_TX_DISABLE,
|
||||
lvds->regs + RK3288_LVDS_CFG_REG21);
|
||||
writel(RK3288_LVDS_CFG_REGC_PLL_DISABLE,
|
||||
lvds->regs + RK3288_LVDS_CFG_REGC);
|
||||
ret = regmap_write(lvds->grf,
|
||||
lvds->soc_data->grf_soc_con7, 0xffff8000);
|
||||
if (ret != 0)
|
||||
dev_err(lvds->dev, "Could not write to GRF: %d\n", ret);
|
||||
|
||||
pm_runtime_put(lvds->dev);
|
||||
if (lvds->pclk)
|
||||
|
||||
Reference in New Issue
Block a user