drivers: mcux_lptmr_timer: Fix compat string error
Fix error due to compatible string changing in DT and forgetting to update this driver with the change. Also make the counter symbol hidden. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
parent
5a4fa06c67
commit
90986e7e22
3 changed files with 18 additions and 2 deletions
|
@ -12,7 +12,7 @@ config COUNTER_MCUX_LPTMR
|
||||||
Enable support for the MCUX Low Power Timer (LPTMR).
|
Enable support for the MCUX Low Power Timer (LPTMR).
|
||||||
|
|
||||||
config COUNTER_MCUX_KINETIS_LPTMR
|
config COUNTER_MCUX_KINETIS_LPTMR
|
||||||
bool "Deprecated DT compatible"
|
bool
|
||||||
default y
|
default y
|
||||||
depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED
|
depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED
|
||||||
select DEPRECATED
|
select DEPRECATED
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
config MCUX_LPTMR_TIMER
|
config MCUX_LPTMR_TIMER
|
||||||
bool "MCUX LPTMR timer"
|
bool "MCUX LPTMR timer"
|
||||||
default y
|
default y
|
||||||
depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED
|
depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED || \
|
||||||
|
MCUX_KINETIS_LPTMR
|
||||||
depends on !COUNTER_MCUX_LPTMR
|
depends on !COUNTER_MCUX_LPTMR
|
||||||
depends on PM
|
depends on PM
|
||||||
select SYSTEM_TIMER_HAS_DISABLE_SUPPORT
|
select SYSTEM_TIMER_HAS_DISABLE_SUPPORT
|
||||||
|
@ -14,3 +15,13 @@ config MCUX_LPTMR_TIMER
|
||||||
This module implements a kernel device driver for the NXP MCUX Low
|
This module implements a kernel device driver for the NXP MCUX Low
|
||||||
Power Timer (LPTMR) and provides the standard "system clock driver"
|
Power Timer (LPTMR) and provides the standard "system clock driver"
|
||||||
interfaces.
|
interfaces.
|
||||||
|
|
||||||
|
config MCUX_KINETIS_LPTMR
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED
|
||||||
|
select DEPRECATED
|
||||||
|
help
|
||||||
|
The compatible string "nxp,kinetis-lptmr" should
|
||||||
|
be swiched to "nxp,lptmr" in DT. The former will
|
||||||
|
be removed eventually.
|
||||||
|
|
|
@ -4,7 +4,12 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <zephyr/devicetree.h>
|
||||||
|
#if DT_HAS_COMPAT_STATUS_OKAY(nxp_kinetis_lptmr)
|
||||||
#define DT_DRV_COMPAT nxp_kinetis_lptmr
|
#define DT_DRV_COMPAT nxp_kinetis_lptmr
|
||||||
|
#else
|
||||||
|
#define DT_DRV_COMPAT nxp_lptmr
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <zephyr/init.h>
|
#include <zephyr/init.h>
|
||||||
#include <zephyr/drivers/timer/system_timer.h>
|
#include <zephyr/drivers/timer/system_timer.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue