diff options
author | Subrata Banik <subratabanik@google.com> | 2024-02-08 01:05:02 +0530 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2024-02-13 09:52:46 +0000 |
commit | 9083f1c501fe18d03c0e4c05f7a2e430933c71b7 (patch) | |
tree | e904bc4e711cb50411148353d4c17287eb3089bd /src/soc/intel/alderlake/include | |
parent | 3e4395a8e8799109f7f8c22b5c9b7a3a1d462ce3 (diff) |
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 <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80403
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/alderlake/include')
-rw-r--r-- | src/soc/intel/alderlake/include/soc/systemagent.h | 9 |
1 files changed, 0 insertions, 9 deletions
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); |