the following patch was just integrated into master: commit 3e68cafc46254c90812c9891b95355c6e0bffae9 Author: Duncan Laurie dlaurie@chromium.org Date: Thu Oct 31 08:26:23 2013 -0700
Add a generic register script handler
This is based on the RCBA configuration setup from haswell. It handles PCI, BARs, IO, MMIO, and baytrail-specific IOSF. I did not extend it to handle MSR yet but that would be another potential register type.
There are a number of approaches to this kind of thing, but in the end they have a lot of switch statements and a mass of #defines. I'm not particularly set on any of the details so comments welcome.
BUG=chrome-os-partner:23635 BRANCH=rambi TEST=emerge-rambi chromeos-coreboot-rambi
Change-Id: Ib873936ecf20fc996a8feeb72b9d04ddb523211f Signed-off-by: Duncan Laurie dlaurie@chromium.org Reviewed-on: https://chromium-review.googlesource.com/175206 Commit-Queue: Aaron Durbin adurbin@chromium.org Tested-by: Aaron Durbin adurbin@chromium.org Signed-off-by: Aaron Durbin adurbin@chromium.org
See http://review.coreboot.org/4923 for details.
-gerrit