mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user