aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/devices.c
diff options
context:
space:
mode:
authorAxel Castaneda Gonzalez <x0055901@ti.com>2011-07-13 13:39:07 -0500
committerSimon Wilson <simonwilson@google.com>2011-09-11 18:38:57 -0700
commita39edc79a2bcc963bf038de6e7f6d70452887603 (patch)
tree8775a5659e086e730cb353b849ab9b09e1840eff /arch/arm/mach-omap2/devices.c
parent5e57d5db2909e4748d0b9aab4e5d84ffd1d0b88a (diff)
downloadkernel_samsung_tuna-a39edc79a2bcc963bf038de6e7f6d70452887603.zip
kernel_samsung_tuna-a39edc79a2bcc963bf038de6e7f6d70452887603.tar.gz
kernel_samsung_tuna-a39edc79a2bcc963bf038de6e7f6d70452887603.tar.bz2
OMAP4: HDMI: Add OMAP device for HDMI audio codec
Add a device to access hwmod data from dss_hdmi, HDMI audio codec uses this device to get HDMI base memory address and to configure OCP slave idle mode for HDMI IP.. Change-Id: I95d3233ab6e9a2453cbe2a4bcd9f42f2010ea6d9 Signed-off-by: Axel Castaneda Gonzalez <x0055901@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r--arch/arm/mach-omap2/devices.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index fcb9c86..c43d24a 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -433,9 +433,10 @@ OMAP_MCBSP_PLATFORM_DEVICE(5);
static void omap_init_audio(void)
{
struct omap_hwmod *oh_hdmi;
- struct omap_device *od_hdmi;
+ struct omap_device *od_hdmi, *od_hdmi_codec;
char *oh_hdmi_name = "dss_hdmi";
char *dev_hdmi_name = "hdmi-audio-dai";
+ char *dev_hdmi_codec_name = "omap-hdmi-codec";
if (cpu_is_omap44xx()) {
oh_hdmi = omap_hwmod_lookup(oh_hdmi_name);
@@ -447,6 +448,12 @@ static void omap_init_audio(void)
WARN(IS_ERR(od_hdmi), "%s: could not build omap_device for %s\n",
__func__, dev_hdmi_name);
+ od_hdmi_codec = omap_device_build(dev_hdmi_codec_name,
+ -1, oh_hdmi, NULL, 0, NULL, 0, false);
+
+ WARN(IS_ERR(od_hdmi_codec), "%s: could not build omap_device for %s\n",
+ __func__, dev_hdmi_codec_name);
+
platform_device_register(&omap4_hdmi_audio);
}