]> git.sur5r.net Git - u-boot/commitdiff
socfpga: Relocate arch common functions away from board
authorChin Liang See <clsee@altera.com>
Tue, 10 Jun 2014 07:23:45 +0000 (02:23 -0500)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 5 Jul 2014 08:14:46 +0000 (10:14 +0200)
To move the arch common function away from board folder to
arch/arm/cpu/armv7/socfpga folder. Its to avoid code duplication
for other non Altera dev kit which is using socfpga device.

Signed-off-by: Chin Liang See <clsee@altera.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Cc: Pavel Machek <pavel@denx.de>
Cc: Dinh Nguyen <dinguyen@altera.com>
Acked-by: Detlev Zundel <dzu@denx.de>
arch/arm/cpu/armv7/socfpga/misc.c
board/altera/socfpga/socfpga_cyclone5.c

index 2f1c7160f1ff458bef09c2a3b7078a540d47b5e8..5268f2c7082a37a4ff300292b49c2bd10c99d200 100644 (file)
@@ -14,3 +14,27 @@ int dram_init(void)
        gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
        return 0;
 }
+
+#if defined(CONFIG_DISPLAY_CPUINFO)
+/*
+ * Print CPU information
+ */
+int print_cpuinfo(void)
+{
+       puts("CPU   : Altera SOCFPGA Platform\n");
+       return 0;
+}
+#endif
+
+#if defined(CONFIG_SYS_CONSOLE_IS_IN_ENV) && \
+defined(CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE)
+int overwrite_console(void)
+{
+       return 0;
+}
+#endif
+
+int misc_init_r(void)
+{
+       return 0;
+}
index a960eb60028b52e187ecabf04341e2074de53c38..f36656505f20c156e820d20c1161d9365b8d6412 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if defined(CONFIG_DISPLAY_CPUINFO)
-/*
- * Print CPU information
- */
-int print_cpuinfo(void)
-{
-       puts("CPU   : Altera SOCFPGA Platform\n");
-       return 0;
-}
-#endif
-
 /*
  * Print Board information
  */
@@ -49,18 +38,6 @@ int board_init(void)
        return 0;
 }
 
-int misc_init_r(void)
-{
-       return 0;
-}
-
-#if defined(CONFIG_SYS_CONSOLE_IS_IN_ENV) && defined(CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE)
-int overwrite_console(void)
-{
-       return 0;
-}
-#endif
-
 /*
  * DesignWare Ethernet initialization
  */