coreboot/src/soc/intel
Furquan Shaikh 4dfd8d690d soc/intel/cannonlake: Fix return values for get_param_value
Commit 41483c9 (soc/intel/cannonlake: Add required FSP UPD changes for
CML) changed the enum values for PCH_SERIAL_IO_MODE so that 0 is
invalid and valid values start from 1. However, get_param_value was
not updated to correctly subtract 1 before returning any value. This
change adds a macro PCH_SERIAL_IO_INDEX to apply the subtract 1
operation on any value that get_param_value needs to return.

BUG=b:128946016
TEST=Verified that hatch boots successfully.

Change-Id: I4e32fcd1efe4a535251f0ec58662a2dc5f70e8b0
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31974
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
Reviewed-by: Maulik V Vaghela <maulik.v.vaghela@intel.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2019-03-20 13:49:54 +00:00
..
apollolake src: Drop unused 'include <arch/acpigen.h>' 2019-03-12 07:27:28 +00:00
baytrail src: Drop unused '#include <halt.h>' 2019-03-16 11:46:58 +00:00
braswell soc/intel/braswell: Use IRQ 9 for SCI 2019-03-19 21:37:37 +00:00
broadwell src: Drop unused 'include <device/pciexp.h>' 2019-03-16 11:46:38 +00:00
cannonlake soc/intel/cannonlake: Fix return values for get_param_value 2019-03-20 13:49:54 +00:00
common Fix 'unsigned int' to bare use of 'unsigned' 2019-03-19 04:45:58 +00:00
denverton_ns src: Drop unused 'include <romstage_handoff.h>' 2019-03-18 12:05:59 +00:00
fsp_baytrail drivers/intel/fsp1_0: Deduplicate code 2019-03-16 09:01:50 +00:00
fsp_broadwell_de src: Drop unused 'include <romstage_handoff.h>' 2019-03-18 12:05:59 +00:00
icelake soc/intel/icelake: Enable support for FSP 2.1 specification 2019-03-19 21:42:30 +00:00
quark coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
skylake src: Drop unused 'include <romstage_handoff.h>' 2019-03-18 12:05:59 +00:00
Kconfig src/cpu: Remove dead sourced lines 2018-11-15 10:25:20 +00:00