drivers: mcux_gpt_timer: Enabled GPT timer on MIMXRT1064 EVK

This enables the GPT timer for use as a hardware clock on the
MIMXRT1064. The timer will be disabled when builds use the GPT timer as
a counter, and the build will fall back to using the Cortex M systick as
a timer. This was tested using the kernel tickless test, to verify the
driver functions as expected.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2021-10-14 09:24:30 -05:00 committed by Christopher Friedt
commit e99eb6bb70
5 changed files with 25 additions and 4 deletions

View file

@ -266,3 +266,10 @@ zephyr_udc0: &usb1 {
&adc1 {
status = "okay";
};
/* Enable GPT for use as a hardware timer. This disables Cortex Systick.
* to use systick, change this node from "gpt_hw_timer" to "systick"
*/
&gpt_hw_timer {
status = "okay";
};