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:
parent
91c47c0dea
commit
de64078102
|
@ -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);
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue