From de640781020b10e72dd6a5cda26cab10932e94fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Tue, 3 Dec 2019 07:30:26 +0200 Subject: bootblock: Provide some common prototypes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The split of bootblock initialisation to cpu, northbridge and southbridge is not specific to intel at all, create new header as AMD will want some of these too. Change-Id: I702cc6bad4afee4f61acf58b9155608b28eb417e Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/37429 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/cpu/intel/car/bootblock.c | 2 +- src/cpu/intel/car/bootblock.h | 21 --------------------- src/cpu/intel/haswell/bootblock.c | 2 +- src/cpu/intel/model_206ax/bootblock.c | 2 +- 4 files changed, 3 insertions(+), 24 deletions(-) delete mode 100644 src/cpu/intel/car/bootblock.h (limited to 'src/cpu') diff --git a/src/cpu/intel/car/bootblock.c b/src/cpu/intel/car/bootblock.c index 664c2b5074..e60a65a7b2 100644 --- a/src/cpu/intel/car/bootblock.c +++ b/src/cpu/intel/car/bootblock.c @@ -12,7 +12,7 @@ */ #include -#include +#include #include static uint32_t saved_bist; diff --git a/src/cpu/intel/car/bootblock.h b/src/cpu/intel/car/bootblock.h deleted file mode 100644 index 5adfd8711d..0000000000 --- a/src/cpu/intel/car/bootblock.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#ifndef _CPU_INTEL_CAR_BOOTBLOCK_H -#define _CPU_INTEL_CAR_BOOTBLOCK_H - -void bootblock_early_cpu_init(void); -void bootblock_early_northbridge_init(void); -void bootblock_early_southbridge_init(void); - -#endif diff --git a/src/cpu/intel/haswell/bootblock.c b/src/cpu/intel/haswell/bootblock.c index 94e5d36e18..70a4682175 100644 --- a/src/cpu/intel/haswell/bootblock.c +++ b/src/cpu/intel/haswell/bootblock.c @@ -13,6 +13,7 @@ #include #include +#include #include #include #include @@ -21,7 +22,6 @@ #include "haswell.h" #include -#include static void set_flex_ratio_to_tdp_nominal(void) { diff --git a/src/cpu/intel/model_206ax/bootblock.c b/src/cpu/intel/model_206ax/bootblock.c index da0333f4bc..a504480bca 100644 --- a/src/cpu/intel/model_206ax/bootblock.c +++ b/src/cpu/intel/model_206ax/bootblock.c @@ -12,11 +12,11 @@ */ #include +#include #include #include #include #include -#include #include "model_206ax.h" -- cgit v1.2.3