coreboot-kgpe-d16/src
Aaron Durbin 57686f8485 x86: unify amd and non-amd MTRR routines
The amd_mtrr.c file contains a copy of the fixed MTRR algorithm.
However, the AMD code needs to handle the RdMem and WrMem attribute
bits in the fixed MTRR MSRs. Instead of duplicating the code
with the one slight change introduce a Kconfig option,
X86_AMD_FIXED_MTRRS, which indicates that the RdMem and WrMem fields
need to be handled for writeback fixed MTRR ranges.

The order of how the AMD MTRR setup routine is maintained by providing
a x86_setup_fixed_mtrrs_no_enable() function which does not enable
the fixed MTRRs after setting them up. All Kconfig files which had a
Makefile that included amd/mtrr in the subdirs-y now have a default
X86_AMD_FIXED_MTRRS selection. There may be some overlap with the
agesa and socket code, but I didn't know the best way to tease out
the interdependency.

Change-Id: I256d0210d1eb3004e2043b46374dcc0337432767
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/2866
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins)
2013-03-22 04:06:42 +01:00
..
arch Unify coreboot table generation 2013-03-22 00:17:55 +01:00
console Fix race condition building console code 2013-03-21 22:08:05 +01:00
cpu x86: unify amd and non-amd MTRR routines 2013-03-22 04:06:42 +01:00
device ramstage: prepare for relocation 2013-03-21 18:01:38 +01:00
drivers x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
ec x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
include x86: unify amd and non-amd MTRR routines 2013-03-22 04:06:42 +01:00
lib Unify coreboot table generation 2013-03-22 00:17:55 +01:00
mainboard Add support for ASUS F2A85-M board 2013-03-22 04:02:39 +01:00
northbridge haswell: use dynamic cbmem 2013-03-22 00:13:56 +01:00
southbridge Fix compilation of Intel LynxPoint based boards 2013-03-22 03:37:23 +01:00
superio x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
vendorcode Unify coreboot table generation 2013-03-22 00:17:55 +01:00
Kconfig coreboot: dynamic cbmem requirement 2013-03-22 00:13:42 +01:00