drivers/clock_gate: Support on/off operationf in mcux's SIM driver
Logic to enable/disable the relevant clock was fully missing. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
80917ec16f
commit
697b63ea0f
1 changed files with 8 additions and 0 deletions
|
@ -17,11 +17,19 @@ LOG_MODULE_REGISTER(clock_control);
|
|||
|
||||
static int mcux_sim_on(struct device *dev, clock_control_subsys_t sub_system)
|
||||
{
|
||||
clock_ip_name_t clock_ip_name = (clock_ip_name_t) sub_system;
|
||||
|
||||
CLOCK_EnableClock(clock_ip_name);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int mcux_sim_off(struct device *dev, clock_control_subsys_t sub_system)
|
||||
{
|
||||
clock_ip_name_t clock_ip_name = (clock_ip_name_t) sub_system;
|
||||
|
||||
CLOCK_DisableClock(clock_ip_name);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue