drivers: clock_control: mcux_mcg: convert to DT_INST defines
Convert driver to use DT_INST_ defines. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
ee53047aff
commit
6ad07b6a2a
4 changed files with 1 additions and 7 deletions
|
@ -57,7 +57,7 @@ static const struct clock_control_driver_api mcux_mcg_driver_api = {
|
||||||
.get_rate = mcux_mcg_get_rate,
|
.get_rate = mcux_mcg_get_rate,
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_AND_API_INIT(mcux_mcg, DT_MCG_NAME,
|
DEVICE_AND_API_INIT(mcux_mcg, DT_INST_0_NXP_KINETIS_MCG_LABEL,
|
||||||
&mcux_mcg_init,
|
&mcux_mcg_init,
|
||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
#define DT_SIM_BASE_ADDRESS DT_NXP_KINETIS_SIM_40047000_BASE_ADDRESS
|
#define DT_SIM_BASE_ADDRESS DT_NXP_KINETIS_SIM_40047000_BASE_ADDRESS
|
||||||
#define DT_SIM_NAME DT_NXP_KINETIS_SIM_40047000_LABEL
|
#define DT_SIM_NAME DT_NXP_KINETIS_SIM_40047000_LABEL
|
||||||
|
|
||||||
#define DT_MCG_NAME DT_NXP_KINETIS_MCG_40064000_LABEL
|
|
||||||
|
|
||||||
#define DT_RTC_0_NAME DT_NXP_KINETIS_RTC_4003D000_LABEL
|
#define DT_RTC_0_NAME DT_NXP_KINETIS_RTC_4003D000_LABEL
|
||||||
|
|
||||||
#define DT_FLASH_DEV_BASE_ADDRESS DT_NXP_KINETIS_FTFE_40020000_BASE_ADDRESS
|
#define DT_FLASH_DEV_BASE_ADDRESS DT_NXP_KINETIS_FTFE_40020000_BASE_ADDRESS
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
/* SoC level DTS fixup file */
|
/* SoC level DTS fixup file */
|
||||||
#define DT_NUM_IRQ_PRIO_BITS DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
#define DT_NUM_IRQ_PRIO_BITS DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||||
|
|
||||||
#define DT_MCG_NAME DT_NXP_KINETIS_MCG_40064000_LABEL
|
|
||||||
|
|
||||||
#define DT_SIM_NAME DT_NXP_KINETIS_SIM_40047000_LABEL
|
#define DT_SIM_NAME DT_NXP_KINETIS_SIM_40047000_LABEL
|
||||||
#ifdef DT_NXP_KINETIS_SIM_40047000_CLKOUT_DIVIDER
|
#ifdef DT_NXP_KINETIS_SIM_40047000_CLKOUT_DIVIDER
|
||||||
#define DT_SIM_CLKOUT_DIVIDER DT_NXP_KINETIS_SIM_40047000_CLKOUT_DIVIDER
|
#define DT_SIM_CLKOUT_DIVIDER DT_NXP_KINETIS_SIM_40047000_CLKOUT_DIVIDER
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
#define DT_SIM_BASE_ADDRESS DT_NXP_KINETIS_SIM_40047000_BASE_ADDRESS
|
#define DT_SIM_BASE_ADDRESS DT_NXP_KINETIS_SIM_40047000_BASE_ADDRESS
|
||||||
#define DT_SIM_NAME DT_NXP_KINETIS_SIM_40047000_LABEL
|
#define DT_SIM_NAME DT_NXP_KINETIS_SIM_40047000_LABEL
|
||||||
|
|
||||||
#define DT_MCG_NAME DT_NXP_KINETIS_MCG_40064000_LABEL
|
|
||||||
|
|
||||||
#define DT_RTC_0_NAME DT_NXP_KINETIS_RTC_4003D000_LABEL
|
#define DT_RTC_0_NAME DT_NXP_KINETIS_RTC_4003D000_LABEL
|
||||||
|
|
||||||
#if defined(CONFIG_SOC_MKW22D5) || defined(CONFIG_SOC_MKW24D5)
|
#if defined(CONFIG_SOC_MKW22D5) || defined(CONFIG_SOC_MKW24D5)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue