1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| /* SPDX-License-Identifier: GPL-2.0 */
| #ifndef __SLP_SDIO_H__
| #define __SLP_SDIO_H__
| //#include <linux/wakelock.h>
| #include "sdio_int.h"
| #include "wcn_glb.h"
|
| union CP_SLP_CTL_REG {
| unsigned char reg;
| struct {
| unsigned char cp_slp_ctl:1; /* 0:wakeup, 1:sleep */
| unsigned char rsvd:7;
| } bit;
| };
|
| static inline
| int ap_wakeup_cp(void)
| {
| return sprdwcn_bus_aon_writeb(REG_CP_SLP_CTL, 0);
| }
| int slp_allow_sleep(void);
| int slp_pub_int_RegCb(void);
|
| #endif
|
|