soc/intel/common: refactor locate_vbt and vbt_get
commit9d3de2649f46cc85269b4877f0d6e715a4fec5aa
authorPatrick Georgi <pgeorgi@google.com>
Thu, 5 Oct 2017 16:10:09 +0000 (5 18:10 +0200)
committerPatrick Georgi <pgeorgi@google.com>
Fri, 6 Oct 2017 16:59:31 +0000 (6 16:59 +0000)
tree3c5dc7955bc90ff0a2c6c097f1c6453f3ec35bd7
parentcba7316c2662ee1c916345b034ca08dad43984f7
soc/intel/common: refactor locate_vbt and vbt_get

Instead of having all callers provide a region_device just for the
purpose of reading vbt.bin, let locate_vbt handle its entire life cycle,
simplifying the VBT access API.

Change-Id: Ib85e55164e217050b67674d020d17b2edf5ad14d
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/21897
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/drivers/intel/fsp2_0/graphics.c
src/soc/intel/apollolake/chip.c
src/soc/intel/cannonlake/chip.c
src/soc/intel/common/opregion.c
src/soc/intel/common/vbt.c
src/soc/intel/common/vbt.h