drivers: clock_control: mcux_pcc: 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
6ad07b6a2a
commit
a32eed06f7
2 changed files with 3 additions and 6 deletions
|
@ -65,12 +65,12 @@ static const struct clock_control_driver_api mcux_pcc_api = {
|
||||||
.get_rate = mcux_pcc_get_rate,
|
.get_rate = mcux_pcc_get_rate,
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(DT_MCUX_PCC_0_NAME)
|
#if defined(DT_INST_0_NXP_KINETIS_PCC_LABEL)
|
||||||
static const struct mcux_pcc_config mcux_pcc0_config = {
|
static const struct mcux_pcc_config mcux_pcc0_config = {
|
||||||
.base_address = DT_MCUX_PCC_0_BASE_ADDRESS
|
.base_address = DT_INST_0_NXP_KINETIS_PCC_BASE_ADDRESS
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_AND_API_INIT(mcux_pcc0, DT_MCUX_PCC_0_NAME,
|
DEVICE_AND_API_INIT(mcux_pcc0, DT_INST_0_NXP_KINETIS_PCC_LABEL,
|
||||||
&mcux_pcc_init,
|
&mcux_pcc_init,
|
||||||
NULL, &mcux_pcc0_config,
|
NULL, &mcux_pcc0_config,
|
||||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_OBJECTS,
|
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_OBJECTS,
|
||||||
|
|
|
@ -15,9 +15,6 @@
|
||||||
#define DT_SIM_CLKOUT_SOURCE DT_NXP_KINETIS_KE1XF_SIM_40048000_CLKOUT_SOURCE
|
#define DT_SIM_CLKOUT_SOURCE DT_NXP_KINETIS_KE1XF_SIM_40048000_CLKOUT_SOURCE
|
||||||
#endif /* DT_NXP_KINETIS_KE1XF_SIM_40048000_CLKOUT_SOURCE */
|
#endif /* DT_NXP_KINETIS_KE1XF_SIM_40048000_CLKOUT_SOURCE */
|
||||||
|
|
||||||
#define DT_MCUX_PCC_0_NAME DT_NXP_KINETIS_PCC_40065000_LABEL
|
|
||||||
#define DT_MCUX_PCC_0_BASE_ADDRESS DT_NXP_KINETIS_PCC_40065000_BASE_ADDRESS
|
|
||||||
|
|
||||||
#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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue