commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=7f9a0a5eb39eaa692c85a462c686d633eb02cb7b branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/trunk
Signed-off-by: Scott Jiang <[email protected]> --- arch/blackfin/mach-bf609/boards/ezkit.c | 63 ++++++++++++++++++++++++++++++- 1 files changed, 61 insertions(+), 2 deletions(-) diff --git a/arch/blackfin/mach-bf609/boards/ezkit.c b/arch/blackfin/mach-bf609/boards/ezkit.c index 739de03..8c98c30 100644 --- a/arch/blackfin/mach-bf609/boards/ezkit.c +++ b/arch/blackfin/mach-bf609/boards/ezkit.c @@ -763,8 +763,15 @@ static struct platform_device bfin_i2s_pcm = { }; #endif -#if defined(CONFIG_SND_BF6XX_SOC_I2S) || \ - defined(CONFIG_SND_BF6XX_SOC_I2S_MODULE) +#if defined(CONFIG_SND_BF6XX_TDM) || defined(CONFIG_SND_BF6XX_TDM_MODULE) +static struct platform_device bfin_tdm_pcm = { + .name = "bfin-tdm-pcm-audio", + .id = -1, +}; +#endif + +#if defined(CONFIG_SND_BF6XX_SOC_SPORT) || \ + defined(CONFIG_SND_BF6XX_SOC_SPORT_MODULE) #include <asm/bfin_sport3.h> static struct resource bfin_snd_resources[] = { { @@ -807,7 +814,10 @@ static const unsigned short bfin_snd_pin[] = { static struct bfin_snd_platform_data bfin_snd_data = { .pin_req = bfin_snd_pin, }; +#endif +#if defined(CONFIG_SND_BF6XX_SOC_I2S) || \ + defined(CONFIG_SND_BF6XX_SOC_I2S_MODULE) static struct platform_device bfin_i2s = { .name = "bfin-i2s", .num_resources = ARRAY_SIZE(bfin_snd_resources), @@ -818,6 +828,33 @@ static struct platform_device bfin_i2s = { }; #endif +#if defined(CONFIG_SND_BF6XX_SOC_TDM) || \ + defined(CONFIG_SND_BF6XX_SOC_TDM_MODULE) +static struct platform_device bfin_tdm = { + .name = "bfin-tdm", + .num_resources = ARRAY_SIZE(bfin_snd_resources), + .resource = bfin_snd_resources, + .dev = { + .platform_data = &bfin_snd_data, + }, +}; +#endif + +#if defined(CONFIG_SND_BF5XX_SOC_AD1836) \ + || defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) +static const char * const ad1836_link[] = { + "bfin-tdm.0", + "spi0.76", +}; +static struct platform_device bfin_ad1836_machine = { + .name = "bfin-snd-ad1836", + .id = -1, + .dev = { + .platform_data = (void *)ad1836_link, + }, +}; +#endif + #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1X61) || \ defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1X61_MODULE) static struct platform_device adau1761_device = { @@ -1277,6 +1314,17 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { .mode = SPI_MODE_3, }, #endif +#if defined(CONFIG_SND_BF5XX_SOC_AD1836) \ + || defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) + { + .modalias = "ad1836", + .max_speed_hz = 3125000, + .bus_num = 0, + .chip_select = MAX_CTRL_CS + GPIO_PE4, + .platform_data = "ad1836", + .mode = SPI_MODE_3, +}, +#endif #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) { .modalias = "ad7877", @@ -1584,10 +1632,21 @@ static struct platform_device *ezkit_devices[] __initdata = { #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) &bfin_i2s_pcm, #endif +#if defined(CONFIG_SND_BF6XX_TDM) || defined(CONFIG_SND_BF6XX_TDM_MODULE) + &bfin_tdm_pcm, +#endif #if defined(CONFIG_SND_BF6XX_SOC_I2S) || \ defined(CONFIG_SND_BF6XX_SOC_I2S_MODULE) &bfin_i2s, #endif +#if defined(CONFIG_SND_BF6XX_SOC_TDM) || \ + defined(CONFIG_SND_BF6XX_SOC_TDM_MODULE) + &bfin_tdm, +#endif +#if defined(CONFIG_SND_BF5XX_SOC_AD1836) || \ + defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) + &bfin_ad1836_machine, +#endif #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1X61) || \ defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1X61_MODULE) &adau1761_device,
_______________________________________________ Linux-kernel-commits mailing list [email protected] https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
