Intel cpus: cache actual size of the Flash ROM device
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Mon, 27 Feb 2012 22:24:15 +0000 (00:24 +0200)
committerPatrick Georgi <patrick@georgi-clan.de>
Sat, 31 Mar 2012 09:54:37 +0000 (11:54 +0200)
commit325b92f64a62f355715a45470e41407ce3c39c1e
treea86107ccafc56b5a879d554cea975965bba3f7e2
parent5a660ca2293cbf4c1ae44a2f37f9f389124eb749
Intel cpus: cache actual size of the Flash ROM device

Cache was enabled for the last 4 MB below 4 GB when ramstage is
loaded. This does not cover the case of a 8 MB Flash and could
overlap with some system device placed at high memory.

Use the actual device size for the cache region. Mainboard
may override this with Kconfig CACHE_ROM_SIZE if necessary.

Change-Id: I622223b1e2af0b3c1831f3570b74eacfde7189dc
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/641
Tested-by: build bot (Jenkins)
Reviewed-by: Idwer Vollering <vidwer@gmail.com>
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
src/cpu/intel/car/cache_as_ram_ht.inc
src/mainboard/Kconfig