diff options
author | Ricardo Neri <ricardo.neri@ti.com> | 2011-03-27 23:21:21 -0600 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2011-09-11 18:37:35 -0700 |
commit | 5e303676dd4947f6fd7b1311f017008ceb828658 (patch) | |
tree | ec6e05cfa9a560d9d81e8bbec7a6f564b781f878 /arch/arm/mach-omap2/devices.c | |
parent | 49df56dbac18c911dd495a37ac2110d77201f002 (diff) | |
download | kernel_samsung_tuna-5e303676dd4947f6fd7b1311f017008ceb828658.zip kernel_samsung_tuna-5e303676dd4947f6fd7b1311f017008ceb828658.tar.gz kernel_samsung_tuna-5e303676dd4947f6fd7b1311f017008ceb828658.tar.bz2 |
OMAP4: HDMI: Add OMAP device for HDMI audio CPU DAI
Add device for HDMI audio. This device uses hwmod data from
dss_hdmi. This device is to be used by the ASoC HDMI CPU DAI to
obtain base memory address and DMA request number.
Change-Id: I428c25b63c988f82d325cb2d78d2f855d1b248e7
Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-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 0482ccc..6d93788 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -424,6 +424,22 @@ OMAP_MCBSP_PLATFORM_DEVICE(5); static void omap_init_audio(void) { + struct omap_hwmod *oh_hdmi; + struct omap_device *od_hdmi; + char *oh_hdmi_name = "dss_hdmi"; + char *dev_hdmi_name = "hdmi-audio-dai"; + + if (cpu_is_omap44xx()) { + oh_hdmi = omap_hwmod_lookup(oh_hdmi_name); + WARN(!oh_hdmi, "%s: could not find omap_hwmod for %s\n", + __func__, oh_hdmi_name); + + od_hdmi = omap_device_build(dev_hdmi_name, -1, oh_hdmi, NULL, 0, + NULL, 0, false); + WARN(IS_ERR(od_hdmi), "%s: could not build omap_device for %s\n", + __func__, dev_hdmi_name); + } + platform_device_register(&omap_mcbsp1); platform_device_register(&omap_mcbsp2); if (cpu_is_omap243x() || cpu_is_omap34xx() || cpu_is_omap44xx()) { |