[msm7x30]: Enable ADM clock in apps bootloader.
Early boot chain disables ADM clock after boot hence enabling it in
apps bootloader to read/write NAND.
Change-Id: I6b26344baddebcaeafbedcd66b8fc1f7a0779a05
diff --git a/platform/msm7x30/acpuclock.c b/platform/msm7x30/acpuclock.c
index 1237a48..182679a 100644
--- a/platform/msm7x30/acpuclock.c
+++ b/platform/msm7x30/acpuclock.c
@@ -118,3 +118,13 @@
usb_clock_init();
}
}
+
+void adm_enable_clock(void)
+{
+ unsigned int val=0;
+
+ /* Enable ADM_CLK */
+ val = 1 << 5;
+ val = val | readl(SH2_GLBL_CLK_ENA_SC);
+ writel(val, SH2_GLBL_CLK_ENA_SC);
+}