diff options
author | Liam Girdwood <lrg@ti.com> | 2011-07-24 15:59:41 -0400 |
---|---|---|
committer | Paolo Pisati <paolo.pisati@canonical.com> | 2012-08-17 04:18:24 -0400 |
commit | ce1f20d9c291e90ea07dbd14ba6f7aa0c4ef6747 (patch) | |
tree | 1509e2ed8b2090b7d903c422b982e0ea8a51f306 | |
parent | aa6b823611882bb8082cdecd2b91cb121d50ae63 (diff) |
Subject: [PATCH 065/104] OMAP4: ABE: Add ABE platform device
Add platform device for Audio Backend.
Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
-rw-r--r-- | 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 5b8ca680ed9..cbc471cedd3 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) { } | |||
292 | 292 | ||
293 | static inline void omap_init_sti(void) {} | 293 | static inline void omap_init_sti(void) {} |
294 | 294 | ||
295 | #if defined CONFIG_ARCH_OMAP4 | ||
296 | |||
297 | static struct platform_device omap_abe_dai = { | ||
298 | .name = "omap-abe-dai", | ||
299 | .id = -1, | ||
300 | }; | ||
301 | |||
302 | static inline void omap_init_abe(void) | ||
303 | { | ||
304 | platform_device_register(&omap_abe_dai); | ||
305 | } | ||
306 | #else | ||
307 | static inline void omap_init_abe(void) {} | ||
308 | #endif | ||
309 | |||
295 | #if defined(CONFIG_SND_SOC) || defined(CONFIG_SND_SOC_MODULE) | 310 | #if defined(CONFIG_SND_SOC) || defined(CONFIG_SND_SOC_MODULE) |
296 | 311 | ||
297 | static struct platform_device omap_pcm = { | 312 | static struct platform_device omap_pcm = { |
@@ -681,6 +696,7 @@ static int __init omap2_init_devices(void) | |||
681 | * please keep these calls, and their implementations above, | 696 | * please keep these calls, and their implementations above, |
682 | * in alphabetical order so they're easier to sort through. | 697 | * in alphabetical order so they're easier to sort through. |
683 | */ | 698 | */ |
699 | omap_init_abe(); | ||
684 | omap_init_audio(); | 700 | omap_init_audio(); |
685 | omap_init_camera(); | 701 | omap_init_camera(); |
686 | omap_init_mbox(); | 702 | omap_init_mbox(); |