xref: /rk3399_ARM-atf/plat/mediatek/drivers/mtcmos/mtcmos_common.h (revision 982ee634e7c4decd941b2fe97d85181b5615797a)
1 /*
2  * Copyright (c) 2025, MediaTek Inc. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef MTCMOS_H
8 #define MTCMOS_H
9 
10 #include <stdint.h>
11 
12 enum mtcmos_state {
13 	STA_POWER_DOWN,
14 	STA_POWER_ON,
15 };
16 
17 struct bus_protect {
18 	uint32_t en_addr;
19 	uint32_t rdy_addr;
20 	uint32_t mask;
21 };
22 
23 int spm_mtcmos_ctrl_ufs0(enum mtcmos_state state);
24 int spm_mtcmos_ctrl_ufs0_phy(enum mtcmos_state state);
25 
26 #endif /* MTCMOS_H */
27