From b68039f0ed14884229faa5799621388662f13537 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 25 Mar 2020 09:56:06 -0500 Subject: [PATCH] soc: arm: qemu_cortex_a53: Convert to new DT_INST macros Convert older DT_INST_ macro use the new include/devicetree.h DT_INST macro APIs. Signed-off-by: Kumar Gala --- soc/arm/qemu_cortex_a53/mmu_regions.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/soc/arm/qemu_cortex_a53/mmu_regions.c b/soc/arm/qemu_cortex_a53/mmu_regions.c index 52413f6736e..e362738ec60 100644 --- a/soc/arm/qemu_cortex_a53/mmu_regions.c +++ b/soc/arm/qemu_cortex_a53/mmu_regions.c @@ -12,13 +12,13 @@ static const struct arm_mmu_region mmu_regions[] = { MMU_REGION_FLAT_ENTRY("GIC", - DT_INST_0_ARM_GIC_BASE_ADDRESS_0, - DT_INST_0_ARM_GIC_SIZE_0 * 2, + DT_REG_ADDR_BY_IDX(DT_INST(0, arm_gic), 0), + DT_REG_SIZE_BY_IDX(DT_INST(0, arm_gic), 0) * 2, MT_DEVICE_nGnRnE | MT_RW | MT_SECURE), MMU_REGION_FLAT_ENTRY("UART", - DT_INST_0_ARM_PL011_BASE_ADDRESS, - DT_INST_0_ARM_PL011_SIZE, + DT_REG_ADDR(DT_INST(0, arm_pl011)), + DT_REG_SIZE(DT_INST(0, arm_pl011)), MT_DEVICE_nGnRnE | MT_RW | MT_SECURE), MMU_REGION_FLAT_ENTRY("SRAM",