boards: nxp: mimxrt700_evk: use ostimer as kernel tick for cm33_cpu0/1
enable ostimer clock enable os_timer_cpu0/1 for cm33_cpu0/1 Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
This commit is contained in:
parent
ba982a0f85
commit
d39d420c54
4 changed files with 23 additions and 3 deletions
|
@ -400,6 +400,12 @@ void board_early_init_hook(void)
|
|||
CLOCK_AttachClk(kSENSE_BASE_to_ADC);
|
||||
CLOCK_SetClkDiv(kCLOCK_DivAdcClk, 1U);
|
||||
#endif
|
||||
|
||||
#if (DT_NODE_HAS_STATUS(DT_NODELABEL(os_timer_cpu0), okay) || \
|
||||
DT_NODE_HAS_STATUS(DT_NODELABEL(os_timer_cpu1), okay))
|
||||
CLOCK_AttachClk(kLPOSC_to_OSTIMER);
|
||||
CLOCK_SetClkDiv(kCLOCK_DivOstimerClk, 1U);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void GlikeyWriteEnable(GLIKEY_Type *base, uint8_t idx)
|
||||
|
|
|
@ -81,6 +81,8 @@ the hardware features below.
|
|||
+-----------+------------+-------------------------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| OS_TIMER | on-chip | os timer |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
The default configuration can be found in the defconfig file:
|
||||
|
||||
|
|
|
@ -65,8 +65,14 @@
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
&systick {
|
||||
/*
|
||||
* RT700-EVK board cm33_cpu0 uses OS timer as the kernel timer
|
||||
* In case we need to switch to SYSTICK timer, then
|
||||
* replace &os_timer with &systick
|
||||
*/
|
||||
&os_timer_cpu0 {
|
||||
status = "okay";
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
&flexcomm0{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2024 NXP
|
||||
* Copyright 2024-2025 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -56,8 +56,14 @@
|
|||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&systick {
|
||||
/*
|
||||
* RT700-EVK board cm33_cpu1 uses OS timer as the kernel timer
|
||||
* In case we need to switch to SYSTICK timer, then
|
||||
* replace &os_timer with &systick
|
||||
*/
|
||||
&os_timer_cpu1 {
|
||||
status = "okay";
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
&flexcomm19{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue