Make VSA code selectable in Kconfig
authorStefan Reinauer <stepan@coresystems.de>
Tue, 20 Apr 2010 18:35:33 +0000 (18:35 +0000)
committerStefan Reinauer <stepan@openbios.org>
Tue, 20 Apr 2010 18:35:33 +0000 (18:35 +0000)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5467 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/arch/i386/Makefile.inc
src/cpu/amd/model_gx2/Kconfig
src/cpu/amd/model_lx/Kconfig

index 5f8d110eb687a04ca7ff02293287f1f5538269c8..24fd02ababf6c6980ff7999ef8ca88e75a720d57 100644 (file)
@@ -25,6 +25,9 @@ endif
 ifeq ($(CONFIG_AP_CODE_IN_CAR),y)
 COREBOOT_ROM_DEPENDENCIES+=$(obj)/coreboot_ap
 endif
 ifeq ($(CONFIG_AP_CODE_IN_CAR),y)
 COREBOOT_ROM_DEPENDENCIES+=$(obj)/coreboot_ap
 endif
+ifeq ($(CONFIG_GEODE_VSA),y)
+COREBOOT_ROM_DEPENDENCIES+=$(CONFIG_VSA_FILE)
+endif
 
 $(obj)/coreboot.rom: $(obj)/coreboot.pre $(obj)/coreboot_ram $(CBFSTOOL) $(call strip_quotes,$(COREBOOT_ROM_DEPENDENCIES))
        @printf "    CBFS       $(subst $(obj)/,,$(@))\n"
 
 $(obj)/coreboot.rom: $(obj)/coreboot.pre $(obj)/coreboot_ram $(CBFSTOOL) $(call strip_quotes,$(COREBOOT_ROM_DEPENDENCIES))
        @printf "    CBFS       $(subst $(obj)/,,$(@))\n"
@@ -51,6 +54,12 @@ endif
 ifeq ($(CONFIG_BOOTSPLASH),y)
        @printf "    BOOTSPLASH $(CONFIG_FALLBACK_BOOTSPLASH_FILE)\n"
        $(CBFSTOOL) $@.tmp add $(CONFIG_FALLBACK_BOOTSPLASH_FILE) bootsplash.jpg bootsplash
 ifeq ($(CONFIG_BOOTSPLASH),y)
        @printf "    BOOTSPLASH $(CONFIG_FALLBACK_BOOTSPLASH_FILE)\n"
        $(CBFSTOOL) $@.tmp add $(CONFIG_FALLBACK_BOOTSPLASH_FILE) bootsplash.jpg bootsplash
+endif
+ifeq ($(CONFIG_GEODE_VSA),y)
+       @printf "    VSA        $(CONFIG_VSA_FILE)\n"
+       $(OBJCOPY) --set-start 0x20 --adjust-vma 0x60000 -I binary -O elf32-i386 -B i386 $(CONFIG_VSA_FILE) $(obj)/vsa.o
+       $(LD) -e 0x60020 --section-start .data=0x60000 $(obj)/vsa.o -o $(obj)/vsa.elf
+       $(CBFSTOOL) $@.tmp add-stage $(obj)/vsa.elf vsa
 endif
        mv $@.tmp $@
        @printf "    CBFSPRINT  $(subst $(obj)/,,$(@))\n\n"
 endif
        mv $@.tmp $@
        @printf "    CBFSPRINT  $(subst $(obj)/,,$(@))\n\n"
index f4fa709a9965adf9222faaa156d46d27561f42ee..8aa3420ecb5baff90a6240867b45547f6b76275a 100644 (file)
@@ -30,3 +30,21 @@ config DCACHE_RAM_SIZE
        default 0x01000
        depends on CPU_AMD_GX2
 
        default 0x01000
        depends on CPU_AMD_GX2
 
+config GEODE_VSA
+       bool "Add a VSA image"
+       depends on CPU_AMD_GX2
+       help
+         Select this option if you have an AMD Geode GX2 vsa that you would
+         like to add to your ROM.
+
+         You will be able to specify the location and file name of the
+         image later.
+
+config VSA_FILE
+       string "AMD Geode GX2 VSA path and filename"
+       depends on GEODE_VSA
+       default "gpl_vsa_gx_102.bin"
+       help
+         The path and filename of the file to use as VSA.
+
+
index 4bcf31bc5785f9f98e9f3e57e3b6bc00bc642454..769c600a462c43f8fb39a4ed2160aa2033cf6254 100644 (file)
@@ -11,3 +11,21 @@ config DCACHE_RAM_SIZE
        default 0x8000
        depends on CPU_AMD_LX
 
        default 0x8000
        depends on CPU_AMD_LX
 
+config GEODE_VSA
+       bool "Add a VSA image"
+       depends on CPU_AMD_LX
+       help
+         Select this option if you have an AMD Geode LX vsa that you would
+         like to add to your ROM.
+
+         You will be able to specify the location and file name of the
+         image later.
+
+config VSA_FILE
+       string "AMD Geode LX VSA path and filename"
+       depends on GEODE_VSA
+       default "gpl_vsa_lx_102.bin"
+       help
+         The path and filename of the file to use as VSA.
+
+