- Build gpio.c into romstage- Add functions to translate the GPIO # to a pad #, then return the
value read from the GPIO.- Add functions to configure the GPIO - Function, Pull up/down, pull strength, Input/Output, and Output level.
Change-Id: Ic37dfc9a74a598023bdf797d31087428adec176a
52669ef fsp_baytrail: Add code to read GPIOs in romstage
src/soc/intel/fsp_baytrail/Makefile.inc | 1 +
src/soc/intel/fsp_baytrail/baytrail/gpio.h | 4 +
src/soc/intel/fsp_baytrail/gpio.c | 111 +++++++++++++++++++++++++++-
3 files changed, 115 insertions(+), 1 deletion(-)
Upstream: review.coreboot.org