mirror of
https://github.com/torvalds/linux.git
synced 2026-06-12 00:23:01 +02:00
drm: bridge: dw-hdmi: set hdmi ddc pin HI-Z when suspend
Set hdmi ddc pin HI-Z to save power. Change-Id: Ic5e15cac43c486e7de6be8526daea9b36da68bc8 Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
parent
36549072d7
commit
495a7777d6
|
|
@ -18,6 +18,7 @@
|
|||
#include <linux/regmap.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/pinctrl/consumer.h>
|
||||
|
||||
#include <media/cec-notifier.h>
|
||||
|
||||
|
|
@ -3534,11 +3535,13 @@ void dw_hdmi_suspend(struct dw_hdmi *hdmi)
|
|||
if (hdmi->irq)
|
||||
disable_irq(hdmi->irq);
|
||||
mutex_unlock(&hdmi->mutex);
|
||||
pinctrl_pm_select_sleep_state(hdmi->dev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(dw_hdmi_suspend);
|
||||
|
||||
void dw_hdmi_resume(struct dw_hdmi *hdmi)
|
||||
{
|
||||
pinctrl_pm_select_default_state(hdmi->dev);
|
||||
mutex_lock(&hdmi->mutex);
|
||||
dw_hdmi_reg_initial(hdmi);
|
||||
if (hdmi->irq)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user