coreboot-kgpe-d16/src/mainboard/amd/olivehill
Kyösti Mälkki 107f72e674 Re-declare CACHE_ROM_SIZE as aligned ROM_SIZE for MTRR
This change allows Kconfig options ROM_SIZE and CBFS_SIZE to be
set with values that are not power of 2. The region programmed
as WB cacheable will include all of ROM_SIZE.

Side-effects to consider:

Memory region below flash may be tagged WRPROT cacheable. As an
example, with ROM_SIZE of 12 MB, CACHE_ROM_SIZE would be 16 MB.
Since this can overlap CAR, we add an explicit test and fail
on compile should this happen. To work around this problem, one
needs to use CACHE_ROM_SIZE_OVERRIDE in the mainboard Kconfig and
define a smaller region for WB cache.

With this change flash regions outside CBFS are also tagged WRPROT
cacheable. This covers IFD and ME and sections ChromeOS may use.

Change-Id: I5e577900ff7e91606bef6d80033caaed721ce4bf
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/4625
Tested-by: build bot (Jenkins)
Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com>
2014-01-15 15:26:48 +01:00
..
acpi Correct file permissions. 2013-12-07 00:39:09 +01:00
acpi_tables.c amd/olivehill: Fix the double spaces in copyright header 2013-11-24 06:07:15 +01:00
agesawrapper.c Re-declare CACHE_ROM_SIZE as aligned ROM_SIZE for MTRR 2014-01-15 15:26:48 +01:00
agesawrapper.h amd/olivehill: Fix the double spaces in copyright header 2013-11-24 06:07:15 +01:00
BiosCallOuts.c
BiosCallOuts.h
buildOpts.c AMD f15tn, f16kb: Remove CDIT table and DMI table 2013-11-22 20:29:06 +01:00
cmos.layout amd/olivehill: Fix the double spaces in copyright header 2013-11-24 06:07:15 +01:00
devicetree.cb
dsdt.asl amd/olivehill: Fix the double spaces in copyright header 2013-11-24 06:07:15 +01:00
get_bus_conf.c amd/olivehill: Fix the double spaces in copyright header 2013-11-24 06:07:15 +01:00
irq_tables.c amd/olivehill: Fix the double spaces in copyright header 2013-11-24 06:07:15 +01:00
Kconfig AMD AGESA: Drop MEM_TRAIN_SEQ 2013-12-26 23:24:06 +01:00
mainboard.c
Makefile.inc amd/olivehill: Fix the double spaces in copyright header 2013-11-24 06:07:15 +01:00
mptable.c amd/olivehill: Fix the double spaces in copyright header 2013-11-24 06:07:15 +01:00
OptionsIds.h amd/olivehill: Fix the double spaces in copyright header 2013-11-24 06:07:15 +01:00
PlatformGnbPcie.c AMD Olive Hill: Eliminate unnecessary memory copy 2013-08-05 22:09:06 +02:00
PlatformGnbPcieComplex.h amd/olivehill: Fix the double spaces in copyright header 2013-11-24 06:07:15 +01:00
romstage.c amd/olivehill: Fix the double spaces in copyright header 2013-11-24 06:07:15 +01:00