aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-sa1100/include/mach
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-16 04:31:47 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-09 10:34:14 -0500
commit6ad1b614007c556129989b9f6b020d0d2e058121 (patch)
treed146b694cad7d3134b3166f56f401b203e073811 /arch/arm/mach-sa1100/include/mach
parent710455201f6690841e9a40bedba09ddd0a7e0620 (diff)
ARM: sa11x0: neponset: provide function to manipulate NCR_0
Rather than having direct register accesses to NCR_0 scattered amongst the code, provide a function instead. This contains the necessary race protection for this platform, ensuring that updates to this register are safe. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-sa1100/include/mach')
-rw-r--r--arch/arm/mach-sa1100/include/mach/neponset.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-sa1100/include/mach/neponset.h b/arch/arm/mach-sa1100/include/mach/neponset.h
index ffe2bc45eed0..6032216e1830 100644
--- a/arch/arm/mach-sa1100/include/mach/neponset.h
+++ b/arch/arm/mach-sa1100/include/mach/neponset.h
@@ -71,4 +71,8 @@
71#define NCR_A0VPP (1<<5) 71#define NCR_A0VPP (1<<5)
72#define NCR_A1VPP (1<<6) 72#define NCR_A1VPP (1<<6)
73 73
74void neponset_ncr_frob(unsigned int, unsigned int);
75#define neponset_ncr_set(v) neponset_ncr_frob(0, v)
76#define neponset_ncr_clear(v) neponset_ncr_frob(v, 0)
77
74#endif 78#endif