moved ethernet enable before spci enum in order to get mem and io space assigned.

This commit is contained in:
Andrew Ip 2002-11-10 06:47:56 +00:00
commit c81ca3d563
2 changed files with 20 additions and 2 deletions

View file

@ -7,6 +7,7 @@ mainboardinit cpu/i386/reset16.inc
ldscript cpu/i386/reset16.lds
mainboardinit superio/via/vt8231/setup_serial.inc
mainboardinit superio/via/vt8231/setup_ethernet.inc
mainboardinit pc80/serial.inc
mainboardinit arch/i386/lib/console.inc
mainboardinit northbridge/via/vt8601/raminit.inc
@ -17,15 +18,21 @@ mainboardinit northbridge/via/vt8601/raminit.inc
northbridge via/vt8601
southbridge via/vt8231
superio via/vt8231
# kevinh - this doesn't build correctly, and I think it is just duplicating
# the functionality of some of the early setup.
# superio via/vt8231
mainboardinit cpu/p6/earlymtrr.inc
# The 8231 includes built in Ethernet, however it must be enabled BEFORE
# the PCI enumeration so that it can be set up.
option ENABLE_VT8231_LAN=1
option ENABLE_FIXED_AND_VARIABLE_MTRRS=1
option FINAL_MAINBOARD_FIXUP=1
option HAVE_PIRQ_TABLE=1
option SUPERIO_DEVFN=0x88
object mainboard.o
option IOAPIC=1
object irq_tables.o
object mainboard.o
keyboard pc80
cpu p5
cpu p6

View file

@ -0,0 +1,11 @@
/*
* This early setup is a handy place to enable the Ethernet if the user wants
* it.
*/
#if ENABLE_VT8231_LAN
enable_eth:
movl CONFIG_ADDR(0, SUPERIO_DEVFN, 0x51), %eax
movb $0x10, %dl
PCI_WRITE_CONFIG_BYTE
#endif