diff options
author | Maxim Polyakov <max.senia.poliak@gmail.com> | 2021-01-14 01:37:26 +0300 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-01-19 09:03:00 +0000 |
commit | 91a4512adfe37438b193c3c982e06ec21f75edc4 (patch) | |
tree | 6dc8826397fcde39d4a72131cc30094cdb4b5876 /src/soc/intel/xeon_sp/include/soc/util.h | |
parent | 0c094aeb0e214b2abcef9a15ab23b1669a20d80e (diff) | |
download | coreboot-91a4512adfe37438b193c3c982e06ec21f75edc4.tar.gz coreboot-91a4512adfe37438b193c3c982e06ec21f75edc4.tar.bz2 coreboot-91a4512adfe37438b193c3c982e06ec21f75edc4.zip |
intel/xeon_sp, mb/ocp/deltalake: Rework get_stack_busnos()
- Return the busno based on the stack number.
- Replace pci_mmio_read_config32 with pci_io_read_config32 to get the
register value before mapping the MMIOCFG space.
- Remove the plural `s` as the function now provides one bus number.
Change-Id: I6e78e31b8ab89b1bdcfdeffae2e193e698385186
Signed-off-by: Maxim Polyakov <max.senia.poliak@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49457
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lance Zhao
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/intel/xeon_sp/include/soc/util.h')
-rw-r--r-- | src/soc/intel/xeon_sp/include/soc/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/xeon_sp/include/soc/util.h b/src/soc/intel/xeon_sp/include/soc/util.h index 2637017c89a9..8ff54fc1cbd6 100644 --- a/src/soc/intel/xeon_sp/include/soc/util.h +++ b/src/soc/intel/xeon_sp/include/soc/util.h @@ -8,7 +8,7 @@ void get_cpubusnos(uint32_t *bus0, uint32_t *bus1, uint32_t *bus2, uint32_t *bus3); void unlock_pam_regions(void); -void get_stack_busnos(uint32_t *bus); +uint8_t get_stack_busno(const uint8_t stack); msr_t read_msr_ppin(void); int get_threads_per_package(void); int get_platform_thread_count(void); |