powerpc: mpc85xx: Move SECURE_BOOT to Kconfig
[oweals/u-boot.git] / arch / powerpc / cpu / mpc83xx / cpu.c
index e275fcea41e8ed519de09d90ba56bc32c050ac32..c87f0fdd29f58e0be1b222b13623f3f050c40bdc 100644 (file)
@@ -19,8 +19,8 @@
 #include <tsec.h>
 #include <netdev.h>
 #include <fsl_esdhc.h>
-#ifdef CONFIG_BOOTCOUNT_LIMIT
-#include <asm/immap_qe.h>
+#if defined(CONFIG_BOOTCOUNT_LIMIT) && !defined(CONFIG_MPC831x)
+#include <linux/immap_qe.h>
 #include <asm/io.h>
 #endif
 
@@ -173,11 +173,7 @@ do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
 
 unsigned long get_tbclk(void)
 {
-       ulong tbclk;
-
-       tbclk = (gd->bus_clk + 3L) / 4L;
-
-       return tbclk;
+       return (gd->bus_clk + 3L) / 4L;
 }