coreboot/src/soc
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
..
amd soc/amd/stoneyridge: Correct PSP SecureOs Kconfig symbol 2019-03-18 09:11:54 +00:00
cavium coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
imgtec src: Drop unused include <timestamp.h> 2019-03-07 17:17:12 +00:00
intel soc/intel/cannonlake: Fix return values for get_param_value 2019-03-20 13:49:54 +00:00
mediatek src: Drop unused '#include <halt.h>' 2019-03-16 11:46:58 +00:00
nvidia src: Drop unused '#include <halt.h>' 2019-03-16 11:46:58 +00:00
qualcomm qcs405: Add DRAM resources 2019-03-18 18:18:52 +00:00
rockchip rockchip/rk3399: Remove obsolete BL31 resource reservation 2019-03-19 21:40:15 +00:00
samsung src: Drop unused 'include <cbfs.h>' 2019-03-19 17:14:39 +00:00
sifive src/mb/sifive/hifive-unleashed: initialize Gigabit Ethernet Controller 2019-03-18 09:12:46 +00:00
ucb riscv: Add initial support for 32bit boards 2019-02-13 04:49:14 +00:00