Add compile-time defaults to some K8 CMOS options in case they're absent in CMOS

This affects the CMOS options iommu, ECC_memory, max_mem_clock,
hw_scrubber, interleave_chip_selects.
If they're absent in cmos.layout, a Kconfig value is used if it exists,
or a hardcoded default otherwise.

[Patrick: I changed the ramstage CMOS handling a bit, and dropped the
reliance of hw_scrubber on ECC RAM, as it has nothing to do with it -
it's the cache that's being scrubbed here.]

Signed-off-by: Josef Kellermann <seppk@arcor.de>
Acked-by: Patrick Georgi <patrick.georgi@secunet.com>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6380 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Josef Kellermann
2011-02-24 14:35:42 +00:00
committed by Patrick Georgi
parent 855224bb28
commit ed1d116e62
5 changed files with 45 additions and 10 deletions

View File

@ -14,6 +14,10 @@ config SET_FIDVID
default n
default y if K8_REV_F_SUPPORT
config HW_SCRUBBER
bool
default n
if SET_FIDVID
config SET_FIDVID_DEBUG
bool

View File

@ -264,7 +264,10 @@ static void init_ecc_memory(unsigned node_id)
/* See if we scrubbing should be enabled */
enable_scrubbing = 1;
get_option(&enable_scrubbing, "hw_scrubber");
if( get_option(&enable_scrubbing, "hw_scrubber") < 0 )
{
enable_scrubbing = CONFIG_HW_SCRUBBER;
}
/* Enable cache scrubbing at the lowest possible rate */
if (enable_scrubbing) {