chipset_enable: Introduce enable_flash_ich_fwh_decode()
ICH2 (and C-ICH)/3/4/5 also have FWH_SEL1/2 registers but at
different addresses. In preparation for implementing fwh_idsel
parsing for older ICH chipsets extract the parameter handling
and add variables for the offsets.
While FWH_DEC_EN1 is a 16bit register for ICH6, it is two separate
8bit registers on ICH5 and earlier. Implement all accesses with two
byte instructions instead, to prepare for extended support.
Backports the upstream `commit 743babc875`.
BUG=chromium:478356
BRANCH=none
TEST=still builds
Change-Id: I216e45a7f9f1d037e630485f75fd38958a326b09
Signed-off-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/1760508
Reviewed-by: Sam McNally <sammc@chromium.org>
1 file changed