xref: /rk3399_ARM-atf/plat/mediatek/drivers/mtcmos/mtcmos_common.h (revision cbf956ad0b4d62f7f93fd33d975a4d961009d83f)
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 enum mtcmos_state {
11 	STA_POWER_DOWN,
12 	STA_POWER_ON,
13 };
14 
15 struct bus_protect {
16 	uint32_t en_addr;
17 	uint32_t rdy_addr;
18 	uint32_t mask;
19 };
20 
21 int spm_mtcmos_ctrl_ufs0(enum mtcmos_state state);
22 int spm_mtcmos_ctrl_ufs0_phy(enum mtcmos_state state);
23 
24 #endif /* MTCMOS_H */
25