Commit dcfd73d1 authored by Chaithrika U S's avatar Chaithrika U S Committed by Kevin Hilman

davinci: audio: move tlv320aic33 i2c setup into board files

Tested on DM6446, DM355, DM6447, DA850 EVMs.
Signed-off-by: default avatarChaithrika U S <chaithrika@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent 86fa4ff5
...@@ -41,6 +41,9 @@ static struct i2c_board_info __initdata da830_evm_i2c_devices[] = { ...@@ -41,6 +41,9 @@ static struct i2c_board_info __initdata da830_evm_i2c_devices[] = {
I2C_BOARD_INFO("24c256", 0x50), I2C_BOARD_INFO("24c256", 0x50),
.platform_data = &da830_evm_i2c_eeprom_info, .platform_data = &da830_evm_i2c_eeprom_info,
}, },
{
I2C_BOARD_INFO("tlv320aic3x", 0x18),
}
}; };
static struct davinci_i2c_platform_data da830_evm_i2c_0_pdata = { static struct davinci_i2c_platform_data da830_evm_i2c_0_pdata = {
......
...@@ -143,6 +143,12 @@ static struct platform_device da850_evm_nandflash_device = { ...@@ -143,6 +143,12 @@ static struct platform_device da850_evm_nandflash_device = {
.resource = da850_evm_nandflash_resource, .resource = da850_evm_nandflash_resource,
}; };
static struct i2c_board_info __initdata da850_evm_i2c_devices[] = {
{
I2C_BOARD_INFO("tlv320aic3x", 0x18),
}
};
static struct davinci_i2c_platform_data da850_evm_i2c_0_pdata = { static struct davinci_i2c_platform_data da850_evm_i2c_0_pdata = {
.bus_freq = 100, /* kHz */ .bus_freq = 100, /* kHz */
.bus_delay = 0, /* usec */ .bus_delay = 0, /* usec */
...@@ -343,6 +349,9 @@ static __init void da850_evm_init(void) ...@@ -343,6 +349,9 @@ static __init void da850_evm_init(void)
davinci_serial_init(&da850_evm_uart_config); davinci_serial_init(&da850_evm_uart_config);
i2c_register_board_info(1, da850_evm_i2c_devices,
ARRAY_SIZE(da850_evm_i2c_devices));
/* /*
* shut down uart 0 and 1; they are not used on the board and * shut down uart 0 and 1; they are not used on the board and
* accessing them causes endless "too much work in irq53" messages * accessing them causes endless "too much work in irq53" messages
......
...@@ -139,7 +139,7 @@ static struct i2c_board_info dm355evm_i2c_info[] = { ...@@ -139,7 +139,7 @@ static struct i2c_board_info dm355evm_i2c_info[] = {
{ I2C_BOARD_INFO("dm355evm_msp", 0x25), { I2C_BOARD_INFO("dm355evm_msp", 0x25),
.platform_data = dm355evm_mmcsd_gpios, .platform_data = dm355evm_mmcsd_gpios,
/* plus irq */ }, /* plus irq */ },
/* { I2C_BOARD_INFO("tlv320aic3x", 0x1b), }, */ { I2C_BOARD_INFO("tlv320aic33", 0x1b), },
/* { I2C_BOARD_INFO("tvp5146", 0x5d), }, */ /* { I2C_BOARD_INFO("tvp5146", 0x5d), }, */
}; };
......
...@@ -559,8 +559,10 @@ static struct i2c_board_info __initdata i2c_info[] = { ...@@ -559,8 +559,10 @@ static struct i2c_board_info __initdata i2c_info[] = {
I2C_BOARD_INFO("24c256", 0x50), I2C_BOARD_INFO("24c256", 0x50),
.platform_data = &eeprom_info, .platform_data = &eeprom_info,
}, },
{
I2C_BOARD_INFO("tlv320aic33", 0x1b),
},
/* ALSO: /* ALSO:
* - tvl320aic33 audio codec (0x1b)
* - tvp5146 video decoder (0x5d) * - tvp5146 video decoder (0x5d)
*/ */
}; };
......
...@@ -361,6 +361,9 @@ static struct i2c_board_info __initdata i2c_info[] = { ...@@ -361,6 +361,9 @@ static struct i2c_board_info __initdata i2c_info[] = {
{ {
I2C_BOARD_INFO("cpld_video", 0x3b), I2C_BOARD_INFO("cpld_video", 0x3b),
}, },
{
I2C_BOARD_INFO("tlv320aic33", 0x18),
}
}; };
static struct davinci_i2c_platform_data i2c_pdata = { static struct davinci_i2c_platform_data i2c_pdata = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment