summaryrefslogtreecommitdiffstats
path: root/arch/ppc/include
diff options
context:
space:
mode:
authorRenaud Barbier <renaud.barbier@ge.com>2013-09-04 08:42:29 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-05 10:28:04 +0200
commit99fbfdfc1b0e7a1366534a5dbcaf4d3d7c71ead3 (patch)
tree4e489f66e30c8eab0976b937c71c2813dd9e02b3 /arch/ppc/include
parenta78431c7fc42193be252417bf06f7cc61765a51e (diff)
downloadbarebox-99fbfdfc1b0e7a1366534a5dbcaf4d3d7c71ead3.tar.gz
barebox-99fbfdfc1b0e7a1366534a5dbcaf4d3d7c71ead3.tar.xz
ppc: add and update device tree fixup functions
This adds support for populating derived properties of the mpc85xx SOC which are not typically included in the dtb directly. This update is based on U-Boot code from common/fdt_support.c and arch/powerpc/cpu/mpc85xx/fdt.c - version git-2b26201. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc/include')
-rw-r--r--arch/ppc/include/asm/processor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/ppc/include/asm/processor.h b/arch/ppc/include/asm/processor.h
index 29e0622b98..04cfb60dac 100644
--- a/arch/ppc/include/asm/processor.h
+++ b/arch/ppc/include/asm/processor.h
@@ -845,6 +845,7 @@
/* Some parts define SVR[0:23] as the SOC version */
#define SVR_SOC_VER(svr) (((svr) >> 8) & 0xFFFFFF) /* SOC Version fields */
+#define IS_E_PROCESSOR(svr) ((svr) & 0x80000)
/*
* SVR_VER() Version Values