summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/mediatek/mt8192/dramc_pi_basic_api.c2926
1 files changed, 2926 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8192/dramc_pi_basic_api.c b/src/soc/mediatek/mt8192/dramc_pi_basic_api.c
index 719c64b24a..58762764f2 100644
--- a/src/soc/mediatek/mt8192/dramc_pi_basic_api.c
+++ b/src/soc/mediatek/mt8192/dramc_pi_basic_api.c
@@ -108,6 +108,2902 @@ void global_option_init(struct ddr_cali *cali)
set_dqo1_pinmux_mapping(cali);
}
+static void sv_algorithm_assistance_lp4_800(void)
+{
+ SET32_BITFIELDS(&ch[0].phy_ao.shu_misc_rdsel_track,
+ SHU_MISC_RDSEL_TRACK_DMDATLAT_I, 0x0e,
+ SHU_MISC_RDSEL_TRACK_RDSEL_HWSAVE_MSK, 0x1,
+ SHU_MISC_RDSEL_TRACK_RDSEL_TRACK_EN, 0x0,
+ SHU_MISC_RDSEL_TRACK_SHU_GW_THRD_NEG, 0xff5,
+ SHU_MISC_RDSEL_TRACK_SHU_GW_THRD_POS, 0x00b);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_rdat,
+ MISC_SHU_RDAT_DATLAT, 0x0e,
+ MISC_SHU_RDAT_DATLAT_DSEL, 0x0e,
+ MISC_SHU_RDAT_DATLAT_DSEL_PHY, 0x0e);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_phy_rx_ctrl,
+ MISC_SHU_PHY_RX_CTRL_RANK_RXDLY_UPDLAT_EN, 0x1,
+ MISC_SHU_PHY_RX_CTRL_RANK_RXDLY_UPD_OFFSET, 0x2,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_PRE_OFFSET, 0x1,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_HEAD, 0x0,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_TAIL, 0x1,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_BUFF_EN_HEAD, 0x0,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_BUFF_EN_TAIL, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_rankctl,
+ MISC_SHU_RANKCTL_RANKINCTL_RXDLY, 0x3,
+ MISC_SHU_RANKCTL_RANK_RXDLY_OPT, 0x1,
+ MISC_SHU_RANKCTL_RANKSEL_SELPH_FRUN, 0x1,
+ MISC_SHU_RANKCTL_RANKINCTL_STB, 0x4,
+ MISC_SHU_RANKCTL_RANKINCTL, 0x4,
+ MISC_SHU_RANKCTL_RANKINCTL_ROOT1, 0x4,
+ MISC_SHU_RANKCTL_RANKINCTL_PHY, 0x6);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_rank_sel_lat,
+ MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_B0, 0x4,
+ MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_B1, 0x4,
+ MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_CA, 0x4);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[0].misc_shu_rk_dqsctl,
+ MISC_SHU_RK_DQSCTL_DQSINCTL, 0x6);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[1].misc_shu_rk_dqsctl,
+ MISC_SHU_RK_DQSCTL_DQSINCTL, 0x6);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_dqsien_mck_ui_dly,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P0_B0, 0x6,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P1_B0, 0x8,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P0_B0, 0x0,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P1_B0, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_rk_b0_dqsien_pi_dly,
+ SHU_RK_B0_D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LAT_B1, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.shu_misc_rx_pipe_ctrl,
+ SHU_MISC_RX_PIPE_CTRL_RX_PIPE_BYPASS_EN, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_rk_b0_rodten_mck_ui_dly,
+ SHU_RK_B0_RODTEN_MCK_UI_DLY_RODTEN_UI_P0_B0, 0x1,
+ SHU_RK_B0_RODTEN_MCK_UI_DLY_RODTEN_UI_P1_B0, 0x1,
+ SHU_RK_B0_RODTEN_MCK_UI_DLY_RODTEN_MCK_P0_B0, 0x0,
+ SHU_RK_B0_RODTEN_MCK_UI_DLY_RODTEN_MCK_P1_B0, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[1].shu_rk_b0_rodten_mck_ui_dly,
+ SHU_RK_B0_RODTEN_MCK_UI_DLY_RODTEN_UI_P0_B0, 0x2,
+ SHU_RK_B0_RODTEN_MCK_UI_DLY_RODTEN_UI_P1_B0, 0x2,
+ SHU_RK_B0_RODTEN_MCK_UI_DLY_RODTEN_MCK_P0_B0, 0x0,
+ SHU_RK_B0_RODTEN_MCK_UI_DLY_RODTEN_MCK_P1_B0, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[0].shu_rk_b0_rodten_mck_ui_dly,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_UI_P0_B1, 0x1,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_UI_P1_B1, 0x1,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_MCK_P0_B1, 0x0,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_MCK_P1_B1, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[1].shu_rk_b0_rodten_mck_ui_dly,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_UI_P0_B1, 0x2,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_UI_P1_B1, 0x2,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_MCK_P0_B1, 0x0,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_MCK_P1_B1, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_rx_cg_set0,
+ SHU_RX_CG_SET0_DLE_LAST_EXTEND3, 0x0,
+ SHU_RX_CG_SET0_READ_START_EXTEND3, 0x0,
+ SHU_RX_CG_SET0_DLE_LAST_EXTEND2, 0x1,
+ SHU_RX_CG_SET0_READ_START_EXTEND2, 0x1,
+ SHU_RX_CG_SET0_DLE_LAST_EXTEND1, 0x1,
+ SHU_RX_CG_SET0_READ_START_EXTEND1, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.shu_misc_rank_sel_stb,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_EN, 0x1,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_EN_B23, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_SERMODE, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_TRACK, 0x1,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_RXDLY_TRACK, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_PHASE_EN, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_PHSINCTL, 0x5,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_UI_PLUS, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_MCK_PLUS, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_UI_MINUS, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_MCK_MINUS, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[0].misc_shu_rk_dqscal,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMT, 0x60,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMTEN, 0x1,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMT, 0x3f,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMTEN, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[1].misc_shu_rk_dqscal,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMT, 0x60,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMTEN, 0x1,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMT, 0x3f,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMTEN, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_r0_b0_ini_uipi,
+ SHU_R0_B0_INI_UIPI_CURR_INI_PI_B0, 0x0b,
+ SHU_R0_B0_INI_UIPI_CURR_INI_UI_B0, 0x06);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[0].shu_r0_b0_ini_uipi,
+ SHU_R0_B1_INI_UIPI_CURR_INI_PI_B1, 0x0b,
+ SHU_R0_B1_INI_UIPI_CURR_INI_UI_B1, 0x06);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[1].shu_r0_b0_ini_uipi,
+ SHU_R0_B0_INI_UIPI_CURR_INI_PI_B0, 0x1f,
+ SHU_R0_B0_INI_UIPI_CURR_INI_UI_B0, 0x07);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[1].shu_r0_b0_ini_uipi,
+ SHU_R0_B1_INI_UIPI_CURR_INI_PI_B1, 0x1f,
+ SHU_R0_B1_INI_UIPI_CURR_INI_UI_B1, 0x07);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_r0_b0_next_ini_uipi,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_PI_B0, 0x0b,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_UI_B0, 0x06,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_UI_P1_B0, 0x08);
+ SET32_BITFIELDS(&ch[0].phy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+ SHURK_DQS2DQ_CAL2_BOOT_TARG_UI_RK0_DQ1, 0x018);
+ SET32_BITFIELDS(&ch[0].ao.shu_rk[0].shurk_dqs2dq_cal5,
+ SHURK_DQS2DQ_CAL5_BOOT_TARG_UI_RK0_DQM0, 0x018,
+ SHURK_DQS2DQ_CAL5_BOOT_TARG_UI_RK0_DQM1, 0x018);
+ SET32_BITFIELDS(&ch[0].ao.shu_rk[1].shurk_dqs2dq_cal1,
+ SHURK_DQS2DQ_CAL1_BOOT_ORIG_UI_RK0_DQ0, 0x018,
+ SHURK_DQS2DQ_CAL1_BOOT_ORIG_UI_RK0_DQ1, 0x018);
+ SET32_BITFIELDS(&ch[0].ao.shu_rk[1].shurk_dqs2dq_cal2,
+ SHURK_DQS2DQ_CAL2_BOOT_TARG_UI_RK0_DQ0, 0x018,
+ SHURK_DQS2DQ_CAL2_BOOT_TARG_UI_RK0_DQ1, 0x018);
+ SET32_BITFIELDS(&ch[0].ao.shu_rk[1].shurk_dqs2dq_cal5,
+ SHURK_DQS2DQ_CAL5_BOOT_TARG_UI_RK0_DQM0, 0x018,
+ SHURK_DQS2DQ_CAL5_BOOT_TARG_UI_RK0_DQM1, 0x018);
+ SET32_BITFIELDS(&ch[0].ao.shu_rk[0].shurk_pi,
+ SHURK_PI_RK0_ARPI_DQ_B1, 0x18,
+ SHURK_PI_RK0_ARPI_DQ_B0, 0x18,
+ SHURK_PI_RK0_ARPI_DQM_B1, 0x18,
+ SHURK_PI_RK0_ARPI_DQM_B0, 0x18);
+ SET32_BITFIELDS(&ch[0].ao.shu_rk[1].shurk_pi,
+ SHURK_PI_RK0_ARPI_DQ_B1, 0x18,
+ SHURK_PI_RK0_ARPI_DQ_B0, 0x18,
+ SHURK_PI_RK0_ARPI_DQM_B1, 0x18,
+ SHURK_PI_RK0_ARPI_DQM_B0, 0x18);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_r0_b0_txdly0,
+ SHU_R0_B0_TXDLY0_TX_ARDQ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U_R0_B1_TXDLY1_TX_ARDQ4_DLY_B1, 0x20,
+ SHU_R0_B1_TXDLY1_TX_ARDQ5_DLY_B1, 0x20,
+ SHU_R0_B1_TXDLY1_TX_ARDQ6_DLY_B1, 0x20,
+ SHU_R0_B1_TXDLY1_TX_ARDQ7_DLY_B1, 0x20);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[1].shu_r0_b0_txdly3,
+ SHU_R0_B1_TXDLY3_TX_ARDQM0_DLY_B1, 0x20,
+ SHU_R0_B1_TXDLY3_TX_ARWCK_DLY_B1, 0x00,
+ SHU_R0_B1_TXDLY3_TX_ARWCKB_DLY_B1, 0x00);
+ SET32_BITFIELDS(&ch[0].ao.shu_tx_rankctl,
+ SHU_TX_RANKCTL_TXRANKINCTL_TXDLY, 0x1,
+ SHU_TX_RANKCTL_TXRANKINCTL, 0x1,
+ SHU_TX_RANKCTL_TXRANKINCTL_ROOT, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_derating0,
+ SHU_AC_DERATING0_ACDERATEEN, 0x1,
+ SHU_AC_DERATING0_TRRD_DERATE, 0x2,
+ SHU_AC_DERATING0_TRCD_DERATE, 0x4);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_derating1,
+ SHU_AC_DERATING1_TRPAB_DERATE, 0x3,
+ SHU_AC_DERATING1_TRP_DERATE, 0x2,
+ SHU_AC_DERATING1_TRAS_DERATE, 0x01,
+ SHU_AC_DERATING1_TRC_DERATE, 0x00);
+ SET32_BITFIELDS(&ch[0].ao.shu_sref_ctrl,
+ SHU_SREF_CTRL_CKEHCMD, 0x3,
+ SHU_SREF_CTRL_SREF_CK_DLY, 0x3);
+ SET32_BITFIELDS(&ch[0].ao.shu_hmr4_dvfs_ctrl0,
+ SHU_HMR4_DVFS_CTRL0_FSPCHG_PRDCNT, 0x32,
+ SHU_HMR4_DVFS_CTRL0_REFRCNT, 0x000);
+ SET32_BITFIELDS(&ch[0].ao.shu_actim_xrt,
+ SHU_ACT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STBEN_RESETB_B1, 0x1,
+ B1_DQ5_RG_RX_ARDQS0_DVS_EN_B1, 0x0);
+}
+
+static void sv_algorithm_assistance_lp4_1600(void)
+{
+ SET32_BITFIELDS(&ch[0].phy_ao.shu_misc_rdsel_track,
+ SHU_MISC_RDSEL_TRACK_DMDATLAT_I, 0x09,
+ SHU_MISC_RDSEL_TRACK_RDSEL_HWSAVE_MSK, 0x1,
+ SHU_MISC_RDSEL_TRACK_RDSEL_TRACK_EN, 0x0,
+ SHU_MISC_RDSEL_TRACK_SHU_GW_THRD_NEG, 0xfeb,
+ SHU_MISC_RDSEL_TRACK_SHU_GW_THRD_POS, 0x015);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_rdat,
+ MISC_SHU_RDAT_DATLAT, 0x09,
+ MISC_SHU_RDAT_DATLAT_DSEL, 0x09,
+ MISC_SHU_RDAT_DATLAT_DSEL_PHY, 0x09);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_phy_rx_ctrl,
+ MISC_SHU_PHY_RX_CTRL_RANK_RXDLY_UPDLAT_EN, 0x1,
+ MISC_SHU_PHY_RX_CTRL_RANK_RXDLY_UPD_OFFSET, 0x2,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_PRE_OFFSET, 0x2,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_HEAD, 0x0,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_TAIL, 0x1,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_BUFF_EN_HEAD, 0x0,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_BUFF_EN_TAIL, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_rankctl,
+ MISC_SHU_RANKCTL_RANKINCTL_RXDLY, 0x0,
+ MISC_SHU_RANKCTL_RANK_RXDLY_OPT, 0x1,
+ MISC_SHU_RANKCTL_RANKSEL_SELPH_FRUN, 0x1,
+ MISC_SHU_RANKCTL_RANKINCTL_STB, 0x1,
+ MISC_SHU_RANKCTL_RANKINCTL, 0x0,
+ MISC_SHU_RANKCTL_RANKINCTL_ROOT1, 0x0,
+ MISC_SHU_RANKCTL_RANKINCTL_PHY, 0x3);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_rank_sel_lat,
+ MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_B0, 0x2,
+ MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_B1, 0x2,
+ MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_CA, 0x2);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[0].misc_shu_rk_dqsctl,
+ MISC_SHU_RK_DQSCTL_DQSINCTL, 0x2);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[1].misc_shu_rk_dqsctl,
+ MISC_SHU_RK_DQSCTL_DQSINCTL, 0x2);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_dqsien_mck_ui_dly,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P0_B0, 0x9,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P1_B0, 0xd,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P0_B0, 0x0,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P1_B0, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_rk_b0_dqsien_pi_dly,
+ SHU_RK_B0_DQSIEN_PI_DLY_DQSIEN_PI_B0, 0x0b);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[1].shu_dqsien_mck_ui_dly,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P0_B0, 0xc,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P1_B0, 0x0,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P0_B0, 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G_SET0_DLE_LAST_EXTEND2, 0x0,
+ SHU_RX_CG_SET0_READ_START_EXTEND2, 0x0,
+ SHU_RX_CG_SET0_DLE_LAST_EXTEND1, 0x1,
+ SHU_RX_CG_SET0_READ_START_EXTEND1, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.shu_misc_rank_sel_stb,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_EN, 0x1,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_EN_B23, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_SERMODE, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_TRACK, 0x1,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_RXDLY_TRACK, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_PHASE_EN, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_PHSINCTL, 0x1,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_UI_PLUS, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_MCK_PLUS, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_UI_MINUS, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_MCK_MINUS, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[0].misc_shu_rk_dqscal,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMT, 0x60,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMTEN, 0x1,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMT, 0x3f,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMTEN, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[1].misc_shu_rk_dqscal,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMT, 0x60,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMTEN, 0x1,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMT, 0x3f,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMTEN, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_r0_b0_ini_uipi,
+ SHU_R0_B0_INI_UIPI_CURR_INI_PI_B0, 0x0b,
+ SHU_R0_B0_INI_UIPI_CURR_INI_UI_B0, 0x09);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[0].shu_r0_b0_ini_uipi,
+ SHU_R0_B1_INI_UIPI_CURR_INI_PI_B1, 0x0b,
+ SHU_R0_B1_INI_UIPI_CURR_INI_UI_B1, 0x09);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[1].shu_r0_b0_ini_uipi,
+ SHU_R0_B0_INI_UIPI_CURR_INI_PI_B0, 0x11,
+ SHU_R0_B0_INI_UIPI_CURR_INI_UI_B0, 0x0c);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[1].shu_r0_b0_ini_uipi,
+ SHU_R0_B1_INI_UIPI_CURR_INI_PI_B1, 0x11,
+ SHU_R0_B1_INI_UIPI_CURR_INI_UI_B1, 0x0c);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_r0_b0_next_ini_uipi,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_PI_B0, 0x0b,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_UI_B0, 0x09,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_UI_P1_B0, 0x0d);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[0].shu_r0_b0_next_ini_uipi,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_PI_B1, 0x0b,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_UI_B1, 0x09,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_UI_P1_B1, 0x0d);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[1].shu_r0_b0_next_ini_uipi,
+ SHU_R0_B0_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_BITFIELDS(&ch[0].ao.shu_ac_derating1,
+ SHU_AC_DERATING1_TRPAB_DERATE, 0x3,
+ SHU_AC_DERATING1_TRP_DERATE, 0x2,
+ SHU_AC_DERATING1_TRAS_DERATE, 0x00,
+ SHU_AC_DERATING1_TRC_DERATE, 0x00);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_derating_05t,
+ SHU_AC_DERATING_05T_TRC_05T_DERATE, 0x0,
+ SHU_AC_DERATING_05T_TRCD_05T_DERATE, 0x0,
+ SHU_AC_DERATING_05T_TRP_05T_DERATE, 0x1,
+ SHU_AC_DERATING_05T_TRPAB_05T_DERATE, 0x1,
+ SHU_AC_DERATING_05T_TRAS_05T_DERATE, 0x1,
+ SHU_AC_DERATING_05T_TRRD_05T_DERATE, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_sref_ctrl,
+ SHU_SREF_CTRL_CKEHCMD, 0x3,
+ SHU_SREF_CTRL_SREF_CK_DLY, 0x3);
+ SET32_BITFIELDS(&ch[0].ao.shu_hmr4_dvfs_ctrl0,
+ SHU_HMR4_DVFS_CTRL0_FSPCHG_PRDCNT, 0x32,
+ SHU_HMR4_DVFS_CTRL0_REFRCNT, 0x000);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_time_05t,
+ SHU_AC_TIME_05T_TRC_05T, 0x0,
+ SHU_AC_TIME_05T_TRFCPB_05T, 0x0,
+ SHU_AC_TIME_05T_TRFC_05T, 0x0,
+ SHU_AC_TIME_05T_TPBR2PBR_05T, 0x0,
+ SHU_AC_TIME_05T_TXP_05T, 0x0,
+ SHU_AC_TIME_05T_TRTP_05T, 0x1,
+ SHU_AC_TIME_05T_TRCD_05T, 0x0,
+ SHU_AC_TIME_05T_TRP_05T, 0x1,
+ SHU_AC_TIME_05T_TRPAB_05T, 0x0,
+ SHU_AC_TIME_05T_TRAS_05T, 0x0,
+ SHU_AC_TIME_05T_TWR_M05T, 0x1,
+ SHU_AC_TIME_05T_TRRD_05T, 0x0,
+ SHU_AC_TIME_05T_TFAW_05T, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_time_05t,
+ SHU_AC_TIME_05T_TCKEPRD_05T, 0x0,
+ SHU_AC_TIME_05T_TR2PD_05T, 0x0,
+ SHU_AC_TIME_05T_TWTPD_M05T, 0x1,
+ SHU_AC_TIME_05T_TMRRI_05T, 0x1,
+ SHU_AC_TIME_05T_TMRWCKEL_05T, 0x0,
+ SHU_AC_TIME_05T_BGTRRD_05T, 0x0,
+ SHU_AC_TIME_05T_BGTCCD_05T, 0x0,
+ SHU_AC_TIME_05T_BGTWTR_M05T, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_time_05t,
+ SHU_AC_TIME_05T_TR2W_05T, 0x0,
+ SHU_AC_TIME_05T_TWTR_M05T, 0x1,
+ SHU_AC_TIME_05T_XRTR2W_05T, 0x0,
+ SHU_AC_TIME_05T_TMRD_05T, 0x1,
+ SHU_AC_TIME_05T_TMRW_05T, 0x1,
+ SHU_AC_TIME_05T_TMRR2MRW_05T, 0x1,
+ SHU_AC_TIME_05T_TW2MRW_05T, 0x1,
+ SHU_AC_TIME_05T_TR2MRW_05T, 0x0,
+ SHU_AC_TIME_05T_TPBR2ACT_05T, 0x1,
+ SHU_AC_TIME_05T_XRTW2R_M05T, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_actim_xrt,
+ SHU_ACTIM_XRT_XRTR2R, 0x03,
+ SHU_ACTIM_XRT_XRTR2W, 0x03,
+ SHU_ACTIM_XRT_XRTW2R, 0x3,
+ SHU_ACTIM_XRT_XRTW2W, 0x04);
+ SET32_BITFIELDS(&ch[0].ao.shu_actim0,
+ SHU_ACTIM0_TWTR, 0x04,
+ SHU_ACTIM0_TWR, 0x07,
+ SHU_ACTIM0_TRRD, 0x1,
+ SHU_ACTIM0_TRCD, 0x4,
+ SHU_ACTIM0_CKELCKCNT, 0x2);
+ SET32_BITFIELDS(&ch[0].ao.shu_actim1,
+ SHU_ACTIM1_TRPAB,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SEL_TRACK_SHU_GW_THRD_POS, 0x030);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_rdat,
+ MISC_SHU_RDAT_DATLAT, 0x0f,
+ MISC_SHU_RDAT_DATLAT_DSEL, 0x0f,
+ MISC_SHU_RDAT_DATLAT_DSEL_PHY, 0x0f);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_phy_rx_ctrl,
+ MISC_SHU_PHY_RX_CTRL_RANK_RXDLY_UPDLAT_EN, 0x1,
+ MISC_SHU_PHY_RX_CTRL_RANK_RXDLY_UPD_OFFSET, 0x2,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_PRE_OFFSET, 0x2,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_HEAD, 0x1,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_TAIL, 0x1,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_BUFF_EN_HEAD, 0x2,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_BUFF_EN_TAIL, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_rankctl,
+ MISC_SHU_RANKCTL_RANKINCTL_RXDLY, 0x4,
+ MISC_SHU_RANKCTL_RANK_RXDLY_OPT, 0x1,
+ MISC_SHU_RANKCTL_RANKSEL_SELPH_FRUN, 0x1,
+ MISC_SHU_RANKCTL_RANKINCTL_STB, 0x6,
+ MISC_SHU_RANKCTL_RANKINCTL, 0x5,
+ MISC_SHU_RANKCTL_RANKINCTL_ROOT1, 0x5,
+ MISC_SHU_RANKCTL_RANKINCTL_PHY, 0x8);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_rank_sel_lat,
+ MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_B0, 0x2,
+ MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_B1, 0x2,
+ MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_CA, 0x2);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[0].misc_shu_rk_dqsctl,
+ MISC_SHU_RK_DQSCTL_DQSINCTL, 0x7);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[1].misc_shu_rk_dqsctl,
+ MISC_SHU_RK_DQSCTL_DQSINCTL, 0x7);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_dqsien_mck_ui_dly,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P0_B0, 0x0,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P1_B0, 0x4,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P0_B0, 0x1,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P1_B0, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_rk_b0_dqsien_pi_dly,
+ SHU_RK_B0_DQSIEN_PI_DLY_DQSIEN_PI_B0, 0x0f);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[1].shu_dqsien_mck_ui_dly,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P0_B0, 0x7,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P1_B0, 0xb,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P0_B0, 0x1,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P1_B0, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[1].shu_rk_b0_dqsien_pi_dly,
+ SHU_RK_B0_DQSIEN_PI_DLY_DQSIEN_PI_B0, 0x1c);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[0].shu_dqsien_mck_ui_dly,
+ SHU_RK_B1_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P0_B1, 0x0,
+ SHU_RK_B1_DQSIEN_MCK_UI_DLY_DQSIEN_UI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_UI_DLY_RODTEN_MCK_P0_B0, 0x1,
+ SHU_RK_B0_RODTEN_MCK_UI_DLY_RODTEN_MCK_P1_B0, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[0].shu_rk_b0_rodten_mck_ui_dly,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_UI_P0_B1, 0x3,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_UI_P1_B1, 0x3,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_MCK_P0_B1, 0x0,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_MCK_P1_B1, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[1].shu_rk_b0_rodten_mck_ui_dly,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_UI_P0_B1, 0x2,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_UI_P1_B1, 0x2,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_MCK_P0_B1, 0x1,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_MCK_P1_B1, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_rx_cg_set0,
+ SHU_RX_CG_SET0_DLE_LAST_EXTEND3, 0x0,
+ SHU_RX_CG_SET0_READ_START_EXTEND3, 0x0,
+ SHU_RX_CG_SET0_DLE_LAST_EXTEND2, 0x1,
+ SHU_RX_CG_SET0_READ_START_EXTEND2, 0x1,
+ SHU_RX_CG_SET0_DLE_LAST_EXTEND1, 0x1,
+ SHU_RX_CG_SET0_READ_START_EXTEND1, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.shu_misc_rank_sel_stb,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_EN, 0x1,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_EN_B23, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_SERMODE, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_TRACK, 0x1,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_RXDLY_TRACK, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_PHASE_EN, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_PHSINCTL, 0x6,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_UI_PLUS, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_MCK_PLUS, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_UI_MINUS, 0x2,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_MCK_MINUS, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[0].misc_shu_rk_dqscal,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMT, 0x60,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMTEN, 0x1,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMT, 0x3f,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMTEN, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[1].misc_shu_rk_dqscal,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMT, 0x60,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMTEN, 0x1,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMT, 0x3f,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMTEN, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_r0_b0_ini_uipi,
+ SHU_R0_B0_INI_UIPI_CURR_INI_PI_B0, 0x0f,
+ SHU_R0_B0_INI_UIPI_CURR_INI_UI_B0, 0x10);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[0].shu_r0_b0_ini_uipi,
+ SHU_R0_B1_INI_UIPI_CURR_INI_PI_B1, 0x0f,
+ SHU_R0_B1_INI_UIPI_CURR_INI_UI_B1, 0x10);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[1].shu_r0_b0_ini_uipi,
+ SHU_R0_B0_INI_UIPI_CURR_INI_PI_B0, 0x1c,
+ SHU_R0_B0_INI_UIPI_CURR_INI_UI_B0, 0x17);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[1].shu_r0_b0_ini_uipi,
+ SHU_R0_B1_INI_UIPI_CURR_INI_PI_B1, 0x1c,
+ SHU_R0_B1_INI_UIPI_CURR_INI_UI_B1, 0x17);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_r0_b0_next_ini_uipi,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_PI_B0, 0x0f,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_UI_B0, 0x10,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_UI_P1_B0, 0x14);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[0].shu_r0_b0_next_ini_uipi,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_PI_B1, 0x0f,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_UI_B1, 0x10,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_UI_P1_B1, 0x14);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[1].shu_r0_b0_next_ini_uipi,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_PI_B0, 0x1c,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_UI_B0, 0x17,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_UI_P1_B0, 0x1b);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[1].shu_r0_b0_next_ini_uipi,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_PI_B1, 0x1c,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_UI_B1, 0x17,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI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ERATING0_TRCD_DERATE, 0x9);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_derating1,
+ SHU_AC_DERATING1_TRPAB_DERATE, 0x9,
+ SHU_AC_DERATING1_TRP_DERATE, 0x8,
+ SHU_AC_DERATING1_TRAS_DERATE, 0x0c,
+ SHU_AC_DERATING1_TRC_DERATE, 0x00);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_derating_05t,
+ SHU_AC_DERATING_05T_TRC_05T_DERATE, 0x0,
+ SHU_AC_DERATING_05T_TRCD_05T_DERATE, 0x1,
+ SHU_AC_DERATING_05T_TRP_05T_DERATE, 0x0,
+ SHU_AC_DERATING_05T_TRPAB_05T_DERATE, 0x1,
+ SHU_AC_DERATING_05T_TRAS_05T_DERATE, 0x0,
+ SHU_AC_DERATING_05T_TRRD_05T_DERATE, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_sref_ctrl,
+ SHU_SREF_CTRL_CKEHCMD, 0x3,
+ SHU_SREF_CTRL_SREF_CK_DLY, 0x3);
+ SET32_BITFIELDS(&ch[0].ao.shu_hmr4_dvfs_ctrl0,
+ SHU_HMR4_DVFS_CTRL0_FSPCHG_PRDCNT, 0x75,
+ SHU_HMR4_DVFS_CTRL0_REFRCNT, 0x000);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_time_05t,
+ SHU_AC_TIME_05T_TRC_05T, 0x0,
+ SHU_AC_TIME_05T_TRFCPB_05T, 0x0,
+ SHU_AC_TIME_05T_TRFC_05T, 0x1,
+ SHU_AC_TIME_05T_TPBR2PBR_05T, 0x0,
+ SHU_AC_TIME_05T_TXP_05T, 0x1,
+ SHU_AC_TIME_05T_TRTP_05T, 0x0,
+ SHU_AC_TIME_05T_TRCD_05T, 0x1,
+ SHU_AC_TIME_05T_TRP_05T, 0x0,
+ SHU_AC_TIME_05T_TRPAB_05T, 0x1,
+ SHU_AC_TIME_05T_TRAS_05T, 0x1,
+ SHU_AC_TIME_05T_TWR_M05T, 0x1,
+ SHU_AC_TIME_05T_TRRD_05T, 0x0,
+ SHU_AC_TIME_05T_TFAW_05T, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_time_05t,
+ SHU_AC_TIME_05T_TCKEPRD_05T, 0x0,
+ SHU_AC_TIME_05T_TR2PD_05T, 0x0,
+ SHU_AC_TIME_05T_TWTPD_M05T, 0x1,
+ SHU_AC_TIME_05T_TMRRI_05T, 0x0,
+ SHU_AC_TIME_05T_TMRWCKEL_05T, 0x0,
+ SHU_AC_TIME_05T_BGTRRD_05T, 0x0,
+ SHU_AC_TIME_05T_BGTCCD_05T, 0x0,
+ SHU_AC_TIME_05T_BGTWTR_M05T, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_time_05t,
+ SHU_AC_TIME_05T_TR2W_05T, 0x0,
+ SHU_AC_TIME_05T_TWTR_M05T, 0x0,
+ SHU_AC_TIME_05T_XRTR2W_05T, 0x0,
+ SHU_AC_TIME_05T_TMRD_05T, 0x1,
+ SHU_AC_TIME_05T_TMRW_05T, 0x0,
+ SHU_AC_TIME_05T_TMRR2MRW_05T, 0x1,
+ SHU_AC_TIME_05T_TW2MRW_05T, 0x0,
+ SHU_AC_TIME_05T_TR2MRW_05T, 0x1,
+ SHU_AC_TIME_05T_TPBR2ACT_05T, 0x1,
+ SHU_AC_TIME_05T_XRTW2R_M05T, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_actim_xrt,
+ SHU_ACTIM_XRT_XRTR2R, 0x03,
+ SHU_ACTIM_XRT_XRTR2W, 0x08,
+ SHU_ACTIM_XRT_XRTW2R, 0x1,
+ SHU_ACTIM_XRT_XRTW2W, 0x05);
+ SET32_BITFIELDS(&ch[0].ao.shu_actim0,
+ SHU_ACTIM0_TWTR, 0x08,
+ SHU_ACTIM0_TWR, 0x0d,
+ SHU_ACTIM0_TRRD, 0x4,
+ SHU_ACTIM0_TRCD, 0x8,
+ SHU_ACTIM0_CKELCKCNT, 0x3);
+ SET32_BITFIELDS(&ch[0].ao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
+ SHU_MISC_RDSEL_TRACK_RDSEL_TRACK_EN, 0x0,
+ SHU_MISC_RDSEL_TRACK_SHU_GW_THRD_NEG, 0xfcb,
+ SHU_MISC_RDSEL_TRACK_SHU_GW_THRD_POS, 0x035);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_rdat,
+ MISC_SHU_RDAT_DATLAT, 0x10,
+ MISC_SHU_RDAT_DATLAT_DSEL, 0x0f,
+ MISC_SHU_RDAT_DATLAT_DSEL_PHY, 0x0f);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_phy_rx_ctrl,
+ MISC_SHU_PHY_RX_CTRL_RANK_RXDLY_UPDLAT_EN, 0x1,
+ MISC_SHU_PHY_RX_CTRL_RANK_RXDLY_UPD_OFFSET, 0x2,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_PRE_OFFSET, 0x2,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_HEAD, 0x1,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_TAIL, 0x1,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_BUFF_EN_HEAD, 0x2,
+ MISC_SHU_PHY_RX_CTRL_RX_IN_BUFF_EN_TAIL, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_rankctl,
+ MISC_SHU_RANKCTL_RANKINCTL_RXDLY, 0x4,
+ MISC_SHU_RANKCTL_RANK_RXDLY_OPT, 0x1,
+ MISC_SHU_RANKCTL_RANKSEL_SELPH_FRUN, 0x1,
+ MISC_SHU_RANKCTL_RANKINCTL_STB, 0x6,
+ MISC_SHU_RANKCTL_RANKINCTL, 0x5,
+ MISC_SHU_RANKCTL_RANKINCTL_ROOT1, 0x5,
+ MISC_SHU_RANKCTL_RANKINCTL_PHY, 0x8);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_shu_rank_sel_lat,
+ MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_B0, 0x2,
+ MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_B1, 0x2,
+ MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_CA, 0x2);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[0].misc_shu_rk_dqsctl,
+ MISC_SHU_RK_DQSCTL_DQSINCTL, 0x7);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[1].misc_shu_rk_dqsctl,
+ MISC_SHU_RK_DQSCTL_DQSINCTL, 0x7);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_dqsien_mck_ui_dly,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P0_B0, 0x1,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P1_B0, 0x5,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P0_B0, 0x1,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P1_B0, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_rk_b0_dqsien_pi_dly,
+ SHU_RK_B0_DQSIEN_PI_DLY_DQSIEN_PI_B0, 0x01);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[1].shu_dqsien_mck_ui_dly,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P0_B0, 0x9,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P1_B0, 0xd,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P0_B0, 0x1,
+ SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P1_B0, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[1].shu_rk_b0_dqsien_pi_dly,
+ SHU_RK_B0_DQSIEN_PI_DLY_DQSIEN_PI_B0, 0x08);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[0].shu_dqsien_mck_ui_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CK_UI_DLY_RODTEN_MCK_P0_B0, 0x1,
+ SHU_RK_B0_RODTEN_MCK_UI_DLY_RODTEN_MCK_P1_B0, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[0].shu_rk_b0_rodten_mck_ui_dly,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_UI_P0_B1, 0x4,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_UI_P1_B1, 0x4,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_MCK_P0_B1, 0x0,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_MCK_P1_B1, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[1].shu_rk_b0_rodten_mck_ui_dly,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_UI_P0_B1, 0x4,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_UI_P1_B1, 0x4,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_MCK_P0_B1, 0x1,
+ SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_MCK_P1_B1, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_rx_cg_set0,
+ SHU_RX_CG_SET0_DLE_LAST_EXTEND3, 0x0,
+ SHU_RX_CG_SET0_READ_START_EXTEND3, 0x0,
+ SHU_RX_CG_SET0_DLE_LAST_EXTEND2, 0x1,
+ SHU_RX_CG_SET0_READ_START_EXTEND2, 0x1,
+ SHU_RX_CG_SET0_DLE_LAST_EXTEND1, 0x1,
+ SHU_RX_CG_SET0_READ_START_EXTEND1, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.shu_misc_rank_sel_stb,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_EN, 0x1,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_EN_B23, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_SERMODE, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_TRACK, 0x1,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_RXDLY_TRACK, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_PHASE_EN, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_PHSINCTL, 0x6,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_UI_PLUS, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_MCK_PLUS, 0x0,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_UI_MINUS, 0x2,
+ SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_MCK_MINUS, 0x0);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[0].misc_shu_rk_dqscal,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMT, 0x60,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMTEN, 0x1,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMT, 0x3f,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMTEN, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.misc_rk[1].misc_shu_rk_dqscal,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMT, 0x60,
+ MISC_SHU_RK_DQSCAL_DQSIENLLMTEN, 0x1,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMT, 0x3f,
+ MISC_SHU_RK_DQSCAL_DQSIENHLMTEN, 0x1);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_r0_b0_ini_uipi,
+ SHU_R0_B0_INI_UIPI_CURR_INI_PI_B0, 0x01,
+ SHU_R0_B0_INI_UIPI_CURR_INI_UI_B0, 0x11);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[0].shu_r0_b0_ini_uipi,
+ SHU_R0_B1_INI_UIPI_CURR_INI_PI_B1, 0x01,
+ SHU_R0_B1_INI_UIPI_CURR_INI_UI_B1, 0x11);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[1].shu_r0_b0_ini_uipi,
+ SHU_R0_B0_INI_UIPI_CURR_INI_PI_B0, 0x08,
+ SHU_R0_B0_INI_UIPI_CURR_INI_UI_B0, 0x19);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[1].shu_r0_b0_ini_uipi,
+ SHU_R0_B1_INI_UIPI_CURR_INI_PI_B1, 0x08,
+ SHU_R0_B1_INI_UIPI_CURR_INI_UI_B1, 0x19);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[0].shu_r0_b0_next_ini_uipi,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_PI_B0, 0x01,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_UI_B0, 0x11,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_UI_P1_B0, 0x15);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[0].shu_r0_b0_next_ini_uipi,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_PI_B1, 0x01,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_UI_B1, 0x11,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_UI_P1_B1, 0x15);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[0].rk[1].shu_r0_b0_next_ini_uipi,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_PI_B0, 0x08,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_UI_B0, 0x19,
+ SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_UI_P1_B0, 0x1d);
+ SET32_BITFIELDS(&ch[0].phy_ao.byte[1].rk[1].shu_r0_b0_next_ini_uipi,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_PI_B1, 0x08,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_UI_B1, 0x19,
+ SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_UI_P1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LY_B1, 0x08,
+ SHU_R0_B1_TXDLY3_TX_ARWCK_DLY_B1, 0x00,
+ SHU_R0_B1_TXDLY3_TX_ARWCKB_DLY_B1, 0x00);
+ SET32_BITFIELDS(&ch[0].ao.shu_tx_rankctl,
+ SHU_TX_RANKCTL_TXRANKINCTL_TXDLY, 0x1,
+ SHU_TX_RANKCTL_TXRANKINCTL, 0x1,
+ SHU_TX_RANKCTL_TXRANKINCTL_ROOT, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_derating0,
+ SHU_AC_DERATING0_ACDERATEEN, 0x0,
+ SHU_AC_DERATING0_TRRD_DERATE, 0x5,
+ SHU_AC_DERATING0_TRCD_DERATE, 0xb);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_derating1,
+ SHU_AC_DERATING1_TRPAB_DERATE, 0xb,
+ SHU_AC_DERATING1_TRP_DERATE, 0x9,
+ SHU_AC_DERATING1_TRAS_DERATE, 0x0f,
+ SHU_AC_DERATING1_TRC_DERATE, 0x00);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_derating_05t,
+ SHU_AC_DERATING_05T_TRC_05T_DERATE, 0x0,
+ SHU_AC_DERATING_05T_TRCD_05T_DERATE, 0x0,
+ SHU_AC_DERATING_05T_TRP_05T_DERATE, 0x1,
+ SHU_AC_DERATING_05T_TRPAB_05T_DERATE, 0x0,
+ SHU_AC_DERATING_05T_TRAS_05T_DERATE, 0x0,
+ SHU_AC_DERATING_05T_TRRD_05T_DERATE, 0x1);
+ SET32_BITFIELDS(&ch[0].ao.shu_sref_ctrl,
+ SHU_SREF_CTRL_CKEHCMD, 0x3,
+ SHU_SREF_CTRL_SREF_CK_DLY, 0x3);
+ SET32_BITFIELDS(&ch[0].ao.shu_hmr4_dvfs_ctrl0,
+ SHU_HMR4_DVFS_CTRL0_FSPCHG_PRDCNT, 0x86,
+ SHU_HMR4_DVFS_CTRL0_REFRCNT, 0x000);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_time_05t,
+ SHU_AC_TIME_05T_TRC_05T, 0x0,
+ SHU_AC_TIME_05T_TRFCPB_05T, 0x1,
+ SHU_AC_TIME_05T_TRFC_05T, 0x0,
+ SHU_AC_TIME_05T_TPBR2PBR_05T, 0x0,
+ SHU_AC_TIME_05T_TXP_05T, 0x0,
+ SHU_AC_TIME_05T_TRTP_05T, 0x1,
+ SHU_AC_TIME_05T_TRCD_05T, 0x0,
+ SHU_AC_TIME_05T_TRP_05T, 0x1,
+ SHU_AC_TIME_05T_TRPAB_05T, 0x0,
+ SHU_AC_TIME_05T_TRAS_05T, 0x0,
+ SHU_AC_TIME_05T_TWR_M05T, 0x0,
+ SHU_AC_TIME_05T_TRRD_05T, 0x0,
+ SHU_AC_TIME_05T_TFAW_05T, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_time_05t,
+ SHU_AC_TIME_05T_TCKEPRD_05T, 0x0,
+ SHU_AC_TIME_05T_TR2PD_05T, 0x1,
+ SHU_AC_TIME_05T_TWTPD_M05T, 0x0,
+ SHU_AC_TIME_05T_TMRRI_05T, 0x0,
+ SHU_AC_TIME_05T_TMRWCKEL_05T, 0x1,
+ SHU_AC_TIME_05T_BGTRRD_05T, 0x0,
+ SHU_AC_TIME_05T_BGTCCD_05T, 0x0,
+ SHU_AC_TIME_05T_BGTWTR_M05T, 0x0);
+ SET32_BITFIELDS(&ch[0].ao.shu_ac_time_05t,
+ SHU_AC_TIME_05T_TR2W_05T, 0x0,
+ SHU_AC_TIME_05T_TWTR_M05T, 0x1,
+ SHU_AC_TIME_05T_XRTR2W_05T, 0x0,
+ SHU_AC_TIME_05T_TMRD_05T, 0x0,
+ SHU_AC_TIME_05T_TMRW_05T, 0x1,
+ SHU_AC_TIME_05T_TMRR2MRW_05T, 0x0,
+ SHU_AC_TIME_05T_TW2MRW_05T, 0x0,
+ SHU_AC_TIME_05T_TR2MRW_05T, 0x0,
+ SHU_AC_TIME_05T_TPBR2ACT_05T, 0x0,
+ SHU_AC_TIME_05T_XR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 B1_DQ5_RG_RX_ARDQ_EYE_SEL_B1, 0x0,
+ B1_DQ5_RG_RX_ARDQ_EYE_EN_B1, 0x0,
+ B1_DQ5_RG_RX_ARDQ_EYE_STBEN_RESETB_B1, 0x1,
+ B1_DQ5_RG_RX_ARDQS0_DVS_EN_B1, 0x0);
+}
+
static u32 get_write_latency_by_mr(u8 mr_wl)
{
u32 write_latency;
@@ -186,6 +3082,35 @@ static void tx_path_algorithm(const struct ddr_cali *cali)
}
}
+static void dramc_setting(const struct ddr_cali *cali)
+{
+ dram_freq_grp freq_group = cali->freq_group;
+
+ dramc_set_broadcast(DRAMC_BROADCAST_ON);
+ switch (freq_group) {
+ case DDRFREQ_400:
+ sv_algorithm_assistance_lp4_800();
+ break;
+ case DDRFREQ_600:
+ case DDRFREQ_800:
+ case DDRFREQ_933:
+ case DDRFREQ_1200:
+ sv_algorithm_assistance_lp4_1600();
+ break;
+ case DDRFREQ_1600:
+ sv_algorithm_assistance_lp4_3733();
+ break;
+ case DDRFREQ_2133:
+ sv_algorithm_assistance_lp4_4266();
+ break;
+ default:
+ die("Invalid DDR frequency group %u\n", freq_group);
+ return;
+ }
+
+ dramc_set_broadcast(DRAMC_BROADCAST_OFF);
+}
+
void cke_fix_onoff(const struct ddr_cali *cali, u8 chn, u8 rank, int option)
{
u8 cke_on = 0, cke_off = 0;
@@ -296,6 +3221,7 @@ static void dramc_reset_delay_chain_before_calibration(void)
static void dramc_init(const struct ddr_cali *cali)
{
+ dramc_setting(cali);
dramc_reset_delay_chain_before_calibration();
}