AnsweredAssumed Answered

[ADV7611]getting platform data

Question asked by ravi1 on Mar 10, 2015
Latest reply on Mar 11, 2015 by ravi1

Hi,

 

I am going through adv7604 driver in 3.14 Linux Kernel, In this driver(Linux/drivers/media/i2c/adv7604.c - Linux Cross Reference - Free Electrons) platform data was got from i2c_client object(Linux/drivers/media/i2c/adv7604.c - Linux Cross Reference - Free Electrons),

Could you please tell me where we have to update the data, so that we will receive the data in platform_data structure. I am using device tree for our board.

 

In my current implementation I have hard coded the values in the probe function as shown below.

 

static int adv7604_probe(struct i2c_client *client,

  const struct i2c_device_id *id)

{

 

  ...

 

  pdata->disable_pwrdnb=0;

  pdata->disable_cable_det_rst=1;

  pdata->op_format_sel=ADV7604_OP_FORMAT_SEL_SDR_444_24;

 

  pdata->blank_data = 1;

  pdata->op_656_range = 1;

  pdata->alt_data_sat = 1;

  pdata->insert_av_codes = 1;

 

  pdata->i2c_avlink=0x42;

    pdata->i2c_cec=0x40;

    pdata->i2c_infoframe=0x3e;

    pdata->i2c_esdp=0x38;

    pdata->i2c_dpp=0x3c;

    pdata->i2c_afe=0x26;

    pdata->i2c_repeater=0x32;

    pdata->i2c_edid=0x36;

    pdata->i2c_hdmi=0x34;

    pdata->i2c_test=0x30;

    pdata->i2c_cp=0x22;

    pdata->i2c_vdp=0x24;

 

  ...

 

}

Outcomes