2 freebios/src/northbridge/nsc/gx1/cpu_setup.inc
4 Copyright (c) 2002 Christer Weinigel <wingel@hack.org>
6 Initialize the GX1 CPU configuration registers
9 /* copied for gx2 for ron minnich, as a placeholder */
11 /* USES: esi, ecx, eax */
13 #include <cpu/amd/gx2def.h>
15 movl %eax, %ebp /* preserve bist */
18 leal cpu_setup_table, %esi
19 movl $cpu_setup_len, %ecx
29 movb $0xff, %al /* DIR1 -- Identification Register 1 */
32 cmpb $0x63, %al /* Revision for GXLV rev 3 */
35 movb $0xe8, %al /* CCR4 */
38 orb $0x20, %al /* Enable FPU Fast Mode */
41 movb $0xf0, %al /* PCR1 --- Performace Control */
44 orb $0x02, %al /* Incrementor on, whatever that is */
47 movb $0x20, %al /* PCR0 --- Performace Control */
50 orb $0x20, %al /* Must be 1 according to data book */
51 orb $0x04, %al /* Incrementor Margin 10 */
58 .byte 0xc1, 0x00 /* NO SMIs */
59 .byte 0xc3, 0x14 /* Enable CPU config register */
61 .byte 0xb8, GX_BASE>>30 /* Enable GXBASE address */
64 .byte 0xc3, 0xf8 /* Enable CPU config register */
65 cpu_setup_len = (.-cpu_setup_table)/2
70 movl %ebp, %eax /* Restore bist */