summaryrefslogtreecommitdiff
path: root/include/asm-ppc
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2008-06-16 15:55:53 -0500
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2008-07-14 17:01:29 -0500
commit6b70ffb9d1b2e791161f3cf92937aa45b4a07b78 (patch)
treef24a6eb97feae2e44f013f047468ec0dffba71d2 /include/asm-ppc
parentab5cda9f88c3eaf9cf599adc3a3375906c4ed904 (diff)
downloadu-boot-imx-6b70ffb9d1b2e791161f3cf92937aa45b4a07b78.zip
u-boot-imx-6b70ffb9d1b2e791161f3cf92937aa45b4a07b78.tar.gz
u-boot-imx-6b70ffb9d1b2e791161f3cf92937aa45b4a07b78.tar.bz2
fdt: add crypto node handling for MPC8{3, 5}xxE processors
Delete the crypto node if not on an E-processor. If on 8360 or 834x family, check rev and up-rev crypto node (to SEC rev. 2.4 property values) if on an 'EA' processor, e.g. MPC8349EA. Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'include/asm-ppc')
-rw-r--r--include/asm-ppc/processor.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h
index 10fd478..6734857 100644
--- a/include/asm-ppc/processor.h
+++ b/include/asm-ppc/processor.h
@@ -885,6 +885,15 @@
/* Some parts define SVR[0:23] as the SOC version */
#define SVR_SOC_VER(svr) (((svr) >> 8) & 0xFFFFFF) /* SOC Version fields */
+/* whether MPC8xxxE (i.e. has SEC) */
+#if defined(CONFIG_MPC85xx)
+#define IS_E_PROCESSOR(svr) (svr & 0x80000)
+#else
+#if defined(CONFIG_MPC83XX)
+#define IS_E_PROCESSOR(spridr) (!(spridr & 0x00010000))
+#endif
+#endif
+
/*
* SVR_SOC_VER() Version Values
*/