]> git.sur5r.net Git - u-boot/commitdiff
ARM: uniphier: use checkboard() instead of misc_init_f()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 13 Sep 2016 16:06:07 +0000 (01:06 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 14 Sep 2016 13:54:19 +0000 (22:54 +0900)
We can use checkboard() stub to show additional board information,
so misc_init_f() should not be used for this purpose.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/Makefile
arch/arm/mach-uniphier/micro-support-card.c
arch/arm/mach-uniphier/micro-support-card.h
arch/arm/mach-uniphier/print_misc_info.c [deleted file]
include/configs/uniphier.h

index 774ea9985a42bf26be3c74dd48ac870bdc93ac62..2e92e155810915b0861405a0e048a25b0bc7fb44 100644 (file)
@@ -11,7 +11,6 @@ else
 
 obj-$(CONFIG_BOARD_EARLY_INIT_F) += board_early_init_f.o
 obj-$(CONFIG_DISPLAY_CPUINFO) += cpu_info.o
-obj-$(CONFIG_MISC_INIT_F) += print_misc_info.o
 obj-y += dram_init.o
 obj-y += board_common.o
 obj-$(CONFIG_BOARD_EARLY_INIT_R) += board_early_init_r.o
index 6987d1e0f8b5b5757e3286608b4cefe23cfc2d44..04e6558e9be0d580f141c45c7f103c733f03f0be 100644 (file)
@@ -49,7 +49,7 @@ static int support_card_show_revision(void)
        return 0;
 }
 
-int check_support_card(void)
+int checkboard(void)
 {
        printf("SC:    Micro Support Card ");
        return support_card_show_revision();
index 5da0ada72610472dcba8dd26d2f460da4d64bba6..4dae60312f52730fde0a862fef948257e695079d 100644 (file)
@@ -1,17 +1,18 @@
 /*
- * Copyright (C) 2012-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
+ * Copyright (C) 2012-2014 Panasonic Corporation
+ * Copyright (C) 2015-2016 Socionext Inc.
+ *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  *
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
-#ifndef ARCH_BOARD_H
-#define ARCH_BOARD_H
+#ifndef MICRO_SUPPORT_CARD_H
+#define MICRO_SUPPORT_CARD_H
 
 #if defined(CONFIG_MICRO_SUPPORT_CARD)
 void support_card_reset(void);
 void support_card_init(void);
 void support_card_late_init(void);
-int check_support_card(void);
 void led_puts(const char *s);
 #else
 static inline void support_card_reset(void)
@@ -26,14 +27,9 @@ static inline void support_card_late_init(void)
 {
 }
 
-static inline int check_support_card(void)
-{
-       return 0;
-}
-
 static inline void led_puts(const char *s)
 {
 }
 #endif
 
-#endif /* ARCH_BOARD_H */
+#endif /* MICRO_SUPPORT_CARD_H */
diff --git a/arch/arm/mach-uniphier/print_misc_info.c b/arch/arm/mach-uniphier/print_misc_info.c
deleted file mode 100644 (file)
index 695b7ae..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
- */
-
-#include "micro-support-card.h"
-
-int misc_init_f(void)
-{
-       return check_support_card();
-}
index b3ca46be67231112de65f1cb91b15fafb5bbc866..1e601b959e9f4c45ccb06392f22e8138a2a749f2 100644 (file)
@@ -31,7 +31,6 @@
 
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
-#define CONFIG_MISC_INIT_F
 #define CONFIG_BOARD_EARLY_INIT_F
 #define CONFIG_BOARD_EARLY_INIT_R
 #define CONFIG_BOARD_LATE_INIT