diff options
author | Marc Jones <marcjones@sysproconsulting.com> | 2020-10-05 17:11:13 -0600 |
---|---|---|
committer | Marc Jones <marc@marcjonesconsulting.com> | 2020-10-22 17:03:49 +0000 |
commit | 985d956833180679bcd8da8c9bbac7522d1f8b8e (patch) | |
tree | ba397de5c0f71e3e4ad1f2ed7d96556af4c42de6 /src/soc/intel/xeon_sp/skx/include | |
parent | 97321db21da8a1166b03bc8259c8a3adc83b191f (diff) |
soc/intel/xeon_sp/skx/: Clean up soc_util.c
Remove unused c_util.c helper functions and clean up soc_util.h in
preparation for merging common code with cpx/.
Change-Id: Iff825f64b665aadcf8eac8a404191c0b74f92abd
Signed-off-by: Marc Jones <marcjones@sysproconsulting.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46094
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Jay Talbott <JayTalbott@sysproconsulting.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/xeon_sp/skx/include')
-rw-r--r-- | src/soc/intel/xeon_sp/skx/include/soc/soc_util.h | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/soc/intel/xeon_sp/skx/include/soc/soc_util.h b/src/soc/intel/xeon_sp/skx/include/soc/soc_util.h index 0eac8368e0..d641f76a3d 100644 --- a/src/soc/intel/xeon_sp/skx/include/soc/soc_util.h +++ b/src/soc/intel/xeon_sp/skx/include/soc/soc_util.h @@ -5,34 +5,26 @@ #include <hob_iiouds.h> #include <hob_memmap.h> -#include <acpi/acpi.h> -#include <soc/util.h> struct iiostack_resource { uint8_t no_of_stacks; STACK_RES res[CONFIG_MAX_SOCKET * MAX_IIO_STACK]; }; -uintptr_t get_tolm(uint32_t bus); -void get_tseg_base_lim(uint32_t bus, uint32_t *base, uint32_t *limit); -uintptr_t get_cha_mmcfg_base(uint32_t bus); -uint32_t top_of_32bit_ram(void); // Top of 32bit usable memory +void get_iiostack_info(struct iiostack_resource *info); -uint32_t pci_read_mmio_reg(int bus, uint32_t dev, uint32_t func, int offset); +void xeonsp_init_cpu_config(void); -uint32_t get_socket_stack_busno(uint32_t socket, uint32_t stack); -void get_iiostack_info(struct iiostack_resource *info); +void config_reset_cpl3_csrs(void); -int get_threads_per_package(void); -int get_platform_thread_count(void); void get_core_thread_bits(uint32_t *core_bits, uint32_t *thread_bits); +void get_cpu_info_from_apicid(uint32_t apicid, uint32_t core_bits, uint32_t thread_bits, + uint8_t *package, uint8_t *core, uint8_t *thread); -void get_cpu_info_from_apicid(uint32_t apicid, uint32_t core_bits, - uint32_t thread_bits, uint8_t *package, uint8_t *core, uint8_t *thread); - +int get_platform_thread_count(void); +int get_threads_per_package(void); const struct SystemMemoryMapHob *get_system_memory_map(void); -void xeonsp_init_cpu_config(void); + void set_bios_init_completion(void); -void config_reset_cpl3_csrs(void); #endif /* _SOC_UTIL_H_ */ |