From 76589064b3b5058812633fe68525e576c9d7cb2a Mon Sep 17 00:00:00 2001 From: Zongdong Jiao Date: Wed, 13 Jun 2018 17:16:34 +0800 Subject: [PATCH] hdmitx: optimize hpll shutdown PD#164611: optimize hpll shutdown HPLL shutdown is referenced from early suspend workflow. Change-Id: I9dc33bea2d2d965ff97db0fb871175c537f8de67 Signed-off-by: Zongdong Jiao --- drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c | 4 +++- drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c | 6 ------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c index d14a41b..95ba378 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c @@ -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; } diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c index b27ccca..f415994 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c @@ -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; -- 2.7.4