Skip to content

soc: arm: xilinx_zynq7000: add MMU PTEs for all AXI GPIO instances #46463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions soc/arm/xilinx_zynq7000/xc7zxxx/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
/* System Level Control Registers (SLCR) */
#define SLCR_UNLOCK 0x0008
#define SLCR_UNLOCK_KEY 0xdf0d
#define AXI_GPIO_MMU_ENTRY(id)\
MMU_REGION_FLAT_ENTRY("axigpio",\
DT_REG_ADDR(id),\
DT_REG_SIZE(id),\
MT_DEVICE | MATTR_SHARED | MPERM_R | MPERM_W),

static const struct arm_mmu_region mmu_regions[] = {

Expand Down Expand Up @@ -68,6 +73,8 @@ static const struct arm_mmu_region mmu_regions[] = {
MT_DEVICE | MATTR_SHARED | MPERM_R | MPERM_W),
#endif

DT_FOREACH_STATUS_OKAY(xlnx_xps_gpio_1_00_a, AXI_GPIO_MMU_ENTRY)

};

const struct arm_mmu_config mmu_config = {
Expand Down
7 changes: 7 additions & 0 deletions soc/arm/xilinx_zynq7000/xc7zxxxs/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
/* System Level Configuration Registers */
#define SLCR_UNLOCK 0x0008
#define SLCR_UNLOCK_KEY 0xdf0d
#define AXI_GPIO_MMU_ENTRY(id)\
MMU_REGION_FLAT_ENTRY("axigpio",\
DT_REG_ADDR(id),\
DT_REG_SIZE(id),\
MT_DEVICE | MATTR_SHARED | MPERM_R | MPERM_W),

static const struct arm_mmu_region mmu_regions[] = {

Expand Down Expand Up @@ -68,6 +73,8 @@ static const struct arm_mmu_region mmu_regions[] = {
MT_DEVICE | MATTR_SHARED | MPERM_R | MPERM_W),
#endif

DT_FOREACH_STATUS_OKAY(xlnx_xps_gpio_1_00_a, AXI_GPIO_MMU_ENTRY)

};

const struct arm_mmu_config mmu_config = {
Expand Down