blob: b6bc2ba14f151e5b2329dcb3dea14e9ca8760ef8 [file] [log] [blame]
Simon Glassdc796912019-12-08 17:32:10 -07001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2017 Intel Corporation.
4 * Take from coreboot project file of the same name
5 */
6
7#include <common.h>
8#include <asm/intel_regs.h>
9#include <asm/io.h>
10#include <asm/arch/systemagent.h>
11
12void enable_bios_reset_cpl(void)
13{
14 /*
15 * Set bits 0+1 of BIOS_RESET_CPL to indicate to the CPU
16 * that BIOS has initialised memory and power management
17 *
18 * The FSP-S does not do this. If we leave this as zero then I believe
19 * the power-aware interrupts don't work in Linux, and CPU 0 always gets
20 * the interrupt.
21 */
22 setbits_8(MCHBAR_REG(BIOS_RESET_CPL), 3);
23}