coreboot/src
Stefan Reinauer 1244f4b52f Rework Sandybridge MRC cache handling
- Separate Sandybridge from ChromeOS a bit
  The Sandybridge code depends on chromeos features a whole lot.
  As a first step, provide a code path to look up the MRC cache
  without depending on u-boot.

- Move mrc cache handling to separate file
  This enables us to handle the MRC cache from ramstage,
  where we can write the flash safely (eg. to update the
  cache).
  Also teach it to lookup the current MRC cache from CBMEM,
  as the original data block isn't available anymore.

After all the preparations, finally write to the SPI
as necessary. It's a simple round robin wear levelling
that erases the entire MRC cache region when it's full
and starts from the beginning.

Change-Id: I4751385574cf709b03d5c9d153b7481ffc90ce12
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/1001
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2012-05-11 00:29:44 +02:00
..
arch/x86 Unmark source files as executables 2012-05-10 08:44:08 +02:00
boot Clean up #ifs 2012-05-08 00:34:34 +02:00
console Add support to run SMM handler in TSEG instead of ASEG 2012-04-04 04:49:09 +02:00
cpu Some more #if cleanup 2012-05-08 00:38:11 +02:00
devices Clean up #ifs 2012-05-08 00:34:34 +02:00
drivers Add SPI flash driver 2012-05-10 23:52:44 +02:00
ec Add EC component for SMSC MEC1308/1310 2012-04-02 18:42:40 +02:00
include Add SPI flash driver 2012-05-10 23:52:44 +02:00
lib Don't loop infinitely long on serial comm failures 2012-05-08 04:34:26 +02:00
mainboard Unmark source files as executables 2012-05-10 08:44:08 +02:00
northbridge Rework Sandybridge MRC cache handling 2012-05-11 00:29:44 +02:00
southbridge Add SPI flash driver 2012-05-10 23:52:44 +02:00
superio Unmark source files as executables 2012-05-10 08:44:08 +02:00
vendorcode CIMx: Allow #define LEGACY_FREE overrides 2012-05-10 21:17:36 +02:00
Kconfig Add SPI flash driver 2012-05-10 23:52:44 +02:00
Kconfig.deprecated_options Unify ID_SECTION_OFFSET and mark it deprecated 2012-01-18 11:21:39 +01:00