summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/twl-common.h
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2012-08-14 12:07:57 +0300
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-15 17:10:00 +0100
commit552d9dc316cfedd134ee882cd1ae24ca6934ffc0 (patch)
tree5fac0a6b7b4027b09a07b8dc67906a35dfb9b9d0 /arch/arm/mach-omap2/twl-common.h
parentfff8491c8b8cce5fc9190e025d1a665f2ee71a4f (diff)
downloadblackbird-obmc-linux-552d9dc316cfedd134ee882cd1ae24ca6934ffc0.tar.gz
blackbird-obmc-linux-552d9dc316cfedd134ee882cd1ae24ca6934ffc0.zip
ARM: OMAP: twl-common: Add helper function to register the omap-twl4030 audio driver
Since several OMAP3 based boards will be using the unified simple audio driver it is better to not have duplicated code in the board files for this purpose. Board files can call omap_twl4030_audio_init(); to set up the needed device for the audio support. For example: omap_twl4030_audio_init("omap3beagle", 26000000); Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'arch/arm/mach-omap2/twl-common.h')
-rw-r--r--arch/arm/mach-omap2/twl-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/twl-common.h b/arch/arm/mach-omap2/twl-common.h
index 8fe71cfd002c..cb25b43317a7 100644
--- a/arch/arm/mach-omap2/twl-common.h
+++ b/arch/arm/mach-omap2/twl-common.h
@@ -59,4 +59,6 @@ void omap3_pmic_get_config(struct twl4030_platform_data *pmic_data,
void omap4_pmic_get_config(struct twl4030_platform_data *pmic_data,
u32 pdata_flags, u32 regulators_flags);
+void omap_twl4030_audio_init(char *card_name);
+
#endif /* __OMAP_PMIC_COMMON__ */
OpenPOWER on IntegriCloud