ARM: OMAP: Add support for OMAP24xx Enhanced Audio Controller
Subsystems (4)
PATCH 1/2 ARM: OMAP: Add support for OMAP24xx Enhanced Audio Controller
Signed-off-by Jarkko Nikula <[email protected]>
--- arch/arm/mach-omap2/devices.c | 33 ++ sound/arm/Kconfig | 15 + sound/arm/omap/Makefile | 3 + sound/arm/omap/eac.c | 795 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 846 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/devices.c +33 -0
@@ -23,6 +23,7 @@#include <asm/arch/board.h> #include <asm/arch/mux.h> #include <asm/arch/gpio.h> +#include <asm/arch/eac.h> #if defined(CONFIG_I2C_OMAP ) || defined(CONFIG_I2C_OMAP_MODULE )
@@ -201,6 +202,38 @@ static void omap_init_mcspi(void)static inline void omap_init_mcspi (void ) {}#endif +#ifdef CONFIG_SND_OMAP24XX_EAC + +#define OMAP2_EAC_BASE 0x48090000 + +static struct resource omap2_eac_resources[] = { + { + .start =OMAP2_EAC_BASE , + .end =OMAP2_EAC_BASE +0x109 , + .flags =IORESOURCE_MEM , + }, +}; + +static struct platform_device omap2_eac_device = { + .name ="omap24xx-eac" , + .id =-1 , + .num_resources =ARRAY_SIZE (omap2_eac_resources), + .resource = omap2_eac_resources, + .dev = { + .platform_data =NULL , + }, +}; + +void omap_init_eac (struct eac_platform_data *pdata) +{ + omap2_eac_device.dev.platform_data = pdata; +platform_device_register (&omap2_eac_device); +} + +#else +void omap_init_eac (struct eac_platform_data *pdata) {} +#endif +/*-------------------------------------------------------------------------*/ static int __init omap2_init_devices (void )
sound/arm/Kconfig +15 -0
@@ -86,4 +86,19 @@ config SND_OMAP_TSC2102 To compile this driver as a module, choose M here: the module will be called snd-omap-tsc2102. +config SND_OMAP24XX_EAC + tristate "Audio driver for OMAP24xx EAC" + depends on SND + help + Audio driver for Enhanced Audio Controller found in TI's OMAP24xx + processors. + + Currently contains only low-level support functions for + initializing EAC HW, creating ALSA sound card instance for it + and registering mixer controls implemented by a codec driver. + PCM stream is expected to be under DSP co-processor control. + + To compile this driver as a module, choose M here: the module + will be called snd-omap24xx-eac. + endmenu
sound/arm/omap/Makefile +3 -0
@@ -13,3 +13,6 @@ snd-omap-alsa-tsc2102-objs := omap-alsa.o omap-alsa-dma.o omap-alsa-tsc2102.o om obj-$(CONFIG_SND_SX1) += snd-omap-alsa-sx1.o snd-omap-alsa-sx1-objs := omap-alsa.o omap-alsa-dma.o omap-alsa-sx1.o omap-alsa-sx1-mixer.o + +obj-$(CONFIG_SND_OMAP24XX_EAC) += snd-omap24xx-eac.o +snd-omap24xx-eac-objs := eac.o
sound/arm/omap/eac.c new file +795 -0
795 lines not on this page · raw message
Signature · 1 line
1.4.4.4