From: Stephen Rothwell Date: Fri, 21 Sep 2012 01:51:44 +0000 (+1000) Subject: Merge remote-tracking branch 'sound-asoc/for-next' X-Git-Tag: next-20120921~66 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e470bdaafc6cec8726368f3637c2e38a6e07b0d6;p=karo-tx-linux.git Merge remote-tracking branch 'sound-asoc/for-next' Conflicts: arch/arm/mach-imx/mach-imx27_visstrim_m10.c --- e470bdaafc6cec8726368f3637c2e38a6e07b0d6 diff --cc arch/arm/mach-imx/mach-imx27_visstrim_m10.c index 821d6aac411c,562722959666..141756f00ae5 --- a/arch/arm/mach-imx/mach-imx27_visstrim_m10.c +++ b/arch/arm/mach-imx/mach-imx27_visstrim_m10.c @@@ -32,6 -32,8 +32,7 @@@ #include #include #include -#include + #include #include #include #include @@@ -403,47 -436,14 +434,55 @@@ static const struct imx_ssi_platform_da .flags = IMX_SSI_DMA | IMX_SSI_SYN, }; +/* coda */ + +static void __init visstrim_coda_init(void) +{ + struct platform_device *pdev; + int dma; + + pdev = imx27_add_coda(); + dma = dma_declare_coherent_memory(&pdev->dev, + mx2_camera_base + MX2_CAMERA_BUF_SIZE, + mx2_camera_base + MX2_CAMERA_BUF_SIZE, + MX2_CAMERA_BUF_SIZE, + DMA_MEMORY_MAP | DMA_MEMORY_EXCLUSIVE); + if (!(dma & DMA_MEMORY_MAP)) + return; +} + +/* DMA deinterlace */ +static struct platform_device visstrim_deinterlace = { + .name = "m2m-deinterlace", + .id = 0, +}; + +static void __init visstrim_deinterlace_init(void) +{ + int ret = -ENOMEM; + struct platform_device *pdev = &visstrim_deinterlace; + int dma; + + ret = platform_device_register(pdev); + + dma = dma_declare_coherent_memory(&pdev->dev, + mx2_camera_base + 2 * MX2_CAMERA_BUF_SIZE, + mx2_camera_base + 2 * MX2_CAMERA_BUF_SIZE, + MX2_CAMERA_BUF_SIZE, + DMA_MEMORY_MAP | DMA_MEMORY_EXCLUSIVE); + if (!(dma & DMA_MEMORY_MAP)) + return; +} + + + /* Audio */ + static const struct snd_mx27vis_platform_data snd_mx27vis_pdata __initconst = { + .amp_gain0_gpio = AMP_GAIN_0, + .amp_gain1_gpio = AMP_GAIN_1, + .amp_mutel_gpio = AMP_MUTE_SDL, + .amp_muter_gpio = AMP_MUTE_SDR, + }; + static void __init visstrim_m10_revision(void) { int exp_version = 0;