]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mx5: fix get_reset_cause
authorStefano Babic <sbabic@denx.de>
Mon, 2 Mar 2015 09:12:13 +0000 (10:12 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:10:29 +0000 (14:10 +0200)
commit d9f43c8f5c1d7ed27c99a06be85a4bb64b2c73fb sets
get_reset_cause() as static, but this conflicts with mx5
where its prototype is in sys_proto.h.

Drop it from sys_proto.h and drop print_cpuinfo from mx53_loco,
factorizing the call for this board.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Jason Liu <jason.hui@linaro.org>
arch/arm/include/asm/arch-mx5/sys_proto.h
board/freescale/mx53loco/mx53loco.c
include/configs/mx53loco.h

index 4a6ba21bd634a5290e91dd8bd26dda011f559141..ff1f3fc5323b5fff7650917c60c94fdb7dcef3c5 100644 (file)
@@ -25,6 +25,5 @@ void imx_get_mac_from_fuse(int dev_id, unsigned char *mac);
 int fecmxc_initialize(bd_t *bis);
 u32 get_ahb_clk(void);
 u32 get_periph_clk(void);
-char *get_reset_cause(void);
 
 #endif
index efcf4b390d35f97353f76daa579888cab5adaa4c..9ece6ecd8ba1cd0d0cef2ff8387c11e002f55a28 100644 (file)
@@ -366,22 +366,6 @@ int board_early_init_f(void)
        return 0;
 }
 
-#if defined(CONFIG_DISPLAY_CPUINFO)
-int print_cpuinfo(void)
-{
-       u32 cpurev;
-
-       cpurev = get_cpu_rev();
-       printf("CPU:   Freescale i.MX%x family rev%d.%d at %d MHz\n",
-               (cpurev & 0xFF000) >> 12,
-               (cpurev & 0x000F0) >> 4,
-               (cpurev & 0x0000F) >> 0,
-               mxc_get_clock(MXC_ARM_CLK) / 1000000);
-       printf("Reset cause: %s\n", get_reset_cause());
-       return 0;
-}
-#endif
-
 /*
  * Do not overwrite the console
  * Use always serial for U-Boot console
index c3ffd38de9e5b2a420eb97a319250e992fa3164b..24440adf3d8fe160df4439b765e01ee575c67785 100644 (file)
@@ -23,6 +23,8 @@
 
 #define CONFIG_SYS_GENERIC_BOARD
 
+#define CONFIG_DISPLAY_CPUINFO
+
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN          (10 * 1024 * 1024)