summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/hardware/iop3xx.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/include/asm/hardware/iop3xx.h')
-rw-r--r--arch/arm/include/asm/hardware/iop3xx.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/hardware/iop3xx.h b/arch/arm/include/asm/hardware/iop3xx.h
index 8d60ad267e3a..643b7b95b25b 100644
--- a/arch/arm/include/asm/hardware/iop3xx.h
+++ b/arch/arm/include/asm/hardware/iop3xx.h
@@ -260,6 +260,11 @@ static inline u32 read_tcr1(void)
return val;
}
+static inline void write_tcr1(u32 val)
+{
+ asm volatile("mcr p6, 0, %0, c3, c1, 0" : : "r" (val));
+}
+
static inline void write_trr0(u32 val)
{
asm volatile("mcr p6, 0, %0, c4, c1, 0" : : "r" (val));