aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/include/mach/psc.h
diff options
context:
space:
mode:
authorSekhar Nori <nsekhar@ti.com>2009-11-16 17:21:36 +0530
committerKevin Hilman <khilman@deeprootsystems.com>2010-02-04 13:29:37 -0800
commite2da3aaa4254d9e79d9524190fc7e5f0cbdc3c33 (patch)
tree42d3637d038179ef69056713482bf4186d12c8a1 /arch/arm/mach-davinci/include/mach/psc.h
parentc94fa15ba2d736af786ac1e56686d41987b1aba0 (diff)
downloadkernel_samsung_smdk4412-e2da3aaa4254d9e79d9524190fc7e5f0cbdc3c33.zip
kernel_samsung_smdk4412-e2da3aaa4254d9e79d9524190fc7e5f0cbdc3c33.tar.gz
kernel_samsung_smdk4412-e2da3aaa4254d9e79d9524190fc7e5f0cbdc3c33.tar.bz2
davinci: make it possible to include clock.h and psc.h in assembly code
psc.h contains register defines for PSC module which need to be accessed in assembly code which helps the DA850/OMAP-L138 SoC go to sleep. Shutting down DDR clock using PSC is a part of the sleep procedure. Also, the PLL related hardware definitions in clock.h are needed in assembly code to bypass the DDR2 PLL. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/include/mach/psc.h')
-rw-r--r--arch/arm/mach-davinci/include/mach/psc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/psc.h b/arch/arm/mach-davinci/include/mach/psc.h
index 2776b23..651f6d8 100644
--- a/arch/arm/mach-davinci/include/mach/psc.h
+++ b/arch/arm/mach-davinci/include/mach/psc.h
@@ -191,8 +191,12 @@
#define MDSTAT_STATE_MASK 0x1f
+#ifndef __ASSEMBLER__
+
extern int davinci_psc_is_clk_active(unsigned int ctlr, unsigned int id);
extern void davinci_psc_config(unsigned int domain, unsigned int ctlr,
unsigned int id, char enable);
+#endif
+
#endif /* __ASM_ARCH_PSC_H */