summaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
authorMarc Jones <marcjones@sysproconsulting.com>2020-07-23 17:41:46 -0600
committerMarc Jones <marc@marcjonesconsulting.com>2020-10-03 03:36:24 +0000
commit18b1984f8666fbbac40b08c8de86cef15a9d9a9b (patch)
treefbf1a8a43916b443179be7f9e230e21dfe3bcb0b /src/soc/intel
parente2f6c7fb99ce0a5446d9b3a9e8fa2e871a548047 (diff)
soc/intel/xeon_sp/include: De-duplicate .h files
Move duplicate .h files to top level xeon_sp/include/soc from silicon specific cpx/include/soc and skx/include/soc. Change-Id: I11d8a95a4b2f9451615b236798b3bd030c724858 Signed-off-by: Marc Jones <marcjones@sysproconsulting.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45221 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Jay Talbott <JayTalbott@sysproconsulting.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/xeon_sp/cpx/include/soc/irq.h9
-rw-r--r--src/soc/intel/xeon_sp/cpx/include/soc/msr.h108
-rw-r--r--src/soc/intel/xeon_sp/include/soc/acpi.h (renamed from src/soc/intel/xeon_sp/cpx/include/soc/acpi.h)0
-rw-r--r--src/soc/intel/xeon_sp/include/soc/irq.h (renamed from src/soc/intel/xeon_sp/skx/include/soc/irq.h)0
-rw-r--r--src/soc/intel/xeon_sp/include/soc/msr.h (renamed from src/soc/intel/xeon_sp/skx/include/soc/msr.h)0
-rw-r--r--src/soc/intel/xeon_sp/include/soc/nvs.h (renamed from src/soc/intel/xeon_sp/cpx/include/soc/nvs.h)0
-rw-r--r--src/soc/intel/xeon_sp/skx/include/soc/acpi.h19
-rw-r--r--src/soc/intel/xeon_sp/skx/include/soc/nvs.h17
8 files changed, 0 insertions, 153 deletions
diff --git a/src/soc/intel/xeon_sp/cpx/include/soc/irq.h b/src/soc/intel/xeon_sp/cpx/include/soc/irq.h
deleted file mode 100644
index efd50577b6..0000000000
--- a/src/soc/intel/xeon_sp/cpx/include/soc/irq.h
+++ /dev/null
@@ -1,9 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#ifndef _SOC_IRQ_H_
-#define _SOC_IRQ_H_
-
-#define PCH_IRQ10 10
-#define PCH_IRQ11 11
-
-#endif /* _SOC_IRQ_H_ */
diff --git a/src/soc/intel/xeon_sp/cpx/include/soc/msr.h b/src/soc/intel/xeon_sp/cpx/include/soc/msr.h
deleted file mode 100644
index 922bce94b6..0000000000
--- a/src/soc/intel/xeon_sp/cpx/include/soc/msr.h
+++ /dev/null
@@ -1,108 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#ifndef _SOC_MSR_H_
-#define _SOC_MSR_H_
-
-#include <intelblocks/msr.h>
-
-#define IA32_MCG_CAP 0x179
-#define IA32_MCG_CAP_COUNT_MASK 0xff
-#define IA32_MCG_CAP_CTL_P_BIT 8
-#define IA32_MCG_CAP_CTL_P_MASK (1 << IA32_MCG_CAP_CTL_P_BIT)
-
-#define IA32_MCG_CTL 0x17b
-
-/* IA32_MISC_ENABLE bits */
-#define FAST_STRINGS_ENABLE_BIT (1 << 0)
-#define SPEED_STEP_ENABLE_BIT (1 << 16)
-#define MONIOR_ENABLE_BIT (1 << 18)
-
-#define MSR_IA32_ENERGY_PERF_BIAS 0x1b0
-
-/* MSR_PKG_CST_CONFIG_CONTROL bits */
-#define MSR_PKG_CST_CONFIG_CONTROL 0xe2
-#define PKG_CSTATE_LIMIT_SHIFT 0 /* 0:3 */
-/* No package C-state limit. All C-States supported by the processor are available. */
-#define PKG_CSTATE_LIMIT_MASK (0xf << PKG_CSTATE_LIMIT_SHIFT)
-#define PKG_CSTATE_NO_LIMIT (0x7 << PKG_CSTATE_LIMIT_SHIFT)
-#define IO_MWAIT_REDIRECTION_SHIFT 10
-#define IO_MWAIT_REDIRECTION_ENABLE (1 << IO_MWAIT_REDIRECTION_SHIFT)
-#define CFG_LOCK_SHIFT 15
-#define CFG_LOCK_ENABLE (1 << CFG_LOCK_SHIFT)
-
-/* MSR_PMG_IO_CAPTURE_BASE bits */
-#define MSR_PMG_IO_CAPTURE_BASE 0xe4
-#define LVL_2_BASE_ADDRESS_SHIFT 0 /* 15:0 bits */
-#define LVL_2_BASE_ADDRESS (0x0514 << LVL_2_BASE_ADDRESS_SHIFT)
-#define CST_RANGE_SHIFT 16 /* 18:16 bits */
-#define CST_RANGE_MAX_C6 (0x1 << CST_RANGE_SHIFT)
-
-/* MSR_POWER_CTL bits */
-#define MSR_POWER_CTL 0x1fc
-#define BIDIR_PROCHOT_ENABLE_SHIFT 0
-#define BIDIR_PROCHOT_ENABLE (1 << BIDIR_PROCHOT_ENABLE_SHIFT)
-#define FAST_BRK_SNP_ENABLE_SHIFT 3
-#define FAST_BRK_SNP_ENABLE (1 << FAST_BRK_SNP_ENABLE_SHIFT)
-#define FAST_BRK_INT_ENABLE_SHIFT 4
-#define FAST_BRK_INT_ENABLE (1 << FAST_BRK_INT_ENABLE_SHIFT)
-#define PHOLD_CST_PREVENTION_INIT_SHIFT 6
-#define PHOLD_CST_PREVENTION_INIT_VALUE (1 << PHOLD_CST_PREVENTION_INIT_SHIFT)
-#define ENERGY_PERF_BIAS_ACCESS_ENABLE_SHIFT 18
-#define ENERGY_PERF_BIAS_ACCESS_ENABLE (1 << ENERGY_PERF_BIAS_ACCESS_ENABLE_SHIFT)
-#define PROCHOT_OUTPUT_DISABLE_SHIFT 21
-#define PROCHOT_OUTPUT_DISABLE (1 << PROCHOT_OUTPUT_DISABLE_SHIFT)
-#define PWR_PERF_TUNING_DYN_SWITCHING_SHIFT 24
-#define PWR_PERF_TUNING_DYN_SWITCHING_ENABLE (1 << PWR_PERF_TUNING_DYN_SWITCHING_SHIFT)
-#define PROCHOT_LOCK_SHIFT 27
-#define PROCHOT_LOCK_ENABLE (1 << PROCHOT_LOCK_SHIFT)
-#define LTR_IIO_DISABLE_SHIFT 29
-#define LTR_IIO_DISABLE (1 << LTR_IIO_DISABLE_SHIFT)
-
-/* MSR_IA32_PERF_CTRL (0x199) bits */
-#define MSR_IA32_PERF_CTRL 0x199
-#define PSTATE_REQ_SHIFT 8 /* 8:14 bits */
-#define PSTATE_REQ_MASK (0x7f << PSTATE_REQ_SHIFT)
-#define PSTATE_REQ_RATIO (0xa << PSTATE_REQ_SHIFT)
-
-/* MSR_MISC_PWR_MGMT bits */
-#define MSR_MISC_PWR_MGMT 0x1aa
-#define HWP_ENUM_SHIFT 6
-#define HWP_ENUM_ENABLE (1 << HWP_ENUM_SHIFT)
-#define HWP_EPP_SHIFT 12
-#define HWP_EPP_ENUM_ENABLE (1 << HWP_EPP_SHIFT)
-#define LOCK_MISC_PWR_MGMT_MSR_SHIFT 13
-#define LOCK_MISC_PWR_MGMT_MSR (1 << LOCK_MISC_PWR_MGMT_MSR_SHIFT)
-#define LOCK_THERM_INT_SHIFT 22
-#define LOCK_THERM_INT (1 << LOCK_THERM_INT_SHIFT)
-
-/* MSR_TURBO_RATIO_LIMIT bits */
-#define MSR_TURBO_RATIO_LIMIT 0x1ad
-
-/* MSR_TURBO_RATIO_LIMIT_CORES (0x1ae) */
-#define MSR_TURBO_RATIO_LIMIT_CORES 0x1ae
-
-/* MSR_VR_CURRENT_CONFIG bits */
-#define MSR_VR_CURRENT_CONFIG 0x601
-#define CURRENT_LIMIT_LOCK_SHIFT 31
-#define CURRENT_LIMIT_LOCK (0x1 << CURRENT_LIMIT_LOCK_SHIFT)
-
-/* MSR_TURBO_ACTIVATION_RATIO bits */
-#define MSR_TURBO_ACTIVATION_RATIO 0x64c
-#define MAX_NON_TURBO_RATIO_SHIFT 0
-#define MAX_NON_TURBO_RATIO (0xff << MAX_NON_TURBO_RATIO_SHIFT)
-
-/* MSR_ENERGY_PERF_BIAS_CONFIG bits */
-#define MSR_ENERGY_PERF_BIAS_CONFIG 0xa01
-#define EPB_ENERGY_POLICY_SHIFT 3
-#define EPB_ENERGY_POLICY_MASK (0xf << EPB_ENERGY_POLICY_SHIFT)
-
-/* MSR Protected Processor Inventory Number */
-#define MSR_PPIN_CTL 0x04e
-#define MSR_PPIN_CTL_LOCK 0x1
-#define MSR_PPIN_CTL_ENABLE_SHIFT 1
-#define MSR_PPIN_CTL_ENABLE (0x1 << MSR_PPIN_CTL_ENABLE_SHIFT)
-#define MSR_PPIN 0x04f
-#define MSR_PPIN_CAP_SHIFT 23
-#define MSR_PPIN_CAP (0x1 << MSR_PPIN_CAP_SHIFT)
-
-#endif /* _SOC_MSR_H_ */
diff --git a/src/soc/intel/xeon_sp/cpx/include/soc/acpi.h b/src/soc/intel/xeon_sp/include/soc/acpi.h
index 6a76ef222b..6a76ef222b 100644
--- a/src/soc/intel/xeon_sp/cpx/include/soc/acpi.h
+++ b/src/soc/intel/xeon_sp/include/soc/acpi.h
diff --git a/src/soc/intel/xeon_sp/skx/include/soc/irq.h b/src/soc/intel/xeon_sp/include/soc/irq.h
index 2517fb8704..2517fb8704 100644
--- a/src/soc/intel/xeon_sp/skx/include/soc/irq.h
+++ b/src/soc/intel/xeon_sp/include/soc/irq.h
diff --git a/src/soc/intel/xeon_sp/skx/include/soc/msr.h b/src/soc/intel/xeon_sp/include/soc/msr.h
index dd05adc83f..dd05adc83f 100644
--- a/src/soc/intel/xeon_sp/skx/include/soc/msr.h
+++ b/src/soc/intel/xeon_sp/include/soc/msr.h
diff --git a/src/soc/intel/xeon_sp/cpx/include/soc/nvs.h b/src/soc/intel/xeon_sp/include/soc/nvs.h
index becdd76570..becdd76570 100644
--- a/src/soc/intel/xeon_sp/cpx/include/soc/nvs.h
+++ b/src/soc/intel/xeon_sp/include/soc/nvs.h
diff --git a/src/soc/intel/xeon_sp/skx/include/soc/acpi.h b/src/soc/intel/xeon_sp/skx/include/soc/acpi.h
deleted file mode 100644
index 4574d9c531..0000000000
--- a/src/soc/intel/xeon_sp/skx/include/soc/acpi.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-
-#ifndef _SOC_ACPI_H_
-#define _SOC_ACPI_H_
-
-#include <acpi/acpi.h>
-#include <soc/nvs.h>
-
-#define MEM_BLK_COUNT 0x140
-typedef struct {
- uint8_t buf[32];
-} MEM_BLK;
-
-unsigned long northbridge_write_acpi_tables(const struct device *device,
- unsigned long current, struct acpi_rsdp *rsdp);
-
-void motherboard_fill_fadt(acpi_fadt_t *fadt);
-
-#endif /* _SOC_ACPI_H_ */
diff --git a/src/soc/intel/xeon_sp/skx/include/soc/nvs.h b/src/soc/intel/xeon_sp/skx/include/soc/nvs.h
deleted file mode 100644
index becdd76570..0000000000
--- a/src/soc/intel/xeon_sp/skx/include/soc/nvs.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#ifndef _SOC_NVS_H_
-#define _SOC_NVS_H_
-
-#include <stdint.h>
-
-/* TODO - this requires xeon sp, server board support */
-/* NOTE: We do not use intelblocks/nvs.h since it includes
- mostly client specific attributes */
-struct __packed global_nvs {
- uint8_t pcnt; /* 0x00 - Processor Count */
- uint32_t cbmc; /* 0x01 - coreboot memconsole */
- uint8_t rsvd3[251];
-};
-
-#endif /* _SOC_NVS_H_ */