summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorChin Liang See <clsee@altera.com>2014-06-10 02:23:45 -0500
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-07-05 10:14:46 +0200
commit23f23f23d509e8e873797884456070c8a47d72b2 (patch)
tree8b411784f6c1be0cc5ba52d499a78ab881ceab2a /arch
parent7285c09560b24c43ea6cd9ca30264b18e5b69af1 (diff)
downloadu-boot-imx-23f23f23d509e8e873797884456070c8a47d72b2.zip
u-boot-imx-23f23f23d509e8e873797884456070c8a47d72b2.tar.gz
u-boot-imx-23f23f23d509e8e873797884456070c8a47d72b2.tar.bz2
socfpga: Relocate arch common functions away from board
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/socfpga/misc.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/socfpga/misc.c b/arch/arm/cpu/armv7/socfpga/misc.c
index 2f1c716..5268f2c 100644
--- a/arch/arm/cpu/armv7/socfpga/misc.c
+++ b/arch/arm/cpu/armv7/socfpga/misc.c
@@ -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;
+}