baytrail: introduce pattrs
commit452d31ad752cff53776b1780e2dac76c67575997
authorAaron Durbin <adurbin@chromium.org>
Tue, 24 Sep 2013 21:47:49 +0000 (24 16:47 -0500)
committerAaron Durbin <adurbin@google.com>
Fri, 31 Jan 2014 19:42:37 +0000 (31 20:42 +0100)
tree1f63236cf1d503f327b093be41f9146b6eb50602
parent4c53df47302968fd6f90261d84c9d3c0f8e7bbc2
baytrail: introduce pattrs

The pattrs structure is intended for the supporting coreboot
code to reference instead of going back to the source of
the values (msrs, cpuid, etc). It essentially serves as a global
structure for collecting attributes about the platform/processor.

Additionally, the implementation provides a point during boot to
hoook work before device enumeration/initialization by providing
a init() function to soc_intel_baytrail_ops that is called before
device work in the boot state machine.

BUG=chrome-os-partner:22862
BUG=chrome-os-partner:22863
BRANCH=None
TEST=Built and booted. Noted pattrs output.

Change-Id: I073da8aca29635146fb0d4a2625b2b7564fd8414
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/170403
Reviewed-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: http://review.coreboot.org/4854
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
src/soc/intel/baytrail/Makefile.inc
src/soc/intel/baytrail/baytrail/lpc.h
src/soc/intel/baytrail/baytrail/msr.h
src/soc/intel/baytrail/baytrail/pattrs.h [new file with mode: 0644]
src/soc/intel/baytrail/baytrail/ramstage.h
src/soc/intel/baytrail/chip.c
src/soc/intel/baytrail/ramstage.c [new file with mode: 0644]