summaryrefslogtreecommitdiff
path: root/src/mainboard/island/aruma/auto.c
diff options
context:
space:
mode:
authorJason Schildt <jschildt@gmail.com>2005-10-25 21:45:17 +0000
committerJason Schildt <jschildt@gmail.com>2005-10-25 21:45:17 +0000
commitfddf46f275f27b20a05ff761c4e267fd619e9664 (patch)
tree23d5651fa8e93c1cc1f9bf13363c32830d4d33b4 /src/mainboard/island/aruma/auto.c
parentcf6df2afb5becca923e398521ae0e2d155cf3aa2 (diff)
- See Issue Tracker id-12 "lnxi-patch-12".
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2076 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/island/aruma/auto.c')
-rw-r--r--src/mainboard/island/aruma/auto.c55
1 files changed, 16 insertions, 39 deletions
diff --git a/src/mainboard/island/aruma/auto.c b/src/mainboard/island/aruma/auto.c
index d1899e934a..d5a3591305 100644
--- a/src/mainboard/island/aruma/auto.c
+++ b/src/mainboard/island/aruma/auto.c
@@ -25,6 +25,7 @@
#include "superio/winbond/w83627hf/w83627hf_early_serial.c"
#include "cpu/amd/mtrr/amd_earlymtrr.c"
#include "cpu/x86/bist.h"
+#include "cpu/amd/dualcore/dualcore.c"
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
@@ -128,31 +129,7 @@ static void main(unsigned long bist)
int needs_reset;
if (bist == 0) {
- unsigned nodeid;
-
- /* Skip this if there was a built in self test failure */
- amd_early_mtrr_init();
- enable_lapic();
- init_timer();
-
- nodeid=lapicid() & 0xf;
-
-
-#if ENABLE_APIC_EXT_ID == 1
- enable_apic_ext_id(nodeid);
- if(nodeid != 0) {
- /* CPU apicid is from 0x10 */
- lapic_write(LAPIC_ID, ( lapic_read(LAPIC_ID)
- | (APIC_ID_OFFSET<<24) ) );
- }
-#endif
- if (cpu_init_detected(nodeid)) {
- asm volatile ("jmp __cpu_reset");
- }
- distinguish_cpu_resets(nodeid);
- if (!boot_cpu()) {
- stop_this_cpu();
- }
+ k8_init_and_stop_secondaries();
}
/* Setup the console */
w83627hf_enable_serial(SERIAL_DEV, TTYS0_BASE);
@@ -173,20 +150,20 @@ static void main(unsigned long bist)
print_pci_devices();
#endif
-#if (ALLOW_HT_OVERCLOCKING==1) && (USE_FALLBACK_IMAGE==0)
- if(read_option(CMOS_VSTART_amdk8_1GHz, CMOS_VLEN_amdk8_1GHz, 0))
- {
- print_debug("AMDK8 allowed at 1GHz\r\n");
- } else {
- print_debug("AMDK8 allowed at 800Hz only\r\n");
- }
- if(read_option(CMOS_VSTART_amd8131_800MHz, CMOS_VLEN_amd8131_800MHz, 0))
- {
- print_debug("AMD8131 allowed at 800MHz\r\n");
- } else {
- print_debug("AMD8131 allowed at 600Hz only\r\n");
- }
-#endif
+//#if (ALLOW_HT_OVERCLOCKING==1) && (USE_FALLBACK_IMAGE==0)
+// if(read_option(CMOS_VSTART_amdk8_1GHz, CMOS_VLEN_amdk8_1GHz, 0))
+// {
+// print_debug("AMDK8 allowed at 1GHz\r\n");
+// } else {
+// print_debug("AMDK8 allowed at 800Hz only\r\n");
+// }
+// if(read_option(CMOS_VSTART_amd8131_800MHz, CMOS_VLEN_amd8131_800MHz, 0))
+// {
+// print_debug("AMD8131 allowed at 800MHz\r\n");
+// } else {
+// print_debug("AMD8131 allowed at 600Hz only\r\n");
+// }
+//#endif
if (needs_reset) {
print_info("HyperT reset -\r\n");
soft_reset();