mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
vdac: close vdac bandgap for suspend power [1/1]
PD#SWPL-2643 Problem: cvbsout electric current 1.97mA when suspend Solution: close bandgap when suspend Verify: verified by x301 Change-Id: I6b87ecd42b0f7876fea18c400f19ddc2d4a7665e Signed-off-by: Nian Jing <nian.jing@amlogic.com>
This commit is contained in:
@@ -703,12 +703,17 @@ static int amvdac_drv_suspend(struct platform_device *pdev,
|
||||
{
|
||||
if (s_vdac_data->cpu_id == VDAC_CPU_TXL)
|
||||
vdac_hiu_reg_write(HHI_VDAC_CNTL0, 0);
|
||||
else if (s_vdac_data->cpu_id == VDAC_CPU_TL1)
|
||||
vdac_hiu_reg_setb(HHI_VDAC_CNTL1_G12A, 1, 7, 1);
|
||||
pr_info("%s: suspend module\n", __func__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int amvdac_drv_resume(struct platform_device *pdev)
|
||||
{
|
||||
/*0xbc[7] for bandgap enable: 0:enable,1:disable*/
|
||||
if (s_vdac_data->cpu_id == VDAC_CPU_TL1)
|
||||
vdac_hiu_reg_setb(HHI_VDAC_CNTL1_G12A, 0, 7, 1);
|
||||
pr_info("%s: resume module\n", __func__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user