2006-07-28 18:06:16 +02:00
|
|
|
uses HAVE_MP_TABLE
|
2009-04-14 09:40:01 +02:00
|
|
|
uses CONFIG_CBFS
|
2006-07-28 18:06:16 +02:00
|
|
|
uses HAVE_PIRQ_TABLE
|
|
|
|
uses USE_FALLBACK_IMAGE
|
|
|
|
uses HAVE_FALLBACK_BOOT
|
|
|
|
uses HAVE_HARD_RESET
|
|
|
|
uses HAVE_OPTION_TABLE
|
|
|
|
uses USE_OPTION_TABLE
|
2006-12-15 13:56:28 +01:00
|
|
|
uses CONFIG_ROM_PAYLOAD
|
2006-07-28 18:06:16 +02:00
|
|
|
uses IRQ_SLOT_COUNT
|
|
|
|
uses MAINBOARD
|
|
|
|
uses MAINBOARD_VENDOR
|
|
|
|
uses MAINBOARD_PART_NUMBER
|
2008-01-18 16:08:58 +01:00
|
|
|
uses COREBOOT_EXTRA_VERSION
|
2006-07-28 18:06:16 +02:00
|
|
|
uses ARCH
|
|
|
|
uses FALLBACK_SIZE
|
|
|
|
uses STACK_SIZE
|
|
|
|
uses HEAP_SIZE
|
|
|
|
uses ROM_SIZE
|
|
|
|
uses ROM_SECTION_SIZE
|
|
|
|
uses ROM_IMAGE_SIZE
|
|
|
|
uses ROM_SECTION_SIZE
|
|
|
|
uses ROM_SECTION_OFFSET
|
2006-12-15 13:56:28 +01:00
|
|
|
uses CONFIG_ROM_PAYLOAD_START
|
2006-12-15 12:42:16 +01:00
|
|
|
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
|
2007-04-12 02:28:32 +02:00
|
|
|
uses CONFIG_COMPRESSED_PAYLOAD_NRV2B
|
2007-06-21 01:45:44 +02:00
|
|
|
uses CONFIG_PRECOMPRESSED_PAYLOAD
|
2006-07-28 18:06:16 +02:00
|
|
|
uses PAYLOAD_SIZE
|
|
|
|
uses _ROMBASE
|
|
|
|
uses _RAMBASE
|
|
|
|
uses XIP_ROM_SIZE
|
|
|
|
uses XIP_ROM_BASE
|
|
|
|
uses HAVE_MP_TABLE
|
|
|
|
uses CROSS_COMPILE
|
|
|
|
uses CC
|
|
|
|
uses HOSTCC
|
|
|
|
uses OBJCOPY
|
|
|
|
uses DEFAULT_CONSOLE_LOGLEVEL
|
|
|
|
uses MAXIMUM_CONSOLE_LOGLEVEL
|
|
|
|
uses CONFIG_CONSOLE_SERIAL8250
|
|
|
|
uses TTYS0_BAUD
|
|
|
|
uses TTYS0_BASE
|
|
|
|
uses TTYS0_LCS
|
|
|
|
uses CONFIG_UDELAY_TSC
|
|
|
|
uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
|
2006-09-19 21:30:11 +02:00
|
|
|
uses CONFIG_CONSOLE_VGA
|
|
|
|
uses CONFIG_PCI_ROM_RUN
|
2006-09-20 18:32:59 +02:00
|
|
|
uses CONFIG_VIDEO_MB
|
2007-06-21 01:45:44 +02:00
|
|
|
uses USE_DCACHE_RAM
|
|
|
|
uses DCACHE_RAM_BASE
|
|
|
|
uses DCACHE_RAM_SIZE
|
Now coreboot performs IRQ routing for some boards.
You can see this by executing commands like this:
grep -r pci_assign_irqs coreboot/src/*
This basically AMD/LX based boards: pcengines/alix1c,
digitallogic/msm800sev, artecgroup/dbe61, amd/norwich, amd/db800.
Also for AMD/GX1 based boards need a patch
[http://www.pengutronix.de/software/ptxdist/temporary-src/references/geode-5530.patch]
for the right IRQ setup.
AMD/GX1 based boards is: advantech/pcm-5820, asi/mb_5blmp, axus/tc320,
bcom/winnet100, eaglelion/5bcm, iei/nova4899r, iei/juki-511p.
I have two ideas.
1. Delete duplicate code from AMD/LX based boards.
2. Add IRQ routing for AMD/GX1 boards in coreboot.
The pirq.patch for IRQ routing logically consist from of two parts:
First part of pirq.patch independent from type chipsets and assign IRQ for
ever PCI device. It part based on AMD/LX write_pirq_routing_table() function.
Second part of pirq.patch depends of type chipset and set PIRQx lines
in interrupt router. This part supports only CS5530/5536 interrupt routers.
IRQ routing functionality is included through PIRQ_ROUTE in Config.lb.
Tested on iei/juki-511p(cs5530a), iei/pcisa-lx(cs5536) and also on
TeleVideo TC7020, see
http://www.coreboot.org/pipermail/coreboot/2007-December/027973.html.
Signed-off-by: Nikolay Petukhov <nikolay.petukhov@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3196 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2008-03-29 17:59:27 +01:00
|
|
|
uses PIRQ_ROUTE
|
2006-07-28 18:06:16 +02:00
|
|
|
|
|
|
|
## ROM_SIZE is the size of boot ROM that this board will use.
|
|
|
|
default ROM_SIZE = 256*1024
|
|
|
|
|
|
|
|
###
|
|
|
|
### Build options
|
|
|
|
###
|
2007-06-21 01:45:44 +02:00
|
|
|
default CONFIG_CONSOLE_VGA=0
|
|
|
|
default CONFIG_PCI_ROM_RUN=0
|
2006-09-20 18:32:59 +02:00
|
|
|
default CONFIG_VIDEO_MB=8
|
2006-07-28 18:06:16 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
## Build code for the fallback boot
|
|
|
|
##
|
|
|
|
default HAVE_FALLBACK_BOOT=1
|
|
|
|
|
|
|
|
##
|
|
|
|
## no MP table
|
|
|
|
##
|
|
|
|
default HAVE_MP_TABLE=0
|
|
|
|
|
|
|
|
##
|
2008-01-18 16:08:58 +01:00
|
|
|
## Build code to reset the motherboard from coreboot
|
2006-07-28 18:06:16 +02:00
|
|
|
##
|
|
|
|
default HAVE_HARD_RESET=0
|
|
|
|
|
|
|
|
## Delay timer options
|
|
|
|
##
|
|
|
|
default CONFIG_UDELAY_TSC=1
|
|
|
|
default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2=1
|
|
|
|
|
|
|
|
##
|
|
|
|
## Build code to export a programmable irq routing table
|
|
|
|
##
|
2007-06-21 01:45:44 +02:00
|
|
|
default HAVE_PIRQ_TABLE=1
|
|
|
|
default IRQ_SLOT_COUNT=3
|
Now coreboot performs IRQ routing for some boards.
You can see this by executing commands like this:
grep -r pci_assign_irqs coreboot/src/*
This basically AMD/LX based boards: pcengines/alix1c,
digitallogic/msm800sev, artecgroup/dbe61, amd/norwich, amd/db800.
Also for AMD/GX1 based boards need a patch
[http://www.pengutronix.de/software/ptxdist/temporary-src/references/geode-5530.patch]
for the right IRQ setup.
AMD/GX1 based boards is: advantech/pcm-5820, asi/mb_5blmp, axus/tc320,
bcom/winnet100, eaglelion/5bcm, iei/nova4899r, iei/juki-511p.
I have two ideas.
1. Delete duplicate code from AMD/LX based boards.
2. Add IRQ routing for AMD/GX1 boards in coreboot.
The pirq.patch for IRQ routing logically consist from of two parts:
First part of pirq.patch independent from type chipsets and assign IRQ for
ever PCI device. It part based on AMD/LX write_pirq_routing_table() function.
Second part of pirq.patch depends of type chipset and set PIRQx lines
in interrupt router. This part supports only CS5530/5536 interrupt routers.
IRQ routing functionality is included through PIRQ_ROUTE in Config.lb.
Tested on iei/juki-511p(cs5530a), iei/pcisa-lx(cs5536) and also on
TeleVideo TC7020, see
http://www.coreboot.org/pipermail/coreboot/2007-December/027973.html.
Signed-off-by: Nikolay Petukhov <nikolay.petukhov@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3196 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2008-03-29 17:59:27 +01:00
|
|
|
default PIRQ_ROUTE=1
|
2006-07-28 18:06:16 +02:00
|
|
|
#object irq_tables.o
|
|
|
|
|
|
|
|
##
|
|
|
|
## Build code to export a CMOS option table
|
|
|
|
##
|
|
|
|
default HAVE_OPTION_TABLE=0
|
|
|
|
|
|
|
|
###
|
2008-01-18 16:08:58 +01:00
|
|
|
### coreboot layout values
|
2006-07-28 18:06:16 +02:00
|
|
|
###
|
|
|
|
|
2008-01-18 16:08:58 +01:00
|
|
|
## ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
|
2006-07-28 18:06:16 +02:00
|
|
|
default ROM_IMAGE_SIZE = 65536
|
|
|
|
default FALLBACK_SIZE = 131072
|
|
|
|
|
2007-06-21 01:45:44 +02:00
|
|
|
##
|
|
|
|
## enable CACHE_AS_RAM specifics
|
|
|
|
##
|
|
|
|
default USE_DCACHE_RAM=1
|
|
|
|
default DCACHE_RAM_BASE=0xc8000
|
|
|
|
default DCACHE_RAM_SIZE=0x08000
|
|
|
|
|
2006-07-28 18:06:16 +02:00
|
|
|
##
|
|
|
|
## Use a small 8K stack
|
|
|
|
##
|
|
|
|
default STACK_SIZE=0x2000
|
|
|
|
|
|
|
|
##
|
|
|
|
## Use a small 16K heap
|
|
|
|
##
|
|
|
|
default HEAP_SIZE=0x4000
|
|
|
|
|
|
|
|
##
|
|
|
|
## Only use the option table in a normal image
|
|
|
|
##
|
|
|
|
#default USE_OPTION_TABLE = !USE_FALLBACK_IMAGE
|
|
|
|
default USE_OPTION_TABLE = 0
|
|
|
|
|
|
|
|
default _RAMBASE = 0x00004000
|
|
|
|
|
2006-12-15 13:56:28 +01:00
|
|
|
default CONFIG_ROM_PAYLOAD = 1
|
2006-07-28 18:06:16 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
## The default compiler
|
|
|
|
##
|
|
|
|
default CROSS_COMPILE=""
|
2006-08-03 18:48:18 +02:00
|
|
|
default CC="$(CROSS_COMPILE)gcc -m32"
|
|
|
|
default HOSTCC="gcc"
|
2006-07-28 18:06:16 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
## The Serial Console
|
|
|
|
##
|
|
|
|
|
|
|
|
# To Enable the Serial Console
|
|
|
|
default CONFIG_CONSOLE_SERIAL8250=1
|
|
|
|
|
|
|
|
## Select the serial console baud rate
|
|
|
|
default TTYS0_BAUD=115200
|
|
|
|
#default TTYS0_BAUD=57600
|
|
|
|
#default TTYS0_BAUD=38400
|
|
|
|
#default TTYS0_BAUD=19200
|
|
|
|
#default TTYS0_BAUD=9600
|
|
|
|
#default TTYS0_BAUD=4800
|
|
|
|
#default TTYS0_BAUD=2400
|
|
|
|
#default TTYS0_BAUD=1200
|
|
|
|
|
|
|
|
# Select the serial console base port
|
|
|
|
default TTYS0_BASE=0x3f8
|
|
|
|
|
|
|
|
# Select the serial protocol
|
|
|
|
# This defaults to 8 data bits, 1 stop bit, and no parity
|
|
|
|
default TTYS0_LCS=0x3
|
|
|
|
|
|
|
|
##
|
2008-01-18 16:08:58 +01:00
|
|
|
### Select the coreboot loglevel
|
2006-07-28 18:06:16 +02:00
|
|
|
##
|
|
|
|
## EMERG 1 system is unusable
|
|
|
|
## ALERT 2 action must be taken immediately
|
|
|
|
## CRIT 3 critical conditions
|
|
|
|
## ERR 4 error conditions
|
|
|
|
## WARNING 5 warning conditions
|
|
|
|
## NOTICE 6 normal but significant condition
|
|
|
|
## INFO 7 informational
|
|
|
|
## DEBUG 8 debug-level messages
|
|
|
|
## SPEW 9 Way too many details
|
|
|
|
|
|
|
|
## Request this level of debugging output
|
|
|
|
default DEFAULT_CONSOLE_LOGLEVEL=8
|
|
|
|
## At a maximum only compile in this level of debugging
|
|
|
|
default MAXIMUM_CONSOLE_LOGLEVEL=8
|
|
|
|
|
|
|
|
|
2009-03-31 18:32:01 +02:00
|
|
|
#
|
2009-04-14 09:40:01 +02:00
|
|
|
# CBFS
|
2009-03-31 18:32:01 +02:00
|
|
|
#
|
|
|
|
#
|
2009-04-14 09:40:01 +02:00
|
|
|
default CONFIG_CBFS=0
|
2009-03-31 18:32:01 +02:00
|
|
|
end
|