drivers: entropy: mcux_trng: convert to DT_INST defines
Convert driver to use DT_INST_ defines. The preferred defines for drivers are DT_INST_. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
a9e68d61df
commit
a49de1543b
4 changed files with 1 additions and 13 deletions
|
@ -34,7 +34,7 @@ static const struct entropy_driver_api entropy_mcux_trng_api_funcs = {
|
|||
};
|
||||
|
||||
static struct mcux_entropy_config entropy_mcux_config = {
|
||||
.base = (TRNG_Type *)DT_ENTROPY_MCUX_TRNG_BASE_ADDRESS
|
||||
.base = (TRNG_Type *)DT_INST_0_NXP_KINETIS_TRNG_BASE_ADDRESS
|
||||
};
|
||||
|
||||
static int entropy_mcux_trng_init(struct device *);
|
||||
|
|
|
@ -21,10 +21,6 @@
|
|||
#define DT_IRQ_ETH_IEEE1588_TMR DT_NXP_KINETIS_PTP_402D8000_PTP_IRQ_0
|
||||
#define DT_ETH_MCUX_0_IRQ_PRI DT_NXP_KINETIS_ETHERNET_402D8000_IRQ_0_PRIORITY
|
||||
|
||||
#define DT_ENTROPY_MCUX_TRNG_BASE_ADDRESS DT_NXP_KINETIS_TRNG_400CC000_BASE_ADDRESS
|
||||
#define DT_ENTROPY_MCUX_TRNG_IRQ DT_NXP_KINETIS_TRNG_400CC000_IRQ_0
|
||||
#define DT_ENTROPY_MCUX_TRNG_IRQ_PRI DT_NXP_KINETIS_TRNG_400CC000_IRQ_0_PRIORITY
|
||||
#define DT_ENTROPY_MCUX_TRNG_NAME DT_NXP_KINETIS_TRNG_400CC000_LABEL
|
||||
#define CONFIG_ENTROPY_NAME DT_NXP_KINETIS_TRNG_400CC000_LABEL
|
||||
|
||||
#define DT_USBD_MCUX_EHCI_NAME DT_NXP_KINETIS_USBD_402E0000_LABEL
|
||||
|
|
|
@ -15,10 +15,6 @@
|
|||
#define DT_ADC_0_IRQ_PRI DT_NXP_KINETIS_ADC16_4003B000_IRQ_0_PRIORITY
|
||||
#define DT_ADC_0_NAME DT_NXP_KINETIS_ADC16_4003B000_LABEL
|
||||
|
||||
#define DT_ENTROPY_MCUX_TRNG_BASE_ADDRESS DT_NXP_KINETIS_TRNG_400A0000_BASE_ADDRESS
|
||||
#define DT_ENTROPY_MCUX_TRNG_IRQ DT_NXP_KINETIS_TRNG_400A0000_IRQ_0
|
||||
#define DT_ENTROPY_MCUX_TRNG_IRQ_PRI DT_NXP_KINETIS_TRNG_400A0000_IRQ_0_PRIORITY
|
||||
#define DT_ENTROPY_MCUX_TRNG_NAME DT_NXP_KINETIS_TRNG_400A0000_LABEL
|
||||
#define CONFIG_ENTROPY_NAME DT_NXP_KINETIS_TRNG_400A0000_LABEL
|
||||
|
||||
#define DT_RTC_0_NAME DT_NXP_KINETIS_RTC_4003D000_LABEL
|
||||
|
|
|
@ -34,10 +34,6 @@
|
|||
#define DT_FLASH_DEV_BASE_ADDRESS DT_NXP_KINETIS_FTFA_40020000_BASE_ADDRESS
|
||||
#define DT_FLASH_DEV_NAME DT_NXP_KINETIS_FTFA_40020000_LABEL
|
||||
|
||||
#define DT_ENTROPY_MCUX_TRNG_BASE_ADDRESS DT_NXP_KINETIS_TRNG_40029000_BASE_ADDRESS
|
||||
#define DT_ENTROPY_MCUX_TRNG_IRQ DT_NXP_KINETIS_TRNG_40029000_IRQ_0
|
||||
#define DT_ENTROPY_MCUX_TRNG_IRQ_PRI DT_NXP_KINETIS_TRNG_40029000_IRQ_0_PRIORITY
|
||||
#define DT_ENTROPY_MCUX_TRNG_NAME DT_NXP_KINETIS_TRNG_40029000_LABEL
|
||||
#define CONFIG_ENTROPY_NAME DT_NXP_KINETIS_TRNG_40029000_LABEL
|
||||
|
||||
#endif /* CONFIG_SOC_MKW40Z4 || CONFIG_SOC_MKW41Z4 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue