aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Mallon <rmallon@gmail.com>2012-01-10 21:43:02 -0500
committerRyan Mallon <rmallon@gmail.com>2012-03-13 20:43:06 -0400
commit999c53fb2200070bdb8923c1894f9e14a5ec2de3 (patch)
treedd8090b60020cd6629d36899780b9f87023c26f6
parent08932d81961b1c57870949d069ce2dad235da443 (diff)
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>
-rw-r--r--arch/arm/mach-ep93xx/clock.c1
-rw-r--r--arch/arm/mach-ep93xx/core.c2
-rw-r--r--arch/arm/mach-ep93xx/include/mach/platform.h14
-rw-r--r--arch/arm/mach-ep93xx/soc.h14
4 files changed, 15 insertions, 16 deletions
diff --git a/arch/arm/mach-ep93xx/clock.c b/arch/arm/mach-ep93xx/clock.c
index ca4de7105097..c95dbce2468e 100644
--- a/arch/arm/mach-ep93xx/clock.c
+++ b/arch/arm/mach-ep93xx/clock.c
@@ -25,6 +25,7 @@
25 25
26#include <asm/div64.h> 26#include <asm/div64.h>
27 27
28#include "soc.h"
28 29
29struct clk { 30struct clk {
30 struct clk *parent; 31 struct clk *parent;
diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c
index bab6e470cbd7..c9511fe06649 100644
--- a/arch/arm/mach-ep93xx/core.c
+++ b/arch/arm/mach-ep93xx/core.c
@@ -205,7 +205,6 @@ void ep93xx_syscon_swlocked_write(unsigned int val, void __iomem *reg)
205 205
206 spin_unlock_irqrestore(&syscon_swlock, flags); 206 spin_unlock_irqrestore(&syscon_swlock, flags);
207} 207}
208EXPORT_SYMBOL(ep93xx_syscon_swlocked_write);
209 208
210void ep93xx_devcfg_set_clear(unsigned int set_bits, unsigned int clear_bits) 209void ep93xx_devcfg_set_clear(unsigned int set_bits, unsigned int clear_bits)
211{ 210{
@@ -222,7 +221,6 @@ void ep93xx_devcfg_set_clear(unsigned int set_bits, unsigned int clear_bits)
222 221
223 spin_unlock_irqrestore(&syscon_swlock, flags); 222 spin_unlock_irqrestore(&syscon_swlock, flags);
224} 223}
225EXPORT_SYMBOL(ep93xx_devcfg_set_clear);
226 224
227/** 225/**
228 * ep93xx_chip_revision() - returns the EP93xx chip revision 226 * ep93xx_chip_revision() - returns the EP93xx chip revision
diff --git a/arch/arm/mach-ep93xx/include/mach/platform.h b/arch/arm/mach-ep93xx/include/mach/platform.h
index ad63d4be693f..602bd87fd0ab 100644
--- a/arch/arm/mach-ep93xx/include/mach/platform.h
+++ b/arch/arm/mach-ep93xx/include/mach/platform.h
@@ -21,20 +21,6 @@ struct ep93xx_eth_data
21void ep93xx_map_io(void); 21void ep93xx_map_io(void);
22void ep93xx_init_irq(void); 22void ep93xx_init_irq(void);
23 23
24/* EP93xx System Controller software locked register write */
25void ep93xx_syscon_swlocked_write(unsigned int val, void __iomem *reg);
26void ep93xx_devcfg_set_clear(unsigned int set_bits, unsigned int clear_bits);
27
28static inline void ep93xx_devcfg_set_bits(unsigned int bits)
29{
30 ep93xx_devcfg_set_clear(bits, 0x00);
31}
32
33static inline void ep93xx_devcfg_clear_bits(unsigned int bits)
34{
35 ep93xx_devcfg_set_clear(0x00, bits);
36}
37
38#define EP93XX_CHIP_REV_D0 3 24#define EP93XX_CHIP_REV_D0 3
39#define EP93XX_CHIP_REV_D1 4 25#define EP93XX_CHIP_REV_D1 4
40#define EP93XX_CHIP_REV_E0 5 26#define EP93XX_CHIP_REV_E0 5
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 @@
104#define EP93XX_WATCHDOG_PHYS_BASE EP93XX_APB_PHYS(0x00140000) 104#define EP93XX_WATCHDOG_PHYS_BASE EP93XX_APB_PHYS(0x00140000)
105#define EP93XX_WATCHDOG_BASE EP93XX_APB_IOMEM(0x00140000) 105#define EP93XX_WATCHDOG_BASE EP93XX_APB_IOMEM(0x00140000)
106 106
107/* EP93xx System Controller software locked register write */
108void ep93xx_syscon_swlocked_write(unsigned int val, void __iomem *reg);
109void ep93xx_devcfg_set_clear(unsigned int set_bits, unsigned int clear_bits);
110
111static inline void ep93xx_devcfg_set_bits(unsigned int bits)
112{
113 ep93xx_devcfg_set_clear(bits, 0x00);
114}
115
116static inline void ep93xx_devcfg_clear_bits(unsigned int bits)
117{
118 ep93xx_devcfg_set_clear(0x00, bits);
119}
120
107#endif /* _EP93XX_SOC_H */ 121#endif /* _EP93XX_SOC_H */