Some fixes for the BCOM WinNET100, mostly in Config.lb:

- Add missing entry for the NIC:

     device pci 0f.0 on end           # Ethernet (onboard)

 - Drop the following lines:

     register "com1" = "{115200}"
     register "com2" = "{38400}"

   Those entries hardcode the BAUD rate (as far as I can tell, please
   correct me if I'm wrong). We don't want that -- instead the config option
   TTYS0_BAUD in Options.lb should be used(?) I verified that dropping those
   lines will not break serial output (COM1, 115200, 8n1).

 - Enable IDE (PCI device 00:12.2) and add the following register lines
   to tell the CS5530 code to actually enable IDE channel 0:

      register "ide0_enable" = "1"
      register "ide1_enable" = "0"     # Not available/needed on this board

   Tested with a 2.5" hard drive and FILO, works fine.

 - Enable USB (PCI device 00:13.0), not sure why it was commented.

 - Enable COM2 as it's used by the smartcard reader.

 - Add CONFIG_COMPRESSED_PAYLOAD_LZMA to Options.lb, in order to fix
   abuild for this board.

 - Add some more comments.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2896 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Uwe Hermann 2007-10-24 20:17:04 +00:00
parent bf873e4ae3
commit cb00e7ab94
2 changed files with 51 additions and 46 deletions

View File

@ -79,12 +79,13 @@ mainboardinit ./auto.inc
dir /pc80 dir /pc80
config chip.h config chip.h
chip northbridge/amd/gx1 chip northbridge/amd/gx1 # Northbridge
device pci_domain 0 on device pci_domain 0 on # PCI domain
device pci 0.0 on end device pci 0.0 on end # Host bridge
chip southbridge/amd/cs5530 chip southbridge/amd/cs5530 # Southbridge
device pci 12.0 on device pci 0f.0 on end # Ethernet (onboard)
chip superio/nsc/pc97317 device pci 12.0 on # ISA bridge
chip superio/nsc/pc97317 # Super I/O
device pnp 2e.0 on # PS/2 keyboard device pnp 2e.0 on # PS/2 keyboard
io 0x60 = 0x60 io 0x60 = 0x60
io 0x62 = 0x64 io 0x62 = 0x64
@ -93,17 +94,20 @@ chip northbridge/amd/gx1
device pnp 2e.1 on # PS/2 mouse device pnp 2e.1 on # PS/2 mouse
irq 0x70 = 12 irq 0x70 = 12
end end
device pnp 2e.2 on # RTC device pnp 2e.2 on # RTC, Advanced power control (APC)
io 0x60 = 0x70 io 0x60 = 0x70
irq 0x70 = 8 irq 0x70 = 8
end end
device pnp 2e.3 off # Floppy device pnp 2e.3 off # Floppy (N/A on this board)
io 0x60 = 0x3f0
irq 0x70 = 6
drq 0x74 = 2
end end
device pnp 2e.4 on # Parallel port device pnp 2e.4 on # Parallel port
io 0x60 = 0x378 io 0x60 = 0x378
irq 0x70 = 7 irq 0x70 = 7
end end
device pnp 2e.5 off # COM2 device pnp 2e.5 on # COM2 (used for smartcard reader)
io 0x60 = 0x2f8 io 0x60 = 0x2f8
irq 0x70 = 3 irq 0x70 = 3
end end
@ -115,19 +119,19 @@ chip northbridge/amd/gx1
io 0x60 = 0xe0 io 0x60 = 0xe0
end end
device pnp 2e.8 on # Power management device pnp 2e.8 on # Power management
io 0x60 = 0xe800 io 0x60 = 0xe8
end
end end
register "com1" = "{115200}"
register "com2" = "{38400}"
end end
device pci 12.1 off end # SMI device pci 12.1 off end # SMI
device pci 12.2 off end # IDE device pci 12.2 on end # IDE
device pci 12.3 on end # Audio device pci 12.3 on end # Audio
device pci 12.4 on end # VGA device pci 12.4 on end # VGA (onboard)
# device pci 13.0 on end # USB device pci 13.0 on end # USB
register "ide0_enable" = "1"
register "ide1_enable" = "0" # Not available/needed on this board
end end
end end
end chip cpu/amd/model_gx1 # CPU
chip cpu/amd/model_gx1
end end
end end

View File

@ -56,6 +56,7 @@ uses CONFIG_CONSOLE_SERIAL8250
uses TTYS0_BAUD uses TTYS0_BAUD
uses TTYS0_BASE uses TTYS0_BASE
uses TTYS0_LCS uses TTYS0_LCS
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
uses CONFIG_UDELAY_TSC uses CONFIG_UDELAY_TSC
uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2 uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
uses CONFIG_VIDEO_MB uses CONFIG_VIDEO_MB