cpu/amd: de-duplicate MSR include files

Change-Id: I8e01a4ab68b463efe02c27f589e0b4b719532eb5
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: http://review.coreboot.org/12510
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Stefan Reinauer 2015-11-22 23:40:29 +01:00
parent baa1acde7b
commit 991f18475c
11 changed files with 12 additions and 37 deletions

View File

@ -9,7 +9,7 @@
#include <pc80/mc146818rtc.h> #include <pc80/mc146818rtc.h>
#include <smp/spinlock.h> #include <smp/spinlock.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cpu/amd/model_fxx_msr.h> #include <cpu/amd/msr.h>
#include <cpu/amd/model_fxx_rev.h> #include <cpu/amd/model_fxx_rev.h>
#include <cpu/amd/amdk8_sysconf.h> #include <cpu/amd/amdk8_sysconf.h>

View File

@ -3,7 +3,7 @@
#include <arch/cpu.h> #include <arch/cpu.h>
#include <cpu/amd/multicore.h> #include <cpu/amd/multicore.h>
#ifdef __PRE_RAM__ #ifdef __PRE_RAM__
#include <cpu/amd/model_fxx_msr.h> #include <cpu/amd/msr.h>
#endif #endif
//called by bus_cpu_scan too //called by bus_cpu_scan too

View File

@ -31,7 +31,7 @@
#include <cpu/x86/cache.h> #include <cpu/x86/cache.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cpu/amd/multicore.h> #include <cpu/amd/multicore.h>
#include <cpu/amd/model_10xxx_msr.h> #include <cpu/amd/msr.h>
#define MCI_STATUS 0x401 #define MCI_STATUS 0x401

View File

@ -21,7 +21,7 @@
#include <device/pci_ids.h> #include <device/pci_ids.h>
#include <northbridge/amd/amdht/AsPsDefs.h> #include <northbridge/amd/amdht/AsPsDefs.h>
#include <cpu/amd/model_10xxx_msr.h> #include <cpu/amd/msr.h>
static struct monotonic_counter { static struct monotonic_counter {
int initialized; int initialized;

View File

@ -26,7 +26,7 @@
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <cpu/amd/multicore.h> #include <cpu/amd/multicore.h>
#include <cpu/amd/model_fxx_msr.h> #include <cpu/amd/msr.h>
#if CONFIG_WAIT_BEFORE_CPUS_INIT #if CONFIG_WAIT_BEFORE_CPUS_INIT
void cpus_ready_for_init(void) void cpus_ready_for_init(void)

View File

@ -22,7 +22,7 @@
#include <pc80/mc146818rtc.h> #include <pc80/mc146818rtc.h>
#include <smp/spinlock.h> #include <smp/spinlock.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cpu/amd/model_10xxx_msr.h> #include <cpu/amd/msr.h>
#include <cpu/amd/model_10xxx_rev.h> #include <cpu/amd/model_10xxx_rev.h>
#include <cpu/amd/amdfam10_sysconf.h> #include <cpu/amd/amdfam10_sysconf.h>

View File

@ -18,7 +18,7 @@
#include <arch/cpu.h> #include <arch/cpu.h>
#include <cpu/amd/multicore.h> #include <cpu/amd/multicore.h>
#ifdef __PRE_RAM__ #ifdef __PRE_RAM__
#include <cpu/amd/model_10xxx_msr.h> #include <cpu/amd/msr.h>
#endif #endif
//called by bus_cpu_scan too //called by bus_cpu_scan too

View File

@ -21,7 +21,7 @@
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cpu/amd/mtrr.h> #include <cpu/amd/mtrr.h>
#include <cpu/amd/model_fxx_msr.h> #include <cpu/amd/msr.h>
#include <cpu/x86/cache.h> #include <cpu/x86/cache.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <string.h> #include <string.h>

View File

@ -1,25 +0,0 @@
#ifndef CPU_AMD_MODEL_FXX_MSR_H
#define CPU_AMD_MODEL_FXX_MSR_H
#define SMM_BASE_MSR 0xc0010111
#define SMM_ADDR_MSR 0xc0010112
#define SMM_MASK_MSR 0xc0010113
#define HWCR_MSR 0xC0010015
#define NB_CFG_MSR 0xC001001f
#define LS_CFG_MSR 0xC0011020
#define IC_CFG_MSR 0xC0011021
#define DC_CFG_MSR 0xC0011022
#define BU_CFG_MSR 0xC0011023
#define CPU_ID_FEATURES_MSR 0xc0011004
/* D0 only */
#define CPU_ID_HYPER_EXT_FEATURES 0xc001100d
/* E0 only */
#define LOGICAL_CPUS_NUM_MSR 0xc001100d
#define CPU_ID_EXT_FEATURES_MSR 0xc0011005
#endif /* CPU_AMD_MODEL_FXX_MSR_H */

View File

@ -14,8 +14,8 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef CPU_AMD_MODEL_10XXX_MSR_H #ifndef CPU_AMD_MSR_H
#define CPU_AMD_MODEL_10XXX_MSR_H #define CPU_AMD_MSR_H
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
@ -42,4 +42,4 @@
#define LOGICAL_CPUS_NUM_MSR 0xC001100d #define LOGICAL_CPUS_NUM_MSR 0xC001100d
#define CPU_ID_EXT_FEATURES_MSR 0xC0011005 #define CPU_ID_EXT_FEATURES_MSR 0xC0011005
#endif /* CPU_AMD_MODEL_10XXX_MSR_H */ #endif /* CPU_AMD_MSR_H */

View File

@ -32,7 +32,7 @@
#include <cpu/x86/cache.h> #include <cpu/x86/cache.h>
#include <cpu/amd/mtrr.h> #include <cpu/amd/mtrr.h>
#include <cpu/amd/amdfam10_sysconf.h> #include <cpu/amd/amdfam10_sysconf.h>
#include <cpu/amd/model_10xxx_msr.h> #include <cpu/amd/msr.h>
#include <cpu/amd/family_10h-family_15h/ram_calc.h> #include <cpu/amd/family_10h-family_15h/ram_calc.h>
#if CONFIG_LOGICAL_CPUS #if CONFIG_LOGICAL_CPUS