summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ep93xx/soc.h
diff options
context:
space:
mode:
authorRyan Mallon <rmallon@gmail.com>2012-01-11 03:43:02 +0100
committerRyan Mallon <rmallon@gmail.com>2012-03-14 01:43:06 +0100
commit999c53fb2200070bdb8923c1894f9e14a5ec2de3 (patch)
treedd8090b60020cd6629d36899780b9f87023c26f6 /arch/arm/mach-ep93xx/soc.h
parentep93xx: Configure GPIO ports in core code (diff)
downloadlinux-999c53fb2200070bdb8923c1894f9e14a5ec2de3.tar.xz
linux-999c53fb2200070bdb8923c1894f9e14a5ec2de3.zip
ep93xx: Make syscon access functions private to SoC
The syscon access functions are no longer used outside of the core EP93xx code. Move their definitions into the SoC code. Signed-off-by: Ryan Mallon <rmallon@gmail.com> Reviewed-by: Mika Westerberg <mika.westerberg@iki.fi> Acked-by: Hartley Sweeten <hsweeten@visionengravers.com>
Diffstat (limited to 'arch/arm/mach-ep93xx/soc.h')
-rw-r--r--arch/arm/mach-ep93xx/soc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-ep93xx/soc.h b/arch/arm/mach-ep93xx/soc.h
index 5266998f71e0..5cad26973033 100644
--- a/arch/arm/mach-ep93xx/soc.h
+++ b/arch/arm/mach-ep93xx/soc.h
@@ -104,4 +104,18 @@
#define EP93XX_WATCHDOG_PHYS_BASE EP93XX_APB_PHYS(0x00140000)
#define EP93XX_WATCHDOG_BASE EP93XX_APB_IOMEM(0x00140000)
+/* EP93xx System Controller software locked register write */
+void ep93xx_syscon_swlocked_write(unsigned int val, void __iomem *reg);
+void ep93xx_devcfg_set_clear(unsigned int set_bits, unsigned int clear_bits);
+
+static inline void ep93xx_devcfg_set_bits(unsigned int bits)
+{
+ ep93xx_devcfg_set_clear(bits, 0x00);
+}
+
+static inline void ep93xx_devcfg_clear_bits(unsigned int bits)
+{
+ ep93xx_devcfg_set_clear(0x00, bits);
+}
+
#endif /* _EP93XX_SOC_H */