Lines Matching +full:0 +full:x4f

27 	int err = 0;  in ufs_hisi_check_hibern8()
28 u32 tx_fsm_val_0 = 0; in ufs_hisi_check_hibern8()
29 u32 tx_fsm_val_1 = 0; in ufs_hisi_check_hibern8()
33 err = ufshcd_dme_get(hba, UIC_ARG_MIB_SEL(MPHY_TX_FSM_STATE, 0), in ufs_hisi_check_hibern8()
50 err = ufshcd_dme_get(hba, UIC_ARG_MIB_SEL(MPHY_TX_FSM_STATE, 0), in ufs_hisi_check_hibern8()
96 ufs_sys_ctrl_writel(host, MASK_UFS_DEVICE_RESET | 0, in ufs_hisi_soc_init()
134 ufs_sys_ctrl_writel(host, 0x03300330, UFS_DEVICE_RESET_CTRL); in ufs_hisi_soc_init()
148 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0xD0C1, 0x0), 0x1); in ufs_hisi_link_startup_pre_change()
150 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x156A, 0x0), 0x2); in ufs_hisi_link_startup_pre_change()
152 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x8114, 0x0), 0x1); in ufs_hisi_link_startup_pre_change()
154 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x8121, 0x0), 0x2D); in ufs_hisi_link_startup_pre_change()
156 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x8122, 0x0), 0x1); in ufs_hisi_link_startup_pre_change()
160 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x8127, 0x0), 0x98); in ufs_hisi_link_startup_pre_change()
162 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x8128, 0x0), 0x1); in ufs_hisi_link_startup_pre_change()
166 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0xD085, 0x0), 0x1); in ufs_hisi_link_startup_pre_change()
168 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x800D, 0x4), 0x58); in ufs_hisi_link_startup_pre_change()
170 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x800D, 0x5), 0x58); in ufs_hisi_link_startup_pre_change()
172 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x800E, 0x4), 0xB); in ufs_hisi_link_startup_pre_change()
174 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x800E, 0x5), 0xB); in ufs_hisi_link_startup_pre_change()
176 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x8009, 0x4), 0x1); in ufs_hisi_link_startup_pre_change()
178 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x8009, 0x5), 0x1); in ufs_hisi_link_startup_pre_change()
180 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0xD085, 0x0), 0x1); in ufs_hisi_link_startup_pre_change()
182 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x8113, 0x0), 0x1); in ufs_hisi_link_startup_pre_change()
183 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0xD085, 0x0), 0x1); in ufs_hisi_link_startup_pre_change()
187 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x0092, 0x4), 0xA); in ufs_hisi_link_startup_pre_change()
189 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x0092, 0x5), 0xA); in ufs_hisi_link_startup_pre_change()
191 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x008f, 0x4), 0xA); in ufs_hisi_link_startup_pre_change()
193 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x008f, 0x5), 0xA); in ufs_hisi_link_startup_pre_change()
196 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x008F, 0x4), 0x7); in ufs_hisi_link_startup_pre_change()
198 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x008F, 0x5), 0x7); in ufs_hisi_link_startup_pre_change()
202 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x0095, 0x4), 0x4F); in ufs_hisi_link_startup_pre_change()
204 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x0095, 0x5), 0x4F); in ufs_hisi_link_startup_pre_change()
206 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x0094, 0x4), 0x4F); in ufs_hisi_link_startup_pre_change()
208 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x0094, 0x5), 0x4F); in ufs_hisi_link_startup_pre_change()
210 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x008B, 0x4), 0x4F); in ufs_hisi_link_startup_pre_change()
212 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x008B, 0x5), 0x4F); in ufs_hisi_link_startup_pre_change()
214 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x000F, 0x0), 0x5); in ufs_hisi_link_startup_pre_change()
216 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x000F, 0x1), 0x5); in ufs_hisi_link_startup_pre_change()
218 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0xD085, 0x0), 0x1); in ufs_hisi_link_startup_pre_change()
220 ufshcd_dme_get(hba, UIC_ARG_MIB_SEL(0xD0C1, 0x0), &value); in ufs_hisi_link_startup_pre_change()
221 if (value != 0x1) in ufs_hisi_link_startup_pre_change()
223 "Warring!!! Unipro VS_mphy_disable is 0x%x\n", value); in ufs_hisi_link_startup_pre_change()
226 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0xD0C1, 0x0), 0x0); in ufs_hisi_link_startup_pre_change()
242 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0xD0AB, 0x0), 0x0); in ufs_hisi_link_startup_pre_change()
243 ufshcd_dme_get(hba, UIC_ARG_MIB_SEL(0xD0AB, 0x0), &value); in ufs_hisi_link_startup_pre_change()
244 if (value != 0) { in ufs_hisi_link_startup_pre_change()
257 ufshcd_dme_set(hba, UIC_ARG_MIB(0x2044), 0x0); in ufs_hisi_link_startup_post_change()
259 ufshcd_dme_set(hba, UIC_ARG_MIB(0x2045), 0x0); in ufs_hisi_link_startup_post_change()
261 ufshcd_dme_set(hba, UIC_ARG_MIB(0x2040), 0x9); in ufs_hisi_link_startup_post_change()
270 ufshcd_dme_set(hba, UIC_ARG_MIB(0xd09a), 0x80000000); in ufs_hisi_link_startup_post_change()
272 ufshcd_dme_set(hba, UIC_ARG_MIB(0xd09c), 0x00000005); in ufs_hisi_link_startup_post_change()
274 return 0; in ufs_hisi_link_startup_post_change()
280 int err = 0; in ufs_hisi_link_startup_notify()
307 * Boston platform need to set SaveConfigTime to 0x13, in ufs_hisi_pwr_change_pre_change()
311 ufshcd_dme_set(hba, UIC_ARG_MIB((u32)0xD0A0), 0x13); in ufs_hisi_pwr_change_pre_change()
313 ufshcd_dme_set(hba, UIC_ARG_MIB((u32)0x1552), 0x4f); in ufs_hisi_pwr_change_pre_change()
315 ufshcd_dme_set(hba, UIC_ARG_MIB((u32)0x1554), 0x4f); in ufs_hisi_pwr_change_pre_change()
317 ufshcd_dme_set(hba, UIC_ARG_MIB((u32)0x1556), 0x4f); in ufs_hisi_pwr_change_pre_change()
319 ufshcd_dme_set(hba, UIC_ARG_MIB((u32)0x15a7), 0xA); in ufs_hisi_pwr_change_pre_change()
321 ufshcd_dme_set(hba, UIC_ARG_MIB((u32)0x15a8), 0xA); in ufs_hisi_pwr_change_pre_change()
322 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0xd085, 0x0), 0x01); in ufs_hisi_pwr_change_pre_change()
326 pr_info("ufs flash device must set VS_DebugSaveConfigTime 0x10\n"); in ufs_hisi_pwr_change_pre_change()
328 ufshcd_dme_set(hba, UIC_ARG_MIB(0xD0A0), 0x10); in ufs_hisi_pwr_change_pre_change()
330 ufshcd_dme_set(hba, UIC_ARG_MIB(0x1556), 0x48); in ufs_hisi_pwr_change_pre_change()
334 ufshcd_dme_set(hba, UIC_ARG_MIB(0x15A8), 0x1); in ufs_hisi_pwr_change_pre_change()
336 ufshcd_dme_set(hba, UIC_ARG_MIB(0x155c), 0x0); in ufs_hisi_pwr_change_pre_change()
337 /*PA_PWRModeUserData0 = 8191, default is 0*/ in ufs_hisi_pwr_change_pre_change()
338 ufshcd_dme_set(hba, UIC_ARG_MIB(0x15b0), SZ_8K - 1); in ufs_hisi_pwr_change_pre_change()
339 /*PA_PWRModeUserData1 = 65535, default is 0*/ in ufs_hisi_pwr_change_pre_change()
340 ufshcd_dme_set(hba, UIC_ARG_MIB(0x15b1), SZ_64K - 1); in ufs_hisi_pwr_change_pre_change()
341 /*PA_PWRModeUserData2 = 32767, default is 0*/ in ufs_hisi_pwr_change_pre_change()
342 ufshcd_dme_set(hba, UIC_ARG_MIB(0x15b2), SZ_32K - 1); in ufs_hisi_pwr_change_pre_change()
343 /*DME_FC0ProtectionTimeOutVal = 8191, default is 0*/ in ufs_hisi_pwr_change_pre_change()
344 ufshcd_dme_set(hba, UIC_ARG_MIB(0xd041), SZ_8K - 1); in ufs_hisi_pwr_change_pre_change()
345 /*DME_TC0ReplayTimeOutVal = 65535, default is 0*/ in ufs_hisi_pwr_change_pre_change()
346 ufshcd_dme_set(hba, UIC_ARG_MIB(0xd042), SZ_64K - 1); in ufs_hisi_pwr_change_pre_change()
347 /*DME_AFC0ReqTimeOutVal = 32767, default is 0*/ in ufs_hisi_pwr_change_pre_change()
348 ufshcd_dme_set(hba, UIC_ARG_MIB(0xd043), SZ_32K - 1); in ufs_hisi_pwr_change_pre_change()
349 /*PA_PWRModeUserData3 = 8191, default is 0*/ in ufs_hisi_pwr_change_pre_change()
350 ufshcd_dme_set(hba, UIC_ARG_MIB(0x15b3), SZ_8K - 1); in ufs_hisi_pwr_change_pre_change()
351 /*PA_PWRModeUserData4 = 65535, default is 0*/ in ufs_hisi_pwr_change_pre_change()
352 ufshcd_dme_set(hba, UIC_ARG_MIB(0x15b4), SZ_64K - 1); in ufs_hisi_pwr_change_pre_change()
353 /*PA_PWRModeUserData5 = 32767, default is 0*/ in ufs_hisi_pwr_change_pre_change()
354 ufshcd_dme_set(hba, UIC_ARG_MIB(0x15b5), SZ_32K - 1); in ufs_hisi_pwr_change_pre_change()
355 /*DME_FC1ProtectionTimeOutVal = 8191, default is 0*/ in ufs_hisi_pwr_change_pre_change()
356 ufshcd_dme_set(hba, UIC_ARG_MIB(0xd044), SZ_8K - 1); in ufs_hisi_pwr_change_pre_change()
357 /*DME_TC1ReplayTimeOutVal = 65535, default is 0*/ in ufs_hisi_pwr_change_pre_change()
358 ufshcd_dme_set(hba, UIC_ARG_MIB(0xd045), SZ_64K - 1); in ufs_hisi_pwr_change_pre_change()
359 /*DME_AFC1ReqTimeOutVal = 32767, default is 0*/ in ufs_hisi_pwr_change_pre_change()
360 ufshcd_dme_set(hba, UIC_ARG_MIB(0xd046), SZ_32K - 1); in ufs_hisi_pwr_change_pre_change()
369 int ret = 0; in ufs_hisi_pwr_change_notify()
413 return 0; in ufs_hisi_suspend()
416 return 0; in ufs_hisi_suspend()
420 return 0; in ufs_hisi_suspend()
425 /* set ref_dig_clk override of PHY PCS to 0 */ in ufs_hisi_suspend()
426 ufs_sys_ctrl_writel(host, 0x00100000, UFS_DEVICE_RESET_CTRL); in ufs_hisi_suspend()
430 return 0; in ufs_hisi_suspend()
438 return 0; in ufs_hisi_resume()
441 ufs_sys_ctrl_writel(host, 0x00100010, UFS_DEVICE_RESET_CTRL); in ufs_hisi_resume()
446 return 0; in ufs_hisi_resume()
471 int err = 0; in ufs_hisi_init_common()
495 return 0; in ufs_hisi_init_common()
504 int ret = 0; in ufs_hi3660_init()
517 return 0; in ufs_hi3660_init()
522 int ret = 0; in ufs_hi3670_init()
540 return 0; in ufs_hi3670_init()
583 return 0; in ufs_hisi_remove()