drivers: mcux_gpt: convert to DT_INST defines
Convert driver to use DT_INST_ defines and remove Kconfig per instance enablement in favor of DT_INST_ define existing. Also, remove the aliases that had been used for this driver in nxp_rt.dtsi. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
c3f4c1d02b
commit
41fcf784e9
5 changed files with 12 additions and 28 deletions
|
@ -52,12 +52,6 @@ if COUNTER
|
|||
config COUNTER_MCUX_GPT
|
||||
default y if HAS_MCUX_GPT
|
||||
|
||||
config COUNTER_MCUX_GPT1
|
||||
default y if HAS_MCUX_GPT
|
||||
|
||||
config COUNTER_MCUX_GPT2
|
||||
default y if HAS_MCUX_GPT
|
||||
|
||||
endif # COUNTER
|
||||
|
||||
config SPI_MCUX_LPSPI
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
#define DT_MCUX_CCM_BASE_ADDRESS DT_NXP_IMX_CCM_400FC000_BASE_ADDRESS
|
||||
#define DT_MCUX_CCM_NAME DT_NXP_IMX_CCM_400FC000_LABEL
|
||||
|
||||
#define DT_RTC_0_NAME DT_NXP_IMX_GPT_COUNTER_1_LABEL
|
||||
#define DT_RTC_1_NAME DT_NXP_IMX_GPT_COUNTER_2_LABEL
|
||||
#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_ETH_MCUX_0_NAME DT_NXP_KINETIS_ETHERNET_402D8000_LABEL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue