mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
rk3288 hdmi: modify pinctrl gpio state to sleep state
This commit is contained in:
parent
8ceae60289
commit
91aea3ff09
|
|
@ -732,7 +732,7 @@ hdmi: hdmi@ff980000 {
|
|||
compatible = "rockchip,rk3288-hdmi";
|
||||
reg = <0xff980000 0x20000>;
|
||||
interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
|
||||
pinctrl-names = "default", "gpio";
|
||||
pinctrl-names = "default", "sleep";
|
||||
pinctrl-0 = <&i2c5_sda &i2c5_scl>;
|
||||
pinctrl-1 = <&i2c5_gpio>;
|
||||
clocks = <&clk_gates16 9>, <&clk_gates5 12>;
|
||||
|
|
|
|||
|
|
@ -280,7 +280,6 @@ static int rk3288_hdmi_drv_init(struct hdmi *hdmi_drv)
|
|||
static void rk3288_hdmi_early_suspend(void)
|
||||
{
|
||||
struct hdmi *hdmi_drv = &hdmi_dev->driver;
|
||||
struct pinctrl_state *gpio_state;
|
||||
|
||||
if (hdmi_drv->suspend)
|
||||
return;
|
||||
|
|
@ -305,8 +304,8 @@ static void rk3288_hdmi_early_suspend(void)
|
|||
flush_delayed_work(&hdmi_drv->delay_work);
|
||||
|
||||
/* iomux to gpio and pull down when suspend */
|
||||
gpio_state = pinctrl_lookup_state(hdmi_dev->dev->pins->p, "gpio");
|
||||
pinctrl_select_state(hdmi_dev->dev->pins->p, gpio_state);
|
||||
pinctrl_select_state(hdmi_dev->dev->pins->p,
|
||||
hdmi_dev->dev->pins->sleep_state);
|
||||
rk3288_hdmi_clk_disable(hdmi_dev);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user