diff options
Diffstat (limited to 'src/northbridge/amd/gx1')
-rw-r--r-- | src/northbridge/amd/gx1/northbridge.c | 4 | ||||
-rw-r--r-- | src/northbridge/amd/gx1/raminit.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/northbridge/amd/gx1/northbridge.c b/src/northbridge/amd/gx1/northbridge.c index b652ffac08..4eb02c7ded 100644 --- a/src/northbridge/amd/gx1/northbridge.c +++ b/src/northbridge/amd/gx1/northbridge.c @@ -36,8 +36,8 @@ static void optimize_xbus(device_t dev) static void enable_shadow(device_t dev) { - writel(0x77777777,GX_BASE+BC_XMAP_2); - writel(0x77777777,GX_BASE+BC_XMAP_3); + write32(GX_BASE+BC_XMAP_2, 0x77777777); + write32(GX_BASE+BC_XMAP_3, 0x77777777); } static void northbridge_init(device_t dev) diff --git a/src/northbridge/amd/gx1/raminit.c b/src/northbridge/amd/gx1/raminit.c index 365a18fa60..02ff7fb599 100644 --- a/src/northbridge/amd/gx1/raminit.c +++ b/src/northbridge/amd/gx1/raminit.c @@ -34,12 +34,12 @@ it with the version available from LANL. void setGX1Mem(unsigned int addr, unsigned int data) { - writel(data, (volatile void *)addr); + write32(addr, data); } unsigned int getGX1Mem(unsigned int addr) { - return (unsigned int)readl((const volatile void *)addr); + return (unsigned int)read32(addr); } void do_refresh(void) |