summaryrefslogtreecommitdiff
path: root/src/mainboard/amd/quartet/fakespd.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@openbios.org>2004-04-28 08:08:06 +0000
committerStefan Reinauer <stepan@openbios.org>2004-04-28 08:08:06 +0000
commit500497fc34189473f989add8f281bcbf90c341c9 (patch)
treee625505e8639a1535aa705fddc2fd32ee8f2ea28 /src/mainboard/amd/quartet/fakespd.c
parent97c4947ec9af1664e81ee797834a32d3ca2f74fe (diff)
indent
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1541 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/amd/quartet/fakespd.c')
-rw-r--r--src/mainboard/amd/quartet/fakespd.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/mainboard/amd/quartet/fakespd.c b/src/mainboard/amd/quartet/fakespd.c
index 4906a8a5b0..0bbdc59dfd 100644
--- a/src/mainboard/amd/quartet/fakespd.c
+++ b/src/mainboard/amd/quartet/fakespd.c
@@ -23,25 +23,25 @@ static inline void activate_spd_rom(const struct mem_controller *ctrl)
static int spd_read_byte(unsigned device, unsigned address)
{
static const unsigned char infinion_512mb_pc2700[0x80] = {
- 0x80, 0x08, 0x07, 0x0d, 0x0b, 0x01, 0x48, 0x00,
+ 0x80, 0x08, 0x07, 0x0d, 0x0b, 0x01, 0x48, 0x00,
0x04, 0x60, 0x70, 0x02, 0x82, 0x04, 0x04, 0x01,
0x0e, 0x04, 0x0c, 0x01, 0x02, 0x26, 0xc0, 0x75,
0x70, 0x00, 0x00, 0x48, 0x30, 0x48, 0x2a, 0x80,
- 0x75, 0x75, 0x45, 0x45, 0x00, 0x00, 0x00, 0x00,
+ 0x75, 0x75, 0x45, 0x45, 0x00, 0x00, 0x00, 0x00,
0x00, 0x3c, 0x48, 0x30, 0x28, 0x50, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47,
- 0xc1, 0x49, 0x4e, 0x46, 0x49, 0x4e, 0x45, 0x4f,
- 0x53, 0x37, 0x32, 0x44, 0x36, 0x34, 0x33, 0x30,
- 0x30, 0x47, 0x42, 0x52, 0x36, 0x42, 0x20, 0x20,
+ 0xc1, 0x49, 0x4e, 0x46, 0x49, 0x4e, 0x45, 0x4f,
+ 0x53, 0x37, 0x32, 0x44, 0x36, 0x34, 0x33, 0x30,
+ 0x30, 0x47, 0x42, 0x52, 0x36, 0x42, 0x20, 0x20,
0x20, 0x20, 0x20, 0x02, 0x0a, 0x03, 0x21, 0x0d,
- 0x3d, 0x89, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x3d, 0x89, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
-
- if ( address >= 0x80 )
+
+ if (address >= 0x80)
return -1;
/* This code is AMD quartet specific.
@@ -54,10 +54,9 @@ static int spd_read_byte(unsigned device, unsigned address)
*/
device &= 0xff;
- if (device==DIMM0 || device==DIMM1) {
+ if (device == DIMM0 || device == DIMM1) {
return infinion_512mb_pc2700[address];
}
return -1;
}
-