diff options
author | Subrata Banik <subratabanik@google.com> | 2024-02-08 00:14:26 +0530 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2024-02-13 09:52:25 +0000 |
commit | 8b53204d803c51e952efa6d869dbcf7184df8eb2 (patch) | |
tree | ee12034680a9de617d411df715c479ca0598935d /src/soc/mediatek/mt8188 | |
parent | 23d8611d1708d48b1dcfd0fb0f9c358285d3b15a (diff) |
soc/intel/cmn/sa: Add APIs into System Agent (SA) common code
This commit streamlines code and strengthens common code robustness
by moving the following SoC-layer functions to the common layer:
- sa_get_mmcfg_size: Retrieves the MMIO (Memory-Mapped I/O)
configuration space size by reading offset
0x60 of the PCI Host Bridge (D0:F0).
- sa_get_dsm_size: Calculates the size of the DSM (Device Stolen
Memory) by reading offset 0x50 of the PCI
Host Bridge (D0:F0) to determine pre-allocated
memory for the IGD (Integrated Graphics Device).
- sa_get_gsm_size: Calculates the size of the GSM (Graphics Stolen
Memory) by reading offset 0x52 of the PCI Host
Bridge (D0:F0).
- sa_get_dpr_size: Determines the size of the DMA Protection
Range (DPR) by reading offset 0x5C of the PCI
Host Bridge (D0:F0).
TEST= Build and boot successful on google/screebo.
Change-Id: Ic00e001563ec6f0d737a445964c716b45db43327
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80362
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Diffstat (limited to 'src/soc/mediatek/mt8188')
0 files changed, 0 insertions, 0 deletions