summaryrefslogtreecommitdiff
path: root/src/mainboard/amd/norwich
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2009-10-09 14:10:28 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2009-10-09 14:10:28 +0000
commit00f0267f7805f6d27d78c1ed586ac0f13c90637b (patch)
tree1f7501094bfe358b0e0d09159e3402c3504bf4f8 /src/mainboard/amd/norwich
parent91ff0df62777a9ec4a399ef899803c05e7caad60 (diff)
Remaining boards are Kconfig'd now. Whether they work
or not still depends on how close the configuration options are to what they should be. Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4751 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/amd/norwich')
-rw-r--r--src/mainboard/amd/norwich/Kconfig47
-rw-r--r--src/mainboard/amd/norwich/Makefile.inc31
2 files changed, 78 insertions, 0 deletions
diff --git a/src/mainboard/amd/norwich/Kconfig b/src/mainboard/amd/norwich/Kconfig
new file mode 100644
index 0000000000..9d7874af2f
--- /dev/null
+++ b/src/mainboard/amd/norwich/Kconfig
@@ -0,0 +1,47 @@
+config BOARD_AMD_NORWICH
+ bool "Norwich"
+ select ARCH_X86
+ select CPU_AMD_LX
+ select NORTHBRIDGE_AMD_LX
+ select SOUTHBRIDGE_AMD_CS5536
+ 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 amd/norwich
+ depends on BOARD_AMD_NORWICH
+
+config MAINBOARD_PART_NUMBER
+ string
+ default "NORWICH"
+ depends on BOARD_AMD_NORWICH
+
+config HAVE_OPTION_TABLE
+ bool
+ default n
+ depends on BOARD_AMD_NORWICH
+
+config IRQ_SLOT_COUNT
+ int
+ default 6
+ depends on BOARD_AMD_NORWICH
+
+config DCACHE_RAM_BASE
+ hex
+ default 0xc8000
+ depends on BOARD_AMD_NORWICH
+
+config DCACHE_RAM_SIZE
+ hex
+ default 0x8000
+ depends on BOARD_AMD_NORWICH
+
+config RAMBASE
+ hex
+ default 0x4000
+ depends on BOARD_AMD_NORWICH
diff --git a/src/mainboard/amd/norwich/Makefile.inc b/src/mainboard/amd/norwich/Makefile.inc
new file mode 100644
index 0000000000..eac4755d28
--- /dev/null
+++ b/src/mainboard/amd/norwich/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
+