diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-04-15 06:00:01 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-04-15 06:00:01 +0000 |
commit | 82144571adb315197ded9d6f3ada29a86637117c (patch) | |
tree | cd684fb126eebf40ee26386034cbbb9e0fe0bd26 /src/mainboard/supermicro | |
parent | 57f6c08837380e60153bceab75e042d535746daa (diff) | |
download | coreboot-82144571adb315197ded9d6f3ada29a86637117c.tar.xz |
r4097 broke the tree and it remains unfixed :-(
Repeat: Cosmetic patches shall not break the tree for 20 revisions.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4116 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/supermicro')
-rw-r--r-- | src/mainboard/supermicro/h8dme/apc_auto.c | 5 | ||||
-rw-r--r-- | src/mainboard/supermicro/h8dmr/apc_auto.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/supermicro/h8dme/apc_auto.c b/src/mainboard/supermicro/h8dme/apc_auto.c index b514715e3f..6e8f301626 100644 --- a/src/mainboard/supermicro/h8dme/apc_auto.c +++ b/src/mainboard/supermicro/h8dme/apc_auto.c @@ -82,6 +82,11 @@ static void post_code(uint8_t value) { #include "northbridge/amd/amdk8/amdk8_f_pci.c" #include "northbridge/amd/amdk8/raminit_f_dqs.c" +static inline unsigned get_nodes(void) +{ + return ((pci_read_config32(PCI_DEV(0, 0x18, 0), 0x60)>>4) & 7) + 1; +} + #include "cpu/amd/dualcore/dualcore.c" void hardwaremain(int ret_addr) diff --git a/src/mainboard/supermicro/h8dmr/apc_auto.c b/src/mainboard/supermicro/h8dmr/apc_auto.c index b514715e3f..6e8f301626 100644 --- a/src/mainboard/supermicro/h8dmr/apc_auto.c +++ b/src/mainboard/supermicro/h8dmr/apc_auto.c @@ -82,6 +82,11 @@ static void post_code(uint8_t value) { #include "northbridge/amd/amdk8/amdk8_f_pci.c" #include "northbridge/amd/amdk8/raminit_f_dqs.c" +static inline unsigned get_nodes(void) +{ + return ((pci_read_config32(PCI_DEV(0, 0x18, 0), 0x60)>>4) & 7) + 1; +} + #include "cpu/amd/dualcore/dualcore.c" void hardwaremain(int ret_addr) |