hdmitx: optimize hpll shutdown
authorZongdong Jiao <zongdong.jiao@amlogic.com>
Wed, 13 Jun 2018 09:16:34 +0000 (17:16 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Thu, 14 Jun 2018 07:25:01 +0000 (00:25 -0700)
PD#164611: optimize hpll shutdown
HPLL shutdown is referenced from early suspend workflow.

Change-Id: I9dc33bea2d2d965ff97db0fb871175c537f8de67
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c
drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c

index d14a41b10699b4ea69cca4864ddcdb623440ff10..95ba378c3228ddec6577270ce6098305eab86de2 100644 (file)
@@ -212,7 +212,9 @@ static int hdmitx_reboot_notifier(struct notifier_block *nb,
        hdev->HWOp.CntlMisc(hdev, MISC_AVMUTE_OP, SET_AVMUTE);
        mdelay(100);
        hdev->HWOp.CntlMisc(hdev, MISC_TMDS_PHY_OP, TMDS_PHY_DISABLE);
-       hdev->HWOp.CntlMisc(hdev, MISC_HPLL_OP, HPLL_DISABLE);
+       hdev->HWOp.Cntl(hdev, HDMITX_EARLY_SUSPEND_RESUME_CNTL,
+               HDMITX_EARLY_SUSPEND);
+
        return NOTIFY_OK;
 }
 
index b27ccca7dfad804a410b2e45766da18d385df653..f41599450acbe5768db11203d27b332995bfccb8 100644 (file)
@@ -3683,12 +3683,6 @@ static int hdmitx_cntl_misc(struct hdmitx_dev *hdev, unsigned int cmd,
                return hdmitx_hpd_hw_op(argv);
        case MISC_HPD_GPI_ST:
                return hdmitx_hpd_hw_op(HPD_READ_HPD_GPIO);
-       case MISC_HPLL_OP:
-               if (argv == HPLL_ENABLE)
-                       hd_set_reg_bits(P_HHI_HDMI_PLL_CNTL, 1, 30, 1);
-               if (argv == HPLL_DISABLE)
-                       hd_set_reg_bits(P_HHI_HDMI_PLL_CNTL, 0, 30, 1);
-               break;
        case MISC_HPLL_FAKE:
                hdmitx_set_fake_vic(hdev);
                break;