bsps/zynqmp: Add option to map PCIe address space

Added ability to map PCIe address space on ZynqMP.
This commit is contained in:
Aaron Nyholm
2026-02-06 10:14:48 +11:00
committed by Gedare Bloom
parent 632b1a755b
commit d62d6b659c
3 changed files with 36 additions and 0 deletions

View File

@@ -44,6 +44,13 @@ BSP_START_DATA_SECTION const aarch64_mmu_config_entry
aarch64_mmu_config_table[] = {
AARCH64_MMU_DEFAULT_SECTIONS,
{
#ifdef ZYNQMP_MMU_PCIE_ENABLE
/* PCIe low */
.begin = 0xe0000000,
.end = 0xf0000000,
.flags = AARCH64_MMU_DEVICE
}, {
#endif /* ZYNQMP_MMU_PCIE_ENABLE */
.begin = 0xf9000000U,
.end = 0xf9100000U,
.flags = AARCH64_MMU_DEVICE
@@ -69,6 +76,16 @@ aarch64_mmu_config_table[] = {
.begin = 0xb0000000U,
.end = 0xb0200000U,
.flags = AARCH64_MMU_DATA_RW
#ifdef ZYNQMP_MMU_PCIE_ENABLE
}, { /* PCIe high */
.begin = 0x600000000U,
.end = 0x800000000U,
.flags = AARCH64_MMU_DEVICE
}, { /* PCIe high */
.begin = 0x8000000000U,
.end = 0xc000000000U,
.flags = AARCH64_MMU_DEVICE
#endif /* ZYNQMP_MMU_PCIE_ENABLE */
}
};

View File

@@ -38,6 +38,8 @@ links:
uid: optclki2c1
- role: build-dependency
uid: optclkuart
- role: build-dependency
uid: optpciemmu
- role: build-dependency
uid: ../objclockarmgenerictimer
- role: build-dependency

View File

@@ -0,0 +1,17 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- get-integer: null
- define: null
build-type: option
copyrights:
- Copyright (C) 2026 Aaron Nyholm
default:
- enabled-by: true
value: false
description: |
Enable ZynqMP PCIe address space mapping
enabled-by: true
format: '{}'
links: []
name: ZYNQMP_MMU_PCIE_ENABLE
type: build