aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/denverton_ns
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-01-25 14:58:00 +0100
committerMichael Niewöhner <foss@mniewoehner.de>2021-01-25 19:32:28 +0000
commite53534eead659d57a16f52970a4dbb7419030e4c (patch)
treecf2a037cf8d7bfb0b7bc21f1f2c2e9d02d78a842 /src/soc/intel/denverton_ns
parenta1c247b55dfc182b365ac0630fc615277017631e (diff)
soc/intel/denverton_ns: Drop unused `pattrs.h`
Change-Id: I78ff11a56b38c4bc4f4f00115de1af4b73d4448c Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49901 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'src/soc/intel/denverton_ns')
-rw-r--r--src/soc/intel/denverton_ns/include/soc/pattrs.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/soc/intel/denverton_ns/include/soc/pattrs.h b/src/soc/intel/denverton_ns/include/soc/pattrs.h
deleted file mode 100644
index 224c56d531..0000000000
--- a/src/soc/intel/denverton_ns/include/soc/pattrs.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#ifndef _DENVERTON_NS_PATTRS_H_
-#define _DENVERTON_NS_PATTRS_H_
-
-#include <stdint.h>
-#include <cpu/x86/msr.h>
-
-enum { IACORE_MIN, IACORE_LFM, IACORE_MAX, IACORE_TURBO, IACORE_END };
-
-/* The pattrs structure is a common place to stash pertinent information
- * about the processor or platform. Instead of going to the source (msrs, cpuid)
- * every time an attribute is needed use the pattrs structure.
- */
-struct pattrs {
- msr_t platform_id;
- msr_t platform_info;
- int iacore_ratios[IACORE_END];
- int iacore_vids[IACORE_END];
- uint32_t cpuid;
- int revid;
- int stepping;
- const void *microcode_patch;
- int address_bits;
- int num_cpus;
- unsigned int bclk_khz;
-};
-
-/* This is just to hide the abstraction w/o relying on how the underlying
- * storage is allocated. */
-#define PATTRS_GLOB_NAME __global_pattrs
-#define DEFINE_PATTRS struct pattrs PATTRS_GLOB_NAME
-extern DEFINE_PATTRS;
-
-static inline const struct pattrs *pattrs_get(void)
-{
- return &PATTRS_GLOB_NAME;
-}
-
-#endif /* _DENVERTON_NS_PATTRS_H_ */