Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 NXP
* Copyright 2023-2025 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*/
Expand Down Expand Up @@ -1254,6 +1254,7 @@ static inline void CLOCK_SetRootClock(clock_root_t root, const clock_root_config
*/
static inline void CLOCK_ControlGate(clock_ip_name_t name, clock_gate_value_t value)
{
assert(name < 127);
CCM_CTRL->LPCG[name].AUTHEN |= CCM_LPCG_AUTHEN_CPULPM_MODE(1U);
CCM_CTRL->LPCG[name].LPM_CUR = CCM_LPCG_LPM_CUR_LPM_SETTING_CUR(value);
__DSB();
Expand Down
3 changes: 2 additions & 1 deletion mcux/mcux-sdk/devices/MIMX9352/drivers/fsl_clock.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 NXP
* Copyright 2023-2025 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*/
Expand Down Expand Up @@ -1237,6 +1237,7 @@ static inline void CLOCK_SetRootClock(clock_root_t root, const clock_root_config
*/
static inline void CLOCK_ControlGate(clock_ip_name_t name, clock_gate_value_t value)
{
assert(name < 127);
CCM_CTRL->LPCG[name].AUTHEN |= CCM_LPCG_AUTHEN_CPULPM_MODE(1U);
CCM_CTRL->LPCG[name].LPM_CUR = CCM_LPCG_LPM_CUR_LPM_SETTING_CUR(value);
__DSB();
Expand Down