drivers: arm_cmsdk/arm: Convert drivers to new DT_INST macros

Convert older DT_INST_ macro use in arm_cmsdk/arm drivers to the new
include/devicetree.h DT_INST macro APIs.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-03-25 08:41:26 -05:00 committed by Kumar Gala
commit ff1eb62864
10 changed files with 190 additions and 172 deletions

View file

@ -23,8 +23,8 @@
* GIC Register Interface Base Addresses
*/
#define GIC_DIST_BASE DT_INST_0_ARM_GIC_BASE_ADDRESS_0
#define GIC_CPU_BASE DT_INST_0_ARM_GIC_BASE_ADDRESS_1
#define GIC_DIST_BASE DT_REG_ADDR_BY_IDX(DT_INST(0, arm_gic), 0)
#define GIC_CPU_BASE DT_REG_ADDR_BY_IDX(DT_INST(0, arm_gic), 1)
/*
* GIC Distributor Interface