summaryrefslogtreecommitdiff
path: root/include/ppc4xx.h
diff options
context:
space:
mode:
authorAdam Graham <agraham@amcc.com>2008-10-08 10:13:19 -0700
committerStefan Roese <sr@denx.de>2008-10-21 17:34:56 +0200
commitc9c11d751e4242cf29c3c3c290d971f6d0cb1d15 (patch)
tree0853e69da0ba907deb4a96da879f814da8a9cdce /include/ppc4xx.h
parent59217bae40e90982ab5400d849c08af683ace036 (diff)
downloadu-boot-imx-c9c11d751e4242cf29c3c3c290d971f6d0cb1d15.zip
u-boot-imx-c9c11d751e4242cf29c3c3c290d971f6d0cb1d15.tar.gz
u-boot-imx-c9c11d751e4242cf29c3c3c290d971f6d0cb1d15.tar.bz2
ppc4xx: Add routine to retrieve CPU number
Provide a weak defined routine to retrieve the CPU number for reference boards that have multiple CPU's. Default behavior is the existing single CPU print output. Reference boards with multiple CPU's need to provide a board specific routine. See board/amcc/arches/arches.c for an example. Signed-off-by: Adam Graham <agraham@amcc.com> Signed-off-by: Victor Gallardo <vgallardo@amcc.com> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/ppc4xx.h')
-rw-r--r--include/ppc4xx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ppc4xx.h b/include/ppc4xx.h
index ce4b29a..f147885 100644
--- a/include/ppc4xx.h
+++ b/include/ppc4xx.h
@@ -218,4 +218,7 @@ static inline void set_mcsr(u32 val)
#endif /* __ASSEMBLY__ */
+/* for multi-cpu support */
+#define NA_OR_UNKNOWN_CPU -1
+
#endif /* __PPC4XX_H__ */