bootblock: Provide some common prototypes

The split of bootblock initialisation to cpu, northbridge and
southbridge is not specific to intel at all, create new header
<arch/bootblock.h> as AMD will want some of these too.

Change-Id: I702cc6bad4afee4f61acf58b9155608b28eb417e
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37429
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Kyösti Mälkki 2019-12-03 07:30:26 +02:00
parent 91c47c0dea
commit de64078102
23 changed files with 25 additions and 25 deletions

View File

@ -11,8 +11,8 @@
* GNU General Public License for more details.
*/
#ifndef _CPU_INTEL_CAR_BOOTBLOCK_H
#define _CPU_INTEL_CAR_BOOTBLOCK_H
#ifndef __ARCH_BOOTBLOCK_H__
#define __ARCH_BOOTBLOCK_H__
void bootblock_early_cpu_init(void);
void bootblock_early_northbridge_init(void);

View File

@ -12,7 +12,7 @@
*/
#include <bootblock_common.h>
#include <cpu/intel/car/bootblock.h>
#include <arch/bootblock.h>
#include <cpu/x86/bist.h>
static uint32_t saved_bist;

View File

@ -13,6 +13,7 @@
#include <stdint.h>
#include <arch/cpu.h>
#include <arch/bootblock.h>
#include <cpu/x86/msr.h>
#include <cpu/x86/mtrr.h>
#include <arch/io.h>
@ -21,7 +22,6 @@
#include "haswell.h"
#include <southbridge/intel/lynxpoint/pch.h>
#include <cpu/intel/car/bootblock.h>
static void set_flex_ratio_to_tdp_nominal(void)
{

View File

@ -12,11 +12,11 @@
*/
#include <stdint.h>
#include <arch/bootblock.h>
#include <arch/cpu.h>
#include <cpu/x86/msr.h>
#include <arch/io.h>
#include <halt.h>
#include <cpu/intel/car/bootblock.h>
#include "model_206ax.h"

View File

@ -11,7 +11,7 @@
* GNU General Public License for more details.
*/
#include <cpu/intel/car/bootblock.h>
#include <arch/bootblock.h>
#include <device/pci_ops.h>
/* Just re-define these instead of including gm45.h. It blows up romcc. */

View File

@ -11,8 +11,8 @@
* GNU General Public License for more details.
*/
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include <cpu/intel/car/bootblock.h>
#include "haswell.h"
void bootblock_early_northbridge_init(void)

View File

@ -11,7 +11,7 @@
* GNU General Public License for more details.
*/
#include <cpu/intel/car/bootblock.h>
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include "i945.h"

View File

@ -11,8 +11,8 @@
* GNU General Public License for more details.
*/
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include <cpu/intel/car/bootblock.h>
void bootblock_early_northbridge_init(void)
{

View File

@ -11,8 +11,8 @@
* GNU General Public License for more details.
*/
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include <cpu/intel/car/bootblock.h>
#include "pineview.h"
#define MMCONF_256_BUSSES 16

View File

@ -11,8 +11,8 @@
* GNU General Public License for more details.
*/
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include <cpu/intel/car/bootblock.h>
#include "sandybridge.h"
void bootblock_early_northbridge_init(void)

View File

@ -14,8 +14,8 @@
* GNU General Public License for more details.
*/
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include <cpu/intel/car/bootblock.h>
#include "x4x.h"
#include "iomap.h"

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <cpu/intel/car/bootblock.h>
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include <soc/iosf.h>
#include <soc/iomap.h>

View File

@ -14,15 +14,15 @@
*/
#include <stdint.h>
#include <arch/bootblock.h>
#include <arch/io.h>
#include <cpu/x86/cache.h>
#include <cpu/x86/msr.h>
#include <cpu/x86/mtrr.h>
#include <arch/io.h>
#include <halt.h>
#include <soc/rcba.h>
#include <soc/msr.h>
#include <delay.h>
#include <cpu/intel/car/bootblock.h>
static void set_flex_ratio_to_tdp_nominal(void)
{

View File

@ -13,6 +13,7 @@
* GNU General Public License for more details.
*/
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include <soc/iomap.h>
#include <soc/lpc.h>
@ -22,7 +23,6 @@
#include <reg_script.h>
#include <soc/pm.h>
#include <soc/romstage.h>
#include <cpu/intel/car/bootblock.h>
/*
* Enable Prefetching and Caching.

View File

@ -13,10 +13,10 @@
* GNU General Public License for more details.
*/
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include <soc/pci_devs.h>
#include <soc/systemagent.h>
#include <cpu/intel/car/bootblock.h>
void bootblock_early_northbridge_init(void)
{

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <cpu/intel/car/bootblock.h>
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include "pch.h"

View File

@ -15,10 +15,10 @@
*/
#include <stdint.h>
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include <device/pci_ids.h>
#include <device/pci_type.h>
#include <cpu/intel/car/bootblock.h>
#include "i82371eb.h"
#define PCI_ID(VENDOR_ID, DEVICE_ID) \

View File

@ -11,7 +11,7 @@
* GNU General Public License for more details.
*/
#include <cpu/intel/car/bootblock.h>
#include <arch/bootblock.h>
#include <device/pci_ops.h>
void bootblock_early_southbridge_init(void)

View File

@ -13,8 +13,8 @@
* GNU General Public License for more details.
*/
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include <cpu/intel/car/bootblock.h>
#include "i82801gx.h"
static void enable_spi_prefetch(void)

View File

@ -13,8 +13,8 @@
* GNU General Public License for more details.
*/
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include <cpu/intel/car/bootblock.h>
#include "i82801ix.h"

View File

@ -13,8 +13,8 @@
* GNU General Public License for more details.
*/
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include <cpu/intel/car/bootblock.h>
#include "i82801jx.h"
static void enable_spi_prefetch(void)

View File

@ -13,8 +13,8 @@
* GNU General Public License for more details.
*/
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include <cpu/intel/car/bootblock.h>
#include "pch.h"
#include "chip.h"

View File

@ -13,8 +13,8 @@
* GNU General Public License for more details.
*/
#include <arch/bootblock.h>
#include <device/pci_ops.h>
#include <cpu/intel/car/bootblock.h>
#include "pch.h"
/*