mpc8313, bootcount: mpc8313 has no qe muram
authorHeiko Schocher <hs@denx.de>
Sat, 25 Jan 2014 06:53:47 +0000 (07:53 +0100)
committerKim Phillips <kim.phillips@linaro.org>
Thu, 24 Apr 2014 00:07:45 +0000 (19:07 -0500)
mpc831x has no muram, so muram cannot be used for bootcounter
function.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
arch/powerpc/cpu/mpc83xx/cpu.c
arch/powerpc/cpu/mpc83xx/fdt.c

index e275fcea41e8ed519de09d90ba56bc32c050ac32..e41988d5fadabde58418bb9514acb5ac59ed2207 100644 (file)
@@ -19,7 +19,7 @@
 #include <tsec.h>
 #include <netdev.h>
 #include <fsl_esdhc.h>
-#ifdef CONFIG_BOOTCOUNT_LIMIT
+#if defined(CONFIG_BOOTCOUNT_LIMIT) && !defined(CONFIG_MPC831x)
 #include <asm/immap_qe.h>
 #include <asm/io.h>
 #endif
index cce7d6b265e6a51cc676f1431aed175180aaba64..450a9704e5be684e1c07cc802fbdf4b085b16957 100644 (file)
@@ -17,7 +17,7 @@ extern void ft_qe_setup(void *blob);
 DECLARE_GLOBAL_DATA_PTR;
 
 #if defined(CONFIG_BOOTCOUNT_LIMIT) && \
-       (defined(CONFIG_QE))
+       (defined(CONFIG_QE) && !defined(CONFIG_MPC831x))
 #include <asm/immap_qe.h>
 
 void fdt_fixup_muram (void *blob)
@@ -124,7 +124,8 @@ void ft_cpu_setup(void *blob, bd_t *bd)
 
        fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
 
-#if defined(CONFIG_BOOTCOUNT_LIMIT)
+#if defined(CONFIG_BOOTCOUNT_LIMIT) && \
+       (defined(CONFIG_QE) && !defined(CONFIG_MPC831x))
        fdt_fixup_muram (blob);
 #endif
 }