AMD S3: The offset of the nv storage depends on config.h

Change-Id: Ic8410fb706dce677c7218d19030d84b64cda7b7f
Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Signed-off-by: zheng Bao <fishbaozi@gmail.com>
Reviewed-on: http://review.coreboot.org/1485
Tested-by: build bot (Jenkins)
Reviewed-by: Anton Kochkov <anton.kochkov@gmail.com>
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
Zheng Bao 2012-08-27 17:45:01 +08:00 committed by Alexandru Gagniuc
parent 83a6dbd006
commit eb1d39bac4
6 changed files with 35 additions and 6 deletions

View File

@ -14,8 +14,3 @@ source src/southbridge/amd/sb800/Kconfig
source src/southbridge/amd/cimx/Kconfig
source src/southbridge/amd/agesa/Kconfig
source src/southbridge/amd/sr5650/Kconfig
# This can be overriden by mainboard/Kconfig
config S3_VOLATILE_POS
hex
default 0xFFFF0000

View File

@ -19,7 +19,7 @@ subdirs-$(CONFIG_SOUTHBRIDGE_AMD_AGESA_HUDSON) += agesa
ifeq ($(CONFIG_HAVE_ACPI_RESUME), y)
ifeq ($(CONFIG_CPU_AMD_AGESA), y)
$(obj)/s3.rom:
$(obj)/s3.rom: $(obj)/config.h
echo " S3 NVRAM $(CONFIG_S3_VOLATILE_POS) (S3 storage area)"
# force C locale, so cygwin awk doesn't try to interpret the 0xff below as UTF-8 (or worse)
LC_ALL=C awk 'BEGIN {for (i=0; i<32768; i++) {printf "%c", 255}}' > $@.tmp

View File

@ -205,4 +205,12 @@ config RAID_MISC_ROM_POSITION
The CONFIG_ROM_SIZE must larger than 0x100000.
endif
config S3_VOLATILE_POS
hex "S3 volatile storage position"
default 0xFFFF0000
depends on HAVE_ACPI_RESUME
help
For a system with S3 feature, the BIOS needs to save some data to
non-volitile storage at cold boot stage.
endif

View File

@ -59,5 +59,14 @@ config REDIRECT_SBCIMX_TRACE_TO_SERIAL
debug information to the serial console.
Warning: Only enable this option when debuging or tracing AMD CIMX code.
config S3_VOLATILE_POS
hex "S3 volatile storage position"
default 0xFFFF0000
depends on HAVE_ACPI_RESUME
help
For a system with S3 feature, the BIOS needs to save some data to
non-volitile storage at cold boot stage.
endif #SOUTHBRIDGE_AMD_CIMX_SB700

View File

@ -122,5 +122,13 @@ config RAID_MISC_ROM_POSITION
endif
config S3_VOLATILE_POS
hex "S3 volatile storage position"
default 0xFFFF0000
depends on HAVE_ACPI_RESUME
help
For a system with S3 feature, the BIOS needs to save some data to
non-volitile storage at cold boot stage.
endif #SOUTHBRIDGE_AMD_CIMX_SB800

View File

@ -52,5 +52,14 @@ config ACPI_SCI_IRQ
config BOOTBLOCK_SOUTHBRIDGE_INIT
string
default "southbridge/amd/cimx/sb900/bootblock.c"
config S3_VOLATILE_POS
hex "S3 volatile storage position"
default 0xFFFF0000
depends on HAVE_ACPI_RESUME
help
For a system with S3 feature, the BIOS needs to save some data to
non-volitile storage at cold boot stage.
endif #SOUTHBRIDGE_AMD_CIMX_SB900