soc/intel/skylake: Unify serial IRQ options
We had two ways to configure the serial IRQ mode. One time in the devicetree for FSP and one time through Kconfig for coreboot. We'll use `enum serirq_mode` from soc/intel/common/ as a devicetree option instead. As the default is `quiet mode` here and that is the most common mode, this saves us a lot of lines. In four cases kblrvp8, 11 and librem 13v2, 15v3, we had conflicting settings in devicetree and Kconfig. We'll maintain the `continuous` selection, although it might be that coreboot overrode this earlier on the kblrvps. Note: A lot of Google boards have serial IRQ enabled, while the pin seems to be unconnected? Change-Id: I79f0cd302e335d8dcf8bf6bc32f3d40ca6713e5c Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/31596 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
committed by
Patrick Georgi
parent
ff79341a80
commit
44e89af6e6
@@ -22,6 +22,7 @@
|
||||
#include <fsp/util.h>
|
||||
#include <intelblocks/chip.h>
|
||||
#include <intelblocks/itss.h>
|
||||
#include <intelblocks/lpc_lib.h>
|
||||
#include <intelblocks/xdci.h>
|
||||
#include <intelpch/lockdown.h>
|
||||
#include <soc/acpi.h>
|
||||
@@ -190,8 +191,9 @@ void soc_silicon_init_params(SILICON_INIT_UPD *params)
|
||||
params->PmConfigPwrBtnOverridePeriod =
|
||||
config->PmConfigPwrBtnOverridePeriod;
|
||||
params->PmConfigPwrCycDur = config->PmConfigPwrCycDur;
|
||||
params->SerialIrqConfigSirqEnable = config->SerialIrqConfigSirqEnable;
|
||||
params->SerialIrqConfigSirqMode = config->SerialIrqConfigSirqMode;
|
||||
params->SerialIrqConfigSirqEnable = config->serirq_mode != SERIRQ_OFF;
|
||||
params->SerialIrqConfigSirqMode =
|
||||
config->serirq_mode == SERIRQ_CONTINUOUS;
|
||||
params->SerialIrqConfigStartFramePulse =
|
||||
config->SerialIrqConfigStartFramePulse;
|
||||
|
||||
|
Reference in New Issue
Block a user