mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
add hdmi chips's(anx7150) vdd control
This commit is contained in:
parent
77a70a6031
commit
3242f81fe8
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user