SH: convert migor to soc-camera as platform-device
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
194a17305c
commit
2cb582ca0d
1 changed files with 52 additions and 27 deletions
|
@ -381,21 +381,6 @@ static struct platform_device migor_ceu_device = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct ov772x_camera_info ov7725_info = {
|
|
||||||
.buswidth = SOCAM_DATAWIDTH_8,
|
|
||||||
.link = {
|
|
||||||
.power = ov7725_power,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
static struct tw9910_video_info tw9910_info = {
|
|
||||||
.buswidth = SOCAM_DATAWIDTH_8,
|
|
||||||
.mpout = TW9910_MPO_FIELD,
|
|
||||||
.link = {
|
|
||||||
.power = tw9910_power,
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
struct spi_gpio_platform_data sdcard_cn9_platform_data = {
|
struct spi_gpio_platform_data sdcard_cn9_platform_data = {
|
||||||
.sck = GPIO_PTD0,
|
.sck = GPIO_PTD0,
|
||||||
.mosi = GPIO_PTD1,
|
.mosi = GPIO_PTD1,
|
||||||
|
@ -410,16 +395,6 @@ static struct platform_device sdcard_cn9_device = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device *migor_devices[] __initdata = {
|
|
||||||
&smc91x_eth_device,
|
|
||||||
&sh_keysc_device,
|
|
||||||
&migor_lcdc_device,
|
|
||||||
&migor_ceu_device,
|
|
||||||
&migor_nor_flash_device,
|
|
||||||
&migor_nand_flash_device,
|
|
||||||
&sdcard_cn9_device,
|
|
||||||
};
|
|
||||||
|
|
||||||
static struct i2c_board_info migor_i2c_devices[] = {
|
static struct i2c_board_info migor_i2c_devices[] = {
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("rs5c372b", 0x32),
|
I2C_BOARD_INFO("rs5c372b", 0x32),
|
||||||
|
@ -428,16 +403,66 @@ static struct i2c_board_info migor_i2c_devices[] = {
|
||||||
I2C_BOARD_INFO("migor_ts", 0x51),
|
I2C_BOARD_INFO("migor_ts", 0x51),
|
||||||
.irq = 38, /* IRQ6 */
|
.irq = 38, /* IRQ6 */
|
||||||
},
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct i2c_board_info migor_i2c_camera[] = {
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("ov772x", 0x21),
|
I2C_BOARD_INFO("ov772x", 0x21),
|
||||||
.platform_data = &ov7725_info.link,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("tw9910", 0x45),
|
I2C_BOARD_INFO("tw9910", 0x45),
|
||||||
.platform_data = &tw9910_info.link,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct ov772x_camera_info ov7725_info = {
|
||||||
|
.buswidth = SOCAM_DATAWIDTH_8,
|
||||||
|
.link = {
|
||||||
|
.power = ov7725_power,
|
||||||
|
.board_info = &migor_i2c_camera[0],
|
||||||
|
.i2c_adapter_id = 0,
|
||||||
|
.module_name = "ov772x",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct tw9910_video_info tw9910_info = {
|
||||||
|
.buswidth = SOCAM_DATAWIDTH_8,
|
||||||
|
.mpout = TW9910_MPO_FIELD,
|
||||||
|
.link = {
|
||||||
|
.power = tw9910_power,
|
||||||
|
.board_info = &migor_i2c_camera[1],
|
||||||
|
.i2c_adapter_id = 0,
|
||||||
|
.module_name = "tw9910",
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device migor_camera[] = {
|
||||||
|
{
|
||||||
|
.name = "soc-camera-pdrv",
|
||||||
|
.id = 0,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &ov7725_info.link,
|
||||||
|
},
|
||||||
|
}, {
|
||||||
|
.name = "soc-camera-pdrv",
|
||||||
|
.id = 1,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &tw9910_info.link,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device *migor_devices[] __initdata = {
|
||||||
|
&smc91x_eth_device,
|
||||||
|
&sh_keysc_device,
|
||||||
|
&migor_lcdc_device,
|
||||||
|
&migor_ceu_device,
|
||||||
|
&migor_nor_flash_device,
|
||||||
|
&migor_nand_flash_device,
|
||||||
|
&sdcard_cn9_device,
|
||||||
|
&migor_camera[0],
|
||||||
|
&migor_camera[1],
|
||||||
|
};
|
||||||
|
|
||||||
static struct spi_board_info migor_spi_devices[] = {
|
static struct spi_board_info migor_spi_devices[] = {
|
||||||
{
|
{
|
||||||
.modalias = "mmc_spi",
|
.modalias = "mmc_spi",
|
||||||
|
|
Loading…
Add table
Reference in a new issue