diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-04-13 10:04:35 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-04-13 10:04:35 +0000 |
commit | ea7f5a253b5e7b954a207349d61ca24a145765a3 (patch) | |
tree | 0675e6deddb745c5957cf25fc397489f1c866376 /src/cpu/amd/sc520/raminit.c | |
parent | f17ca16624140b0a2509fc37b084616b7857089e (diff) |
use the standard udelay on sc520.
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5418 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/amd/sc520/raminit.c')
-rw-r--r-- | src/cpu/amd/sc520/raminit.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/cpu/amd/sc520/raminit.c b/src/cpu/amd/sc520/raminit.c index 711614a5b8..c56117485a 100644 --- a/src/cpu/amd/sc520/raminit.c +++ b/src/cpu/amd/sc520/raminit.c @@ -234,18 +234,7 @@ dummy_write(void){ *ptr = 0; } -void sc520_udelay(int microseconds) { - volatile int x; - for(x = 0; x < 1000; x++) - ; -} - -/* looks like we define this now */ -void -udelay(int microseconds) { - sc520_udelay(microseconds); -} - +#include "pc80/udelay_io.c" static void dumpram(void){ print_err("ctl "); print_err_hex8(*drcctl); print_err("\n"); @@ -311,7 +300,7 @@ int sizemem(void) print_err("NOP\n"); /* 100? 200? */ udelay(100); - print_err("after sc520_udelay\n"); + print_err("after udelay\n"); /* issue all banks precharge */ *drcctl=0x02; @@ -385,8 +374,8 @@ int sizemem(void) dummy_write(); print_err("NOP\n"); /* 100? 200? */ - //sc520_udelay(100); - print_err("after sc520_udelay\n"); + //udelay(100); + print_err("after udelay\n"); /* issue all banks precharge */ *drcctl=0x02; |