commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=9f88c02289bc307b65b4f1f3536c73ecd690c659 branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/trunk-next
Signed-off-by: Scott Jiang <[email protected]> Signed-off-by: Mike Frysinger <[email protected]> --- arch/blackfin/mach-bf537/boards/stamp.c | 77 +++++++++++++++++++++++++++++++ 1 files changed, 77 insertions(+), 0 deletions(-) diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index f2d1cc8..289bd61 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c @@ -1574,6 +1574,73 @@ static struct platform_device bfin_lq035q1_device = { }; #endif +#if defined(CONFIG_VIDEO_BLACKFIN_PPI) \ + || defined(CONFIG_VIDEO_BLACKFIN_PPI_MODULE) +static struct resource bfin_ppi_resources[] = { + { + .start = CH_PPI, + .end = CH_PPI, + .flags = IORESOURCE_DMA, + }, + { + .start = IRQ_PPI_ERROR, + .end = IRQ_PPI_ERROR, + .flags = IORESOURCE_IRQ, + }, + { + .start = PPI_CONTROL, + .end = PPI_FRAME + 3, + .flags = IORESOURCE_MEM, + }, +}; + +static struct platform_device bfin_ppi_device = { + .name = "ppi", + .id = -1, + .num_resources = ARRAY_SIZE(bfin_ppi_resources), + .resource = bfin_ppi_resources, +}; +#endif + +#if defined(CONFIG_VIDEO_BLACKFIN_CAPTURE) \ + || defined(CONFIG_VIDEO_BLACKFIN_CAPTURE_MODULE) +#include <media/blackfin/bfin_capture.h> + +static struct v4l2_input vs6624_inputs[] = { + { + .index = 0, + .name = "Camera", + .type = V4L2_INPUT_TYPE_CAMERA, + .std = V4L2_STD_UNKNOWN, + }, +}; + +static struct bcap_route vs6624_routes[] = { + { + .input = 0, + .output = 0, + }, +}; + +static struct bfin_capture_config bfin_capture_data = { + .card_name = "BF537", + .inputs = vs6624_inputs, + .num_inputs = ARRAY_SIZE(vs6624_inputs), + .routes = vs6624_routes, + .i2c_adapter_id = 0, + .board_info = { + I2C_BOARD_INFO("vs6624", 0x10) + }, +}; + +static struct platform_device bfin_capture_device = { + .name = "bfin_capture", + .dev = { + .platform_data = &bfin_capture_data, + }, +}; +#endif + #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) #ifdef CONFIG_SERIAL_BFIN_UART0 static struct resource bfin_uart0_resources[] = { @@ -2731,6 +2798,16 @@ static struct platform_device *stamp_devices[] __initdata = { &bfin_lq035q1_device, #endif +#if defined(CONFIG_VIDEO_BLACKFIN_CAPTURE) \ + || defined(CONFIG_VIDEO_BLACKFIN_CAPTURE_MODULE) + &bfin_capture_device, +#endif + +#if defined(CONFIG_VIDEO_BLACKFIN_PPI) \ + || defined(CONFIG_VIDEO_BLACKFIN_PPI_MODULE) + &bfin_ppi_device, +#endif + #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) #ifdef CONFIG_SERIAL_BFIN_UART0 &bfin_uart0_device,
_______________________________________________ Linux-kernel-commits mailing list [email protected] https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
