commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=cc8642974e67f23ade2996090a96d42801561cdb branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/trunk
ppi_info contains ppi board info Signed-off-by: Scott Jiang <[email protected]> --- arch/blackfin/mach-bf561/boards/ezkit.c | 48 +++++++++--------------------- 1 files changed, 15 insertions(+), 33 deletions(-) diff --git a/arch/blackfin/mach-bf561/boards/ezkit.c b/arch/blackfin/mach-bf561/boards/ezkit.c index f0629d5..e2ee461 100644 --- a/arch/blackfin/mach-bf561/boards/ezkit.c +++ b/arch/blackfin/mach-bf561/boards/ezkit.c @@ -417,37 +417,23 @@ static struct platform_device bfin_dpmc = { }, }; -#if defined(CONFIG_VIDEO_BLACKFIN_PPI) \ - || defined(CONFIG_VIDEO_BLACKFIN_PPI_MODULE) -static struct resource bfin_ppi_resources[] = { - { - .start = CH_PPI0, - .end = CH_PPI0, - .flags = IORESOURCE_DMA, - }, - { - .start = IRQ_PPI1_ERROR, - .end = IRQ_PPI1_ERROR, - .flags = IORESOURCE_IRQ, - }, - { - .start = PPI0_CONTROL, - .end = PPI0_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 const unsigned short ppi_req[] = { + P_PPI0_D0, P_PPI0_D1, P_PPI0_D2, P_PPI0_D3, + P_PPI0_D4, P_PPI0_D5, P_PPI0_D6, P_PPI0_D7, + P_PPI0_CLK, P_PPI0_FS1, P_PPI0_FS2, + 0, +}; + +static const struct ppi_info ppi_info = { + .name = "ppi", + .dma_ch = CH_PPI0, + .irq_err = IRQ_PPI1_ERROR, + .base = PPI0_CONTROL, + .pin_req = ppi_req, +}; #if defined(CONFIG_VIDEO_ADV7183) \ || defined(CONFIG_VIDEO_ADV7183_MODULE) @@ -505,6 +491,7 @@ static struct bfin_capture_config bfin_capture_data = { .addr = 0x20, .platform_data = (void *)adv7183_gpio, }, + .ppi_info = &ppi_info, .ppi_control = (PACK_EN | DLEN_8 | DMA32 | FLD_SEL), }; #endif @@ -594,11 +581,6 @@ static struct platform_device *ezkit_devices[] __initdata = { &bfin_capture_device, #endif -#if defined(CONFIG_VIDEO_BLACKFIN_PPI) \ - || defined(CONFIG_VIDEO_BLACKFIN_PPI_MODULE) - &bfin_ppi_device, -#endif - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) &bfin_i2s, #endif
_______________________________________________ Linux-kernel-commits mailing list [email protected] https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
