boards: arc: 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 <kumar.gala@linaro.org>
This commit is contained in:
parent
99b7f1772d
commit
8fb5364455
2 changed files with 5 additions and 5 deletions
|
@ -29,11 +29,11 @@ static struct arc_mpu_region mpu_regions[] = {
|
|||
REGION_KERNEL_RAM_ATTR | REGION_DYNAMIC),
|
||||
#endif
|
||||
|
||||
#if DT_INST_0_MMIO_SRAM_SIZE > 0
|
||||
#if DT_REG_SIZE(DT_INST(0, mmio_sram)) > 0
|
||||
/* Region DDR RAM */
|
||||
MPU_REGION_ENTRY("DDR RAM",
|
||||
DT_INST_0_MMIO_SRAM_BASE_ADDRESS,
|
||||
DT_INST_0_MMIO_SRAM_SIZE,
|
||||
DT_REG_ADDR(DT_INST(0, mmio_sram)),
|
||||
DT_REG_SIZE(DT_INST(0, mmio_sram)),
|
||||
AUX_MPU_ATTR_KW | AUX_MPU_ATTR_KR | AUX_MPU_ATTR_UR |
|
||||
AUX_MPU_ATTR_KE | AUX_MPU_ATTR_UE | REGION_DYNAMIC),
|
||||
#endif
|
||||
|
|
|
@ -22,8 +22,8 @@ static struct arc_mpu_region mpu_regions[] = {
|
|||
REGION_KERNEL_RAM_ATTR | REGION_DYNAMIC),
|
||||
/* Region DDR RAM */
|
||||
MPU_REGION_ENTRY("SRAM",
|
||||
DT_INST_0_MMIO_SRAM_BASE_ADDRESS,
|
||||
DT_INST_0_MMIO_SRAM_SIZE,
|
||||
DT_REG_ADDR(DT_INST(0, mmio_sram)),
|
||||
DT_REG_SIZE(DT_INST(0, mmio_sram)),
|
||||
REGION_KERNEL_RAM_ATTR |
|
||||
AUX_MPU_ATTR_KW | AUX_MPU_ATTR_KR | AUX_MPU_ATTR_UR |
|
||||
AUX_MPU_ATTR_KE | AUX_MPU_ATTR_UE | REGION_DYNAMIC),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue