summaryrefslogtreecommitdiff
path: root/arch/sh/include/asm/ubc.h
diff options
context:
space:
mode:
authorKieran Bingham <kieranbingham@gmail.com>2009-05-08 15:49:50 +0100
committerPaul Mundt <lethal@linux-sh.org>2009-05-09 00:09:21 +0900
commite73173dbe55e5b4c2306728aad50c8e42194f6d5 (patch)
tree3c9eb779f1d376b2bff8d5482717260d26f9981d /arch/sh/include/asm/ubc.h
parentbe6514c6295cc79498eeb9a8f933451082ca9e69 (diff)
downloadlinux-3.10-e73173dbe55e5b4c2306728aad50c8e42194f6d5.tar.gz
linux-3.10-e73173dbe55e5b4c2306728aad50c8e42194f6d5.tar.bz2
linux-3.10-e73173dbe55e5b4c2306728aad50c8e42194f6d5.zip
sh: Fix UBC setup and registers for SH2A
Signed-off-by: Kieran Bingham <kieranbingham@gmail.com> Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/ubc.h')
-rw-r--r--arch/sh/include/asm/ubc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/sh/include/asm/ubc.h b/arch/sh/include/asm/ubc.h
index a7b9028bbfb..4ca4b771737 100644
--- a/arch/sh/include/asm/ubc.h
+++ b/arch/sh/include/asm/ubc.h
@@ -42,12 +42,23 @@
#define BRCR_CMFA (1 << 15)
#define BRCR_CMFB (1 << 14)
+
+#if defined CONFIG_CPU_SH2A
+#define BRCR_CMFCA (1 << 15)
+#define BRCR_CMFCB (1 << 14)
+#define BRCR_CMFDA (1 << 13)
+#define BRCR_CMFDB (1 << 12)
+#define BRCR_PCBB (1 << 6) /* 1: after execution */
+#define BRCR_PCBA (1 << 5) /* 1: after execution */
+#define BRCR_PCTE 0
+#else
#define BRCR_PCTE (1 << 11)
#define BRCR_PCBA (1 << 10) /* 1: after execution */
#define BRCR_DBEB (1 << 7)
#define BRCR_PCBB (1 << 6)
#define BRCR_SEQ (1 << 3)
#define BRCR_UBDE (1 << 0)
+#endif
#ifndef __ASSEMBLY__
/* arch/sh/kernel/cpu/ubc.S */