coreboot/src
Yidi Lin 93c147c5e6 commonlib/device_tree: Add dt_add_iommu_addr_prop function
`dt_add_reg_prop` and the newly introduced `dt_add_iommu_addr_prop`
share identical logic for building the binary data buffer, differing
only in the property name written to the Device Tree. Therefore,
refactor the shared logic into a new static helper function,
`dt_add_addr_and_size_prop`.

The existing `dt_add_reg_prop` is converted to a wrapper around this new
helper.

`dt_add_iommu_addr_prop` is introduced as a separate wrapper to
specifically add the `iommu-addresses` property. This property defines
reserved IOVA ranges or identity-mapped regions, such as a display
framebuffer configured by the bootloader. It is typically utilized
within the `reserved-memory` subsystem.

BUG=b:435289727
TEST=The below translation fault does not occur.
[    0.171028] arm-smmu-v3 30800000.iommu: TBU_id-2-fault_id:0x2000008(0x8), TF read in NORMAL world, iova:0xa3000000,  sid:144, ssid:0, ssidv:0, secsidv:0

Change-Id: Icedcce5681a7b659b11b7e7208663bc1d920ce3b
Signed-off-by: Yidi Lin <yidilin@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/89152
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-09-16 15:05:23 +00:00
..
acpi drivers/crb/tpm: Add new method to retrieve base address 2025-07-02 16:15:09 +00:00
arch cpu/intel/car/non-evict: Improve CAR setup 2025-09-04 17:13:12 +00:00
commonlib commonlib/device_tree: Add dt_add_iommu_addr_prop function 2025-09-16 15:05:23 +00:00
console console/i2c_smbus: Allow to send data w/o register offset 2024-07-11 00:06:22 +00:00
cpu cpu/intel/car/non-evict: Improve CAR setup 2025-09-04 17:13:12 +00:00
device device/azalia: Use clrsetbits32() and friends 2025-08-30 13:53:02 +00:00
drivers drivers/wifi/generic: Fix typo in header guard comment 2025-09-10 21:38:51 +00:00
ec mb/google/ocelot: Create ojal variant 2025-09-08 22:20:36 +00:00
include soc/intel/pantherlake: Add support for a new Panther Lake B0 SKU 2025-09-13 22:00:24 +00:00
lib lib/lzmadecode: Increase decoding speed by 30% 2025-09-09 14:40:45 +00:00
mainboard mb/google/fatcat/var/moonstone: Add to support ALC1320 Smart Amp 2025-09-16 15:04:51 +00:00
northbridge sb/intel/bd82x6x: Fix CPU replaced check 2025-09-02 17:08:06 +00:00
sbom sbom: Fix build with merged bootblock and romstage 2025-07-07 14:29:29 +00:00
security security/vboot: Back up CMOS data later boot phase 2025-06-05 13:36:19 +00:00
soc soc/mediatek/common: Add support for regulator VCN18 2025-09-16 15:04:31 +00:00
southbridge sb/intel/bd82x6x: Fix CPU replaced check 2025-09-02 17:08:06 +00:00
superio src/superio/nuvoton: Add HWM initialization code 2025-06-11 13:31:25 +00:00
vendorcode vc/intel/fsp: Update PTL FSP headers to FSP 3272_04 2025-08-19 11:29:21 +00:00
Kconfig security/vboot: Back up CMOS data later boot phase 2025-06-05 13:36:19 +00:00