diff options
author | wdenk <wdenk> | 2005-03-30 23:28:18 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2005-03-30 23:28:18 +0000 |
commit | 0c1c117cf18ffa3fdc0342dfc47c6003fc5fc5a0 (patch) | |
tree | ac60588bc373565ce7a626e39b3d149e715be025 /cpu/nios2/cpu.c | |
parent | 8f0b7cbe8027c3745f5e0a199ecd152b032d8ad0 (diff) | |
download | u-boot-imx-0c1c117cf18ffa3fdc0342dfc47c6003fc5fc5a0.zip u-boot-imx-0c1c117cf18ffa3fdc0342dfc47c6003fc5fc5a0.tar.gz u-boot-imx-0c1c117cf18ffa3fdc0342dfc47c6003fc5fc5a0.tar.bz2 |
* Patch by Scott McNutt, 21 Oct 2004:
Add support for Nios-II EPCS Controller core.
* Patch by Scott McNutt, 20 Oct 2004:
Nios-II cleanups:
- Add sysid command (Nios-II only).
- Locate default exception trampoline at proper offset.
- Implement I/O routines (readb, writeb, etc)
- Implement do_bootm_linux
Diffstat (limited to 'cpu/nios2/cpu.c')
-rw-r--r-- | cpu/nios2/cpu.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/cpu/nios2/cpu.c b/cpu/nios2/cpu.c index c9db127..f4217a8 100644 --- a/cpu/nios2/cpu.c +++ b/cpu/nios2/cpu.c @@ -26,19 +26,7 @@ #include <nios2-io.h> #if defined (CFG_NIOS_SYSID_BASE) -#include <linux/time.h> -static void check_sysid (void) -{ - struct nios_sysid_t *sysid = - (struct nios_sysid_t *)CACHE_BYPASS(CFG_NIOS_SYSID_BASE); - struct tm t; - char asc[32]; - - localtime_r ((time_t *)&sysid->timestamp, &t); - asctime_r (&t, asc); - printf ("SYSID : %08x, %s", sysid->id, asc); - -} +extern void display_sysid (void); #endif /* CFG_NIOS_SYSID_BASE */ int checkcpu (void) @@ -47,7 +35,7 @@ int checkcpu (void) #if !defined(CFG_NIOS_SYSID_BASE) printf ("SYSID : <unknown>\n"); #else - check_sysid (); + display_sysid (); #endif return (0); } |