summaryrefslogtreecommitdiffstats
path: root/arch/nios2/cpu/cpu.c
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-10-14 08:43:31 +0800
committerThomas Chou <thomas@wytron.com.tw>2015-10-23 07:37:03 +0800
commitca844dd8c55f3b7bbba8144b0dcbf1297fcaece0 (patch)
tree3368801834adde5782ae6a0bf46e3585d0705bb1 /arch/nios2/cpu/cpu.c
parent4395e06eb9907e22869cfe3bf6259a0f0cefca13 (diff)
downloadblackbird-obmc-uboot-ca844dd8c55f3b7bbba8144b0dcbf1297fcaece0.tar.gz
blackbird-obmc-uboot-ca844dd8c55f3b7bbba8144b0dcbf1297fcaece0.zip
nios2: convert altera sysid to driver model
Convert altera sysid to driver model with misc uclass. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Chin Liang See <clsee@altera.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/nios2/cpu/cpu.c')
-rw-r--r--arch/nios2/cpu/cpu.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c
index 34eb7bd683..d7ff290fd7 100644
--- a/arch/nios2/cpu/cpu.c
+++ b/arch/nios2/cpu/cpu.c
@@ -13,20 +13,11 @@
DECLARE_GLOBAL_DATA_PTR;
-#if defined (CONFIG_SYS_NIOS_SYSID_BASE)
-extern void display_sysid (void);
-#endif /* CONFIG_SYS_NIOS_SYSID_BASE */
-
#ifdef CONFIG_DISPLAY_CPUINFO
int print_cpuinfo(void)
{
- printf ("CPU : Nios-II\n");
-#if !defined(CONFIG_SYS_NIOS_SYSID_BASE)
- printf ("SYSID : <unknown>\n");
-#else
- display_sysid ();
-#endif
- return (0);
+ printf("CPU: Nios-II\n");
+ return 0;
}
#endif /* CONFIG_DISPLAY_CPUINFO */
OpenPOWER on IntegriCloud