]> git.sur5r.net Git - u-boot/commitdiff
mpc83xx: move CPU_TYPE_ENTRY over to processor.h
authorKim Phillips <kim.phillips@freescale.com>
Tue, 17 Jun 2008 22:45:27 +0000 (17:45 -0500)
committerKim Phillips <kim.phillips@freescale.com>
Wed, 25 Jun 2008 21:34:29 +0000 (16:34 -0500)
to avoid this:

cpu.c:47:1: warning: "CPU_TYPE_ENTRY" redefined
In file included from cpu.c:33:
/home/kim/git/u-boot/include/asm/processor.h:982:1: warning: this is the location of the previous definition

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
cpu/mpc83xx/cpu.c
include/asm-ppc/processor.h

index 36de78d270877ebaa8727c5db81878d2e135d1f2..cc03f8a01fbe1b1aa3676f44266d5c2fb26265b7 100644 (file)
@@ -44,7 +44,6 @@ int checkcpu(void)
        char buf[32];
        int i;
 
-#define CPU_TYPE_ENTRY(x) {#x, SPR_##x}
        const struct cpu_type {
                char name[15];
                u32 partid;
index 5b506791a77a258a31262382f96c5851a43cd677..10fd478baba6a91dda629b6d6d1544b0e7d96f40 100644 (file)
@@ -970,8 +970,15 @@ struct cpu_type {
 
 struct cpu_type *identify_cpu(u32 ver);
 
+#if defined(CONFIG_MPC85xx)
 #define CPU_TYPE_ENTRY(n, v) \
        { .name = #n, .soc_ver = SVR_##v, }
+#else
+#if defined(CONFIG_MPC83XX)
+#define CPU_TYPE_ENTRY(x) {#x, SPR_##x}
+#endif
+#endif
+
 
 #ifndef CONFIG_MACH_SPECIFIC
 extern int _machine;