From: 黄存 Date: Wed, 10 Aug 2011 04:15:21 +0000 (-0700) Subject: add hdmi chips's(anx7150) vdd control X-Git-Tag: firefly_0821_release~9772^2~18^2~18 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3242f81fe8b87535228d11ef5dde8dbd341b32a2;p=firefly-linux-kernel-4.4.55.git add hdmi chips's(anx7150) vdd control --- diff --git a/drivers/video/hdmi/chips/anx7150.c b/drivers/video/hdmi/chips/anx7150.c index bb2d25f2b7e0..51b33b0fec0c 100755 --- a/drivers/video/hdmi/chips/anx7150.c +++ b/drivers/video/hdmi/chips/anx7150.c @@ -159,6 +159,11 @@ static int anx7150_i2c_probe(struct i2c_client *client,const struct i2c_device_i struct hdmi *hdmi = NULL; struct anx7150_pdata *anx = NULL; + gpio_request(HDMI_VDD_CTL, "hdmi pwr ctl"); + gpio_direction_output(HDMI_VDD_CTL, GPIO_HIGH); + //gpio_set_value(HDMI_VDD_CTL, GPIO_HIGH); + mdelay(10); + hdmi = hdmi_register(sizeof(struct anx7150_pdata), &client->dev); if (!hdmi) { diff --git a/drivers/video/hdmi/chips/anx7150.h b/drivers/video/hdmi/chips/anx7150.h index 4dbaf1763851..b1db5ae520bc 100755 --- a/drivers/video/hdmi/chips/anx7150.h +++ b/drivers/video/hdmi/chips/anx7150.h @@ -10,7 +10,8 @@ #define ANX7150_SCL_RATE 100 * 1000 - +/* VCC_HDMI 's control */ +#define HDMI_VDD_CTL RK29_PIN6_PD3 /* HDMI auto switch */ #define HDMI_AUTO_SWITCH HDMI_ENABLE