]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
HACK: omap_hwmod: enable DESHDCP clock before DSS module is enabled
authorArchit Taneja <archit@ti.com>
Tue, 16 Apr 2013 06:05:21 +0000 (11:35 +0530)
committerArchit Taneja <archit@ti.com>
Thu, 30 May 2013 14:35:33 +0000 (20:05 +0530)
enable DESHDCP clock very early in omap_hwmod_setup_all to make sure it's set
before DSS hwmods are setup. Find a better way to do this.

Signed-off-by: Archit Taneja <archit@ti.com>
arch/arm/mach-omap2/omap_hwmod.c

index d4be257b512fbe68cfae3876fdb98ce2350326a2..0052068a9fb701053391921fd4f3e73e2f8bc55a 100644 (file)
@@ -3344,8 +3344,13 @@ int __init omap_hwmod_setup_one(const char *oh_name)
  */
 static int __init omap_hwmod_setup_all(void)
 {
+       void __iomem *base = ioremap(0x4A002000, SZ_2K);
+
        _ensure_mpu_hwmod_is_setup(NULL);
 
+       /* enable DES HDCP clock CTRL_CORE_CONTROL_IO_2 */
+       __raw_writel(0x1, base + 0x558);
+
        omap_hwmod_for_each(_init, NULL);
        omap_hwmod_for_each(_setup, NULL);