summaryrefslogtreecommitdiff
path: root/drivers/serial/arm_dcc.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-05-15 23:47:14 +0200
committerWolfgang Denk <wd@denx.de>2009-06-12 20:39:49 +0200
commit65a76d4f947a193e57bb8f8093c481f27e059f8f (patch)
tree5faa5ee7a6d893fa5754051f953b388875d86d7d /drivers/serial/arm_dcc.c
parent66e8f9da6879fe37f3159b3997bff874842dc51d (diff)
downloadu-boot-imx-65a76d4f947a193e57bb8f8093c481f27e059f8f.zip
u-boot-imx-65a76d4f947a193e57bb8f8093c481f27e059f8f.tar.gz
u-boot-imx-65a76d4f947a193e57bb8f8093c481f27e059f8f.tar.bz2
arm/dcc: add xscale support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/serial/arm_dcc.c')
-rw-r--r--drivers/serial/arm_dcc.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c
index 7c7fa34..dca73b9 100644
--- a/drivers/serial/arm_dcc.c
+++ b/drivers/serial/arm_dcc.c
@@ -45,6 +45,22 @@
#define status_dcc(x) \
__asm__ volatile ("mrc p14, 0, %0, c0, c1, 0\n" : "=r" (x))
+#elif defined(CONFIG_CPU_XSCALE)
+/*
+ * XSCALE
+ */
+#define DCC_RBIT (1 << 31)
+#define DCC_WBIT (1 << 28)
+
+#define write_dcc(x) \
+ __asm__ volatile ("mcr p14, 0, %0, c8, c0, 0\n" : : "r" (x))
+
+#define read_dcc(x) \
+ __asm__ volatile ("mrc p14, 0, %0, c9, c0, 0\n" : "=r" (x))
+
+#define status_dcc(x) \
+ __asm__ volatile ("mrc p14, 0, %0, c14, c0, 0\n" : "=r" (x))
+
#else
#define DCC_RBIT (1 << 0)
#define DCC_WBIT (1 << 1)