add hdmi chips's(anx7150) vdd control
author黄存 <hc@ubuntu.(none)>
Wed, 10 Aug 2011 04:15:21 +0000 (21:15 -0700)
committer黄存 <hc@ubuntu.(none)>
Wed, 10 Aug 2011 04:15:21 +0000 (21:15 -0700)
drivers/video/hdmi/chips/anx7150.c
drivers/video/hdmi/chips/anx7150.h

index bb2d25f2b7e05eb1d57fad726af510b88189339c..51b33b0fec0caa1b42709a4510b7519cb0161894 100755 (executable)
@@ -159,6 +159,11 @@ static int anx7150_i2c_probe(struct i2c_client *client,const struct i2c_device_i
        struct hdmi *hdmi = NULL;\r
        struct anx7150_pdata *anx = NULL;\r
 \r
+       gpio_request(HDMI_VDD_CTL, "hdmi pwr ctl");\r
+       gpio_direction_output(HDMI_VDD_CTL, GPIO_HIGH);\r
+       //gpio_set_value(HDMI_VDD_CTL, GPIO_HIGH); \r
+       mdelay(10);\r
+\r
        hdmi = hdmi_register(sizeof(struct anx7150_pdata), &client->dev);\r
     if (!hdmi)\r
     {\r
index 4dbaf17638519f24be013bd31962362625af9dd2..b1db5ae520bc37984079aaa4ba9259b1a273aeba 100755 (executable)
@@ -10,7 +10,8 @@
 \r
 #define ANX7150_SCL_RATE 100 * 1000\r
 \r
-\r
+/* VCC_HDMI 's control */\r
+#define HDMI_VDD_CTL     RK29_PIN6_PD3\r
 \r
 /* HDMI auto switch */\r
 #define HDMI_AUTO_SWITCH HDMI_ENABLE\r