mpc83xx: move CPU_TYPE_ENTRY over to processor.h
[oweals/u-boot.git] / include / asm-ppc / processor.h
index cfd84402379f68b5135b0e2603537cd9a72665fb..10fd478baba6a91dda629b6d6d1544b0e7d96f40 100644 (file)
@@ -962,6 +962,24 @@ n:
 #define SR15   15
 
 #ifndef __ASSEMBLY__
+
+struct cpu_type {
+       char name[15];
+       u32 soc_ver;
+};
+
+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;
 extern int have_of;