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 | eb0634231befb53906a53b94885c64baf45d0c43 (patch) | |
tree | 9c6b1ed4a251ec9cc4f2204dfe98cef1bfde367e | |
parent | ce1f20d9c291e90ea07dbd14ba6f7aa0c4ef6747 (diff) |
Subject: [PATCH 066/104] OMAP4: DMIC: Add DMIC codec platform device
Add platform device for DMIC codec interfaces available
in OMAP4.
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 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index cbc471cedd3..4ea63961678 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -294,6 +294,21 @@ static inline void omap_init_sti(void) {} | |||
294 | 294 | ||
295 | #if defined CONFIG_ARCH_OMAP4 | 295 | #if defined CONFIG_ARCH_OMAP4 |
296 | 296 | ||
297 | static struct platform_device codec_dmic0 = { | ||
298 | .name = "dmic-codec", | ||
299 | .id = 0, | ||
300 | }; | ||
301 | |||
302 | static struct platform_device codec_dmic1 = { | ||
303 | .name = "dmic-codec", | ||
304 | .id = 1, | ||
305 | }; | ||
306 | |||
307 | static struct platform_device codec_dmic2 = { | ||
308 | .name = "dmic-codec", | ||
309 | .id = 2, | ||
310 | }; | ||
311 | |||
297 | static struct platform_device omap_abe_dai = { | 312 | static struct platform_device omap_abe_dai = { |
298 | .name = "omap-abe-dai", | 313 | .name = "omap-abe-dai", |
299 | .id = -1, | 314 | .id = -1, |
@@ -301,6 +316,9 @@ static struct platform_device omap_abe_dai = { | |||
301 | 316 | ||
302 | static inline void omap_init_abe(void) | 317 | static inline void omap_init_abe(void) |
303 | { | 318 | { |
319 | platform_device_register(&codec_dmic0); | ||
320 | platform_device_register(&codec_dmic1); | ||
321 | platform_device_register(&codec_dmic2); | ||
304 | platform_device_register(&omap_abe_dai); | 322 | platform_device_register(&omap_abe_dai); |
305 | } | 323 | } |
306 | #else | 324 | #else |