1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2019 MediaTek Inc.
6 #ifndef _UFS_MEDIATEK_H
7 #define _UFS_MEDIATEK_H
10 * Vendor specific pre-defined parameters
12 #define UFS_MTK_LIMIT_NUM_LANES_RX 1
13 #define UFS_MTK_LIMIT_NUM_LANES_TX 1
14 #define UFS_MTK_LIMIT_HSGEAR_RX UFS_HS_G3
15 #define UFS_MTK_LIMIT_HSGEAR_TX UFS_HS_G3
16 #define UFS_MTK_LIMIT_PWMGEAR_RX UFS_PWM_G4
17 #define UFS_MTK_LIMIT_PWMGEAR_TX UFS_PWM_G4
18 #define UFS_MTK_LIMIT_RX_PWR_PWM SLOW_MODE
19 #define UFS_MTK_LIMIT_TX_PWR_PWM SLOW_MODE
20 #define UFS_MTK_LIMIT_RX_PWR_HS FAST_MODE
21 #define UFS_MTK_LIMIT_TX_PWR_HS FAST_MODE
22 #define UFS_MTK_LIMIT_HS_RATE PA_HS_MODE_B
23 #define UFS_MTK_LIMIT_DESIRED_MODE UFS_HS_MODE
28 #define VS_DEBUGCLOCKENABLE 0xD0A1
29 #define VS_SAVEPOWERCONTROL 0xD0A6
30 #define VS_UNIPROPOWERDOWNCONTROL 0xD0A8
36 TX_SYMBOL_CLK_REQ_FORCE
= 5,
43 RX_SYMBOL_CLK_GATE_EN
= 0,
53 #endif /* !_UFS_MEDIATEK_H */