summaryrefslogtreecommitdiff
path: root/src/northbridge/amd/amdk8/misc_control.c
diff options
context:
space:
mode:
authorJosef Kellermann <seppk@arcor.de>2011-02-24 14:35:42 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2011-02-24 14:35:42 +0000
commited1d116e62b57b9c5c8746d17ecbf842845d4be2 (patch)
tree71dc3c6ca2576a6c6d55e68b01601168b3387b1c /src/northbridge/amd/amdk8/misc_control.c
parent855224bb28031bd3d51fa53201fcd7efdd235ec6 (diff)
downloadcoreboot-ed1d116e62b57b9c5c8746d17ecbf842845d4be2.tar.xz
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
Diffstat (limited to 'src/northbridge/amd/amdk8/misc_control.c')
-rw-r--r--src/northbridge/amd/amdk8/misc_control.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/northbridge/amd/amdk8/misc_control.c b/src/northbridge/amd/amdk8/misc_control.c
index fa90a55ca5..4533818ef8 100644
--- a/src/northbridge/amd/amdk8/misc_control.c
+++ b/src/northbridge/amd/amdk8/misc_control.c
@@ -48,7 +48,10 @@ static void mcf3_read_resources(device_t dev)
}
iommu = 1;
- get_option(&iommu, "iommu");
+ if( get_option(&iommu, "iommu") < 0 )
+ {
+ iommu = CONFIG_IOMMU;
+ }
if (iommu) {
/* Add a GART aperture resource */