summaryrefslogtreecommitdiff
path: root/include/asm-m68k
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2007-01-23 13:25:22 +0100
committerBartlomiej Sieka <tur@semihalf.com>2007-01-23 13:25:22 +0100
commit363d1d8f9c99b63daef81f5985cab3fc00edde5c (patch)
tree80d3b9a28cecec05c92c2e3d12c4ab9eb4da6dff /include/asm-m68k
parentc84bad0ef60e7055ab0bd49b93069509cecc382a (diff)
downloadu-boot-imx-363d1d8f9c99b63daef81f5985cab3fc00edde5c.zip
u-boot-imx-363d1d8f9c99b63daef81f5985cab3fc00edde5c.tar.gz
u-boot-imx-363d1d8f9c99b63daef81f5985cab3fc00edde5c.tar.bz2
[ColdFire MCF5271 family] Add CPU detection based on the value of Chip
Identification Register (CIR).
Diffstat (limited to 'include/asm-m68k')
-rw-r--r--include/asm-m68k/m5271.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-m68k/m5271.h b/include/asm-m68k/m5271.h
index 765414f..e0f02cf 100644
--- a/include/asm-m68k/m5271.h
+++ b/include/asm-m68k/m5271.h
@@ -57,6 +57,12 @@
#define MCF_GPIO_PAR_FECI2C 0x100047
#define MCF_GPIO_PAR_UART 0x100048
+#define MCF_CCM_CIR 0x11000A
+#define MCF_CCM_CIR_PRN_MASK 0x3F
+#define MCF_CCM_CIR_PIN_LEN 6
+#define MCF_CCM_CIR_PIN_MCF5270 0x2e
+#define MCF_CCM_CIR_PIN_MCF5271 0x80
+
#define MCF_GPIO_AD_ADDR23 0x80
#define MCF_GPIO_AD_ADDR22 0x40
#define MCF_GPIO_AD_ADDR21 0x20