soc/intel/common/block: Move tco common functions into block/smbus
This patch cleans soc/intel/{apl/cnl/icl/skl} by moving common soc code into common/block/smbus. BUG=b:78109109 BRANCH=NONE TEST=Build and boot KBL/CNL/APL/ICL platform. Change-Id: I34b33922cafee9f31702587e0f9c03b64f0781b8 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Signed-off-by: Maulik V Vaghela <maulik.v.vaghela@intel.com> Reviewed-on: https://review.coreboot.org/c/26166 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
committed by
Patrick Georgi
parent
e7184b0ad0
commit
7bc4dc5648
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* This file is part of the coreboot project.
|
||||
*
|
||||
* Copyright (C) 2016 Intel Corp.
|
||||
* Copyright (C) 2016-2018 Intel Corp.
|
||||
* (Written by Andrey Petrov <andrey.petrov@intel.com> for Intel Corp.)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <intelblocks/rtc.h>
|
||||
#include <intelblocks/systemagent.h>
|
||||
#include <intelblocks/pmclib.h>
|
||||
#include <intelblocks/tco.h>
|
||||
#include <intelblocks/uart.h>
|
||||
#include <soc/iomap.h>
|
||||
#include <soc/cpu.h>
|
||||
@@ -87,8 +88,6 @@ static void enable_pmcbar(void)
|
||||
|
||||
void bootblock_soc_early_init(void)
|
||||
{
|
||||
uint32_t reg;
|
||||
|
||||
enable_pmcbar();
|
||||
|
||||
/* Clear global reset promotion bit */
|
||||
@@ -110,10 +109,8 @@ void bootblock_soc_early_init(void)
|
||||
/* Initialize GPE for use as interrupt status */
|
||||
pmc_gpe_init();
|
||||
|
||||
/* Stop TCO timer */
|
||||
reg = inl(ACPI_BASE_ADDRESS + TCO1_CNT);
|
||||
reg |= TCO_TMR_HLT;
|
||||
outl(reg, ACPI_BASE_ADDRESS + TCO1_CNT);
|
||||
/* Program TCO Timer Halt */
|
||||
tco_configure();
|
||||
|
||||
/* Use Nx and paging to prevent the frontend from writing back dirty
|
||||
* cache-as-ram lines to backing store that doesn't exist when the L1I
|
||||
|
Reference in New Issue
Block a user