soc/intel/{skl,icl}: Move tco_configure() to bootblock

Backport commit 03ed5bff5c (soc/intel/cannonlake: Move tco_configure to
bootblock), commit bb50c67227 (soc/intel/tigerlake: Move tco_configure
to bootblock) and commit 60c619f6a3 (soc/intel/jasperlake: Move
tco_configure to bootblock) to other platforms. This is for consistency.

Change-Id: I31fd0ceb67eacf30aefa457d757bf0d7f4cd7e87
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50946
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Angel Pons 2021-02-19 20:28:20 +01:00
parent 4ace49c9a2
commit ec1b37decc
4 changed files with 8 additions and 8 deletions

View File

@ -2,6 +2,7 @@
#include <bootblock_common.h>
#include <intelblocks/systemagent.h>
#include <intelblocks/tco.h>
#include <intelblocks/uart.h>
#include <soc/bootblock.h>
@ -25,4 +26,7 @@ void bootblock_soc_init(void)
{
report_platform_info();
bootblock_pch_init();
/* Program TCO_BASE_ADDRESS and TCO Timer Halt */
tco_configure();
}

View File

@ -1,14 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <intelblocks/smbus.h>
#include <intelblocks/tco.h>
#include <soc/romstage.h>
void romstage_pch_init(void)
{
/* Programming TCO_BASE_ADDRESS and TCO Timer Halt */
tco_configure();
/* Program SMBUS_BASE_ADDRESS and Enable it */
smbus_common_init();
}

View File

@ -3,6 +3,7 @@
#include <bootblock_common.h>
#include <intelblocks/systemagent.h>
#include <intelblocks/gspi.h>
#include <intelblocks/tco.h>
#include <intelblocks/uart.h>
#include <soc/bootblock.h>
@ -33,4 +34,7 @@ void bootblock_soc_init(void)
report_platform_info();
bootblock_pch_init();
gspi_early_bar_init();
/* Program TCO_BASE_ADDRESS and TCO Timer Halt */
tco_configure();
}

View File

@ -1,14 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <intelblocks/smbus.h>
#include <intelblocks/tco.h>
#include <soc/romstage.h>
void romstage_pch_init(void)
{
/* Program TCO_BASE_ADDRESS and TCO Timer Halt */
tco_configure();
/* Program SMBUS_BASE_ADDRESS and enable it */
smbus_common_init();
}