soc: nxp_imx: 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
d267ad1b22
commit
9acb2f9f1b
3 changed files with 8 additions and 8 deletions
|
@ -10,8 +10,8 @@
|
|||
|
||||
#define DT_NUM_MPU_REGIONS DT_ARM_ARMV7M_MPU_E000ED90_ARM_NUM_MPU_REGIONS
|
||||
|
||||
#define DT_RTC_0_NAME DT_INST_0_NXP_IMX_GPT_LABEL
|
||||
#define DT_RTC_1_NAME DT_INST_1_NXP_IMX_GPT_LABEL
|
||||
#define DT_RTC_0_NAME DT_LABEL(DT_INST(0, nxp_imx_gpt))
|
||||
#define DT_RTC_1_NAME DT_LABEL(DT_INST(1, nxp_imx_gpt))
|
||||
|
||||
#define DT_ETH_MCUX_0_NAME DT_NXP_KINETIS_ETHERNET_402D8000_LABEL
|
||||
#define DT_ETH_MCUX_0_MAC DT_NXP_KINETIS_ETHERNET_402D8000_LOCAL_MAC_ADDRESS
|
||||
|
|
|
@ -15,11 +15,11 @@ MEMORY
|
|||
#if (DT_MMIO_SRAM_80000000_SIZE > 0) && !defined(CONFIG_DATA_SEMC)
|
||||
SDRAM (wx) : ORIGIN = DT_MMIO_SRAM_80000000_BASE_ADDRESS, LENGTH = DT_MMIO_SRAM_80000000_SIZE
|
||||
#endif
|
||||
#if (DT_INST_0_NXP_IMX_DTCM_SIZE > 0) && !defined(CONFIG_DATA_DTCM)
|
||||
DTCM (wx) : ORIGIN = DT_INST_0_NXP_IMX_DTCM_BASE_ADDRESS, LENGTH = DT_INST_0_NXP_IMX_DTCM_SIZE
|
||||
#if (DT_REG_SIZE(DT_INST(0, nxp_imx_dtcm)) > 0) && !defined(CONFIG_DATA_DTCM)
|
||||
DTCM (wx) : ORIGIN = DT_REG_ADDR(DT_INST(0, nxp_imx_dtcm)), LENGTH = DT_REG_ADDR(DT_INST(0, nxp_imx_dtcm))
|
||||
#endif
|
||||
#if (DT_INST_0_NXP_IMX_ITCM_SIZE > 0) && !defined(CONFIG_CODE_ITCM)
|
||||
ITCM (wx) : ORIGIN = DT_INST_0_NXP_IMX_ITCM_BASE_ADDRESS, LENGTH = DT_INST_0_NXP_IMX_ITCM_SIZE
|
||||
#if (DT_REG_SIZE(DT_INST(0, nxp_imx_itcm)) > 0) && !defined(CONFIG_CODE_ITCM)
|
||||
ITCM (wx) : ORIGIN = DT_REG_ADDR(DT_INST(0, nxp_imx_itcm)), LENGTH = DT_REG_ADDR(DT_INST(0, nxp_imx_itcm))
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -181,9 +181,9 @@ static ALWAYS_INLINE void clock_init(void)
|
|||
|
||||
#if CONFIG_USB_DC_NXP_EHCI
|
||||
CLOCK_EnableUsbhs0PhyPllClock(kCLOCK_Usb480M,
|
||||
DT_INST_0_NXP_KINETIS_USBD_CLOCKS_CLOCK_FREQUENCY);
|
||||
DT_PROP_BY_PHANDLE(DT_INST(0, nxp_kinetis_usbd), clocks, clock_frequency));
|
||||
CLOCK_EnableUsbhs0Clock(kCLOCK_Usb480M,
|
||||
DT_INST_0_NXP_KINETIS_USBD_CLOCKS_CLOCK_FREQUENCY);
|
||||
DT_PROP_BY_PHANDLE(DT_INST(0, nxp_kinetis_usbd), clocks, clock_frequency));
|
||||
USB_EhciPhyInit(kUSB_ControllerEhci0, CPU_XTAL_CLK_HZ, &usbPhyConfig);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue