On Monday 17 August 2009, m-kariche...@ti.com wrote:
>  static struct i2c_board_info dm355evm_i2c_info[] = {
>         {       I2C_BOARD_INFO("dm355evm_msp", 0x25),
>                 .platform_data = dm355evm_mmcsd_gpios,
>         },
> +       {
> +               I2C_BOARD_INFO("PCA9543A", 0x73),
> +       },
>         /* { plus irq  }, */
>         /* { I2C_BOARD_INFO("tlv320aic3x", 0x1b), }, */
>  };

The DM355 EVM board has no PCA9543A I2C multiplexor
chip, so this is not a good approach to use.  (*)

If I understand correctly you are configuring some
particular add-on board, which uses a chip like that.
There are at least two such boards today, yes?  And
potentially more.  Don't preclude (or complicate)
use of different boards...

The scalable approach is to have a file for each
daughtercard, and Kconfig options to enable the
support for those cards.  The EVM board init code
might call a dm355evm_card_init() routine, and
provide a weak binding for it which would be
overridden by the 

- Dave

(*) Separate issue:  there's ongoing work to get the
    I2C stack to support such chips in generic ways;
    you should plan to use that work, which ISTR wasn't
    too far from being mergeable.


_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to