From 2683108188810d04a14c84eb48913978eb0e1851 Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Thu, 19 May 2022 15:06:15 +0100 Subject: [PATCH] soc/intel/apollolake: Hook up Legacy 8254 Timer Hook Timer8254ClkSetting to `legacy_8254_timer` cmos option. If that isn't set, fallback to the `USE_LEGACY_8254_TIMER` Kconfig option. Signed-off-by: Sean Rhodes Change-Id: I4f91cc2c8f48e9da47399059386092314b631b08 Reviewed-on: https://review.coreboot.org/c/coreboot/+/64522 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Felix Singer --- src/soc/intel/apollolake/chip.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/soc/intel/apollolake/chip.c b/src/soc/intel/apollolake/chip.c index 46fc904b6c..0458abd1d3 100644 --- a/src/soc/intel/apollolake/chip.c +++ b/src/soc/intel/apollolake/chip.c @@ -721,6 +721,10 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *silupd) if (is_devfn_enabled(PCH_DEVFN_SATA)) silconfig->SataSalpSupport = !(cfg->DisableSataSalpSupport); + /* 8254 Timer */ + bool use_8254 = get_uint_option("legacy_8254_timer", CONFIG(USE_LEGACY_8254_TIMER)); + silconfig->Timer8254ClkSetting = use_8254; + mainboard_silicon_init_params(silconfig); }