Skip to content

Commit

Permalink
bf609: add platform data for soft switch devices on the video extenders
Browse files Browse the repository at this point in the history
Signed-off-by: Sonic Zhang <[email protected]>
  • Loading branch information
sonicz authored and realmz committed Apr 23, 2015
1 parent 707e6f0 commit 199aad1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions arch/blackfin/mach-bf609/boards/ezkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1873,6 +1873,16 @@ static const struct mcp23s08_platform_data bfin_mcp23s08_soft_switch1 = {
static const struct mcp23s08_platform_data bfin_mcp23s08_soft_switch2 = {
.base = 140,
};
# if IS_ENABLED(CONFIG_VIDEO_ADV7842)
static const struct mcp23s08_platform_data bfin_adv7842_soft_switch = {
.base = 150,
};
# endif
# if IS_ENABLED(CONFIG_VIDEO_ADV7511) || IS_ENABLED(CONFIG_VIDEO_ADV7343)
static const struct mcp23s08_platform_data bfin_adv7511_soft_switch = {
.base = 160,
};
# endif
#endif

static struct i2c_board_info __initdata bfin_i2c_board_info0[] = {
Expand Down Expand Up @@ -1907,6 +1917,18 @@ static struct i2c_board_info __initdata bfin_i2c_board_info0[] = {
I2C_BOARD_INFO("mcp23017", 0x23),
.platform_data = (void *)&bfin_mcp23s08_soft_switch2
},
# if IS_ENABLED(CONFIG_VIDEO_ADV7842)
{
I2C_BOARD_INFO("mcp23017", 0x26),
.platform_data = (void *)&bfin_adv7842_soft_switch
},
# endif
# if IS_ENABLED(CONFIG_VIDEO_ADV7511) || IS_ENABLED(CONFIG_VIDEO_ADV7343)
{
I2C_BOARD_INFO("mcp23017", 0x25),
.platform_data = (void *)&bfin_adv7511_soft_switch
},
# endif
#endif
};

Expand Down

0 comments on commit 199aad1

Please sign in to comment.