From ebb43d69439d847e87e18ac332e71b9b0476936a Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 8 Oct 2009 20:17:14 +0000 Subject: Fix CS5535 build for kconfig, more kconfig boards (lippert, artec) Signed-off-by: Patrick Georgi Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4748 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/mainboard/lippert/Kconfig | 11 +++++- src/mainboard/lippert/frontrunner/Kconfig | 34 ++++++++++++++++ src/mainboard/lippert/frontrunner/Makefile.inc | 2 + src/mainboard/lippert/roadrunner-lx/Kconfig | 48 +++++++++++++++++++++++ src/mainboard/lippert/roadrunner-lx/Makefile.inc | 31 +++++++++++++++ src/mainboard/lippert/spacerunner-lx/Kconfig | 48 +++++++++++++++++++++++ src/mainboard/lippert/spacerunner-lx/Makefile.inc | 31 +++++++++++++++ 7 files changed, 204 insertions(+), 1 deletion(-) create mode 100644 src/mainboard/lippert/frontrunner/Kconfig create mode 100644 src/mainboard/lippert/frontrunner/Makefile.inc create mode 100644 src/mainboard/lippert/roadrunner-lx/Kconfig create mode 100644 src/mainboard/lippert/roadrunner-lx/Makefile.inc create mode 100644 src/mainboard/lippert/spacerunner-lx/Kconfig create mode 100644 src/mainboard/lippert/spacerunner-lx/Makefile.inc (limited to 'src/mainboard/lippert') diff --git a/src/mainboard/lippert/Kconfig b/src/mainboard/lippert/Kconfig index 792d600548..82c0b282e3 100644 --- a/src/mainboard/lippert/Kconfig +++ b/src/mainboard/lippert/Kconfig @@ -1 +1,10 @@ -# +choice + prompt "Mainboard model" + depends on VENDOR_LIPPERT + +source "src/mainboard/lippert/frontrunner/Kconfig" +source "src/mainboard/lippert/roadrunner-lx/Kconfig" +source "src/mainboard/lippert/spacerunner-lx/Kconfig" + +endchoice + diff --git a/src/mainboard/lippert/frontrunner/Kconfig b/src/mainboard/lippert/frontrunner/Kconfig new file mode 100644 index 0000000000..6b419286a2 --- /dev/null +++ b/src/mainboard/lippert/frontrunner/Kconfig @@ -0,0 +1,34 @@ +config BOARD_LIPPERT_FRONTRUNNER + bool "Frontrunner" + select ARCH_X86 + select CPU_AMD_GX2 + select NORTHBRIDGE_AMD_GX2 + select SOUTHBRIDGE_AMD_CS5535 + select UDELAY_TSC + select TSC_X86RDTSC_CALIBRATE_WITH_TIMER2 + select HAVE_PIRQ_TABLE + +config MAINBOARD_DIR + string + default lippert/frontrunner + depends on BOARD_LIPPERT_FRONTRUNNER + +config MAINBOARD_PART_NUMBER + string + default "Frontrunner" + depends on BOARD_LIPPERT_FRONTRUNNER + +config HAVE_OPTION_TABLE + bool + default n + depends on BOARD_LIPPERT_FRONTRUNNER + +config IRQ_SLOT_COUNT + int + default 2 + depends on BOARD_LIPPERT_FRONTRUNNER + +config USE_INIT + bool + default n + depends on BOARD_LIPPERT_FRONTRUNNER diff --git a/src/mainboard/lippert/frontrunner/Makefile.inc b/src/mainboard/lippert/frontrunner/Makefile.inc new file mode 100644 index 0000000000..377edf51f5 --- /dev/null +++ b/src/mainboard/lippert/frontrunner/Makefile.inc @@ -0,0 +1,2 @@ +ROMCCFLAGS=-mcpu=i386 -O +include $(src)/mainboard/Makefile.romccboard.inc diff --git a/src/mainboard/lippert/roadrunner-lx/Kconfig b/src/mainboard/lippert/roadrunner-lx/Kconfig new file mode 100644 index 0000000000..2e9594ffe1 --- /dev/null +++ b/src/mainboard/lippert/roadrunner-lx/Kconfig @@ -0,0 +1,48 @@ +config BOARD_LIPPERT_ROADRUNNER_LX + bool "RoadRunner-LX" + select ARCH_X86 + select CPU_AMD_LX + select NORTHBRIDGE_AMD_LX + select SOUTHBRIDGE_AMD_CS5536 + select SUPERIO_ITE_IT8712F + select HAVE_PIRQ_TABLE + select PIRQ_ROUTE + select UDELAY_TSC + select TSC_X86RDTSC_CALIBRATE_WITH_TIMER2 + select USE_DCACHE_RAM + select USE_PRINTK_IN_CAR + +config MAINBOARD_DIR + string + default lippert/roadrunner-lx + depends on BOARD_LIPPERT_ROADRUNNER_LX + +config MAINBOARD_PART_NUMBER + string + default "ROADRUNNERLX" + depends on BOARD_LIPPERT_ROADRUNNER_LX + +config HAVE_OPTION_TABLE + bool + default n + depends on BOARD_LIPPERT_ROADRUNNER_LX + +config IRQ_SLOT_COUNT + int + default 7 + depends on BOARD_LIPPERT_ROADRUNNER_LX + +config DCACHE_RAM_BASE + hex + default 0xc8000 + depends on BOARD_LIPPERT_ROADRUNNER_LX + +config DCACHE_RAM_SIZE + hex + default 0x8000 + depends on BOARD_LIPPERT_ROADRUNNER_LX + +config RAMBASE + hex + default 0x4000 + depends on BOARD_LIPPERT_ROADRUNNER_LX diff --git a/src/mainboard/lippert/roadrunner-lx/Makefile.inc b/src/mainboard/lippert/roadrunner-lx/Makefile.inc new file mode 100644 index 0000000000..eac4755d28 --- /dev/null +++ b/src/mainboard/lippert/roadrunner-lx/Makefile.inc @@ -0,0 +1,31 @@ +driver-y += mainboard.o + +# Needed by irq_tables and mptable and acpi_tables. +obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_tables.o + +# This is part of the conversion to init-obj and away from included code. + +initobj-y += crt0.o +# FIXME in $(top)/Makefile +crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc +crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc +crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc +crt0-y += ../../../../src/arch/i386/lib/id.inc +crt0-y += ../../../../src/cpu/amd/model_lx/cache_as_ram.inc +crt0-y += auto.inc + +ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb +ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds +ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds +ldscript-y += ../../../../src/arch/i386/lib/id.lds +ldscript-y += ../../../../src/arch/i386/lib/failover.lds + +ifdef POST_EVALUATION + +$(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c + $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c -o $@ + perl -e 's/\.rodata/.rom.data/g' -pi $@ + perl -e 's/\.text/.section .rom.text/g' -pi $@ + +endif + diff --git a/src/mainboard/lippert/spacerunner-lx/Kconfig b/src/mainboard/lippert/spacerunner-lx/Kconfig new file mode 100644 index 0000000000..bf7471c80d --- /dev/null +++ b/src/mainboard/lippert/spacerunner-lx/Kconfig @@ -0,0 +1,48 @@ +config BOARD_LIPPERT_SPACERUNNER_LX + bool "SpaceRunner-LX" + select ARCH_X86 + select CPU_AMD_LX + select NORTHBRIDGE_AMD_LX + select SOUTHBRIDGE_AMD_CS5536 + select SUPERIO_ITE_IT8712F + select HAVE_PIRQ_TABLE + select PIRQ_ROUTE + select UDELAY_TSC + select TSC_X86RDTSC_CALIBRATE_WITH_TIMER2 + select USE_DCACHE_RAM + select USE_PRINTK_IN_CAR + +config MAINBOARD_DIR + string + default lippert/spacerunner-lx + depends on BOARD_LIPPERT_SPACERUNNER_LX + +config MAINBOARD_PART_NUMBER + string + default "SPACERUNNERLX" + depends on BOARD_LIPPERT_SPACERUNNER_LX + +config HAVE_OPTION_TABLE + bool + default n + depends on BOARD_LIPPERT_SPACERUNNER_LX + +config IRQ_SLOT_COUNT + int + default 7 + depends on BOARD_LIPPERT_SPACERUNNER_LX + +config DCACHE_RAM_BASE + hex + default 0xc8000 + depends on BOARD_LIPPERT_SPACERUNNER_LX + +config DCACHE_RAM_SIZE + hex + default 0x8000 + depends on BOARD_LIPPERT_SPACERUNNER_LX + +config RAMBASE + hex + default 0x4000 + depends on BOARD_LIPPERT_SPACERUNNER_LX diff --git a/src/mainboard/lippert/spacerunner-lx/Makefile.inc b/src/mainboard/lippert/spacerunner-lx/Makefile.inc new file mode 100644 index 0000000000..eac4755d28 --- /dev/null +++ b/src/mainboard/lippert/spacerunner-lx/Makefile.inc @@ -0,0 +1,31 @@ +driver-y += mainboard.o + +# Needed by irq_tables and mptable and acpi_tables. +obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_tables.o + +# This is part of the conversion to init-obj and away from included code. + +initobj-y += crt0.o +# FIXME in $(top)/Makefile +crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc +crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc +crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc +crt0-y += ../../../../src/arch/i386/lib/id.inc +crt0-y += ../../../../src/cpu/amd/model_lx/cache_as_ram.inc +crt0-y += auto.inc + +ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb +ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds +ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds +ldscript-y += ../../../../src/arch/i386/lib/id.lds +ldscript-y += ../../../../src/arch/i386/lib/failover.lds + +ifdef POST_EVALUATION + +$(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c + $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c -o $@ + perl -e 's/\.rodata/.rom.data/g' -pi $@ + perl -e 's/\.text/.section .rom.text/g' -pi $@ + +endif + -- cgit v1.2.3