From cdf2398669120b8776d262029124f0a553587ee7 Mon Sep 17 00:00:00 2001 From: Liam Girdwood Date: Sun, 13 Feb 2011 22:38:22 -0600 Subject: [PATCH 05/60] OMAP4: ABE: Add ABE platform device commit 17d288a8efd29695c385453d49ccbdc0f4fed3c7 upstream Add platform device for Audio Backend. Change-Id: I6e60329533f24198ee840998f60f71a7924a7878 Signed-off-by: Liam Girdwood Signed-off-by: Misael Lopez Cruz Integrated-by: Jingdong Lu --- arch/arm/mach-omap2/devices.c | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 5b8ca68..cbc471c 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -292,6 +292,21 @@ static inline void omap_init_mbox(void) { } static inline void omap_init_sti(void) {} +#if defined CONFIG_ARCH_OMAP4 + +static struct platform_device omap_abe_dai = { + .name = "omap-abe-dai", + .id = -1, +}; + +static inline void omap_init_abe(void) +{ + platform_device_register(&omap_abe_dai); +} +#else +static inline void omap_init_abe(void) {} +#endif + #if defined(CONFIG_SND_SOC) || defined(CONFIG_SND_SOC_MODULE) static struct platform_device omap_pcm = { @@ -681,6 +696,7 @@ static int __init omap2_init_devices(void) * please keep these calls, and their implementations above, * in alphabetical order so they're easier to sort through. */ + omap_init_abe(); omap_init_audio(); omap_init_camera(); omap_init_mbox(); -- 1.7.4.1