1 /*
2  * Copyright (c) 2021 Microchip Technology Inc.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_MCHP_XEC_H_
7 #define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_MCHP_XEC_H_
8 
9 #include <zephyr/drivers/clock_control.h>
10 #include <zephyr/dt-bindings/clock/mchp_xec_pcr.h>
11 
12 /*
13  * Set/clear Microchip XEC peripheral sleep enable.
14  * SoC layer contains the chip specific sleep index and positions
15  */
16 int z_mchp_xec_pcr_periph_sleep(uint8_t slp_idx, uint8_t slp_pos,
17 				uint8_t slp_en);
18 
19 int z_mchp_xec_pcr_periph_reset(uint8_t slp_idx, uint8_t slp_pos);
20 
21 #if defined(CONFIG_PM)
22 void mchp_xec_clk_ctrl_sys_sleep_enable(bool is_deep);
23 void mchp_xec_clk_ctrl_sys_sleep_disable(void);
24 #endif
25 
26 #endif /* ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_LPC11U6X_CLOCK_CONTROL_H_ */
27