From 08da4f1fce68748c2aea8ef5ff4109ea6d3f0d82 Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Fri, 4 May 2007 19:09:01 +0000 Subject: This repairs the other Geode mainboards so they'll build with the new Geode changes. Signed-off-by: Marc Jones Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2632 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/amd/gx2/chipsetinit.c | 1 + src/northbridge/amd/gx2/grphinit.c | 23 ----------------------- src/northbridge/amd/gx2/northbridge.c | 1 + 3 files changed, 2 insertions(+), 23 deletions(-) (limited to 'src/northbridge') diff --git a/src/northbridge/amd/gx2/chipsetinit.c b/src/northbridge/amd/gx2/chipsetinit.c index 4bc6be5295..dcbfdb99b6 100644 --- a/src/northbridge/amd/gx2/chipsetinit.c +++ b/src/northbridge/amd/gx2/chipsetinit.c @@ -12,6 +12,7 @@ #include #include #include +#include "../../../southbridge/amd/cs5536/cs5536.h" /* the structs in this file only set msr.lo. But ... that may not always be true */ diff --git a/src/northbridge/amd/gx2/grphinit.c b/src/northbridge/amd/gx2/grphinit.c index 4e0da1789d..85df9d8c1b 100644 --- a/src/northbridge/amd/gx2/grphinit.c +++ b/src/northbridge/amd/gx2/grphinit.c @@ -4,31 +4,8 @@ #define VIDEO_MB 8 // MB of video memory -/* - * Write to a Virtual Register - * AX = Class/Index - * CX = data to write - */ -void vrWrite(uint16_t wClassIndex, uint16_t wData) -{ - outl(((uint32_t) VR_UNLOCK << 16) | wClassIndex, VRC_INDEX); - outw(wData, VRC_DATA); -} /* - * Read from a Virtual Register - * AX = Class/Index - * Returns a 16-bit word of data - */ -uint16_t vrRead(uint16_t wClassIndex) -{ - uint16_t wData; - outl(((uint32_t) VR_UNLOCK << 16) | wClassIndex, VRC_INDEX); - wData = inw(VRC_DATA); - return wData; -} - -/* * This function mirrors the Graphics_Init routine in GeodeROM. */ void graphics_init(void) diff --git a/src/northbridge/amd/gx2/northbridge.c b/src/northbridge/amd/gx2/northbridge.c index 41e9c957aa..9b4b050b0d 100644 --- a/src/northbridge/amd/gx2/northbridge.c +++ b/src/northbridge/amd/gx2/northbridge.c @@ -13,6 +13,7 @@ #include #include #include +#include "../../../southbridge/amd/cs5536/cs5536.h" #define VIDEO_MB 8 extern void graphics_init(void); -- cgit v1.2.3