diff options
author | Subrata Banik <subratabanik@google.com> | 2024-07-16 12:56:38 +0000 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2024-07-18 06:00:51 +0000 |
commit | 4c5c68588251d6cee630ae809ef737498f2bd05f (patch) | |
tree | 470af7f5acc19c4500daf0f3c30f631a08298bf3 /src/soc/intel/common/block/include | |
parent | 59093890573acb11ef8d2aff506bdc412704d9de (diff) |
soc/intel/cmn/cpu: Introduce common CAR APIs
This patch adds `car_lib.c` to the IA common code to consolidate
SoC-agnostic CAR APIs. Initially, it includes `car_report_cache_info()`
to provide a unified way to read cache information, reducing the need
for SoC-specific implementations.
TEST=Builds successfully for google/rex.
Change-Id: I2ff84b27736057d19d4ec68c9afcb9b22e778f55
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83480
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <ericllai@google.com>
Diffstat (limited to 'src/soc/intel/common/block/include')
-rw-r--r-- | src/soc/intel/common/block/include/intelblocks/car_lib.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/include/intelblocks/car_lib.h b/src/soc/intel/common/block/include/intelblocks/car_lib.h new file mode 100644 index 0000000000..f106874c9c --- /dev/null +++ b/src/soc/intel/common/block/include/intelblocks/car_lib.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef SOC_INTEL_COMMON_BLOCK_CAR_LIB_H +#define SOC_INTEL_COMMON_BLOCK_CAR_LIB_H + +#include <types.h> + +/* Gathers and prints information about the CPU's L3 cache */ +void car_report_cache_info(void); + +#endif /* SOC_INTEL_COMMON_BLOCK_CAR_LIB_H */ |