mpc83xx: Introduce ARCH_MPC831*
[platform/kernel/u-boot.git] / arch / powerpc / cpu / mpc83xx / cpu.c
index ffb4241..8a88068 100644 (file)
 #include <tsec.h>
 #include <netdev.h>
 #include <fsl_esdhc.h>
-#if defined(CONFIG_BOOTCOUNT_LIMIT) && !defined(CONFIG_MPC831x)
+#if defined(CONFIG_BOOTCOUNT_LIMIT) && !defined(CONFIG_ARCH_MPC831X)
 #include <linux/immap_qe.h>
 #include <asm/io.h>
 #endif
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#ifndef CONFIG_CPU_MPC83XX
 int checkcpu(void)
 {
        volatile immap_t *immr;
@@ -114,6 +115,7 @@ int checkcpu(void)
 
        return 0;
 }
+#endif
 
 #ifndef CONFIG_SYSRESET
 int