diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2014-08-20 12:32:22 +0200 |
---|---|---|
committer | Steven Miao <realmz6@gmail.com> | 2015-04-23 15:34:29 +0200 |
commit | 199aad16d517d47cf13f96caf0eedc6a4542bc60 (patch) | |
tree | 50b9aeb11d81047c7ec6dd63bbe6b6264f158221 | |
parent | bf609: enable soft switch gpio driver by default (diff) | |
download | linux-199aad16d517d47cf13f96caf0eedc6a4542bc60.tar.xz linux-199aad16d517d47cf13f96caf0eedc6a4542bc60.zip |
bf609: add platform data for soft switch devices on the video extenders
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
-rw-r--r-- | arch/blackfin/mach-bf609/boards/ezkit.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf609/boards/ezkit.c b/arch/blackfin/mach-bf609/boards/ezkit.c index cc03ae2e559c..9afc39cffce6 100644 --- a/arch/blackfin/mach-bf609/boards/ezkit.c +++ b/arch/blackfin/mach-bf609/boards/ezkit.c @@ -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[] = { @@ -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 }; |