aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/amd/gx2/raminit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/northbridge/amd/gx2/raminit.c')
-rw-r--r--src/northbridge/amd/gx2/raminit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/northbridge/amd/gx2/raminit.c b/src/northbridge/amd/gx2/raminit.c
index 46ec6b8830..db10138b34 100644
--- a/src/northbridge/amd/gx2/raminit.c
+++ b/src/northbridge/amd/gx2/raminit.c
@@ -16,6 +16,7 @@
#include <cpu/amd/gx2def.h>
#include <spd.h>
+#include <stddef.h>
static const unsigned char NumColAddr[] = {
0x00, 0x10, 0x11, 0x00, 0x00, 0x00, 0x00, 0x07,
@@ -596,10 +597,8 @@ static void sdram_enable(int controllers, const struct mem_controller *ctrl)
/* The RAM dll needs a write to lock on so generate a few dummy writes */
/* Note: The descriptor needs to be enabled to point at memory */
- volatile unsigned long *ptr;
for (i = 0; i < 5; i++) {
- ptr = (void *)i;
- *ptr = (unsigned long)i;
+ write32(zeroptr + i, i);
}
printk(BIOS_INFO, "RAM DLL lock\n");