From 9083f1c501fe18d03c0e4c05f7a2e430933c71b7 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Thu, 8 Feb 2024 01:05:02 +0530 Subject: soc/intel/alderlake: Leverage IA common code for range calculations Improves code maintainability and potentially reduces redundancy by using the IA common implementation. Additionally, drop the unused macros from SoC local. TEST=Build and boot successful on google/marasov. Change-Id: I290fea99f04cfc9f18e5f1435ed07de42995869f Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/80403 Reviewed-by: Arthur Heymans Reviewed-by: Kapil Porwal Tested-by: build bot (Jenkins) --- src/soc/intel/alderlake/include/soc/systemagent.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/soc/intel/alderlake/include') diff --git a/src/soc/intel/alderlake/include/soc/systemagent.h b/src/soc/intel/alderlake/include/soc/systemagent.h index b7a2957c18..5d7f0d5171 100644 --- a/src/soc/intel/alderlake/include/soc/systemagent.h +++ b/src/soc/intel/alderlake/include/soc/systemagent.h @@ -64,15 +64,6 @@ static const struct sa_mmio_descriptor soc_vtd_resources[] = { #define LT_SECURITY_SIZE (128 * KiB) #define APIC_SIZE (1 * MiB) -#define MASK_PCIEXBAR_LENGTH 0xE /* bits [3:1] */ -#define PCIEXBAR_LENGTH_LSB 1 /* used to shift right */ -#define MASK_DSM_LENGTH 0xFF00 /* bits [15:8] */ -#define MASK_DSM_LENGTH_LSB 8 /* used to shift right */ -#define MASK_GSM_LENGTH 0xC0 /* bits [7:6] */ -#define MASK_GSM_LENGTH_LSB 6 /* used to shift right */ -#define MASK_DPR_LENGTH 0xFF0 /* bits [11:4] */ -#define MASK_DPR_LENGTH_LSB 4 /* used to shift right */ - uint64_t get_mmcfg_size(const struct device *dev); uint64_t get_dsm_size(const struct device *dev); uint64_t get_gsm_size(const struct device *dev); -- cgit v1.2.3