soc/intel/common/timer: Move USE_LEGACY_8254_TIMER into common/block/timer
This patch moves USE_LEGACY_8254_TIMER Kconfig into common/block/timer for better code sharing. Also ported CB:33512 for SPT and ICP PCH. Change-Id: Ic767ff97aaa3eb7fa35ffa38fa416d006eaa6e78 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34132 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
@@ -96,16 +96,6 @@ static const struct reg_script pch_misc_init_script[] = {
|
||||
REG_SCRIPT_END
|
||||
};
|
||||
|
||||
static void clock_gate_8254(struct device *dev)
|
||||
{
|
||||
const config_t *config = dev->chip_info;
|
||||
|
||||
if (!config->clock_gate_8254)
|
||||
return;
|
||||
|
||||
itss_clock_gate_8254();
|
||||
}
|
||||
|
||||
void lpc_soc_init(struct device *dev)
|
||||
{
|
||||
const config_t *const config = dev->chip_info;
|
||||
@@ -125,5 +115,4 @@ void lpc_soc_init(struct device *dev)
|
||||
soc_pch_pirq_init(dev);
|
||||
setup_i8259();
|
||||
i8259_configure_irq_trigger(9, 1);
|
||||
clock_gate_8254(dev);
|
||||
}
|
||||
|
Reference in New Issue
Block a user