1 /* 2 * Copyright (c) 2025, MediaTek Inc. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #if defined(CONFIG_MTK_MTCMOS) 8 #include <mtcmos.h> 9 #endif 10 #include <mtk_bl31_interface.h> 11 ufs_device_pwr_ctrl_soc(bool vcc_on,uint64_t ufs_version)12void ufs_device_pwr_ctrl_soc(bool vcc_on, uint64_t ufs_version) {} 13 ufs_spm_mtcmos_power(bool on)14int ufs_spm_mtcmos_power(bool on) 15 { 16 #if defined(CONFIG_MTK_MTCMOS) 17 return spm_mtcmos_ctrl_ufs0(on ? STA_POWER_ON : STA_POWER_DOWN); 18 #else 19 return 0; 20 #endif 21 } 22