summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@openbios.org>2003-10-06 15:04:41 +0000
committerStefan Reinauer <stepan@openbios.org>2003-10-06 15:04:41 +0000
commita84c6f81ef85bca8b1413324d0bccb549cf4b00b (patch)
treee82f2b6758e064dacc528af8c10f15681412c715 /src/mainboard
parent2e90c1daa07501f055a2a52107b9c99948eef4f8 (diff)
add smbus_write_byte() function. currently fails in romcc :(
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1197 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/amd/quartet/auto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainboard/amd/quartet/auto.c b/src/mainboard/amd/quartet/auto.c
index 31a653d982..23951738c6 100644
--- a/src/mainboard/amd/quartet/auto.c
+++ b/src/mainboard/amd/quartet/auto.c
@@ -99,9 +99,10 @@ static inline int spd_read_byte(unsigned device, unsigned address)
unsigned hub = device >> 8;
device &= 0xff;
- // smbus_write_byte(SMBUS_HUB, hub);
+ smbus_write_byte(SMBUS_HUB, 0x01, 1<<hub);
+ smbus_write_byte(SMBUS_HUB, 0x03, 0);
+
return smbus_read_byte(device, address);
-
}
/* no specific code here. this should go away completely */