diff options
author | Huayang Duan <huayang.duan@mediatek.com> | 2020-06-24 10:14:32 +0800 |
---|---|---|
committer | Hung-Te Lin <hungte@chromium.org> | 2021-03-08 03:15:43 +0000 |
commit | 4c7bf7eaaf5c185272b947fd6a1c8da7dbe01edf (patch) | |
tree | 1821ec454307eebc1d37dfe4c07bb0baecb8b91a /src/soc/mediatek/mt8192/include | |
parent | e8c681cc6249cc7717885a12373e4fcf34034b1c (diff) |
soc/mediatek/mt8192: initialize DRAM using vendor reference code
Mediatek has released the reference implementation for DRAM
initialization in vendorcode/mediatek/mt8192/dramc (CB:50294)
so we want to use it to replace the derived calibration code
in soc folder.
Signed-off-by: Xi Chen <xixi.chen@mediatek.com>
Change-Id: I2b2f41d774c6b85f106867144fb0b29a4a1bdfcf
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51125
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/soc/mediatek/mt8192/include')
-rw-r--r-- | src/soc/mediatek/mt8192/include/soc/dramc_ac_timing.h | 972 | ||||
-rw-r--r-- | src/soc/mediatek/mt8192/include/soc/dramc_common_mt8192.h | 63 | ||||
-rw-r--r-- | src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h | 352 | ||||
-rw-r--r-- | src/soc/mediatek/mt8192/include/soc/dramc_register.h | 1818 | ||||
-rw-r--r-- | src/soc/mediatek/mt8192/include/soc/dramc_register_bits_def.h | 2837 |
5 files changed, 0 insertions, 6042 deletions
diff --git a/src/soc/mediatek/mt8192/include/soc/dramc_ac_timing.h b/src/soc/mediatek/mt8192/include/soc/dramc_ac_timing.h deleted file mode 100644 index f00101a3a9..0000000000 --- a/src/soc/mediatek/mt8192/include/soc/dramc_ac_timing.h +++ /dev/null @@ -1,972 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#ifndef __SOC_MEDIATEK_MT8192_DRAMC_AC_TIMING_H__ -#define __SOC_MEDIATEK_MT8192_DRAMC_AC_TIMING_H__ - -#include <stdint.h> -#include <sys/types.h> -#include <soc/dramc_common_mt8192.h> -#include <soc/dramc_pi_api.h> - -/* Normal Mode and Byte Mode */ -#define AC_TIMING_NUMBER (DDRFREQ_MAX * 2) - -struct ac_timing { - u8 cbt_mode, read_dbi; - u8 div_mode; - u16 freq_group; - u16 read_lat, write_lat; - u16 dqsinctl, datlat; - u16 tras; - u16 trp; - u16 trpab; - u16 trc; - u16 trfc; - u16 trfcpb; - u16 txp; - u16 trtp; - u16 trcd; - u16 twr; - u16 twtr; - u16 tpbr2pbr; - u16 tpbr2act; - u16 tr2mrw; - u16 tw2mrw; - u16 tmrr2mrw; - u16 tmrw; - u16 tmrd; - u16 tmrwckel; - u16 tpde; - u16 tpdx; - u16 tmrri; - u16 trrd; - u16 trrd_4266; - u16 tfaw; - u16 tfaw_4266; - u16 trtw_odt_off; - u16 trtw_odt_on; - u16 txrefcnt; - u16 tzqcs; - u16 xrtw2w_new_mode; - u16 xrtw2w_old_mode; - u16 xrtw2r_odt_on; - u16 xrtw2r_odt_off; - u16 xrtr2w_odt_on; - u16 xrtr2w_odt_off; - u16 xrtr2r_new_mode; - u16 xrtr2r_old_mode; - u16 tr2mrr; - u16 vrcgdis_prdcnt; - u16 hwset_mr2_op; - u16 hwset_mr13_op; - u16 hwset_vrcg_op; - u16 trcd_derate; - u16 trc_derate; - u16 tras_derate; - u16 trpab_derate; - u16 trp_derate; - u16 trrd_derate; - u16 trtpd; - u16 twtpd; - u16 tmrr2w_odt_off; - u16 tmrr2w_odt_on; - u16 ckeprd; - u16 ckelckcnt; - u16 zqlat2; - u16 tras_05T; - u16 trp_05T; - u16 trpab_05T; - u16 trc_05T; - u16 trfc_05T; - u16 trfcpb_05T; - u16 txp_05T; - u16 trtp_05T; - u16 trcd_05T; - u16 twr_05T; - u16 twtr_05T; - u16 tpbr2pbr_05T; - u16 tpbr2act_05T; - u16 tr2mrw_05T; - u16 tw2mrw_05T; - u16 tmrr2mrw_05T; - u16 tmrw_05T; - u16 tmrd_05T; - u16 tmrwckel_05T; - u16 tpde_05T; - u16 tpdx_05T; - u16 tmrri_05T; - u16 trrd_05T; - u16 trrd_4266_05T; - u16 tfaw_05T; - u16 tfaw_4266_05T; - u16 trtw_odt_off_05T; - u16 trtw_odt_on_05T; - u16 trcd_derate_05T; - u16 trc_derate_05T; - u16 tras_derate_05T; - u16 trpab_derate_05T; - u16 trp_derate_05T; - u16 trrd_derate_05T; - u16 trtpd_05T; - u16 twtpd_05T; -}; - -/* Normal Mode and Byte Mode for each frequency */ -static const struct ac_timing ac_timing_tbl[AC_TIMING_NUMBER] = { - { - .freq_group = DDRFREQ_2133, .cbt_mode = CBT_NORMAL_MODE, .read_dbi = 0, - .read_lat = 36, .write_lat = 18, .div_mode = DIV8_MODE, - .tras = 14, .tras_05T = 0, - .trp = 8, .trp_05T = 1, - .trpab = 10, .trpab_05T = 0, - .trc = 23, .trc_05T = 0, - .trfc = 137, .trfc_05T = 1, - .trfcpb = 63, .trfcpb_05T = 0, - .txp = 1, .txp_05T = 0, - .trtp = 2, .trtp_05T = 1, - .trcd = 10, .trcd_05T = 0, - .twr = 15, .twr_05T = 0, - .twtr = 10, .twtr_05T = 1, - .tpbr2pbr = 41, .tpbr2pbr_05T = 0, - .tpbr2act = 0, .tpbr2act_05T = 0, - .tr2mrw = 17, .tr2mrw_05T = 0, - .tw2mrw = 11, .tw2mrw_05T = 0, - .tmrr2mrw = 14, .tmrr2mrw_05T = 0, - .tmrw = 6, .tmrw_05T = 0, - .tmrd = 8, .tmrd_05T = 0, - .tmrwckel = 9, .tmrwckel_05T = 0, - .tpde = 1, .tpde_05T = 1, - .tpdx = 1, .tpdx_05T = 0, - .tmrri = 14, .tmrri_05T = 0, - .trrd = 4, .trrd_05T = 1, - .trrd_4266 = 3, .trrd_4266_05T = 0, - .tfaw = 13, .tfaw_05T = 1, - .tfaw_4266 = 8, .tfaw_4266_05T = 0, - .trtw_odt_off = 6, .trtw_odt_off_05T = 0, - .trtw_odt_on = 8, .trtw_odt_on_05T = 0, - .txrefcnt = 154, - .tzqcs = 46, - .xrtw2w_new_mode = 5, - .xrtw2w_old_mode = 6, - .xrtw2r_odt_on = 1, - .xrtw2r_odt_off = 1, - .xrtr2w_odt_on = 7, - .xrtr2w_odt_off = 7, - .xrtr2r_new_mode = 3, - .xrtr2r_old_mode = 7, - .tr2mrr = 4, - .vrcgdis_prdcnt = 54, - .hwset_mr2_op = 63, - .hwset_mr13_op = 216, - .hwset_vrcg_op = 208, - .trcd_derate = 11, .trcd_derate_05T = 0, - .trc_derate = 26, .trc_derate_05T = 0, - .tras_derate = 15, .tras_derate_05T = 0, - .trpab_derate = 11, .trpab_derate_05T = 0, - .trp_derate = 9, .trp_derate_05T = 1, - .trrd_derate = 5, .trrd_derate_05T = 1, - .trtpd = 14, .trtpd_05T = 1, - .twtpd = 18, .twtpd_05T = 0, - .tmrr2w_odt_off = 10, - .tmrr2w_odt_on = 12, - .ckeprd = 3, - .ckelckcnt = 3, - .zqlat2 = 16, - .dqsinctl = 7, .datlat = 18 - }, - { - .freq_group = DDRFREQ_2133, .cbt_mode = CBT_BYTE_MODE1, .read_dbi = 0, - .read_lat = 40, .write_lat = 18, .div_mode = DIV8_MODE, - .tras = 14, .tras_05T = 0, - .trp = 8, .trp_05T = 1, - .trpab = 10, .trpab_05T = 0, - .trc = 23, .trc_05T = 0, - .trfc = 137, .trfc_05T = 1, - .trfcpb = 63, .trfcpb_05T = 0, - .txp = 1, .txp_05T = 0, - .trtp = 2, .trtp_05T = 1, - .trcd = 10, .trcd_05T = 0, - .twr = 16, .twr_05T = 0, - .twtr = 11, .twtr_05T = 1, - .tpbr2pbr = 41, .tpbr2pbr_05T = 0, - .tpbr2act = 0, .tpbr2act_05T = 0, - .tr2mrw = 18, .tr2mrw_05T = 0, - .tw2mrw = 11, .tw2mrw_05T = 0, - .tmrr2mrw = 15, .tmrr2mrw_05T = 0, - .tmrw = 6, .tmrw_05T = 0, - .tmrd = 8, .tmrd_05T = 0, - .tmrwckel = 9, .tmrwckel_05T = 0, - .tpde = 1, .tpde_05T = 1, - .tpdx = 1, .tpdx_05T = 0, - .tmrri = 14, .tmrri_05T = 0, - .trrd = 4, .trrd_05T = 1, - .trrd_4266 = 3, .trrd_4266_05T = 0, - .tfaw = 13, .tfaw_05T = 1, - .tfaw_4266 = 8, .tfaw_4266_05T = 0, - .trtw_odt_off = 7, .trtw_odt_off_05T = 0, - .trtw_odt_on = 9, .trtw_odt_on_05T = 0, - .txrefcnt = 154, - .tzqcs = 46, - .xrtw2w_new_mode = 5, - .xrtw2w_old_mode = 6, - .xrtw2r_odt_on = 1, - .xrtw2r_odt_off = 1, - .xrtr2w_odt_on = 8, - .xrtr2w_odt_off = 8, - .xrtr2r_new_mode = 3, - .xrtr2r_old_mode = 7, - .tr2mrr = 4, - .vrcgdis_prdcnt = 54, - .hwset_mr2_op = 63, - .hwset_mr13_op = 216, - .hwset_vrcg_op = 208, - .trcd_derate = 11, .trcd_derate_05T = 0, - .trc_derate = 26, .trc_derate_05T = 0, - .tras_derate = 15, .tras_derate_05T = 0, - .trpab_derate = 11, .trpab_derate_05T = 0, - .trp_derate = 9, .trp_derate_05T = 1, - .trrd_derate = 5, .trrd_derate_05T = 1, - .trtpd = 15, .trtpd_05T = 1, - .twtpd = 19, .twtpd_05T = 0, - .tmrr2w_odt_off = 11, - .tmrr2w_odt_on = 13, - .ckeprd = 3, - .ckelckcnt = 3, - .zqlat2 = 16, - .dqsinctl = 7, .datlat = 18 - }, - { - .freq_group = DDRFREQ_1600, .cbt_mode = CBT_NORMAL_MODE, .read_dbi = 0, - .read_lat = 28, .write_lat = 14, .div_mode = DIV8_MODE, - .tras = 8, .tras_05T = 1, - .trp = 6, .trp_05T = 0, - .trpab = 7, .trpab_05T = 0, - .trc = 15, .trc_05T = 0, - .trfc = 100, .trfc_05T = 0, - .trfcpb = 44, .trfcpb_05T = 0, - .txp = 0, .txp_05T = 0, - .trtp = 1, .trtp_05T = 1, - .trcd = 7, .trcd_05T = 1, - .twr = 12, .twr_05T = 1, - .twtr = 7, .twtr_05T = 0, - .tpbr2pbr = 29, .tpbr2pbr_05T = 0, - .tpbr2act = 0, .tpbr2act_05T = 0, - .tr2mrw = 13, .tr2mrw_05T = 1, - .tw2mrw = 9, .tw2mrw_05T = 0, - .tmrr2mrw = 11, .tmrr2mrw_05T = 1, - .tmrw = 4, .tmrw_05T = 1, - .tmrd = 6, .tmrd_05T = 1, - .tmrwckel = 7, .tmrwckel_05T = 1, - .tpde = 1, .tpde_05T = 1, - .tpdx = 1, .tpdx_05T = 0, - .tmrri = 10, .tmrri_05T = 1, - .trrd = 3, .trrd_05T = 0, - .trrd_4266 = 2, .trrd_4266_05T = 0, - .tfaw = 8, .tfaw_05T = 0, - .tfaw_4266 = 4, .tfaw_4266_05T = 0, - .trtw_odt_off = 4, .trtw_odt_off_05T = 0, - .trtw_odt_on = 6, .trtw_odt_on_05T = 0, - .txrefcnt = 115, - .tzqcs = 34, - .xrtw2w_new_mode = 4, - .xrtw2w_old_mode = 6, - .xrtw2r_odt_on = 1, - .xrtw2r_odt_off = 1, - .xrtr2w_odt_on = 5, - .xrtr2w_odt_off = 5, - .xrtr2r_new_mode = 3, - .xrtr2r_old_mode = 7, - .tr2mrr = 4, - .vrcgdis_prdcnt = 40, - .hwset_mr2_op = 45, - .hwset_mr13_op = 216, - .hwset_vrcg_op = 208, - .trcd_derate = 8, .trcd_derate_05T = 0, - .trc_derate = 17, .trc_derate_05T = 0, - .tras_derate = 9, .tras_derate_05T = 1, - .trpab_derate = 8, .trpab_derate_05T = 0, - .trp_derate = 6, .trp_derate_05T = 1, - .trrd_derate = 4, .trrd_derate_05T = 0, - .trtpd = 12, .trtpd_05T = 0, - .twtpd = 14, .twtpd_05T = 1, - .tmrr2w_odt_off = 8, - .tmrr2w_odt_on = 10, - .ckeprd = 2, - .ckelckcnt = 2, - .zqlat2 = 12, - .dqsinctl = 5, .datlat = 15 - }, - { - .freq_group = DDRFREQ_1600, .cbt_mode = CBT_BYTE_MODE1, .read_dbi = 0, - .read_lat = 32, .write_lat = 14, .div_mode = DIV8_MODE, - .tras = 8, .tras_05T = 1, - .trp = 6, .trp_05T = 0, - .trpab = 7, .trpab_05T = 0, - .trc = 15, .trc_05T = 0, - .trfc = 100, .trfc_05T = 0, - .trfcpb = 44, .trfcpb_05T = 0, - .txp = 0, .txp_05T = 0, - .trtp = 1, .trtp_05T = 1, - .trcd = 7, .trcd_05T = 1, - .twr = 12, .twr_05T = 1, - .twtr = 8, .twtr_05T = 0, - .tpbr2pbr = 29, .tpbr2pbr_05T = 0, - .tpbr2act = 0, .tpbr2act_05T = 0, - .tr2mrw = 14, .tr2mrw_05T = 1, - .tw2mrw = 9, .tw2mrw_05T = 0, - .tmrr2mrw = 12, .tmrr2mrw_05T = 1, - .tmrw = 4, .tmrw_05T = 1, - .tmrd = 6, .tmrd_05T = 1, - .tmrwckel = 7, .tmrwckel_05T = 1, - .tpde = 1, .tpde_05T = 1, - .tpdx = 1, .tpdx_05T = 0, - .tmrri = 10, .tmrri_05T = 1, - .trrd = 3, .trrd_05T = 0, - .trrd_4266 = 2, .trrd_4266_05T = 0, - .tfaw = 8, .tfaw_05T = 0, - .tfaw_4266 = 4, .tfaw_4266_05T = 0, - .trtw_odt_off = 5, .trtw_odt_off_05T = 0, - .trtw_odt_on = 7, .trtw_odt_on_05T = 0, - .txrefcnt = 115, - .tzqcs = 34, - .xrtw2w_new_mode = 4, - .xrtw2w_old_mode = 6, - .xrtw2r_odt_on = 1, - .xrtw2r_odt_off = 1, - .xrtr2w_odt_on = 6, - .xrtr2w_odt_off = 6, - .xrtr2r_new_mode = 3, - .xrtr2r_old_mode = 7, - .tr2mrr = 4, - .vrcgdis_prdcnt = 40, - .hwset_mr2_op = 45, - .hwset_mr13_op = 216, - .hwset_vrcg_op = 208, - .trcd_derate = 8, .trcd_derate_05T = 0, - .trc_derate = 17, .trc_derate_05T = 0, - .tras_derate = 9, .tras_derate_05T = 1, - .trpab_derate = 8, .trpab_derate_05T = 0, - .trp_derate = 6, .trp_derate_05T = 1, - .trrd_derate = 4, .trrd_derate_05T = 0, - .trtpd = 13, .trtpd_05T = 0, - .twtpd = 15, .twtpd_05T = 1, - .tmrr2w_odt_off = 9, - .tmrr2w_odt_on = 11, - .ckeprd = 2, - .ckelckcnt = 2, - .zqlat2 = 12, - .dqsinctl = 5, .datlat = 15 - }, - { - .freq_group = DDRFREQ_1200, .cbt_mode = CBT_NORMAL_MODE, .read_dbi = 0, - .read_lat = 24, .write_lat = 12, .div_mode = DIV8_MODE, - .tras = 4, .tras_05T = 1, - .trp = 4, .trp_05T = 0, - .trpab = 5, .trpab_05T = 0, - .trc = 9, .trc_05T = 1, - .trfc = 72, .trfc_05T = 1, - .trfcpb = 30, .trfcpb_05T = 1, - .txp = 0, .txp_05T = 1, - .trtp = 1, .trtp_05T = 0, - .trcd = 5, .trcd_05T = 1, - .twr = 9, .twr_05T = 1, - .twtr = 6, .twtr_05T = 1, - .tpbr2pbr = 20, .tpbr2pbr_05T = 1, - .tpbr2act = 0, .tpbr2act_05T = 0, - .tr2mrw = 12, .tr2mrw_05T = 0, - .tw2mrw = 8, .tw2mrw_05T = 0, - .tmrr2mrw = 10, .tmrr2mrw_05T = 0, - .tmrw = 4, .tmrw_05T = 0, - .tmrd = 5, .tmrd_05T = 0, - .tmrwckel = 6, .tmrwckel_05T = 0, - .tpde = 1, .tpde_05T = 1, - .tpdx = 1, .tpdx_05T = 0, - .tmrri = 8, .tmrri_05T = 0, - .trrd = 2, .trrd_05T = 1, - .trrd_4266 = 1, .trrd_4266_05T = 1, - .tfaw = 4, .tfaw_05T = 1, - .tfaw_4266 = 1, .tfaw_4266_05T = 1, - .trtw_odt_off = 3, .trtw_odt_off_05T = 0, - .trtw_odt_on = 6, .trtw_odt_on_05T = 0, - .txrefcnt = 87, - .tzqcs = 26, - .xrtw2w_new_mode = 4, - .xrtw2w_old_mode = 6, - .xrtw2r_odt_on = 2, - .xrtw2r_odt_off = 2, - .xrtr2w_odt_on = 5, - .xrtr2w_odt_off = 5, - .xrtr2r_new_mode = 3, - .xrtr2r_old_mode = 6, - .tr2mrr = 4, - .vrcgdis_prdcnt = 31, - .hwset_mr2_op = 36, - .hwset_mr13_op = 24, - .hwset_vrcg_op = 16, - .trcd_derate = 6, .trcd_derate_05T = 0, - .trc_derate = 10, .trc_derate_05T = 1, - .tras_derate = 5, .tras_derate_05T = 0, - .trpab_derate = 5, .trpab_derate_05T = 1, - .trp_derate = 4, .trp_derate_05T = 1, - .trrd_derate = 3, .trrd_derate_05T = 0, - .trtpd = 10, .trtpd_05T = 1, - .twtpd = 12, .twtpd_05T = 0, - .tmrr2w_odt_off = 6, - .tmrr2w_odt_on = 8, - .ckeprd = 2, - .ckelckcnt = 2, - .zqlat2 = 10, - .dqsinctl = 4, .datlat = 13 - }, - { - .freq_group = DDRFREQ_1200, .cbt_mode = CBT_BYTE_MODE1, .read_dbi = 0, - .read_lat = 26, .write_lat = 12, .div_mode = DIV8_MODE, - .tras = 4, .tras_05T = 1, - .trp = 4, .trp_05T = 0, - .trpab = 5, .trpab_05T = 0, - .trc = 9, .trc_05T = 1, - .trfc = 72, .trfc_05T = 1, - .trfcpb = 30, .trfcpb_05T = 1, - .txp = 0, .txp_05T = 1, - .trtp = 1, .trtp_05T = 0, - .trcd = 5, .trcd_05T = 1, - .twr = 10, .twr_05T = 0, - .twtr = 6, .twtr_05T = 0, - .tpbr2pbr = 20, .tpbr2pbr_05T = 1, - .tpbr2act = 0, .tpbr2act_05T = 0, - .tr2mrw = 12, .tr2mrw_05T = 1, - .tw2mrw = 8, .tw2mrw_05T = 0, - .tmrr2mrw = 10, .tmrr2mrw_05T = 1, - .tmrw = 4, .tmrw_05T = 0, - .tmrd = 5, .tmrd_05T = 0, - .tmrwckel = 6, .tmrwckel_05T = 0, - .tpde = 1, .tpde_05T = 1, - .tpdx = 1, .tpdx_05T = 0, - .tmrri = 8, .tmrri_05T = 0, - .trrd = 2, .trrd_05T = 1, - .trrd_4266 = 1, .trrd_4266_05T = 1, - .tfaw = 4, .tfaw_05T = 1, - .tfaw_4266 = 1, .tfaw_4266_05T = 1, - .trtw_odt_off = 4, .trtw_odt_off_05T = 0, - .trtw_odt_on = 6, .trtw_odt_on_05T = 0, - .txrefcnt = 87, - .tzqcs = 26, - .xrtw2w_new_mode = 4, - .xrtw2w_old_mode = 6, - .xrtw2r_odt_on = 1, - .xrtw2r_odt_off = 1, - .xrtr2w_odt_on = 5, - .xrtr2w_odt_off = 5, - .xrtr2r_new_mode = 3, - .xrtr2r_old_mode = 6, - .tr2mrr = 4, - .vrcgdis_prdcnt = 31, - .hwset_mr2_op = 36, - .hwset_mr13_op = 24, - .hwset_vrcg_op = 16, - .trcd_derate = 6, .trcd_derate_05T = 0, - .trc_derate = 10, .trc_derate_05T = 1, - .tras_derate = 5, .tras_derate_05T = 0, - .trpab_derate = 5, .trpab_derate_05T = 1, - .trp_derate = 4, .trp_derate_05T = 1, - .trrd_derate = 3, .trrd_derate_05T = 0, - .trtpd = 11, .trtpd_05T = 0, - .twtpd = 13, .twtpd_05T = 0, - .tmrr2w_odt_off = 7, - .tmrr2w_odt_on = 9, - .ckeprd = 2, - .ckelckcnt = 2, - .zqlat2 = 10, - .dqsinctl = 4, .datlat = 13 - }, - { - .freq_group = DDRFREQ_933, .cbt_mode = CBT_NORMAL_MODE, .read_dbi = 0, - .read_lat = 20, .write_lat = 10, .div_mode = DIV8_MODE, - .tras = 1, .tras_05T = 1, - .trp = 3, .trp_05T = 0, - .trpab = 3, .trpab_05T = 1, - .trc = 5, .trc_05T = 0, - .trfc = 53, .trfc_05T = 1, - .trfcpb = 21, .trfcpb_05T = 0, - .txp = 0, .txp_05T = 0, - .trtp = 0, .trtp_05T = 1, - .trcd = 4, .trcd_05T = 1, - .twr = 8, .twr_05T = 1, - .twtr = 5, .twtr_05T = 1, - .tpbr2pbr = 14, .tpbr2pbr_05T = 0, - .tpbr2act = 0, .tpbr2act_05T = 0, - .tr2mrw = 10, .tr2mrw_05T = 0, - .tw2mrw = 7, .tw2mrw_05T = 0, - .tmrr2mrw = 9, .tmrr2mrw_05T = 0, - .tmrw = 3, .tmrw_05T = 0, - .tmrd = 4, .tmrd_05T = 0, - .tmrwckel = 5, .tmrwckel_05T = 0, - .tpde = 1, .tpde_05T = 1, - .tpdx = 1, .tpdx_05T = 0, - .tmrri = 6, .tmrri_05T = 0, - .trrd = 1, .trrd_05T = 1, - .trrd_4266 = 1, .trrd_4266_05T = 0, - .tfaw = 1, .tfaw_05T = 1, - .tfaw_4266 = 0, .tfaw_4266_05T = 0, - .trtw_odt_off = 3, .trtw_odt_off_05T = 0, - .trtw_odt_on = 5, .trtw_odt_on_05T = 0, - .txrefcnt = 68, - .tzqcs = 19, - .xrtw2w_new_mode = 4, - .xrtw2w_old_mode = 6, - .xrtw2r_odt_on = 2, - .xrtw2r_odt_off = 2, - .xrtr2w_odt_on = 3, - .xrtr2w_odt_off = 3, - .xrtr2r_new_mode = 3, - .xrtr2r_old_mode = 6, - .tr2mrr = 4, - .vrcgdis_prdcnt = 24, - .hwset_mr2_op = 27, - .hwset_mr13_op = 24, - .hwset_vrcg_op = 16, - .trcd_derate = 5, .trcd_derate_05T = 0, - .trc_derate = 6, .trc_derate_05T = 1, - .tras_derate = 2, .tras_derate_05T = 0, - .trpab_derate = 4, .trpab_derate_05T = 0, - .trp_derate = 3, .trp_derate_05T = 1, - .trrd_derate = 2, .trrd_derate_05T = 0, - .trtpd = 9, .trtpd_05T = 1, - .twtpd = 10, .twtpd_05T = 1, - .tmrr2w_odt_off = 5, - .tmrr2w_odt_on = 7, - .ckeprd = 1, - .ckelckcnt = 2, - .zqlat2 = 7, - .dqsinctl = 3, .datlat = 13 - }, - { - .freq_group = DDRFREQ_933, .cbt_mode = CBT_BYTE_MODE1, .read_dbi = 0, - .read_lat = 22, .write_lat = 10, .div_mode = DIV8_MODE, - .tras = 1, .tras_05T = 1, - .trp = 3, .trp_05T = 0, - .trpab = 3, .trpab_05T = 1, - .trc = 5, .trc_05T = 0, - .trfc = 53, .trfc_05T = 1, - .trfcpb = 21, .trfcpb_05T = 0, - .txp = 0, .txp_05T = 0, - .trtp = 0, .trtp_05T = 1, - .trcd = 4, .trcd_05T = 1, - .twr = 8, .twr_05T = 0, - .twtr = 5, .twtr_05T = 0, - .tpbr2pbr = 14, .tpbr2pbr_05T = 0, - .tpbr2act = 0, .tpbr2act_05T = 0, - .tr2mrw = 10, .tr2mrw_05T = 1, - .tw2mrw = 7, .tw2mrw_05T = 0, - .tmrr2mrw = 9, .tmrr2mrw_05T = 1, - .tmrw = 3, .tmrw_05T = 0, - .tmrd = 4, .tmrd_05T = 0, - .tmrwckel = 5, .tmrwckel_05T = 0, - .tpde = 1, .tpde_05T = 1, - .tpdx = 1, .tpdx_05T = 0, - .tmrri = 6, .tmrri_05T = 0, - .trrd = 1, .trrd_05T = 1, - .trrd_4266 = 1, .trrd_4266_05T = 0, - .tfaw = 1, .tfaw_05T = 1, - .tfaw_4266 = 0, .tfaw_4266_05T = 0, - .trtw_odt_off = 3, .trtw_odt_off_05T = 0, - .trtw_odt_on = 5, .trtw_odt_on_05T = 0, - .txrefcnt = 68, - .tzqcs = 19, - .xrtw2w_new_mode = 4, - .xrtw2w_old_mode = 6, - .xrtw2r_odt_on = 2, - .xrtw2r_odt_off = 1, - .xrtr2w_odt_on = 4, - .xrtr2w_odt_off = 4, - .xrtr2r_new_mode = 3, - .xrtr2r_old_mode = 6, - .tr2mrr = 4, - .vrcgdis_prdcnt = 24, - .hwset_mr2_op = 27, - .hwset_mr13_op = 24, - .hwset_vrcg_op = 16, - .trcd_derate = 5, .trcd_derate_05T = 0, - .trc_derate = 6, .trc_derate_05T = 1, - .tras_derate = 2, .tras_derate_05T = 0, - .trpab_derate = 4, .trpab_derate_05T = 0, - .trp_derate = 3, .trp_derate_05T = 1, - .trrd_derate = 2, .trrd_derate_05T = 0, - .trtpd = 10, .trtpd_05T = 0, - .twtpd = 11, .twtpd_05T = 0, - .tmrr2w_odt_off = 6, - .tmrr2w_odt_on = 8, - .ckeprd = 1, - .ckelckcnt = 2, - .zqlat2 = 7, - .dqsinctl = 3, .datlat = 13 - }, - { - .freq_group = DDRFREQ_800, .cbt_mode = CBT_NORMAL_MODE, .read_dbi = 0, - .read_lat = 14, .write_lat = 8, .div_mode = DIV8_MODE, - .tras = 0, .tras_05T = 0, - .trp = 2, .trp_05T = 1, - .trpab = 3, .trpab_05T = 0, - .trc = 3, .trc_05T = 0, - .trfc = 44, .trfc_05T = 0, - .trfcpb = 16, .trfcpb_05T = 0, - .txp = 0, .txp_05T = 0, - .trtp = 0, .trtp_05T = 1, - .trcd = 4, .trcd_05T = 0, - .twr = 7, .twr_05T = 1, - .twtr = 4, .twtr_05T = 1, - .tpbr2pbr = 11, .tpbr2pbr_05T = 0, - .tpbr2act = 0, .tpbr2act_05T = 0, - .tr2mrw = 8, .tr2mrw_05T = 1, - .tw2mrw = 6, .tw2mrw_05T = 1, - .tmrr2mrw = 7, .tmrr2mrw_05T = 0, - .tmrw = 3, .tmrw_05T = 0, - .tmrd = 3, .tmrd_05T = 1, - .tmrwckel = 4, .tmrwckel_05T = 1, - .tpde = 1, .tpde_05T = 1, - .tpdx = 1, .tpdx_05T = 0, - .tmrri = 5, .tmrri_05T = 1, - .trrd = 1, .trrd_05T = 0, - .trrd_4266 = 0, .trrd_4266_05T = 1, - .tfaw = 0, .tfaw_05T = 0, - .tfaw_4266 = 0, .tfaw_4266_05T = 0, - .trtw_odt_off = 1, .trtw_odt_off_05T = 0, - .trtw_odt_on = 4, .trtw_odt_on_05T = 0, - .txrefcnt = 58, - .tzqcs = 16, - .xrtw2w_new_mode = 4, - .xrtw2w_old_mode = 6, - .xrtw2r_odt_on = 3, - .xrtw2r_odt_off = 3, - .xrtr2w_odt_on = 3, - .xrtr2w_odt_off = 3, - .xrtr2r_new_mode = 3, - .xrtr2r_old_mode = 6, - .tr2mrr = 4, - .vrcgdis_prdcnt = 20, - .hwset_mr2_op = 18, - .hwset_mr13_op = 24, - .hwset_vrcg_op = 16, - .trcd_derate = 4, .trcd_derate_05T = 0, - .trc_derate = 4, .trc_derate_05T = 0, - .tras_derate = 0, .tras_derate_05T = 1, - .trpab_derate = 3, .trpab_derate_05T = 1, - .trp_derate = 2, .trp_derate_05T = 1, - .trrd_derate = 1, .trrd_derate_05T = 1, - .trtpd = 7, .trtpd_05T = 1, - .twtpd = 9, .twtpd_05T = 1, - .tmrr2w_odt_off = 3, - .tmrr2w_odt_on = 5, - .ckeprd = 1, - .ckelckcnt = 2, - .zqlat2 = 6, - .dqsinctl = 2, .datlat = 10 - }, - { - .freq_group = DDRFREQ_800, .cbt_mode = CBT_BYTE_MODE1, .read_dbi = 0, - .read_lat = 16, .write_lat = 8, .div_mode = DIV8_MODE, - .tras = 0, .tras_05T = 0, - .trp = 2, .trp_05T = 1, - .trpab = 3, .trpab_05T = 0, - .trc = 3, .trc_05T = 0, - .trfc = 44, .trfc_05T = 0, - .trfcpb = 16, .trfcpb_05T = 0, - .txp = 0, .txp_05T = 0, - .trtp = 0, .trtp_05T = 1, - .trcd = 4, .trcd_05T = 0, - .twr = 7, .twr_05T = 0, - .twtr = 4, .twtr_05T = 0, - .tpbr2pbr = 11, .tpbr2pbr_05T = 0, - .tpbr2act = 0, .tpbr2act_05T = 0, - .tr2mrw = 9, .tr2mrw_05T = 0, - .tw2mrw = 6, .tw2mrw_05T = 1, - .tmrr2mrw = 7, .tmrr2mrw_05T = 1, - .tmrw = 3, .tmrw_05T = 0, - .tmrd = 3, .tmrd_05T = 1, - .tmrwckel = 4, .tmrwckel_05T = 1, - .tpde = 1, .tpde_05T = 1, - .tpdx = 1, .tpdx_05T = 0, - .tmrri = 5, .tmrri_05T = 1, - .trrd = 1, .trrd_05T = 0, - .trrd_4266 = 0, .trrd_4266_05T = 1, - .tfaw = 0, .tfaw_05T = 0, - .tfaw_4266 = 0, .tfaw_4266_05T = 0, - .trtw_odt_off = 2, .trtw_odt_off_05T = 0, - .trtw_odt_on = 4, .trtw_odt_on_05T = 0, - .txrefcnt = 58, - .tzqcs = 16, - .xrtw2w_new_mode = 4, - .xrtw2w_old_mode = 6, - .xrtw2r_odt_on = 3, - .xrtw2r_odt_off = 2, - .xrtr2w_odt_on = 3, - .xrtr2w_odt_off = 3, - .xrtr2r_new_mode = 3, - .xrtr2r_old_mode = 6, - .tr2mrr = 4, - .vrcgdis_prdcnt = 20, - .hwset_mr2_op = 18, - .hwset_mr13_op = 24, - .hwset_vrcg_op = 16, - .trcd_derate = 4, .trcd_derate_05T = 0, - .trc_derate = 4, .trc_derate_05T = 0, - .tras_derate = 0, .tras_derate_05T = 1, - .trpab_derate = 3, .trpab_derate_05T = 1, - .trp_derate = 2, .trp_derate_05T = 1, - .trrd_derate = 1, .trrd_derate_05T = 1, - .trtpd = 8, .trtpd_05T = 0, - .twtpd = 9, .twtpd_05T = 1, - .tmrr2w_odt_off = 4, - .tmrr2w_odt_on = 6, - .ckeprd = 1, - .ckelckcnt = 2, - .zqlat2 = 6, - .dqsinctl = 2, .datlat = 10 - }, - { - .freq_group = DDRFREQ_600, .cbt_mode = CBT_NORMAL_MODE, .read_dbi = 0, - .read_lat = 14, .write_lat = 8, .div_mode = DIV8_MODE, - .tras = 0, .tras_05T = 0, - .trp = 1, .trp_05T = 1, - .trpab = 2, .trpab_05T = 0, - .trc = 0, .trc_05T = 1, - .trfc = 30, .trfc_05T = 1, - .trfcpb = 9, .trfcpb_05T = 1, - .txp = 0, .txp_05T = 0, - .trtp = 0, .trtp_05T = 1, - .trcd = 3, .trcd_05T = 0, - .twr = 6, .twr_05T = 1, - .twtr = 4, .twtr_05T = 1, - .tpbr2pbr = 7, .tpbr2pbr_05T = 0, - .tpbr2act = 0, .tpbr2act_05T = 0, - .tr2mrw = 8, .tr2mrw_05T = 1, - .tw2mrw = 6, .tw2mrw_05T = 1, - .tmrr2mrw = 7, .tmrr2mrw_05T = 0, - .tmrw = 3, .tmrw_05T = 0, - .tmrd = 3, .tmrd_05T = 0, - .tmrwckel = 4, .tmrwckel_05T = 0, - .tpde = 1, .tpde_05T = 1, - .tpdx = 1, .tpdx_05T = 0, - .tmrri = 4, .tmrri_05T = 0, - .trrd = 1, .trrd_05T = 0, - .trrd_4266 = 0, .trrd_4266_05T = 1, - .tfaw = 0, .tfaw_05T = 0, - .tfaw_4266 = 0, .tfaw_4266_05T = 0, - .trtw_odt_off = 1, .trtw_odt_off_05T = 0, - .trtw_odt_on = 4, .trtw_odt_on_05T = 0, - .txrefcnt = 44, - .tzqcs = 12, - .xrtw2w_new_mode = 4, - .xrtw2w_old_mode = 6, - .xrtw2r_odt_on = 3, - .xrtw2r_odt_off = 3, - .xrtr2w_odt_on = 3, - .xrtr2w_odt_off = 3, - .xrtr2r_new_mode = 3, - .xrtr2r_old_mode = 6, - .tr2mrr = 4, - .vrcgdis_prdcnt = 16, - .hwset_mr2_op = 18, - .hwset_mr13_op = 24, - .hwset_vrcg_op = 16, - .trcd_derate = 3, .trcd_derate_05T = 0, - .trc_derate = 1, .trc_derate_05T = 0, - .tras_derate = 0, .tras_derate_05T = 0, - .trpab_derate = 2, .trpab_derate_05T = 0, - .trp_derate = 1, .trp_derate_05T = 1, - .trrd_derate = 1, .trrd_derate_05T = 0, - .trtpd = 7, .trtpd_05T = 1, - .twtpd = 8, .twtpd_05T = 1, - .tmrr2w_odt_off = 3, - .tmrr2w_odt_on = 5, - .ckeprd = 1, - .ckelckcnt = 2, - .zqlat2 = 5, - .dqsinctl = 2, .datlat = 9 - }, - { - .freq_group = DDRFREQ_600, .cbt_mode = CBT_BYTE_MODE1, .read_dbi = 0, - .read_lat = 16, .write_lat = 8, .div_mode = DIV8_MODE, - .tras = 0, .tras_05T = 0, - .trp = 1, .trp_05T = 1, - .trpab = 2, .trpab_05T = 0, - .trc = 0, .trc_05T = 1, - .trfc = 30, .trfc_05T = 1, - .trfcpb = 9, .trfcpb_05T = 1, - .txp = 0, .txp_05T = 0, - .trtp = 0, .trtp_05T = 1, - .trcd = 3, .trcd_05T = 0, - .twr = 6, .twr_05T = 0, - .twtr = 4, .twtr_05T = 1, - .tpbr2pbr = 7, .tpbr2pbr_05T = 0, - .tpbr2act = 0, .tpbr2act_05T = 0, - .tr2mrw = 9, .tr2mrw_05T = 0, - .tw2mrw = 6, .tw2mrw_05T = 1, - .tmrr2mrw = 7, .tmrr2mrw_05T = 1, - .tmrw = 3, .tmrw_05T = 0, - .tmrd = 3, .tmrd_05T = 0, - .tmrwckel = 4, .tmrwckel_05T = 0, - .tpde = 1, .tpde_05T = 1, - .tpdx = 1, .tpdx_05T = 0, - .tmrri = 4, .tmrri_05T = 0, - .trrd = 1, .trrd_05T = 0, - .trrd_4266 = 0, .trrd_4266_05T = 1, - .tfaw = 0, .tfaw_05T = 0, - .tfaw_4266 = 0, .tfaw_4266_05T = 0, - .trtw_odt_off = 2, .trtw_odt_off_05T = 0, - .trtw_odt_on = 5, .trtw_odt_on_05T = 0, - .txrefcnt = 44, - .tzqcs = 12, - .xrtw2w_new_mode = 4, - .xrtw2w_old_mode = 6, - .xrtw2r_odt_on = 3, - .xrtw2r_odt_off = 2, - .xrtr2w_odt_on = 3, - .xrtr2w_odt_off = 3, - .xrtr2r_new_mode = 3, - .xrtr2r_old_mode = 6, - .tr2mrr = 4, - .vrcgdis_prdcnt = 16, - .hwset_mr2_op = 18, - .hwset_mr13_op = 24, - .hwset_vrcg_op = 16, - .trcd_derate = 3, .trcd_derate_05T = 0, - .trc_derate = 1, .trc_derate_05T = 0, - .tras_derate = 0, .tras_derate_05T = 0, - .trpab_derate = 2, .trpab_derate_05T = 0, - .trp_derate = 1, .trp_derate_05T = 1, - .trrd_derate = 1, .trrd_derate_05T = 0, - .trtpd = 8, .trtpd_05T = 0, - .twtpd = 9, .twtpd_05T = 0, - .tmrr2w_odt_off = 4, - .tmrr2w_odt_on = 6, - .ckeprd = 1, - .ckelckcnt = 2, - .zqlat2 = 5, - .dqsinctl = 2, .datlat = 9 - }, - { - .freq_group = DDRFREQ_400, .cbt_mode = CBT_NORMAL_MODE, .read_dbi = 0, - .read_lat = 14, .write_lat = 8, .div_mode = DIV4_MODE, - .tras = 1, .tras_05T = 0, - .trp = 2, .trp_05T = 0, - .trpab = 3, .trpab_05T = 0, - .trc = 3, .trc_05T = 0, - .trfc = 44, .trfc_05T = 0, - .trfcpb = 16, .trfcpb_05T = 0, - .txp = 0, .txp_05T = 0, - .trtp = 3, .trtp_05T = 0, - .trcd = 4, .trcd_05T = 0, - .twr = 12, .twr_05T = 0, - .twtr = 10, .twtr_05T = 0, - .tpbr2pbr = 11, .tpbr2pbr_05T = 0, - .tpbr2act = 0, .tpbr2act_05T = 0, - .tr2mrw = 16, .tr2mrw_05T = 0, - .tw2mrw = 13, .tw2mrw_05T = 0, - .tmrr2mrw = 14, .tmrr2mrw_05T = 0, - .tmrw = 6, .tmrw_05T = 0, - .tmrd = 6, .tmrd_05T = 0, - .tmrwckel = 8, .tmrwckel_05T = 0, - .tpde = 3, .tpde_05T = 0, - .tpdx = 3, .tpdx_05T = 0, - .tmrri = 7, .tmrri_05T = 0, - .trrd = 1, .trrd_05T = 0, - .trrd_4266 = 1, .trrd_4266_05T = 0, - .tfaw = 0, .tfaw_05T = 0, - .tfaw_4266 = 0, .tfaw_4266_05T = 0, - .trtw_odt_off = 6, .trtw_odt_off_05T = 0, - .trtw_odt_on = 11, .trtw_odt_on_05T = 0, - .txrefcnt = 58, - .tzqcs = 16, - .xrtw2w_new_mode = 9, - .xrtw2w_old_mode = 10, - .xrtw2r_odt_on = 7, - .xrtw2r_odt_off = 5, - .xrtr2w_odt_on = 9, - .xrtr2w_odt_off = 9, - .xrtr2r_new_mode = 6, - .xrtr2r_old_mode = 8, - .tr2mrr = 8, - .vrcgdis_prdcnt = 20, - .hwset_mr2_op = 18, - .hwset_mr13_op = 24, - .hwset_vrcg_op = 16, - .trcd_derate = 4, .trcd_derate_05T = 0, - .trc_derate = 4, .trc_derate_05T = 0, - .tras_derate = 1, .tras_derate_05T = 0, - .trpab_derate = 3, .trpab_derate_05T = 0, - .trp_derate = 2, .trp_derate_05T = 0, - .trrd_derate = 2, .trrd_derate_05T = 0, - .trtpd = 15, .trtpd_05T = 0, - .twtpd = 15, .twtpd_05T = 0, - .tmrr2w_odt_off = 10, - .tmrr2w_odt_on = 12, - .ckeprd = 2, - .ckelckcnt = 3, - .zqlat2 = 6, - .dqsinctl = 5, .datlat = 15 - }, - { - .freq_group = DDRFREQ_400, .cbt_mode = CBT_BYTE_MODE1, .read_dbi = 0, - .read_lat = 16, .write_lat = 8, .div_mode = DIV4_MODE, - .tras = 1, .tras_05T = 0, - .trp = 2, .trp_05T = 0, - .trpab = 3, .trpab_05T = 0, - .trc = 3, .trc_05T = 0, - .trfc = 44, .trfc_05T = 0, - .trfcpb = 16, .trfcpb_05T = 0, - .txp = 0, .txp_05T = 0, - .trtp = 3, .trtp_05T = 0, - .trcd = 4, .trcd_05T = 0, - .twr = 12, .twr_05T = 0, - .twtr = 10, .twtr_05T = 0, - .tpbr2pbr = 11, .tpbr2pbr_05T = 0, - .tpbr2act = 0, .tpbr2act_05T = 0, - .tr2mrw = 17, .tr2mrw_05T = 0, - .tw2mrw = 13, .tw2mrw_05T = 0, - .tmrr2mrw = 15, .tmrr2mrw_05T = 0, - .tmrw = 6, .tmrw_05T = 0, - .tmrd = 6, .tmrd_05T = 0, - .tmrwckel = 8, .tmrwckel_05T = 0, - .tpde = 3, .tpde_05T = 0, - .tpdx = 3, .tpdx_05T = 0, - .tmrri = 7, .tmrri_05T = 0, - .trrd = 1, .trrd_05T = 0, - .trrd_4266 = 1, .trrd_4266_05T = 0, - .tfaw = 0, .tfaw_05T = 0, - .tfaw_4266 = 0, .tfaw_4266_05T = 0, - .trtw_odt_off = 7, .trtw_odt_off_05T = 0, - .trtw_odt_on = 12, .trtw_odt_on_05T = 0, - .txrefcnt = 58, - .tzqcs = 16, - .xrtw2w_new_mode = 9, - .xrtw2w_old_mode = 10, - .xrtw2r_odt_on = 6, - .xrtw2r_odt_off = 4, - .xrtr2w_odt_on = 10, - .xrtr2w_odt_off = 10, - .xrtr2r_new_mode = 6, - .xrtr2r_old_mode = 9, - .tr2mrr = 8, - .vrcgdis_prdcnt = 20, - .hwset_mr2_op = 18, - .hwset_mr13_op = 24, - .hwset_vrcg_op = 16, - .trcd_derate = 4, .trcd_derate_05T = 0, - .trc_derate = 4, .trc_derate_05T = 0, - .tras_derate = 1, .tras_derate_05T = 0, - .trpab_derate = 3, .trpab_derate_05T = 0, - .trp_derate = 2, .trp_derate_05T = 0, - .trrd_derate = 2, .trrd_derate_05T = 0, - .trtpd = 16, .trtpd_05T = 0, - .twtpd = 15, .twtpd_05T = 0, - .tmrr2w_odt_off = 11, - .tmrr2w_odt_on = 13, - .ckeprd = 2, - .ckelckcnt = 3, - .zqlat2 = 6, - .dqsinctl = 5, .datlat = 15 - }, -}; - -#endif /* __SOC_MEDIATEK_MT8192_DRAMC_AC_TIMING_H__ */ diff --git a/src/soc/mediatek/mt8192/include/soc/dramc_common_mt8192.h b/src/soc/mediatek/mt8192/include/soc/dramc_common_mt8192.h deleted file mode 100644 index b5c7889803..0000000000 --- a/src/soc/mediatek/mt8192/include/soc/dramc_common_mt8192.h +++ /dev/null @@ -1,63 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#ifndef __SOC_MEDIATEK_MT8192_DRAMC_COMMON_MT8192_H__ -#define __SOC_MEDIATEK_MT8192_DRAMC_COMMON_MT8192_H__ - -enum { - FSP_0 = 0, - FSP_1, - FSP_MAX, -}; - -typedef enum { - DRAM_DFS_SHU0 = 0, - DRAM_DFS_SHU1, - DRAM_DFS_SHU2, - DRAM_DFS_SHU3, - DRAM_DFS_SHU4, - DRAM_DFS_SHU5, - DRAM_DFS_SHU6, - DRAM_DFS_SHU_MAX -} dram_dfs_shu; - -typedef enum { - ODT_OFF = 0, - ODT_ON, - ODT_MAX -} dram_odt_state; - -typedef enum { - DBI_OFF = 0, - DBI_ON -} dbi_mode; - -enum { - CKE_FIXOFF = 0, - CKE_FIXON, - CKE_DYNAMIC -}; - -enum { - CA_NUM_LP4 = 6, - DQ_DATA_WIDTH = 16, - DQS_BIT_NUMBER = 8, - DQS_NUMBER = (DQ_DATA_WIDTH / DQS_BIT_NUMBER), -}; -#define BYTE_NUM DQS_NUMBER - -/* DONOT change the sequence of pinmux */ -typedef enum { - PINMUX_DSC = 0, - PINMUX_LPBK, - PINMUX_EMCP, - PINMUX_MAX -} dram_pinmux_type; - -enum { - CBT_R0_R1_NORMAL = 0, - CBT_R0_R1_BYTE, - CBT_R0_NORMAL_R1_BYTE, - CBT_R0_BYTE_R1_NORMAL -}; - -#endif /* __SOC_MEDIATEK_MT8192_DRAMC_COMMON_MT8192_H__ */ diff --git a/src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h b/src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h deleted file mode 100644 index 2dee0445c3..0000000000 --- a/src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h +++ /dev/null @@ -1,352 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#ifndef __SOC_MEDIATEK_MT8192_DRAMC_PI_API_H__ -#define __SOC_MEDIATEK_MT8192_DRAMC_PI_API_H__ - -#include <console/console.h> -#include <delay.h> -#include <device/mmio.h> -#include <stdint.h> -#include <types.h> - -#include <soc/addressmap.h> -#include <soc/dramc_common_mt8192.h> -#include <soc/dramc_register_bits_def.h> -#include <soc/emi.h> - -#define dramc_err(_x_...) printk(BIOS_ERR, _x_) -#define dramc_info(_x_...) printk(BIOS_INFO, _x_) -#if CONFIG(DEBUG_DRAM) -#define dramc_dbg(_x_...) printk(BIOS_INFO, _x_) -#else -#define dramc_dbg(_x_...) -#endif - -#define DRAMC_BROADCAST_ON 0x7f -#define DRAMC_BROADCAST_OFF 0x0 - -#define TX_DQ_UI_TO_PI_TAP 64 -#define TX_PHASE_DQ_UI_TO_PI_TAP 32 -#define LP4_TX_VREF_DATA_NUM 50 -#define LP4_TX_VREF_PASS_CONDITION 0 -#define TX_PASS_WIN_CRITERIA 7 -#define LP4_TX_VREF_BOUNDARY_NOT_READY 0xff -#define REG_SHU_OFFSET_WIDTH 0x700 -#define SHU_OFFSET (REG_SHU_OFFSET_WIDTH / 4) - -#define DQS_LEVEL_UNKNOWN 0xff - -typedef enum { - DDRFREQ_400, - DDRFREQ_600, - DDRFREQ_800, - DDRFREQ_933, - DDRFREQ_1200, - DDRFREQ_1600, - DDRFREQ_2133, - DDRFREQ_MAX, -} dram_freq_grp; - -typedef enum { - CALI_SEQ0 = 0, - CALI_SEQ1, - CALI_SEQ2, - CALI_SEQ3, - CALI_SEQ4, - CALI_SEQ5, - CALI_SEQ6, - CALI_SEQ_MAX -} dram_cali_seq; - -typedef enum { - DIV8_MODE = 0, - DIV4_MODE, - UNKNOWN_MODE, -} dram_div_mode; - -typedef enum { - VREF_CALI_OFF = 0, - VREF_CALI_ON, -} vref_cali_mode; - -typedef enum { - DRVP = 0, - DRVN, - ODTP, - ODTN, - IMP_DRV_MAX -} imp_drv_type; - -typedef enum { - RX_WIN_RD_DQC = 0, - RX_WIN_TEST_ENG, -} rx_cali_type; - -typedef enum TX_CAL_TYPE { - TX_DQ_DQS_MOVE_DQ_ONLY, - TX_DQ_DQS_MOVE_DQM_ONLY, - TX_DQ_DQS_MOVE_DQ_DQM, -} tx_cali_type; - -typedef enum { - DCM_OFF = 0, - DCM_ON, -} dcm_state; - -typedef enum { - CBT_LOW_FREQ = 0, - CBT_HIGH_FREQ, - CBT_UNKNOWN_FREQ = 0xff, -} cbt_freq; - -typedef enum { - IN_CBT, - OUT_CBT, -} cbt_state; - -enum { - PHYPLL_MODE = 0, - CLRPLL_MODE, -}; - -enum { - DUTYSCAN_K_DQ, - DUTYSCAN_K_DQM, -}; - -typedef enum { - O1_OFF, - O1_ON, -} o1_state; - -typedef enum { - SINGLE_RANK_DDR = 1, - DUAL_RANK_DDR -} ddr_rank_num; - -enum { - DQS_8PH_DEGREE_0 = 0, - DQS_8PH_DEGREE_180, - DQS_8PH_DEGREE_45, - - DQS_8PH_DEGREE_MAX, -}; - -struct dram_impedance { - u32 result[ODT_MAX][IMP_DRV_MAX]; -}; - -struct mr_values { - u8 mr01[FSP_MAX]; - u8 mr02[FSP_MAX]; - u8 mr03[FSP_MAX]; - u8 mr04[RANK_MAX]; - u8 mr11[FSP_MAX]; - u8 mr12[CHANNEL_MAX][RANK_MAX][FSP_MAX]; - u8 mr13[RANK_MAX]; - u8 mr14[CHANNEL_MAX][RANK_MAX][FSP_MAX]; - u8 mr18[CHANNEL_MAX][RANK_MAX]; - u8 mr19[CHANNEL_MAX][RANK_MAX]; - u8 mr20[FSP_MAX]; - u8 mr21[FSP_MAX]; - u8 mr22[FSP_MAX]; - u8 mr23[CHANNEL_MAX][RANK_MAX]; - u8 mr26[RANK_MAX]; - u8 mr30[RANK_MAX]; - u8 mr51[FSP_MAX]; -}; - -struct ddr_cali { - u8 chn; - u8 rank; - /* - * frequency set point: - * 0 means lower,un-terminated freq; - * 1 means higher,terminated freq - */ - u8 fsp; - u8 density; - u8 *pll_mode; - u32 frequency; - u32 vcore_voltage; - dram_dfs_shu shu; - ddr_rank_num support_ranks; - dbi_mode w_dbi[FSP_MAX]; - vref_cali_mode vref_cali; - dram_odt_state odt_onoff; - dram_freq_grp freq_group; - dram_div_mode div_mode; - dram_pinmux_type pinmux_type; - dram_cbt_mode cbt_mode[RANK_MAX]; - struct dram_impedance impedance; - struct mr_values *mr_value; - const struct emi_mdl *emi_config; - const struct sdram_params *params; -}; - -struct reg_bak { - u32 *addr; - u32 value; -}; - -typedef struct _ana_top_config { - u8 dll_async_en; - u8 all_slave_en; - u8 rank_mode; - u8 dll_idle_mode; - u8 aphy_comb_en; - u8 tx_odt_dis; - u8 new_8x_mode; -} ana_top_config; - -typedef struct ana_dvfs_core_config { - u8 ckr; - u8 dq_p2s_ratio; - u8 ca_p2s_ratio; - u8 dq_ca_open; - u8 dq_semi_open; - u8 ca_semi_open; - u8 ca_full_rate; - u8 dq_ckdiv4_en; - u8 ca_ckdiv4_en; - u8 ca_prediv_en; - u8 ph8_dly; - u8 semi_open_ca_pick_mck_ratio; - u8 dq_aamck_div; - u8 ca_admck_div; - u8 dq_track_ca_en; - u32 pll_freq; -} ana_dvfs_core; - -typedef struct lp4_dram_config { - u8 ex_row_en[RANK_MAX]; - u8 mr_wl; - u8 dbi_wr; - u8 dbi_rd; - u8 lp4y_en; - u8 work_fsp; -} dram_config; - -typedef struct _dvfs_group_config { - u32 data_rate; - u8 dqsien_mode; - u8 dq_p2s_ratio; - u8 ckr; -} dvfs_group_config; - -struct gating_config { - u8 gat_track_en; - u8 rx_gating_mode; - u8 rx_gating_track_mode; - u8 valid_lat_value; -}; - -typedef struct _dramc_subsys_config { - dram_freq_grp freq_group; - ana_top_config *a_cfg; - ana_dvfs_core *dvfs_core; - dram_config *lp4_init; - dvfs_group_config *dfs_gp; - struct gating_config *gat_c; -} dramc_subsys_config; - -typedef struct _reg_transfer { - u32 *addr; - u8 offset; -} reg_transfer; - -void emi_init2(void); -u32 get_column_num(void); -u32 get_row_width_from_emi(u32 rank); -u8 dramc_mode_reg_read(u8 chn, u8 mr_idx); -u8 dramc_mode_reg_read_by_rank(u8 chn, u8 rank, u8 mr_idx); -void dramc_mode_reg_write_by_rank(const struct ddr_cali *cali, - u8 chn, u8 rank, u8 mr_idx, u8 value); -void after_calib(const struct ddr_cali *cali); -void init_dram(const struct dramc_data *dparam); -void global_option_init(struct ddr_cali *cali); -u32 dramc_get_broadcast(void); -void dramc_set_broadcast(u32 onoff); -void dramc_sw_impedance_cal(dram_odt_state odt, struct dram_impedance *imp); -void dramc_sw_impedance_save_register(const struct ddr_cali *cali); -void dfs_init_for_calibration(const struct ddr_cali *cali); -void dramc_auto_refresh_switch(u8 chn, bool flag); -void dramc_runtime_config(const struct ddr_cali *cali); -void emi_mdl_init(const struct emi_mdl *emi_con); -void cke_fix_onoff(const struct ddr_cali *cali, u8 chn, u8 rank, int option); -void enable_phy_dcm_shuffle(dcm_state enable, u8 shuffle_save); -void enable_phy_dcm_non_shuffle(dcm_state enable); -void dramc_8_phase_cal(const struct ddr_cali *cali); -void dramc_duty_calibration(const struct sdram_params *params); -void dramc_write_leveling(const struct ddr_cali *cali, - u8 dqs_final_delay[RANK_MAX][DQS_NUMBER]); -void dramc_rx_dqs_gating_cal(const struct ddr_cali *cali, u8 *txdly_min, u8 *txdly_max); -void dramc_rx_dqs_gating_post_process(const struct ddr_cali *cali, - u8 txdly_min, u8 txdly_max); -void dramc_rx_datlat_cal(const struct ddr_cali *cali); -void dramc_dual_rank_rx_datlat_cal(const struct ddr_cali *cali); -void dramc_cmd_bus_training(const struct ddr_cali *cali); -void dramc_rx_window_perbit_cal(const struct ddr_cali *cali, rx_cali_type type); -void dramc_tx_window_perbit_cal(const struct ddr_cali *cali, tx_cali_type cal_type, - const u8 dqs_final_delay[RANK_MAX][DQS_NUMBER], bool vref_scan_enable); -void dramc_tx_oe_calibration(const struct ddr_cali *cali); -dram_freq_grp get_freq_group(const struct ddr_cali *cali); -dram_odt_state get_odt_state(const struct ddr_cali *cali); -u8 get_fsp(const struct ddr_cali *cali); -dram_dfs_shu get_shu(const struct ddr_cali *cali); -dram_freq_grp get_highest_freq_group(void); -dram_cbt_mode get_cbt_mode(const struct ddr_cali *cali); -u32 get_frequency(const struct ddr_cali *cali); -vref_cali_mode get_vref_cali(const struct ddr_cali *cali); -dram_div_mode get_div_mode(const struct ddr_cali *cali); -dbi_mode get_write_dbi(const struct ddr_cali *cali); -dram_dfs_shu get_shu_save_by_k_shu(dram_cali_seq k_seq); -dram_freq_grp get_freq_group_by_shu_save(dram_dfs_shu shu); -dram_pinmux_type get_pinmux_type(const struct ddr_cali *cali); -u32 get_frequency_by_shu(dram_dfs_shu shu); -u32 get_vcore_value(const struct ddr_cali *cali); -void set_cali_datas(struct ddr_cali *cali, - const struct dramc_data *dparam, dram_cali_seq k_seq); -u8 get_mck2ui_div_shift(const struct ddr_cali *cali); -void tx_picg_setting(const struct ddr_cali *cali); -void xrtrtr_shu_setting(const struct ddr_cali *cali); -void cbt_switch_freq(const struct ddr_cali *cali, cbt_freq freq); -void enable_dfs_hw_mode_clk(void); -void dramc_dfs_direct_jump_rg_mode(const struct ddr_cali *cali, u8 shu_level); -void dramc_dfs_direct_jump_sram_shu_rg_mode(const struct ddr_cali *cali, - dram_dfs_shu shu_level); -void dramc_save_result_to_shuffle(dram_dfs_shu src, dram_dfs_shu dst); -void dramc_load_shuffle_to_dramc(dram_dfs_shu src, dram_dfs_shu dst); -void dvfs_settings(const struct ddr_cali *cali); -void dramc_dqs_precalculation_preset(const struct ddr_cali *cali); -void freq_jump_ratio_calculation(const struct ddr_cali *cali); -void dramc_hmr4_presetting(const struct ddr_cali *cali); -void dramc_enable_perbank_refresh(bool en); -void dramc_modified_refresh_mode(void); -void dramc_cke_debounce(const struct ddr_cali *cali); -void dramc_hw_dqsosc(const struct ddr_cali *cali, u8 chn); -void xrtwtw_shu_setting(const struct ddr_cali *cali); -void enable_write_DBI_after_calibration(const struct ddr_cali *cali); -void dramc_set_mr13_vrcg_to_normal(const struct ddr_cali *cali); -void ana_init(const struct ddr_cali *cali, dramc_subsys_config *subsys); -void dig_static_setting(const struct ddr_cali *cali, dramc_subsys_config *subsys); -void dig_config_shuf(const struct ddr_cali *cali, dramc_subsys_config *subsys); -void resetb_pull_dn(void); -void dramc_subsys_pre_config(dram_freq_grp freq_group, dramc_subsys_config *subsys); -void single_end_dramc_post_config(u8 lp4y_en); -void dram_configure(dram_freq_grp freq_group, dram_config *tr); -void ana_clk_div_config(ana_dvfs_core *tr, dvfs_group_config *dfs); -void apply_write_dbi_power_improve(bool onoff); -void dramc_write_dbi_onoff(u8 onoff); -void cbt_delay_ca_clk(u8 chn, u8 rank, s32 iDelay); -void dramc_cmd_ui_delay_setting(u8 chn, u8 value); -void dramc_dqsosc_set_mr18_mr19(const struct ddr_cali *cali, - u16 *osc_thrd_inc, u16 *osc_thrd_dec); -void dqsosc_shu_settings(const struct ddr_cali *cali, - u16 *osc_thrd_inc, u16 *osc_thrd_dec); -void shift_dq_ui(const struct ddr_cali *cali, u8 rk, s8 shift_ui); -void shuffle_dfs_to_fsp1(const struct ddr_cali *cali); -u8 get_cbt_vref_pinmux_value(const struct ddr_cali *cali, u8 range, u8 vref_lev); -void o1_path_on_off(const struct ddr_cali *cali, o1_state o1); - -#endif /* __SOC_MEDIATEK_MT8192_DRAMC_PI_API_H__ */ diff --git a/src/soc/mediatek/mt8192/include/soc/dramc_register.h b/src/soc/mediatek/mt8192/include/soc/dramc_register.h deleted file mode 100644 index f7b62646e3..0000000000 --- a/src/soc/mediatek/mt8192/include/soc/dramc_register.h +++ /dev/null @@ -1,1818 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#ifndef __SOC_MEDIATEK_MT8192_DRAMC_REGISTER_H__ -#define __SOC_MEDIATEK_MT8192_DRAMC_REGISTER_H__ - -#include <soc/addressmap.h> -#include <soc/dpm.h> -#include <stdint.h> - -struct dramc_nao_regs { - u32 testmode; - u32 rsvd_0[4]; - u32 rdqc_cmp; - u32 rdqc_dqm_cmp; - u32 rsvd_1[2]; - u32 dmmonitor; - u32 rsvd_2[2]; - u32 initk_pat0; - u32 initk_pat1; - u32 initk_pat2; - u32 initk_pat3; - u32 initk_pat4; - u32 rsvd_3[3]; - u32 spcmdresp3; - u32 cbt_wlev_status2; - u32 rsvd_4[10]; - u32 misc_statusa; - u32 special_status; - u32 spcmdresp; - u32 mrr_status; - u32 mrr_status2; - u32 mrrdata0; - u32 mrrdata1; - u32 mrrdata2; - u32 mrrdata3; - u32 ref_status; - u32 rsvd_5[2]; - u32 wck_status; - u32 rsvd_6[3]; - u32 tcmdo1lat; - u32 cbt_wlev_status1; - u32 cbt_wlev_status; - u32 spcmdresp2; - u32 cbt_wlev_atk_result0; - u32 cbt_wlev_atk_result1; - u32 cbt_wlev_atk_result2; - u32 cbt_wlev_atk_result3; - u32 cbt_wlev_atk_result4; - u32 cbt_wlev_atk_result5; - u32 cbt_wlev_atk_result6; - u32 cbt_wlev_atk_result7; - u32 cbt_wlev_atk_result8; - u32 cbt_wlev_atk_result9; - u32 cbt_wlev_atk_result10; - u32 cbt_wlev_atk_result11; - u32 cbt_wlev_atk_result12; - u32 cbt_wlev_atk_result13; - u32 rsvd_7[1]; - u32 hwmrr_push2pop_cnt; - u32 hwmrr_status; - u32 hw_refrate_mon; - u32 hw_refrate_mon2; - u32 hw_refrate_mon3; - u32 testrpt; - u32 cmp_err; - u32 test_abit_status1; - u32 test_abit_status2; - u32 test_abit_status3; - u32 test_abit_status4; - u32 test_abit_status5; - u32 test_abit_status6; - u32 test_abit_status7; - u32 test_abit_status8; - u32 test_rf_error_flag0; - u32 test_rf_error_flag1; - u32 test_rf_error_cnt1; - u32 test_rf_error_cnt2; - u32 test_rf_error_cnt3; - u32 test_rf_error_cnt4; - u32 test_rf_error_cnt5; - u32 test_rf_error_cnt6; - u32 test_rf_error_cnt7; - u32 test_rf_error_cnt8; - u32 test_loop_cnt; - u32 rsvd_8[3]; - u32 sref_dly_cnt; - u32 rsvd_9[31]; - u32 tx_atk_set0; - u32 tx_atk_set1; - u32 rsvd_10[2]; - u32 tx_atk_result0; - u32 tx_atk_result1; - u32 tx_atk_result2; - u32 tx_atk_result3; - u32 tx_atk_result4; - u32 tx_atk_result5; - u32 tx_atk_result6; - u32 tx_atk_result7; - u32 tx_atk_result8; - u32 rsvd_11[3]; - u32 tx_atk_dbg_bit_status1; - u32 tx_atk_dbg_bit_status2; - u32 tx_atk_dbg_bit_status3; - u32 tx_atk_dbg_bit_status4; - u32 rsvd_12[34]; - u32 lp5_pdx_pde_mon; - u32 lp5_pdx_pde_max_mon; - u32 dram_clk_en_0_old_counter; - u32 aphypi_cg_ck_old_counter; - u32 ckeo_pre_old_counter; - u32 cke1o_pre_old_counter; - u32 dram_clk_en_0_new_counter; - u32 aphypi_cg_ck_new_counter; - u32 ckeo_pre_new_counter; - u32 cke1o_pre_new_counter; - u32 refresh_pop_counter; - u32 freerun_26m_counter; - u32 dramc_idle_counter; - u32 r2r_page_hit_counter; - u32 r2r_page_miss_counter; - u32 r2r_interbank_counter; - u32 r2w_page_hit_counter; - u32 r2w_page_miss_counter; - u32 r2w_interbank_counter; - u32 w2r_page_hit_counter; - u32 w2r_page_miss_counter; - u32 w2r_interbank_counter; - u32 w2w_page_hit_counter; - u32 w2w_page_miss_counter; - u32 w2w_interbank_counter; - u32 rk0_pre_standby_counter; - u32 rk0_pre_powerdown_counter; - u32 rk0_act_standby_counter; - u32 rk0_act_powerdown_counter; - u32 rk1_pre_standby_counter; - u32 rk1_pre_powerdown_counter; - u32 rk1_act_standby_counter; - u32 rk1_act_powerdown_counter; - u32 rk2_pre_standby_counter; - u32 rk2_pre_powerdown_counter; - u32 rk2_act_standby_counter; - u32 rk2_act_powerdown_counter; - u32 dq0_toggle_counter; - u32 dq1_toggle_counter; - u32 dq2_toggle_counter; - u32 dq3_toggle_counter; - u32 dq0_toggle_counter_r; - u32 dq1_toggle_counter_r; - u32 dq2_toggle_counter_r; - u32 dq3_toggle_counter_r; - u32 read_bytes_counter; - u32 write_bytes_counter; - u32 max_sref_req_to_ack_latency_counter; - u32 rsvd_13[2]; - u32 dramc_idle_dcm_counter; - u32 ddrphy_clk_en_counter; - u32 ddrphy_clk_en_comb_counter; - u32 rsvd_14[1]; - u32 ebg_counter_cnt0; - u32 ebg_counter_cnt1; - u32 ebg_counter_cnt2; - u32 rsvd_15[1]; - u32 lat_counter_cmd0; - u32 lat_counter_cmd1; - u32 lat_counter_cmd2; - u32 lat_counter_cmd3; - u32 lat_counter_cmd4; - u32 lat_counter_cmd5; - u32 lat_counter_cmd6; - u32 lat_counter_cmd7; - u32 lat_counter_aver; - u32 lat_counter_num; - u32 lat_counter_block_ale; - u32 rsvd_16[70]; - u32 dramc_loop_bak_adr; - u32 dramc_loop_bak_rk; - u32 rsvd_17[1]; - u32 dramc_loop_bak_wdat0; - u32 dramc_loop_bak_wdat1; - u32 dramc_loop_bak_wdat2; - u32 dramc_loop_bak_wdat3; - u32 dramc_loop_bak_wdat4; - u32 dramc_loop_bak_wdat5; - u32 dramc_loop_bak_wdat6; - u32 dramc_loop_bak_wdat7; - u32 rsvd_18[52]; - u32 rk0_dqsosc_status; - u32 rk0_dqsosc_delta; - u32 rk0_dqsosc_delta2; - u32 rsvd_19[1]; - u32 rk0_current_tx_setting1; - u32 rk0_current_tx_setting2; - u32 rk0_current_tx_setting3; - u32 rk0_current_tx_setting4; - u32 rk0_dummy_rd_data0; - u32 rk0_dummy_rd_data1; - u32 rk0_dummy_rd_data2; - u32 rk0_dummy_rd_data3; - u32 rk0_dummy_rd_data4; - u32 rk0_dummy_rd_data5; - u32 rk0_dummy_rd_data6; - u32 rk0_dummy_rd_data7; - u32 rsvd_20[8]; - u32 rk0_pi_dq_cal; - u32 rsvd_21[1]; - u32 rk0_pi_dqm_cal; - u32 rsvd_22[37]; - u32 rk1_dqsosc_status; - u32 rk1_dqsosc_delta; - u32 rk1_dqsosc_delta2; - u32 rsvd_23[1]; - u32 rk1_current_tx_setting1; - u32 rk1_current_tx_setting2; - u32 rk1_current_tx_setting3; - u32 rk1_current_tx_setting4; - u32 rk1_dummy_rd_data0; - u32 rk1_dummy_rd_data1; - u32 rk1_dummy_rd_data2; - u32 rk1_dummy_rd_data3; - u32 rk1_dummy_rd_data4; - u32 rk1_dummy_rd_data5; - u32 rk1_dummy_rd_data6; - u32 rk1_dummy_rd_data7; - u32 rsvd_24[8]; - u32 rk1_pi_dq_cal; - u32 rsvd_25[1]; - u32 rk1_pi_dqm_cal; - u32 rsvd_26[101]; - u32 mr_backup_00_rk0_fsp0; - u32 mr_backup_01_rk0_fsp0; - u32 mr_backup_02_rk0_fsp0; - u32 mr_backup_03_rk0_fsp0; - u32 mr_backup_04_rk0_fsp0; - u32 mr_backup_05_rk0_fsp0; - u32 mr_backup_06_rk0_fsp0; - u32 mr_backup_07_rk0_fsp0; - u32 mr_backup_08_rk0_fsp0; - u32 mr_backup_09_rk0_fsp0; - u32 rsvd_27[2]; - u32 mr_backup_00_rk0_fsp1; - u32 mr_backup_01_rk0_fsp1; - u32 mr_backup_02_rk0_fsp1; - u32 mr_backup_03_rk0_fsp1; - u32 mr_backup_04_rk0_fsp1; - u32 rsvd_28[7]; - u32 mr_backup_00_rk0_fsp2; - u32 mr_backup_01_rk0_fsp2; - u32 mr_backup_02_rk0_fsp2; - u32 mr_backup_03_rk0_fsp2; - u32 rsvd_29[100]; - u32 mr_backup_00_rk1_fsp0; - u32 mr_backup_01_rk1_fsp0; - u32 mr_backup_02_rk1_fsp0; - u32 mr_backup_03_rk1_fsp0; - u32 mr_backup_04_rk1_fsp0; - u32 mr_backup_05_rk1_fsp0; - u32 mr_backup_06_rk1_fsp0; - u32 mr_backup_07_rk1_fsp0; - u32 mr_backup_08_rk1_fsp0; - u32 mr_backup_09_rk1_fsp0; - u32 rsvd_30[2]; - u32 mr_backup_00_rk1_fsp1; - u32 mr_backup_01_rk1_fsp1; - u32 mr_backup_02_rk1_fsp1; - u32 mr_backup_03_rk1_fsp1; - u32 mr_backup_04_rk1_fsp1; - u32 rsvd_31[7]; - u32 mr_backup_00_rk1_fsp2; - u32 mr_backup_01_rk1_fsp2; - u32 mr_backup_02_rk1_fsp2; - u32 mr_backup_03_rk1_fsp2; -}; - -struct ddrphy_nao_regs { - u32 misc_sta_extlb0; - u32 misc_sta_extlb1; - u32 misc_sta_extlb2; - u32 rsvd_0[1]; - u32 misc_dma_debug0; - u32 misc_dma_debug1; - u32 misc_retry_dbg0; - u32 misc_retry_dbg1; - u32 misc_retry_dbg2; - u32 misc_rdsel_track_dbg; - u32 rsvd_1[22]; - u32 misc_dq_rxdly_trro0; - u32 misc_dq_rxdly_trro1; - u32 misc_dq_rxdly_trro2; - u32 misc_dq_rxdly_trro3; - u32 misc_dq_rxdly_trro4; - u32 misc_dq_rxdly_trro5; - u32 misc_dq_rxdly_trro6; - u32 misc_dq_rxdly_trro7; - u32 misc_dq_rxdly_trro8; - u32 misc_dq_rxdly_trro9; - u32 misc_dq_rxdly_trro10; - u32 misc_dq_rxdly_trro11; - u32 misc_dq_rxdly_trro12; - u32 misc_dq_rxdly_trro13; - u32 misc_dq_rxdly_trro14; - u32 misc_dq_rxdly_trro15; - u32 misc_dq_rxdly_trro16; - u32 misc_dq_rxdly_trro17; - u32 misc_dq_rxdly_trro18; - u32 misc_dq_rxdly_trro19; - u32 misc_dq_rxdly_trro20; - u32 misc_dq_rxdly_trro21; - u32 misc_dq_rxdly_trro22; - u32 misc_dq_rxdly_trro23; - u32 misc_dq_rxdly_trro24; - u32 misc_dq_rxdly_trro25; - u32 misc_dq_rxdly_trro26; - u32 misc_dq_rxdly_trro27; - u32 misc_dq_rxdly_trro28; - u32 misc_dq_rxdly_trro29; - u32 misc_dq_rxdly_trro30; - u32 misc_dq_rxdly_trro31; - u32 rsvd_2[20]; - u32 misc_ca_rxdly_trro20; - u32 misc_ca_rxdly_trro21; - u32 misc_ca_rxdly_trro22; - u32 misc_ca_rxdly_trro23; - u32 misc_ca_rxdly_trro24; - u32 misc_ca_rxdly_trro25; - u32 misc_ca_rxdly_trro26; - u32 misc_ca_rxdly_trro27; - u32 misc_ca_rxdly_trro28; - u32 misc_ca_rxdly_trro29; - u32 misc_ca_rxdly_trro30; - u32 misc_ca_rxdly_trro31; - u32 misc_dqo1; - u32 misc_cao1; - u32 misc_ad_rx_dq_o1; - u32 misc_ad_rx_cmd_o1; - u32 misc_phy_rgs_dq; - u32 misc_phy_rgs_cmd; - u32 misc_phy_rgs_stben_b0; - u32 misc_phy_rgs_stben_b1; - u32 misc_phy_rgs_stben_cmd; - u32 misc_phy_picg_mon_s0; - u32 misc_phy_picg_mon_s1; - u32 misc_phy_picg_mon_s2; - u32 misc_phy_picg_mon_s3; - u32 misc_phy_picg_mon_s4; - u32 misc_phy_picg_mon_s5; - u32 misc_phy_picg_mon_s6; - u32 misc_phy_picg_mon_s7; - u32 misc_phy_picg_mon_s8; - u32 misc_mbist_status; - u32 misc_mbist_status2; - u32 misc_impcal_status1; - u32 misc_impcal_status2; - u32 misc_impcal_status3; - u32 misc_impcal_status4; - u32 misc_impcal_status5; - u32 misc_impcal_status6; - u32 misc_impcal_status7; - u32 misc_impcal_status8; - u32 rsvd_3[1]; - u32 misc_impcal_status9; - u32 misc_sta_toglb0; - u32 misc_sta_toglb1; - u32 rsvd_4[5]; - u32 misc_sta_extlb_dbg0; - u32 misc_sta_extlb_dbg1; - u32 misc_sta_extlb_dbg2; - u32 misc_sta_extlb_dbg3; - u32 misc_duty_toggle_cnt; - u32 misc_duty_dqs0_err_cnt; - u32 misc_duty_dq_err_cnt0; - u32 misc_duty_dqs1_err_cnt; - u32 misc_duty_dq_err_cnt1; - u32 misc_duty_dqs2_err_cnt; - u32 misc_duty_dq_err_cnt2; - u32 misc_duty_dqs3_err_cnt; - u32 misc_duty_dq_err_cnt3; - u32 misc_jmeter_st0; - u32 misc_jmeter_st1; - u32 misc_emi_lpbk0; - u32 misc_emi_lpbk1; - u32 misc_emi_lpbk2; - u32 misc_emi_lpbk3; - u32 misc_emi_lpbk4; - u32 misc_emi_lpbk5; - u32 misc_emi_lpbk6; - u32 misc_emi_lpbk7; - u32 misc_ft_status0; - u32 misc_ft_status1; - u32 misc_ft_status2; - u32 misc_ft_status3; - u32 misc_ft_status4; - u32 misc_sta_toglb2; - u32 misc_sta_toglb3; - u32 misc_sta_extlb3; - u32 misc_sta_extlb4; - u32 misc_sta_extlb5; - u32 rsvd_5[90]; - u32 debug_aphy_rx_ctl; - u32 rsvd_6[3]; - u32 gating_err_infor; - u32 debug_dqsien_b0; - u32 debug_dqsien_b1; - u32 debug_dqsien_ca; - u32 gating_err_latch_dly_b0_rk0; - u32 gating_err_latch_dly_b1_rk0; - u32 gating_err_latch_dly_ca_rk0; - u32 rsvd_7[1]; - u32 gating_err_latch_dly_b0_rk1; - u32 gating_err_latch_dly_b1_rk1; - u32 gating_err_latch_dly_ca_rk1; - u32 rsvd_8[1]; - u32 debug_rodt_ctl; - u32 rsvd_9[47]; - u32 cal_dqsg_cnt_b0; - u32 cal_dqsg_cnt_b1; - u32 cal_dqsg_cnt_ca; - u32 dvfs_status; - u32 rx_autok_status0; - u32 rx_autok_status1; - u32 rx_autok_status2; - u32 rx_autok_status3; - u32 rx_autok_status4; - u32 rx_autok_status5; - u32 rx_autok_status6; - u32 rx_autok_status7; - u32 rx_autok_status8; - u32 rx_autok_status9; - u32 rx_autok_status10; - u32 rx_autok_status11; - u32 rx_autok_status12; - u32 rx_autok_status13; - u32 rx_autok_status14; - u32 rx_autok_status15; - u32 rx_autok_status16; - u32 rx_autok_status17; - u32 rx_autok_status18; - u32 rx_autok_status19; - u32 rx_autok_status20; - u32 rsvd_10[39]; - u32 dqsien_autok_b0_rk0_status0; - u32 dqsien_autok_b0_rk0_status1; - u32 dqsien_autok_b0_rk0_dbg_status0; - u32 dqsien_autok_b0_rk0_dbg_status1; - u32 dqsien_autok_b0_rk0_dbg_status2; - u32 dqsien_autok_b0_rk0_dbg_status3; - u32 dqsien_autok_b0_rk0_dbg_status4; - u32 dqsien_autok_b0_rk0_dbg_status5; - u32 dqsien_autok_b0_rk1_status0; - u32 dqsien_autok_b0_rk1_status1; - u32 dqsien_autok_b0_rk1_dbg_status0; - u32 dqsien_autok_b0_rk1_dbg_status1; - u32 dqsien_autok_b0_rk1_dbg_status2; - u32 dqsien_autok_b0_rk1_dbg_status3; - u32 dqsien_autok_b0_rk1_dbg_status4; - u32 dqsien_autok_b0_rk1_dbg_status5; - u32 dqsien_autok_b1_rk0_status0; - u32 dqsien_autok_b1_rk0_status1; - u32 dqsien_autok_b1_rk0_dbg_status0; - u32 dqsien_autok_b1_rk0_dbg_status1; - u32 dqsien_autok_b1_rk0_dbg_status2; - u32 dqsien_autok_b1_rk0_dbg_status3; - u32 dqsien_autok_b1_rk0_dbg_status4; - u32 dqsien_autok_b1_rk0_dbg_status5; - u32 dqsien_autok_b1_rk1_status0; - u32 dqsien_autok_b1_rk1_status1; - u32 dqsien_autok_b1_rk1_dbg_status0; - u32 dqsien_autok_b1_rk1_dbg_status1; - u32 dqsien_autok_b1_rk1_dbg_status2; - u32 dqsien_autok_b1_rk1_dbg_status3; - u32 dqsien_autok_b1_rk1_dbg_status4; - u32 dqsien_autok_b1_rk1_dbg_status5; - u32 dqsien_autok_ca_rk0_status0; - u32 dqsien_autok_ca_rk0_status1; - u32 dqsien_autok_ca_rk0_dbg_status0; - u32 dqsien_autok_ca_rk0_dbg_status1; - u32 dqsien_autok_ca_rk0_dbg_status2; - u32 dqsien_autok_ca_rk0_dbg_status3; - u32 dqsien_autok_ca_rk0_dbg_status4; - u32 dqsien_autok_ca_rk0_dbg_status5; - u32 rsvd_11[24]; - u32 dqsien_autok_ca_rk1_status0; - u32 dqsien_autok_ca_rk1_status1; - u32 dqsien_autok_ca_rk1_dbg_status0; - u32 dqsien_autok_ca_rk1_dbg_status1; - u32 dqsien_autok_ca_rk1_dbg_status2; - u32 dqsien_autok_ca_rk1_dbg_status3; - u32 dqsien_autok_ca_rk1_dbg_status4; - u32 dqsien_autok_ca_rk1_dbg_status5; - u32 dqsien_autok_ctrl_status; - u32 ad_dline_mon; - u32 dline_mon_track_dbg; - u32 misc_dutycal_status; - u32 misc_dbg_db_imp_message0; - u32 misc_dbg_db_imp_message1; - u32 misc_dbg_db_imp_message2; - u32 misc_dbg_db_imp_message3; - u32 misc_dbg_db_imp_message4; - u32 misc_dbg_db_imp_message5; - u32 misc_dbg_db_imp_message6; - u32 misc_dbg_db_imp_message7; - u32 misc_dbg_db_imp_message8; - u32 misc_dbg_db_imp_message9; - u32 misc_dbg_db_imp_message10; - u32 misc_dbg_db_imp_message11; - u32 rsvd_12[40]; - u32 misc_dma_sram_mbist; - u32 rsvd_13[7]; - u32 misc_aphy_obs0; - u32 misc_aphy_obs1; - u32 misc_aphy_obs2; - u32 misc_aphy_obs3; - u32 misc_aphy_obs4; - u32 misc_aphy_obs5; - u32 misc_aphy_obs6; - u32 misc_aphy_obs7; - u32 misc_aphy_obs8; -}; - -struct dramc_ao_rk { - u32 rk_test2_a1; - u32 rk_dummy_rd_wdata0; - u32 rk_dummy_rd_wdata1; - u32 rk_dummy_rd_wdata2; - u32 rk_dummy_rd_wdata3; - u32 rk_dummy_rd_adr; - u32 rsvd_0[15]; - u32 rk_dummy_rd_adr2; - u32 rsvd_1[4]; - u32 rk_sref_dpd_tck_rk_ctrl; - u32 rsvd_2[9]; - u32 rk_dqsosc; - u32 rsvd_3[91]; -}; - -struct dramc_ao_shu_rk { - u32 shurk_selph_dq0; - u32 shurk_selph_dq1; - u32 shurk_selph_dq2; - u32 shurk_selph_dq3; - u32 shurk_dqs2dq_cal1; - u32 shurk_dqs2dq_cal2; - u32 shurk_dqs2dq_cal3; - u32 shurk_dqs2dq_cal4; - u32 shurk_dqs2dq_cal5; - u32 shurk_pi; - u32 shurk_dqsosc; - u32 shurk_dqsosc_thrd; - u32 shurk_aphy_tx_picg_ctrl; - u32 rsvd_25[3]; - u32 shurk_wck_wr_mck; - u32 shurk_wck_rd_mck; - u32 shurk_wck_fs_mck; - u32 shurk_wck_wr_ui; - u32 shurk_wck_rd_ui; - u32 shurk_wck_fs_ui; - u32 rsvd_26[2]; - u32 shurk_cke_ctrl; - u32 rsvd_27[103]; -}; - -struct dramc_ao_regs { - u32 ddrcommon0; - u32 rsvd_0[2]; - u32 sa_reserve; - u32 rsvd_1[59]; - u32 nonshu_rsv; - u32 test2_a0; - u32 test2_a2; - u32 test2_a3; - u32 test2_a4; - u32 dummy_rd; - u32 dummy_rd_intv; - u32 bus_mon1; - u32 dramc_dbg_sel1; - u32 dramc_dbg_sel2; - u32 swcmd_en; - u32 swcmd_ctrl0; - u32 swcmd_ctrl1; - u32 swcmd_ctrl2; - u32 rddqcgolden1; - u32 rddqcgolden; - u32 rtmrw_ctrl0; - u32 rtmrw_ctrl1; - u32 rtmrw_ctrl2; - u32 rtmrw_ctrl3; - u32 cbt_wlev_ctrl0; - u32 cbt_wlev_ctrl1; - u32 cbt_wlev_ctrl2; - u32 cbt_wlev_ctrl3; - u32 cbt_wlev_ctrl4; - u32 cbt_wlev_atk_ctrl0; - u32 cbt_wlev_atk_ctrl1; - u32 sref_dpd_ctrl; - u32 cfc_ctrl; - u32 dllfrz_ctrl; - u32 mpc_ctrl; - u32 hw_mrr_fun; - u32 scheduler_com; - u32 rsvd_2[4]; - u32 actiming_ctrl; - u32 rsvd_3[3]; - u32 zq_set0; - u32 zq_set1; - u32 rsvd_4[2]; - u32 tx_tracking_set0; - u32 rsvd_5[3]; - u32 tx_retry_set0; - u32 rsvd_6[1]; - u32 mpc_option; - u32 rsvd_7[1]; - u32 mrr_bit_mux1; - u32 mrr_bit_mux2; - u32 mrr_bit_mux3; - u32 mrr_bit_mux4; - u32 rsvd_8[6]; - u32 shuctrl; - u32 dramc_pd_ctrl; - u32 dcm_ctrl0; - u32 ckectrl; - u32 dvfs_ctrl0; - u32 shuctrl1; - u32 dvfs_timing_ctrl1; - u32 shuctrl3; - u32 dvfs_timing_ctrl3; - u32 cmd_dec_ctrl0; - u32 hmr4; - u32 bypass_fspop; - u32 rkcfg; - u32 slp4_testmode; - u32 dq_mux_set0; - u32 dbiwr_protect; - u32 tx_set0; - u32 tx_cg_set0; - u32 rx_set0; - u32 rx_cg_set0; - u32 dqsoscr; - u32 dramctrl; - u32 misctl0; - u32 perfctl0; - u32 arbctl; - u32 datascr; - u32 clkar; - u32 refctrl0; - u32 refctrl1; - u32 ref_bounce1; - u32 ref_bounce2; - u32 rsvd_9[1]; - u32 refpend1; - u32 refpend2; - u32 refque_cnt; - u32 scsmctrl; - u32 scsmctrl_cg; - u32 refctrl2; - u32 tx_freq_ratio_old_mode0; - u32 tx_freq_ratio_old_mode1; - u32 tx_freq_ratio_old_mode2; - u32 wdt_rst; - u32 seda_loop_bak_err_pat_b01; - u32 seda_loop_bak_err_pat_b23; - u32 seda_loop_bak_err_pat_b45; - u32 seda_loop_bak_err_pat_b67; - u32 seda_loop_bak_set; - u32 rsvd_10[3]; - u32 dbg_cmddec_cmdsel0; - u32 dbg_cmddec_cmdsel1; - u32 dbg_cmddec_cmdsel2; - u32 dbg_cmddec_cmdsel3; - u32 dbg_cmddec_cmdsel4; - u32 rtswcmd_cnt; - u32 refctrl3; - u32 rsvd_11[1]; - u32 dramc_irq_en; - u32 dramc_irq_clear; - u32 irq_rsv1; - u32 irq_rsv2; - u32 refcnt_fr_clk1; - u32 refcnt_fr_clk2; - u32 refcnt_fr_clk3; - u32 refcnt_fr_clk4; - u32 refcnt_fr_clk5; - u32 refcnt_fr_clk6; - u32 refcnt_fr_clk7; - u32 rsvd_12[1]; - u32 dcm_sub_ctrl; - u32 rsvd_13[3]; - u32 cbt_wlev_ctrl5; - u32 rsvd_14[3]; - u32 dram_clk_ctrl; - u32 rsvd_15[115]; - struct dramc_ao_rk rk[RANK_MAX]; - u32 rsvd_19[256]; - u32 wdt_dbg_signal; - u32 rsvd_20[1]; - u32 selfref_hwsave_flag; - u32 rsvd_21[125]; - u32 dramc_irq_status1; - u32 dramc_irq_status2; - u32 rsvd_22[2]; - u32 dramc_irq_info1; - u32 dramc_irq_info1a; - u32 rsvd_23[2]; - u32 dramc_irq_info2; - u32 dramc_irq_info3; - u32 dramc_irq_info4; - u32 dramc_irq_info5; - u32 rsvd_24[180]; - struct dramc_ao_shu_rk shu_rk[RANK_MAX]; - u32 shu_matype; - u32 shu_common0; - u32 shu_sref_ctrl; - u32 shu_scheduler; - u32 shu_dcm_ctrl0; - u32 shu_hmr4_dvfs_ctrl0; - u32 shu_selph_ca1; - u32 shu_selph_ca2; - u32 shu_selph_ca3; - u32 shu_selph_ca4; - u32 shu_selph_ca5; - u32 shu_selph_ca6; - u32 shu_selph_ca7; - u32 shu_selph_ca8; - u32 shu_hwset_mr2; - u32 shu_hwset_mr13; - u32 shu_hwset_vrcg; - u32 shu_actim0; - u32 shu_actim1; - u32 shu_actim2; - u32 shu_actim3; - u32 shu_actim4; - u32 shu_actim5; - u32 shu_actim6; - u32 shu_actim_xrt; - u32 shu_ac_time_05t; - u32 shu_ac_derating0; - u32 shu_ac_derating1; - u32 shu_ac_derating_05t; - u32 shu_actiming_conf; - u32 shu_ckectrl; - u32 shu_selph_dqs0; - u32 shu_selph_dqs1; - u32 shu_wodt; - u32 shu_tx_set0; - u32 shu_rx_cg_set0; - u32 shu_dqsosc_set0; - u32 shu_dqsoscr; - u32 shu_tx_rankctl; - u32 shu_zq_set0; - u32 shu_conf0; - u32 shu_misc; - u32 shu_new_xrw2w_ctrl; - u32 shu_aphy_tx_picg_ctrl; - u32 shu_freq_ratio_set0; - u32 shu_freq_ratio_set1; - u32 shu_freq_ratio_set2; - u32 shureg_rsv; - u32 shu_wckctrl; - u32 shu_wckctrl_1; - u32 rsvd_28[2]; - u32 shu_rx_set0; - u32 shu_ref0; - u32 rsvd_29[2]; - u32 shu_lp5_cmd; - u32 shu_lp5_sact; - u32 shu_actim7; -}; - -struct emi_regs { - u32 cona; - u32 conp; - u32 conb; - u32 conq; - u32 conc; - u32 conr; - u32 cond; - u32 conp_2nd; - u32 cone; - u32 conq_2nd; - u32 conf; - u32 conr_2nd; - u32 cong; - u32 conb_3rd; - u32 conh; - u32 conh_2nd; - u32 coni; - u32 conb_4th; - u32 conj; - u32 conb_5th; - u32 conk; - u32 conb_6th; - u32 rsvd_0[1]; - u32 conb_7th; - u32 conm; - u32 conb_8th; - u32 conn; - u32 conc_3rd; - u32 cono; - u32 conc_4th; - u32 mdct; - u32 mdct_2nd; - u32 rsvd_1[1]; - u32 conc_5th; - u32 rsvd_2[1]; - u32 conc_6th; - u32 rsvd_3[1]; - u32 conc_7th; - u32 rsvd_4[1]; - u32 conc_8th; - u32 rsvd_5[9]; - u32 cong_3rd; - u32 cong_4th; - u32 cong_5th; - u32 iocl; - u32 iocl_2nd; - u32 iocm; - u32 iocm_2nd; - u32 rsvd_6[1]; - u32 cong_6th; - u32 testb; - u32 rsvd_7[1]; - u32 testc; - u32 cong_7th; - u32 testd; - u32 rsvd_8[1]; - u32 arba; - u32 rsvd_9[1]; - u32 arbb; - u32 rsvd_10[1]; - u32 arbc; - u32 rsvd_11[1]; - u32 arbd; - u32 rsvd_12[1]; - u32 arbe; - u32 rsvd_13[1]; - u32 arbf; - u32 cong_8th; - u32 arbg; - u32 rsvd_14[1]; - u32 arbh; - u32 conp_3rd; - u32 arbi; - u32 arbi_2nd; - u32 rsvd_15[1]; - u32 arbj_2nd; - u32 arbk; - u32 arbk_2nd; - u32 slct; - u32 rsvd_16[1]; - u32 mpud0_st; - u32 mpud1_st; - u32 mpud2_st; - u32 mpud3_st; - u32 mpud4_st; - u32 mpud5_st; - u32 mpud6_st; - u32 mpud7_st; - u32 mpud8_st; - u32 mpud9_st; - u32 mpud10_st; - u32 mpud11_st; - u32 mpud12_st; - u32 mpud13_st; - u32 mpud14_st; - u32 mpud15_st; - u32 mpud16_st; - u32 mpud17_st; - u32 mpud18_st; - u32 mpud19_st; - u32 mpud20_st; - u32 mpud21_st; - u32 mpud22_st; - u32 mpud23_st; - u32 mpud24_st; - u32 mpud25_st; - u32 mpud26_st; - u32 mpud27_st; - u32 mpud28_st; - u32 mpud29_st; - u32 mpud30_st; - u32 mpud31_st; - u32 conp_4th; - u32 conp_5th; - u32 conp_6th; - u32 rsvd_17[1]; - u32 mpus; - u32 conp_8th; - u32 mput; - u32 mput_2nd; - u32 d0_st2; - u32 d1_st2; - u32 d2_st2; - u32 d3_st2; - u32 d4_st2; - u32 d5_st2; - u32 d6_st2; - u32 d7_st2; - u32 d8_st2; - u32 d9_st2; - u32 d10_st2; - u32 d11_st2; - u32 d12_st2; - u32 d13_st2; - u32 d14_st2; - u32 d15_st2; - u32 d16_st2; - u32 d17_st2; - u32 d18_st2; - u32 d19_st2; - u32 d20_st2; - u32 d21_st2; - u32 d22_st2; - u32 d23_st2; - u32 d24_st2; - u32 d25_st2; - u32 d26_st2; - u32 d27_st2; - u32 d28_st2; - u32 d29_st2; - u32 d30_st2; - u32 d31_st2; - u32 rsvd_18[33]; - u32 prtcl_m0_cyc; - u32 rsvd_19[1]; - u32 prtcl_m0_ctl; - u32 rsvd_20[1]; - u32 prtcl_m0_msk; - u32 rsvd_21[13]; - u32 prtcl_m1_cyc; - u32 rsvd_22[1]; - u32 prtcl_m1_ctl; - u32 rsvd_23[1]; - u32 prtcl_m1_msk; - u32 rsvd_24[13]; - u32 prtcl_m2_cyc; - u32 rsvd_25[1]; - u32 prtcl_m2_ctl; - u32 rsvd_26[1]; - u32 prtcl_m2_msk; - u32 rsvd_27[12]; - u32 prtcl_m3_cyc; - u32 prtcl_m3_ctl; - u32 prtcl_m3_msk; - u32 rsvd_28[6]; - u32 prtcl_m4_cyc; - u32 bmen; - u32 bstp; - u32 bcnt; - u32 prtcl_m4_ctl; - u32 tact; - u32 prtcl_m4_msk; - u32 tsct; - u32 rsvd_29[1]; - u32 wact; - u32 rsvd_30[1]; - u32 wsct; - u32 rsvd_31[1]; - u32 bact; - u32 rsvd_32[1]; - u32 bsct; - u32 rsvd_33[1]; - u32 msel; - u32 rsvd_34[1]; - u32 tsct2; - u32 prtcl_m5_cyc; - u32 tsct3; - u32 prtcl_m5_ctl; - u32 wsct2; - u32 prtcl_m5_msk; - u32 wsct3; - u32 wsct4; - u32 msel2; - u32 rsvd_35[1]; - u32 msel3; - u32 rsvd_36[1]; - u32 msel4; - u32 rsvd_37[1]; - u32 msel5; - u32 rsvd_38[1]; - u32 msel6; - u32 rsvd_39[1]; - u32 msel7; - u32 rsvd_40[1]; - u32 msel8; - u32 prtcl_m6_cyc; - u32 msel9; - u32 prtcl_m6_ctl; - u32 msel10; - u32 prtcl_m6_msk; - u32 bmid0; - u32 bmid1; - u32 bmid2; - u32 bmid3; - u32 bmid4; - u32 bmid5; - u32 bmid6; - u32 bmid7; - u32 bmid8; - u32 bmid9; - u32 bmid10; - u32 rsvd_41[1]; - u32 bmen1; - u32 rsvd_42[1]; - u32 bmen2; - u32 rsvd_43[3]; - u32 bmrw0; - u32 bmrw1; - u32 ttype1; - u32 rsvd_44[1]; - u32 ttype2; - u32 prtcl_m7_cyc; - u32 ttype3; - u32 prtcl_m7_ctl; - u32 ttype4; - u32 prtcl_m7_msk; - u32 ttype5; - u32 rsvd_45[1]; - u32 ttype6; - u32 rsvd_46[1]; - u32 ttype7; - u32 rsvd_47[1]; - u32 ttype8; - u32 rsvd_48[1]; - u32 ttype9; - u32 rsvd_49[1]; - u32 ttype10; - u32 rsvd_50[1]; - u32 ttype11; - u32 rsvd_51[1]; - u32 ttype12; - u32 rsvd_52[1]; - u32 ttype13; - u32 rsvd_53[1]; - u32 ttype14; - u32 rsvd_54[1]; - u32 ttype15; - u32 rsvd_55[1]; - u32 ttype16; - u32 rsvd_56[1]; - u32 ttype17; - u32 rsvd_57[1]; - u32 ttype18; - u32 rsvd_58[1]; - u32 ttype19; - u32 rsvd_59[1]; - u32 ttype20; - u32 rsvd_60[1]; - u32 ttype21; - u32 rsvd_61[3]; - u32 bwct0; - u32 bwct1; - u32 bwct2; - u32 bwct3; - u32 bwct4; - u32 bwst0; - u32 bwst1; - u32 rsvd_62[1]; - u32 ex_con; - u32 ex_st0; - u32 ex_st1; - u32 ex_st2; - u32 wp_adr; - u32 wp_adr_2nd; - u32 wp_ctrl; - u32 rsvd_63[1]; - u32 chker; - u32 chker_type; - u32 chker_adr; - u32 chker_adr_2nd; - u32 rsvd_64[7]; - u32 thro_slv_con0; - u32 rsvd_65[1]; - u32 thro_slv_con1; - u32 mxto0; - u32 mxto1; - u32 rsvd_66[4]; - u32 conq_3rd; - u32 conq_4th; - u32 conq_5th; - u32 conq_6th; - u32 rsvd_67[4]; - u32 conq_7th; - u32 conq_8th; - u32 conr_3rd; - u32 conr_4th; - u32 rsvd_68[9]; - u32 conr_5th; - u32 rsvd_69[2]; - u32 bwct0_2nd; - u32 rsvd_70[25]; - u32 conr_6th; - u32 conr_7th; - u32 shf0; - u32 dvfs_shf_con; - u32 shf1; - u32 clua; - u32 rsvd_71[10]; - u32 conr_8th; - u32 rsvd_72[1]; - u32 ltct0_2nd; - u32 ltct1_2nd; - u32 ltct2_2nd; - u32 ltct3_2nd; - u32 rsvd_73[4]; - u32 bwct0_3rd; - u32 bwlmte_8th; - u32 rsvd_74[1]; - u32 bwlmtf_8th; - u32 bwct0_4th; - u32 bwlmtg_8th; - u32 rsvd_75[1]; - u32 bwlmth_8th; - u32 rsvd_76[5]; - u32 chn_hash0; - u32 rsvd_77[2]; - u32 bwct0_5th; - u32 rsvd_78[5]; - u32 bwct0_6th; - u32 rsvd_79[11]; - u32 snst; - u32 rsvd_80[1]; - u32 slva; - u32 rsvd_81[7]; - u32 thro_os0; - u32 thro_os1; - u32 thro_os2; - u32 thro_os3; - u32 thro_ctrl0; - u32 thro_prd0; - u32 thro_prd1; - u32 thro_lat0; - u32 thro_lat1; - u32 thro_lat2; - u32 thro_lat3; - u32 thro_lat4; - u32 thro_lat5; - u32 thro_lat6; - u32 thro_ctrl1; - u32 thro_prd2; - u32 rsvd_82[5]; - u32 thro_lat7; - u32 thro_lat8; - u32 thro_prd3; - u32 rsvd_83[4]; - u32 bwlmta; - u32 bwlmtb; - u32 rsvd_84[2]; - u32 bwlmte; - u32 bwlmtf; - u32 rsvd_85[2]; - u32 conb_2nd; - u32 conc_2nd; - u32 cong_2nd; - u32 rsvd_86[1]; - u32 thro_lat9; - u32 thro_lat10; - u32 thro_lat11; - u32 thro_lat12; - u32 thro_lat13; - u32 thro_lat14; - u32 rsvd_87[2]; - u32 bwlmte_2nd; - u32 bwlmtf_2nd; - u32 bwlmtg_2nd; - u32 rsvd_88[13]; - u32 bwlmte_4th; - u32 bwlmtf_4th; - u32 rsvd_89[2]; - u32 bwlmte_5th; - u32 bwlmtf_5th; - u32 bwlmtg_5th; - u32 rsvd_90[7]; - u32 bwlmtg_7th; - u32 rsvd_91[12]; - u32 axi_bist_adr0; - u32 axi_bist_adr1; - u32 axi_bist_adr2; - u32 rsvd_92[22]; - u32 thro_lat27; - u32 thro_lat28; - u32 thro_lat29; - u32 thro_lat30; - u32 rsvd_93[64]; - u32 thro_lat31; - u32 thro_lat32; - u32 thro_lat33; - u32 thro_lat34; - u32 thro_lat35; - u32 thro_lat36; - u32 rsvd_94[4]; - u32 thro_lat41; - u32 thro_lat42; - u32 rsvd_95[12]; - u32 thro_lat55; - u32 thro_lat56; - u32 rsvd_96[12]; - u32 thro_lat69; - u32 thro_lat70; - u32 rsvd_97[12]; - u32 thro_lat83; - u32 thro_lat84; - u32 rsvd_98[12]; - u32 thro_lat97; - u32 thro_lat98; - u32 rsvd_99[12]; - u32 thro_lat111; - u32 thro_lat112; - u32 rsvd_100[1]; - u32 thro_prd5; - u32 rsvd_101[12]; - u32 thro_lat113; - u32 thro_lat114; - u32 thro_lat115; - u32 thro_lat116; - u32 thro_lat117; - u32 thro_lat118; - u32 thro_lat119; - u32 thro_lat120; - u32 rsvd_102[4]; - u32 thro_lat125; - u32 thro_lat126; - u32 rsvd_103[16]; - u32 thro_lat139; - u32 thro_lat140; - u32 rsvd_104[1]; - u32 qos_mdr_be0a; - u32 rsvd_105[1]; - u32 qos_mdr_be1a; - u32 rsvd_106[1]; - u32 qos_mdr_shf0; - u32 qos_mdr_shf1; - u32 qos_mdw_be0a; - u32 rsvd_107[1]; - u32 qos_mdw_be1a; - u32 rsvd_108[1]; - u32 qos_mdw_shf0; - u32 qos_mdw_shf1; - u32 qos_apr_be0a; - u32 rsvd_109[1]; - u32 qos_apr_be1a; - u32 rsvd_110[1]; - u32 qos_apr_shf0; - u32 qos_apw_be0a; - u32 rsvd_111[1]; - u32 qos_apw_be1a; - u32 rsvd_112[1]; - u32 qos_mmr_be0a; - u32 rsvd_113[1]; - u32 qos_mmr_be1a; - u32 qos_mmr_be1b; - u32 qos_mmr_be2a; - u32 qos_mmr_be2b; - u32 qos_mmr_shf0; - u32 qos_mmr_shf1; - u32 qos_mmw_be0a; - u32 rsvd_114[1]; - u32 qos_mmw_be1a; - u32 qos_mmw_be1b; - u32 qos_mmw_be2a; - u32 qos_mmw_be2b; - u32 qos_mmw_shf0; - u32 qos_mmw_shf1; - u32 qos_mdhwr_be0a; - u32 rsvd_115[1]; - u32 qos_mdhwr_be1a; - u32 rsvd_116[1]; - u32 qos_mdhwr_shf0; - u32 qos_mdhww_be0a; - u32 rsvd_117[1]; - u32 qos_mdhww_be1a; - u32 rsvd_118[1]; - u32 qos_gpur_be0a; - u32 rsvd_119[1]; - u32 qos_gpur_be1a; - u32 rsvd_120[1]; - u32 qos_gpur_shf0; - u32 qos_gpuw_be0a; - u32 rsvd_121[1]; - u32 qos_gpuw_be1a; - u32 rsvd_122[1]; - u32 qos_arbr_be0a; - u32 rsvd_123[1]; - u32 qos_arbr_be1a; - u32 rsvd_124[1]; - u32 qos_arbr_shf0; - u32 qos_ctrl1; - u32 rsvd_125[3]; - u32 ext_lt_con1_1st; - u32 ext_lt_con2_1st; - u32 ext_lt_con3_1st; - u32 rsvd_126[1]; - u32 ext_lt_con1_2nd; - u32 ext_lt_con2_2nd; - u32 ext_lt_con3_2nd; - u32 rsvd_127[1]; - u32 ext_lt_con1_3rd; - u32 ext_lt_con2_3rd; - u32 ext_lt_con3_3rd; - u32 rsvd_128[1]; - u32 ext_lt_con1_4th; - u32 ext_lt_con2_4th; - u32 ext_lt_con3_4th; -}; - -struct phy_ao_rk { - u32 shu_r0_b0_txdly0; - u32 shu_r0_b0_txdly1; - u32 shu_r0_b0_txdly2; - u32 shu_r0_b0_txdly3; - u32 shu_r0_b0_txdly4; - u32 shu_r0_b0_rxdly0; - u32 shu_r0_b0_rxdly1; - u32 shu_r0_b0_rxdly2; - u32 shu_r0_b0_rxdly3; - u32 shu_r0_b0_rxdly4; - u32 shu_r0_b0_rxdly5; - u32 shu_rk_b0_dq1; - u32 shu_b0_phy_vref_sel; - u32 shu_r0_b0_dq0; - u32 shu_r0_b0_ini_uipi; - u32 shu_r0_b0_next_ini_uipi; - u32 shu_dqsien_mck_ui_dly; - u32 shu_rk_b0_dqsien_pi_dly; - u32 shu_rk_b0_rodten_mck_ui_dly; - u32 shu_rk_b0_dq0; - u32 rsvd_0[4]; - u32 shu_rk_b0_bist_ctrl; - u32 rsvd_1[7]; -}; - -struct phy_ao_shu_byte { - struct phy_ao_rk rk[RANK_MAX]; - u32 shu_b0_dq0; - u32 shu_b0_dq3; - u32 shu_b0_dq4; - u32 shu_b0_dq5; - u32 shu_b0_dq6; - u32 shu_b0_dq1; - u32 shu_b0_dq2; - u32 shu_b0_dq10; - u32 shu_b0_dq11; - u32 shu_b0_dq7; - u32 shu_b0_dq8; - u32 shu_b0_dq9; - u32 shu_b0_dq12; - u32 shu_b0_dll0; - u32 shu_b0_dll1; - u32 shu_b0_dll2; - u32 shu_b0_rank_selph_ui_dly; - u32 shu_b0_dll_arpi2; - u32 shu_b0_dll_arpi3; - u32 shu_b0_txduty; - u32 shu_b0_vref; - u32 shu_b0_dq13; - u32 shu_b0_dq14; - u32 b0_shu_midpi_ctrl; - u32 rsvd_16[8]; -}; - -struct phy_ao_rx_dvs_byte { - struct { - u32 rk_b0_rxdvs0; - u32 rk_b0_rxdvs1; - u32 rk_b0_rxdvs2; - u32 rk_b0_rxdvs3; - u32 rk_b0_rxdvs4; - u32 rsvd[27]; - } rk[RANK_MAX]; - u32 b0_lp_ctrl0; - u32 b0_rxdvs0; - u32 b0_rxdvs1; - u32 b0_dll_arpi0; - u32 b0_dll_arpi1; - u32 b0_dll_arpi4; - u32 b0_dll_arpi5; - u32 b0_dq2; - u32 b0_dq3; - u32 b0_dq4; - u32 b0_dq5; - u32 b0_dq6; - u32 b0_dq7; - u32 b0_dq8; - u32 b0_dq9; - u32 b0_dq10; - u32 b0_dq11; - u32 b0_phy2; - u32 b0_phy3; - u32 b0_tx_mck; - u32 rsvd_3[12]; -}; - -struct phy_ao_ca_rk { - u32 shu_r0_ca_txdly0; - u32 shu_r0_ca_txdly1; - u32 shu_r0_ca_txdly2; - u32 shu_r0_ca_txdly3; - u32 shu_r0_ca_txdly4; - u32 shu_r0_ca_rxdly0; - u32 shu_r0_ca_rxdly1; - u32 shu_r0_ca_rxdly2; - u32 shu_r0_ca_rxdly6; - u32 shu_r0_ca_rxdly3; - u32 shu_r0_ca_rxdly4; - u32 shu_r0_ca_rxdly5; - u32 shu_r0_ca_rxdly7; - u32 shu_r0_ca_cmd0; - u32 shu_r0_ca_ini_uipi; - u32 shu_r0_ca_next_ini_uipi; - u32 shu_rk_ca_dqsien_mck_ui_dly; - u32 shu_rk_ca_dqsien_pi_dly; - u32 shu_rk_ca_rodten_mck_ui_dly; - u32 shu_rk_ca_cmd0; - u32 shu_rk_ca_cmd1; - u32 shu_ca_phy_vref_sel; - u32 rsvd[10]; -}; - -struct phy_ao_misc_rk { - u32 misc_shu_rk_dqsctl; - u32 misc_shu_rk_dqsien_picg_ctrl; - u32 misc_shu_rk_dqscal; - u32 rsvd[29]; -}; - -struct ddrphy_ao_regs { - u32 phypll0; - u32 phypll1; - u32 phypll2; - u32 rsvd_0[5]; - u32 clrpll0; - u32 rsvd_1[15]; - struct phy_ao_rx_dvs_byte dvs_b[BYTE_NUM]; - u32 rk_ca_rxdvs0; - u32 rk_ca_rxdvs1; - u32 rk_ca_rxdvs2; - u32 rk_ca_rxdvs3; - u32 rk_ca_rxdvs4; - u32 rsvd_6[59]; - u32 ca_lp_ctrl0; - u32 ca_rxdvs0; - u32 ca_rxdvs1; - u32 ca_dll_arpi0; - u32 ca_dll_arpi1; - u32 ca_dll_arpi4; - u32 ca_dll_arpi5; - u32 ca_cmd2; - u32 ca_cmd3; - u32 ca_cmd4; - u32 ca_cmd5; - u32 ca_cmd6; - u32 ca_cmd7; - u32 ca_cmd8; - u32 ca_cmd9; - u32 ca_cmd10; - u32 ca_cmd11; - u32 ca_phy2; - u32 ca_phy3; - u32 ca_tx_mck; - u32 rsvd_7[12]; - u32 misc_stbcal; - u32 misc_stbcal1; - u32 misc_stbcal2; - u32 misc_cg_ctrl0; - u32 misc_cg_ctrl1; - u32 misc_cg_ctrl2; - u32 misc_cg_ctrl3; - u32 rsvd_8[1]; - u32 misc_cg_ctrl5; - u32 misc_cg_ctrl7; - u32 misc_cg_ctrl9; - u32 misc_cg_ctrl10; - u32 misc_dvfsctl; - u32 misc_dvfsctl2; - u32 misc_dvfsctl3; - u32 misc_ckmux_sel; - u32 misc_clk_ctrl; - u32 misc_dqsg_retry1; - u32 misc_rdsel_track; - u32 misc_pre_tdqsck1; - u32 misc_cdc_ctrl; - u32 misc_lp_ctrl; - u32 misc_rg_dfs_ctrl; - u32 misc_ddr_reserve; - u32 misc_imp_ctrl1; - u32 misc_impcal; - u32 misc_impcal1; - u32 misc_impedamce_ctrl1; - u32 misc_impedamce_ctrl2; - u32 misc_impedamce_ctrl3; - u32 misc_impedamce_ctrl4; - u32 misc_peripher_ctrl2; - u32 misc_apb; - u32 misc_extlb0; - u32 misc_extlb1; - u32 misc_extlb2; - u32 misc_extlb3; - u32 misc_extlb4; - u32 misc_extlb5; - u32 misc_extlb6; - u32 misc_extlb7; - u32 misc_extlb8; - u32 misc_extlb9; - u32 misc_extlb10; - u32 misc_extlb11; - u32 misc_extlb12; - u32 misc_extlb13; - u32 misc_extlb14; - u32 misc_extlb15; - u32 misc_extlb16; - u32 misc_extlb17; - u32 misc_extlb18; - u32 misc_extlb19; - u32 misc_extlb20; - u32 misc_extlb21; - u32 misc_extlb22; - u32 misc_extlb23; - u32 misc_extlb_rx0; - u32 misc_extlb_rx1; - u32 misc_extlb_rx2; - u32 misc_extlb_rx3; - u32 misc_extlb_rx4; - u32 misc_extlb_rx5; - u32 misc_extlb_rx6; - u32 misc_extlb_rx7; - u32 misc_extlb_rx8; - u32 misc_extlb_rx9; - u32 misc_extlb_rx10; - u32 misc_extlb_rx11; - u32 misc_extlb_rx12; - u32 misc_extlb_rx13; - u32 misc_extlb_rx14; - u32 misc_extlb_rx15; - u32 misc_extlb_rx16; - u32 misc_extlb_rx17; - u32 misc_extlb_rx18; - u32 misc_extlb_rx19; - u32 misc_extlb_rx20; - u32 misc_sram_dma0; - u32 misc_sram_dma1; - u32 misc_sram_dma2; - u32 misc_dutyscan1; - u32 misc_miock_jit_mtr; - u32 misc_jmeter; - u32 misc_dvfs_emi_clk; - u32 misc_rx_in_gate_en_ctrl; - u32 misc_rx_in_buff_en_ctrl; - u32 misc_ctrl0; - u32 misc_ctrl1; - u32 misc_ctrl2; - u32 misc_ctrl3; - u32 misc_ctrl4; - u32 misc_ctrl5; - u32 misc_ctrl6; - u32 misc_vref_ctrl; - u32 misc_shu_opt; - u32 misc_rxdvs0; - u32 misc_rxdvs2; - u32 misc_dqsien_autok_cfg0; - u32 misc_dline_mon_cfg; - u32 misc_rx_autok_cfg0; - u32 misc_rx_autok_cfg1; - u32 rsvd_9[2]; - u32 misc_dbg_irq_ctrl0; - u32 misc_dbg_irq_ctrl1; - u32 misc_dbg_irq_ctrl2; - u32 misc_dbg_irq_ctrl3; - u32 misc_dbg_irq_ctrl4; - u32 misc_dbg_irq_ctrl5; - u32 misc_dbg_irq_ctrl6; - u32 misc_dbg_irq_ctrl7; - u32 misc_dbg_irq_ctrl8; - u32 misc_dbg_irq_ctrl9; - u32 rsvd_10[2]; - u32 misc_dq_se_pinmux_ctrl0; - u32 misc_dq_se_pinmux_ctrl1; - u32 rsvd_11[2]; - u32 misc_bist_lpbk_ctrl0; - u32 rsvd_12[15]; - u32 shu_phypll0; - u32 shu_phypll1; - u32 shu_phypll2; - u32 shu_phypll3; - u32 shu_phypll4; - u32 shu_phypll5; - u32 shu_phypll6; - u32 shu_phypll7; - u32 shu_clrpll0; - u32 shu_clrpll1; - u32 shu_clrpll2; - u32 shu_clrpll3; - u32 shu_clrpll4; - u32 shu_clrpll5; - u32 shu_clrpll6; - u32 shu_clrpll7; - u32 shu_pll0; - u32 shu_pll1; - u32 shu_pll2; - u32 rsvd_13[5]; - struct phy_ao_shu_byte byte[BYTE_NUM]; - struct phy_ao_ca_rk ca_rk[RANK_MAX]; - u32 shu_ca_cmd0; - u32 shu_ca_cmd3; - u32 shu_ca_cmd4; - u32 shu_ca_cmd5; - u32 shu_ca_cmd6; - u32 shu_ca_cmd1; - u32 shu_ca_cmd2; - u32 shu_ca_cmd10; - u32 shu_ca_cmd11; - u32 shu_ca_cmd7; - u32 shu_ca_cmd8; - u32 shu_ca_cmd9; - u32 shu_ca_cmd12; - u32 shu_ca_dll0; - u32 shu_ca_dll1; - u32 shu_ca_dll2; - u32 shu_ca_rank_selph_ui_dly; - u32 shu_ca_dll_arpi2; - u32 shu_ca_dll_arpi3; - u32 shu_ca_txduty; - u32 shu_ca_vref; - u32 shu_ca_cmd13; - u32 shu_ca_cmd14; - u32 ca_shu_midpi_ctrl; - u32 rsvd_21[8]; - struct phy_ao_misc_rk misc_rk[RANK_MAX]; - u32 misc_shu_drving7; - u32 misc_shu_drving8; - u32 misc_shu_impedamce_offset1; - u32 misc_shu_impedamce_offset2; - u32 misc_shu_impedamce_offset3; - u32 misc_shu_impedamce_offset4; - u32 misc_shu_impedamce_offset5; - u32 misc_shu_impedamce_offset6; - u32 misc_shu_impedamce_offset7; - u32 misc_shu_impedamce_offset8; - u32 misc_shu_impedamce_offset9; - u32 misc_shu_impedamce_upd_dis1; - u32 shu_misc_sw_impcal; - u32 misc_shu_stbcal; - u32 misc_shu_stbcal1; - u32 misc_shu_dvfsdll; - u32 misc_shu_rankctl; - u32 misc_shu_phy_rx_ctrl; - u32 misc_shu_odtctrl; - u32 misc_shu_rodtenstb; - u32 misc_shu_rodtenstb1; - u32 misc_shu_dqsg_retry1; - u32 misc_shu_rdat; - u32 misc_shu_rdat1; - u32 shu_misc_clk_ctrl0; - u32 shu_misc_impcal1; - u32 shu_misc_drving1; - u32 shu_misc_drving2; - u32 shu_misc_drving3; - u32 shu_misc_drving4; - u32 shu_misc_drving5; - u32 shu_misc_drving6; - u32 shu_misc_duty_scan; - u32 shu_misc_dma; - u32 shu_misc_rvref; - u32 shu_misc_rx_pipe_ctrl; - u32 shu_misc_tx_pipe_ctrl; - u32 shu_misc_emi_ctrl; - u32 shu_misc_rank_sel_stb; - u32 shu_misc_rdsel_track; - u32 shu_misc_pre_tdqsck; - u32 shu_misc_async_fifo_ctrl; - u32 misc_shu_rx_selph_mode; - u32 misc_shu_rank_sel_lat; - u32 misc_shu_dline_mon_ctrl; - u32 misc_shu_dline_mon_cnt; - u32 misc_shu_midpi_ctrl; - u32 rsvd_23[1]; - u32 misc_shu_rx_cg_ctrl; - u32 misc_shu_cg_ctrl0; - u32 rsvd_24[470]; - u32 misc_stberr_all; - u32 misc_stberr_rk0_r; - u32 misc_stberr_rk0_f; - u32 misc_stberr_rk1_r; - u32 misc_stberr_rk1_f; - u32 rsvd_25[3]; - u32 misc_ddr_reserve_state; - u32 rsvd_26[3]; - u32 misc_irq_status0; - u32 misc_irq_status1; - u32 misc_irq_status2; - u32 rsvd_27[49]; - u32 misc_dbg_db_message0; - u32 misc_dbg_db_message1; - u32 misc_dbg_db_message2; - u32 misc_dbg_db_message3; - u32 misc_dbg_db_message4; - u32 misc_dbg_db_message5; - u32 misc_dbg_db_message6; - u32 misc_dbg_db_message7; -}; - -struct emi_chn_regs { - u32 cona; - u32 rsvd_0[1]; - u32 conb; - u32 rsvd_1[1]; - u32 conc; - u32 rsvd_2[1]; - u32 mdct; - u32 rsvd_3[1]; - u32 ebg_con; - u32 rsvd_4[9]; - u32 testb; - u32 rsvd_5[1]; - u32 testc; - u32 rsvd_6[1]; - u32 testd; - u32 rsvd_7[9]; - u32 md_pre_mask; - u32 rsvd_8[1]; - u32 md_pre_mask_shf; - u32 rsvd_9[1]; - u32 ap_early_cke; - u32 rsvd_10[1]; - u32 dqfr; - u32 rsvd_11[41]; - u32 arbi; - u32 arbi_2nd; - u32 arbj; - u32 arbj_2nd; - u32 arbk; - u32 arbk_2nd; - u32 slct; - u32 arb_rff; - u32 rsvd_12[3]; - u32 drs_mon0; - u32 drs_mon1; - u32 rsvd_13[15]; - u32 rkarb0; - u32 rkarb1; - u32 rkarb2; - u32 rsvd_14[144]; - u32 eco3; - u32 rsvd_15[1]; - u32 md_pre_mask_shf0; - u32 md_pre_mask_shf1; - u32 qos_mdr_shf0; - u32 rsvd_16[192]; - u32 shf0; -}; - -struct emi_mpu_regs { - u32 mpu_ctrl; - u32 rsvd[511]; - u32 mpu_ctrl_d[16]; -}; - -struct infra_ao_mem_regs { - u32 rsvd_0[10]; - u32 emi_dcm_cfg0; - u32 emi_dcm_cfg1; - u32 emi_dcm_cfg2; - u32 emi_dcm_cfg3; - u32 top_ck_anchor_cfg; - u32 rsvd_2[5]; - u32 emi_disph_cfg; - u32 rsvd_3[43]; - u32 emi_idle_bit_en_0; - u32 emi_idle_bit_en_1; - u32 emi_idle_bit_en_2; - u32 emi_idle_bit_en_3; - u32 emi_m0m1_idle_bit_en_0; - u32 emi_m0m1_idle_bit_en_1; - u32 emi_m0m1_idle_bit_en_2; - u32 emi_m0m1_idle_bit_en_3; - u32 emi_m2m5_idle_bit_en_0; - u32 emi_m2m5_idle_bit_en_1; - u32 emi_m2m5_idle_bit_en_2; - u32 emi_m2m5_idle_bit_en_3; - u32 emi_m3_idle_bit_en_0; - u32 emi_m3_idle_bit_en_1; - u32 emi_m3_idle_bit_en_2; - u32 emi_m3_idle_bit_en_3; - u32 emi_m4_idle_bit_en_0; - u32 emi_m4_idle_bit_en_1; - u32 emi_m4_idle_bit_en_2; - u32 emi_m4_idle_bit_en_3; - u32 emi_m6m7_idle_bit_en_0; - u32 emi_m6m7_idle_bit_en_1; - u32 emi_m6m7_idle_bit_en_2; - u32 emi_m6m7_idle_bit_en_3; - u32 emi_sram_idle_bit_en_0; - u32 emi_sram_idle_bit_en_1; - u32 emi_sram_idle_bit_en_2; - u32 emi_sram_idle_bit_en_3; -}; - -struct dramc_channel_regs { - union { - struct dramc_ao_regs ao; - uint8_t raw_ao_regs[0x4000]; - }; - union { - struct dramc_nao_regs nao; - uint8_t raw_nao_regs[0x1000]; - }; - union { - struct emi_chn_regs emi_chn; - uint8_t raw_emi_regs[0x1000]; - }; - union { - struct ddrphy_nao_regs phy_nao; - uint8_t raw_ddrphy_nao_regs[0x2000]; - }; - union { - struct ddrphy_ao_regs phy_ao; - uint8_t raw_ddrphy_ao_regs[0x8000]; - }; -}; - -static struct dramc_channel_regs *const ch = (void *)DRAMC_CHA_AO_BASE; -#endif /* __SOC_MEDIATEK_MT8192_DRAMC_REGISTER_H__ */ diff --git a/src/soc/mediatek/mt8192/include/soc/dramc_register_bits_def.h b/src/soc/mediatek/mt8192/include/soc/dramc_register_bits_def.h deleted file mode 100644 index 82ae8b587c..0000000000 --- a/src/soc/mediatek/mt8192/include/soc/dramc_register_bits_def.h +++ /dev/null @@ -1,2837 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#ifndef __SOC_MEDIATEK_MT8192_DRAMC_MACRO_DEF_H__ -#define __SOC_MEDIATEK_MT8192_DRAMC_MACRO_DEF_H__ - -/* DDRPHY_REG_PHYPLL1 */ -DEFINE_BIT(PHYPLL1_RG_RPHYPLL_TSTOP_EN, 0) -DEFINE_BIT(PHYPLL1_RG_RPHYPLL_TST_EN, 4) - -/* DDRPHY_REG_SHU_PHYPLL0 */ -DEFINE_BITFIELD(SHU_PHYPLL0_RG_RPHYPLL_RESERVED, 15, 0) -DEFINE_BITFIELD(SHU_PHYPLL0_RG_RPHYPLL_ICHP, 25, 24) - -/* DDRPHY_REG_SHU_CLRPLL0 */ -DEFINE_BITFIELD(SHU_CLRPLL0_RG_RCLRPLL_RESERVED, 15, 0) -DEFINE_BITFIELD(SHU_CLRPLL0_RG_RCLRPLL_ICHP, 25, 24) - -/* DDRPHY_REG_SHU_PHYPLL2 */ -DEFINE_BITFIELD(SHU_PHYPLL2_RG_RPHYPLL_POSDIV, 2, 0) -DEFINE_BITFIELD(SHU_PHYPLL2_RG_RPHYPLL_PREDIV, 19, 18) - -/* DDRPHY_REG_SHU_CLRPLL2 */ -DEFINE_BITFIELD(SHU_CLRPLL2_RG_RCLRPLL_POSDIV, 2, 0) -DEFINE_BITFIELD(SHU_CLRPLL2_RG_RCLRPLL_PREDIV, 19, 18) - -/* DDRPHY_REG_SHU_PHYPL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9 */ -DEFINE_BIT(B1_DQ9_RG_RX_ARDQ_STBEN_RESETB_B1, 0) -DEFINE_BIT(B1_DQ9_RG_RX_ARDQS0_STBEN_RESETB_B1, 4) -DEFINE_BIT(B1_DQ9_RG_RX_ARDQS0_DQSIENMODE_B1, 5) -DEFINE_BIT(B1_DQ9_R_DMRXDVS_R_F_DLY_RK_OPT_B1, 6) -DEFINE_BIT(B1_DQ9_R_DMRXFIFO_STBENCMP_EN_B1, 7) -DEFINE_BITFIELD(B1_DQ9_R_IN_GATE_EN_LOW_OPT_B1, 15, 8) -DEFINE_BITFIELD(B1_DQ9_R_DMDQSIEN_VALID_LAT_B1, 18, 16) -DEFINE_BITFIELD(B1_DQ9_R_DMDQSIEN_RDSEL_LAT_B1, 22, 20) -DEFINE_BITFIELD(B1_DQ9_R_DMRXDVS_VALID_LAT_B1, 26, 24) -DEFINE_BITFIELD(B1_DQ9_R_DMRXDVS_RDSEL_LAT_B1, 30, 28) - -/* DDRPHY_REG_CA_CMD8 */ -DEFINE_BIT(CA_CMD8_RG_RX_ARCLK_SER_RST_MODE, 13) -DEFINE_BIT(CA_CMD8_RG_ARDLL_RESETB_CA, 15) - -/* DDRPHY_REG_B0_DQ8 */ -DEFINE_BIT(B0_DQ8_RG_RX_ARDQS_SER_RST_MODE_B0, 13) -DEFINE_BIT(B0_DQ8_RG_ARDLL_RESETB_B0, 15) - -/* DDRPHY_REG_B1_DQ8 */ -DEFINE_BIT(B1_DQ8_RG_RX_ARDQS_SER_RST_MODE_B1, 13) -DEFINE_BIT(B1_DQ8_RG_ARDLL_RESETB_B1, 15) - -/* DDRPHY_REG_CA_CMD11 */ -DEFINE_BITFIELD(CA_CMD11_RG_RRESETB_DRVP, 4, 0) -DEFINE_BITFIELD(CA_CMD11_RG_RRESETB_DRVN, 12, 8) -DEFINE_BIT(CA_CMD11_RG_TX_RRESETB_DDR3_SEL, 19) -DEFINE_BIT(CA_CMD11_RG_TX_RRESETB_PULL_DN, 20) - -/* DDRPH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) -DEFINE_BIT(MISC_IMP_CTRL1_RG_RIMP_PRE_EN, 6) -DEFINE_BIT(MISC_IMP_CTRL1_RG_RIMP_VREF_EN, 7) -DEFINE_BIT(MISC_IMP_CTRL1_IMP_ABN_LAT_CLR, 14) -DEFINE_BIT(MISC_IMP_CTRL1_RG_RIMP_SUS_ECO_OPT, 31) - -/* DDRPHY_REG_MISC_CG_CTRL0 */ -DEFINE_BIT(MISC_CG_CTRL0_W_CHG_MEM, 0) -DEFINE_BITFIELD(MISC_CG_CTRL0_RESERVED_MISC_CG_CTRL0_BIT3_1, 3, 1) -DEFINE_BITFIELD(MISC_CG_CTRL0_CLK_MEM_SEL, 5, 4) -DEFINE_BIT(MISC_CG_CTRL0_RESERVED_MISC_CG_CTRL0_BIT7, 7) -DEFINE_BIT(MISC_CG_CTRL0_RG_CG_EMI_OFF_DISABLE, 8) -DEFINE_BIT(MISC_CG_CTRL0_RG_CG_DRAMC_OFF_DISABLE, 9) -DEFINE_BIT(MISC_CG_CTRL0_RG_CG_PHY_OFF_DISABLE, 10) -DEFINE_BIT(MISC_CG_CTRL0_RG_CG_COMB_OFF_DISABLE, 11) -DEFINE_BIT(MISC_CG_CTRL0_RG_CG_CMD_OFF_DISABLE, 12) -DEFINE_BIT(MISC_CG_CTRL0_RG_CG_COMB0_OFF_DISABLE, 13) -DEFINE_BIT(MISC_CG_CTRL0_RG_CG_COMB1_OFF_DISABLE, 14) -DEFINE_BIT(MISC_CG_CTRL0_RG_CG_RX_CMD_OFF_DISABLE, 15) -DEFINE_BIT(MISC_CG_CTRL0_RG_CG_RX_COMB0_OFF_DISABLE, 16) -DEFINE_BIT(MISC_CG_CTRL0_RG_CG_RX_COMB1_OFF_DISABLE, 17) -DEFINE_BIT(MISC_CG_CTRL0_RG_CG_IDLE_SYNC_EN, 18) -DEFINE_BIT(MISC_CG_CTRL0_RG_CG_INFRA_OFF_DISABLE, 19) -DEFINE_BIT(MISC_CG_CTRL0_RG_CG_DRAMC_CK_OFF, 20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EFINE_BIT(B0_DLL_ARPI0_RG_ARPI_RESETB_B0, 3) - -/* DDRPHY_REG_B1_DLL_ARPI0 */ -DEFINE_BIT(B1_DLL_ARPI0_RG_ARPI_RESETB_B1, 3) - -/* DDRPHY_REG_MISC_CG_CTRL2 */ -DEFINE_BIT(MISC_CG_CTRL2_RG_MEM_DCM_APB_TOG, 0) -DEFINE_BITFIELD(MISC_CG_CTRL2_RG_MEM_DCM_APB_SEL, 5, 1) -DEFINE_BIT(MISC_CG_CTRL2_RG_MEM_DCM_FORCE_ON, 6) -DEFINE_BIT(MISC_CG_CTRL2_RG_MEM_DCM_DCM_EN, 7) -DEFINE_BIT(MISC_CG_CTRL2_RG_MEM_DCM_DBC_EN, 8) -DEFINE_BITFIELD(MISC_CG_CTRL2_RG_MEM_DCM_DBC_CNT, 15, 9) -DEFINE_BITFIELD(MISC_CG_CTRL2_RG_MEM_DCM_FSEL, 20, 16) -DEFINE_BITFIELD(MISC_CG_CTRL2_RG_MEM_DCM_IDLE_FSEL, 25, 21) -DEFINE_BIT(MISC_CG_CTRL2_RG_MEM_DCM_FORCE_OFF, 26) -DEFINE_BIT(MISC_CG_CTRL2_RESERVED_MISC_CG_CTRL2_BIT27, 27) -DEFINE_BIT(MISC_CG_CTRL2_RG_PHY_CG_OFF_DISABLE, 28) -DEFINE_BIT(MISC_CG_CTRL2_RG_PIPE0_CG_OFF_DISABLE, 29) -DEFINE_BIT(MISC_CG_CTRL2_RESERVED_MISC_CG_CTRL2_BIT30, 30) -DEFINE_BIT(MISC_CG_CTRL2_RG_MEM_DCM_CG_OFF_DISABLE, 31) - -/* DDRPHY_REG_MISC_CTRL0 */ -DEFINE_BIT(MISC_CTRL0_R_DMDQSIEN_FIFO_EN, 0) -DEFINE_BIT(MISC_CTRL0_R_DMSTBEN_SYNCOPT, 2) -DEFINE_BIT(MISC_CTRL0_R_DMVALID_DLY_OPT, 4) -DEFINE_BIT(MISC_CTRL0_R_DMVALID_NARROW_IG, 5) -DEFINE_BITFIELD(MISC_CTRL0_R_DMVALID_DLY, 10, 8) -DEFINE_BIT(MISC_CTRL0_IMPCAL_CHAB_EN, 12) -DEFINE_BIT(MISC_CTRL0_IMPCAL_TRACK_DISABLE, 13) -DEFINE_BIT(MISC_CTRL0_IMPCAL_LP_ECO_OPT, 18) -DEFINE_BIT(MISC_CTRL0_IMPCAL_CDC_ECO_OPT, 19) -DEFINE_BIT(MISC_CTRL0_IDLE_DCM_CHB_CDC_ECO_OPT, 20) -DEFINE_BIT(MISC_CTRL0_R_DMSHU_PHYDCM_FORCEOFF, 27) -DEFINE_BIT(MISC_CTRL0_R_DQS0IEN_DIV4_CK_CG_CTRL, 28) -DEFINE_BIT(MISC_CTRL0_R_DQS1IEN_DIV4_CK_CG_CTRL, 29) -DEFINE_BIT(MISC_CTRL0_R_CLKIEN_DIV4_CK_CG_CTRL, 30) -DEFINE_BIT(MISC_CTRL0_R_STBENCMP_DIV4CK_EN, 31) - -/* DDRPHY_REG_MISC_RXDVS2 */ -DEFINE_BIT(MISC_RXDVS2_R_DMRXDVS_DEPTH_HALF, 0) -DEFINE_BIT(MISC_RXDVS2_R_DMRXDVS_SHUFFLE_CTRL_CG_IG, 8) -DEFINE_BIT(MISC_RXDVS2_R_DMRXDVS_DBG_MON_EN, 16) -DEFINE_BIT(MISC_RXDVS2_R_DMRXDVS_DBG_MON_CLR, 17) -DEFINE_BIT(MISC_RXDVS2_R_DMRXDVS_DBG_PAUSE_EN, 18) - -/* DDRPHY_REG_MISC_DVFS_EMI_CLK */ -DEFINE_BIT(MISC_DVFS_EMI_CLK_RG_DLL_SHUFFLE_DDRPHY, 24) - -/* DDRPHY_REG_B0_DQ10 */ -DEFINE_BIT(B0_DQ10_ARPI_CG_RK1_SRC_SEL_B0, 0) - -/* DDRPHY_REG_B1_DQ10 */ -DEFINE_BIT(B1_DQ10_ARPI_CG_RK1_SRC_SEL_B1, 0) - -/* DDRPHY_REG_MISC_DVFSCTL */ -DEFINE_BITFIELD(MISC_DVFSCTL_R_DVFS_PICG_MARGIN_NEW, 3, 0) -DEFINE_BITFIELD(MISC_DVFSCTL_R_DVFS_PICG_MARGIN2_NEW, 7, 4) -DEFINE_BITFIELD(MISC_DVFSCTL_R_DVFS_PICG_MARGIN3_NEW, 11, 8) -DEFINE_BITFIELD(MISC_DVFSCTL_R_DVFS_PICG_MARGIN4_NEW, 15, 12) -DEFINE_BIT(MISC_DVFSCTL_R_DMSHUFFLE_CHANGE_FREQ_OPT, 18) -DEFINE_BIT(MISC_DVFSCTL_R_SHUFFLE_PI_RESET_ENABLE, 26) -DEFINE_BIT(MISC_DVFSCTL_R_DVFS_PICG_POSTPONE, 27) -DEFINE_BITFIELD(MISC_DVFSCTL_R_DVFS_MCK8X_MARGIN, 31, 28) - -/* DDRPHY_REG_MISC_STBCAL1 */ -DEFINE_BIT(MISC_STBCAL1_STBCNT_SHU_RST_EN, 0) -DEFINE_BIT(MISC_STBCAL1_DIS_PI_TRACK_AS_NOT_RD, 2) -DEFINE_BIT(MISC_STBCAL1_STBCNT_MODESEL, 4) -DEFINE_BIT(MISC_STBCAL1_DQSIEN_7UI_EN, 5) -DEFINE_BIT(MISC_STBCAL1_STB_SHIFT_DTCOUT_IG, 6) -DEFINE_BIT(MISC_STBCAL1_STB_FLAGCLR_OPT, 8) -DEFINE_BIT(MISC_STBCAL1_STBCNT_SW_RST, 15) -DEFINE_BITFIELD(MISC_STBCAL1_STBCAL_FILTER, 31, 16) - -/* DDRPHY_REG_MISC_STBCAL2 */ -DEFINE_BIT(MISC_STBCAL2_STB_PIDLYCG_IG, 0) -DEFINE_BIT(MISC_STBCAL2_STB_UIDLYCG_IG, 1) -DEFINE_BITFIELD(MISC_STBCAL2_STB_DBG_EN, 7, 4) -DEFINE_BIT(MISC_STBCAL2_STB_DBG_CG_AO, 8) -DEFINE_BIT(MISC_STBCAL2_STB_DBG_UIPI_UPD_OPT, 9) -DEFINE_BIT(MISC_STBCAL2_DQSGCNT_BYP_REF, 10) -DEFINE_BIT(MISC_STBCAL2_STB_PICG_EARLY_1T_EN, 16) -DEFINE_BIT(MISC_STBCAL2_STB_STBENRST_EARLY_1T_EN, 17) -DEFINE_BIT(MISC_STBCAL2_STB_IG_XRANK_CG_RST, 18) -DEFINE_BIT(MISC_STBCAL2_STB_RST_BY_RANK, 19) -DEFINE_BIT(MISC_STBCAL2_DQSIEN_SELPH_BY_RANK_EN, 20) -DEFINE_BIT(MISC_STBCAL2_STB_GERRSTOP, 28) -DEFINE_BIT(MISC_STBCAL2_STB_GERR_RST, 29) -DEFINE_BIT(MISC_STBCAL2_STB_GERR_B01, 30) -DEFINE_BIT(MISC_STBCAL2_STB_GERR_B23, 31) - -/* DDRPHY_REG_MISC_SHU_STBCAL */ -DEFINE_BITFIELD(MISC_SHU_STBCAL_DQSIEN_DQSSTB_MODE, 13, 12) -DEFINE_BIT(MISC_SHU_STBCAL_DQSIEN_BURST_MODE, 14) -DEFINE_BIT(MISC_SHU_STBCAL_STBCALEN, 16) -DEFINE_BIT(MISC_SHU_STBCAL_STB_SELPHCALEN, 17) - -/* DDRPHY_REG_MISC_STBCAL */ -DEFINE_BIT(MISC_STBCAL_PIMASK_RKCHG_OPT, 0) -DEFINE_BIT(MISC_STBCAL_STBDLELAST_OPT, 4) -DEFINE_BITFIELD(MISC_STBCAL_STBDLELAST_PULSE, 11, 8) -DEFINE_BIT(MISC_STBCAL_STBDLELAST_FILTER, 12) -DEFINE_BIT(MISC_STBCAL_STBSTATE_OPT, 15) -DEFINE_BIT(MISC_STBCAL_PHYVALID_IG, 16) -DEFINE_BIT(MISC_STBCAL_SREF_DQSGUPD, 17) -DEFINE_BIT(MISC_STBCAL_RKCHGMASKDIS, 19) -DEFINE_BIT(MISC_STBCAL_PICGEN, 20) -DEFINE_BIT(MISC_STBCAL_REFUICHG, 21) -DEFINE_BIT(MISC_STBCAL_STBCAL2R, 23) -DEFINE_BIT(MISC_STBCAL_PICHGBLOCK_NORD, 26) -DEFINE_BIT(MISC_STBCAL_STB_DQIEN_IG, 27) -DEFINE_BIT(MISC_STBCAL_DQSIENCG_CHG_EN, 28) -DEFINE_BIT(MISC_STBCAL_DQSIENCG_NORMAL_EN, 29) -DEFINE_BIT(MISC_STBCAL_DQSIENMODE, 31) - -/* DDRPHY_REG_B0_PHY2 */ -DEFINE_BITFIELD(B0_PHY2_RG_RX_ARDQS_JM_SEL_B0, 7, 4) -DEFINE_BIT(B0_PHY2_RG_RX_ARDQS_JM_EN_B0, 8) -DEFINE_BITFIELD(B0_PHY2_RG_RX_ARDQS_JM_DLY_B0, 24, 16) -DEFINE_BIT(B0_PHY2_RG_RX_ARDQS_DQSIEN_UI_LEAD_LAG_EN_B0, 28) - -/* DDRPHY_REG_B1_PHY2 */ -DEFINE_BITFIELD(B1_PHY2_RG_RX_ARDQS_JM_SEL_B1, 7, 4) -DEFINE_BIT(B1_PHY2_RG_RX_ARDQS_JM_EN_B1, 8) -DEFINE_BITFIELD(B1_PHY2_RG_RX_ARDQS_JM_DLY_B1, 24, 16) -DEFINE_BIT(B1_PHY2_RG_RX_ARDQS_DQSIEN_UI_LEAD_LAG_EN_B1, 28) - -/* DDRPHY_REG_MISC_RX_IN_GATE_EN_CTRL */ -DEFINE_BIT(MISC_RX_IN_GATE_EN_CTRL_RX_IN_GATE_EN_OPT, 0) -DEFINE_BIT(MISC_RX_IN_GATE_EN_CTRL_RX_IN_GATE_EN_4BYTE_EN, 1) -DEFINE_BITFIELD(MISC_RX_IN_GATE_EN_CTRL_FIX_IN_GATE_EN, 11, 8) -DEFINE_BITFIELD(MISC_RX_IN_GATE_EN_CTRL_DIS_IN_GATE_EN, 15, 12) - -/* DDRPHY_REG_MISC_RX_IN_BUFF_EN_CTRL */ -DEFINE_BIT(MISC_RX_IN_BUFF_EN_CTRL_RX_IN_BUFF_EN_OPT, 0) -DEFINE_BIT(MISC_RX_IN_BUFF_EN_CTRL_RX_IN_BUFF_EN_4BYTE_EN, 1) -DEFINE_BITFIELD(MISC_RX_IN_BUFF_EN_CTRL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INE_BITFIELD(RK_B1_RXDVS4_RG_RK0_ARDQS0_MIN_DLY_B1, 8, 0) -DEFINE_BITFIELD(RK_B1_RXDVS4_RG_RK0_ARDQS0_MAX_DLY_B1, 24, 16) - -/* DDRPHY_REG_RK_B1_RXDVS2 */ -DEFINE_BITFIELD(RK_B1_RXDVS2_R_RK0_RX_DLY_FAL_DQS_SCALE_B1, 17, 16) -DEFINE_BITFIELD(RK_B1_RXDVS2_R_RK0_RX_DLY_FAL_DQ_SCALE_B1, 19, 18) -DEFINE_BIT(RK_B1_RXDVS2_R_RK0_RX_DLY_FAL_TRACK_GATE_ENA_B1, 23) -DEFINE_BITFIELD(RK_B1_RXDVS2_R_RK0_RX_DLY_RIS_DQS_SCALE_B1, 25, 24) -DEFINE_BITFIELD(RK_B1_RXDVS2_R_RK0_RX_DLY_RIS_DQ_SCALE_B1, 27, 26) -DEFINE_BIT(RK_B1_RXDVS2_R_RK0_RX_DLY_RIS_TRACK_GATE_ENA_B1, 28) -DEFINE_BIT(RK_B1_RXDVS2_R_RK0_DVS_FDLY_MODE_B1, 29) -DEFINE_BITFIELD(RK_B1_RXDVS2_R_RK0_DVS_MODE_B1, 31, 30) - -/* DDRPHY_REG_RK_B1_RXDVS1 */ -DEFINE_BITFIELD(RK_B1_RXDVS1_R_RK0_B1_DVS_TH_LAG, 15, 0) -DEFINE_BITFIELD(RK_B1_RXDVS1_R_RK0_B1_DVS_TH_LEAD, 31, 16) - -/* DDRPHY_REG_MISC_CG_CTRL1 */ -DEFINE_BITFIELD(MISC_CG_CTRL1_R_DVS_DIV4_CG_CTRL, 31, 0) - -/* DDRPHY_REG_B0_RXDVS1 */ -DEFINE_BIT(B0_RXDVS1_F_LEADLAG_TRACK_B0, 15) -DEFINE_BIT(B0_RXDVS1_R_DMRXDVS_UPD_CLR_NORD_B0, 17) - -/* DDRPHY_REG_B1_RXDVS1 */ -DEFINE_BIT(B1_RXDVS1_F_LEADLAG_TRACK_B1, 15) -DEFINE_BIT(B1_RX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CTRL5_R_CA_PI_DCM_EN, 22) - -/* DRAMC_REG_RX_CG_SET0 */ -DEFINE_BIT(RX_CG_SET0_RDATCKAR, 30) -DEFINE_BIT(RX_CG_SET0_RDYCKAR, 31) - -/* DRAMC_REG_SREF_DPD_CTRL */ -DEFINE_BIT(SREF_DPD_CTRL_LPSM_BYPASS_B, 7) -DEFINE_BIT(SREF_DPD_CTRL_CLR_EN, 9) -DEFINE_BIT(SREF_DPD_CTRL_SELFREF_AUTOSAVE_EN, 10) -DEFINE_BIT(SREF_DPD_CTRL_SREF_PRD_OPT, 11) -DEFINE_BIT(SREF_DPD_CTRL_SREF_CG_OPT, 12) -DEFINE_BIT(SREF_DPD_CTRL_SRFPD_DIS, 13) -DEFINE_BITFIELD(SREF_DPD_CTRL_SREFDLY, 19, 16) -DEFINE_BIT(SREF_DPD_CTRL_SREF_HW_EN, 22) -DEFINE_BIT(SREF_DPD_CTRL_CMDCKAR, 26) -DEFINE_BIT(SREF_DPD_CTRL_GT_SYNC_MASK, 29) -DEFINE_BIT(SREF_DPD_CTRL_DAT_SYNC_MASK, 30) -DEFINE_BIT(SREF_DPD_CTRL_PHY_SYNC_MASK, 31) - -/* DRAMC_REG_DCM_CTRL0 */ -DEFINE_BIT(DCM_CTRL0_BCLKAR, 2) - -/* DRAMC_REG_TX_CG_SET0 */ -DEFINE_BIT(TX_CG_SET0_SELPH_4LCG_DIS, 0) -DEFINE_BIT(TX_CG_SET0_SELPH_CG_DIS, 1) -DEFINE_BIT(TX_CG_SET0_DWCLKRUN, 2) -DEFINE_BIT(TX_CG_SET0_WDATA_CG_DIS, 3) -DEFINE_BIT(TX_CG_SET0_TX_ATK_CLKRUN, 4) -DEFINE_BIT(TX_CG_SET0_PSELAR, 31) - -/* DRAMC_REG_SCSMCTRL_CG */ -DEFINE_BIT(SCSMCTRL_CG_SCARB_SM_CGAR, 30) -DEFINE_BIT(SCSMCTRL_CG_SCSM_CGAR, 31) - -/* DRAMC_REG_TX_TRACKING_SET0 */ -DEFINE_BIT(TX_TRACKING_SET0_TX_TRACKING_OPT, 15) -DEFINE_BIT(TX_TRACKING_SET0_SW_UP_TX_NOW_CASE, 16) -DEFINE_BIT(TX_TRACKING_SET0_TXUIPI_CAL_CGAR, 17) -DEFINE_BIT(TX_TRACKING_SET0_SHU_PRELOAD_TX_START, 18) -DEFINE_BIT(TX_TRACKING_SET0_SHU_PRELOAD_TX_HW, 19) -DEFINE_BIT(TX_TRACKING_SET0_HMRRSEL_CGAR, 21) -DEFINE_BIT(TX_TRACKING_SET0_RDDQSOSC_CGAR, 22) - -/* DRAMC_REG_ZQ_SET0 */ -DEFINE_BITFIELD(ZQ_SET0_ZQCSOP, 7, 0) -DEFINE_BITFIELD(ZQ_SET0_ZQCSAD, 15, 8) -DEFINE_BITFIELD(ZQ_SET0_ZQCS_MASK_SEL, 18, 16) -DEFINE_BIT(ZQ_SET0_ZQCS_MASK_SEL_CGAR, 19) -DEFINE_BIT(ZQ_SET0_ZQMASK_CGAR, 20) -DEFINE_BIT(ZQ_SET0_ZQCSMASK_OPT, 21) -DEFINE_BIT(ZQ_SET0_ZQCSMASK, 29) -DEFINE_BIT(ZQ_SET0_ZQCSDUAL, 30) - -/* DRAMC_REG_ACTIMING_CTRL */ -DEFINE_BIT(ACTIMING_CTRL_SEQCLKRUN3, 0) -DEFINE_BIT(ACTIMING_CTRL_SEQCLKRUN2, 1) -DEFINE_BIT(ACTIMING_CTRL_SEQCLKRUN, 2) -DEFINE_BIT(ACTIMING_CTRL_REFNA_OPT, 6) -DEFINE_BIT(ACTIMING_CTRL_REFBW_FREN, 8) -DEFINE_BIT(ACTIMING_CTRL_CLKWITRFC, 9) -DEFINE_BIT(ACTIMING_CTRL_TMRRICHKDIS, 21) -DEFINE_BIT(ACTIMING_CTRL_TMRRIBYRK_DIS, 22) -DEFINE_BIT(ACTIMING_CTRL_MRRIOPT, 23) -DEFINE_BIT(ACTIMING_CTRL_FASTW2R, 24) - -/* DRAMC_REG_CLKAR */ -DEFINE_BITFIELD(CLKAR_REQQUE_PACG_DIS, 14, 0) -DEFINE_BIT(CLKAR_DCMREF_OPT, 24) -DEFINE_BIT(CLKAR_REQQUECLKRUN, 27) - -/* DRAMC_REG_DRAMC_PD_CTRL */ -DEFINE_BIT(DRAMC_PD_CTRL_DCMEN, 0) -DEFINE_BIT(DRAMC_PD_CTRL_DCMEN2, 1) -DEFINE_BIT(DRAMC_PD_CTRL_DCMENNOTRFC, 2) -DEFINE_BIT(DRAMC_PD_CTRL_PHYGLUECLKRUN, 3) -DEFINE_BIT(DRAMC_PD_CTRL_COMBPHY_CLKENSAME, 5) -DEFINE_BIT(DRAMC_PD_CTRL_MIOCKCTRLOFF, 6) -DEFINE_BIT(DRAMC_PD_CTRL_PG_DCM_OPT, 9) -DEFINE_BIT(DRAMC_PD_CTRL_APHYCKCG_FIXOFF, 12) -DEFINE_BIT(DRAMC_PD_CTRL_TCKFIXON, 13) -DEFINE_BIT(DRAMC_PD_CTRL_PHYCLKDYNGEN, 30) -DEFINE_BIT(DRAMC_PD_CTRL_COMBCLKCTRL, 31) - -/* DRAMC_REG_TEST2_A3 */ -DEFINE_BIT(TEST2_A3_ADRDECEN_TARKMODE, 5) -DEFINE_BIT(TEST2_A3_TESTAUDPAT, 7) -DEFINE_BIT(TEST2_A3_TESTCLKRUN, 8) -DEFINE_BIT(TEST2_A3_PAT_SHIFT_SW_EN, 11) -DEFINE_BIT(TEST2_A3_TEST2_PAT_SHIFT, 15) -DEFINE_BIT(TEST2_A3_TEST_AID_EN, 16) -DEFINE_BIT(TEST2_A3_HFIDPAT, 17) -DEFINE_BIT(TEST2_A3_AUTO_GEN_PAT, 18) -DEFINE_BIT(TEST2_A3_TEST2WREN2_HW_EN, 28) -DEFINE_BIT(TEST2_A3_TEST1, 29) -DEFINE_BIT(TEST2_A3_TEST2R, 30) -DEFINE_BIT(TEST2_A3_TEST2W, 31) - -/* DRAMC_REG_DVFS_CTRL0 */ -DEFINE_BIT(DVFS_CTRL0_R_DR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DEFINE_BITFIELD(REFCTRL0_DISBYREFNUM, 14, 12) -DEFINE_BIT(REFCTRL0_PBREF_DISBYREFNUM, 16) -DEFINE_BIT(REFCTRL0_PBREF_DISBYRATE, 17) -DEFINE_BITFIELD(REFCTRL0_REF_PREGATE_CNT, 27, 24) -DEFINE_BIT(REFCTRL0_REFDIS, 29) - -/* DRAMC_REG_REFCTRL1 */ -DEFINE_BIT(REFCTRL1_PB2AB_OPT, 0) -DEFINE_BIT(REFCTRL1_REFPENDINGINT_OPT1, 3) -DEFINE_BIT(REFCTRL1_REF_QUE_AUTOSAVE_EN, 5) -DEFINE_BIT(REFCTRL1_REFPEND_OPT1, 6) -DEFINE_BIT(REFCTRL1_REFPEND_OPT2, 7) -DEFINE_BIT(REFCTRL1_REFPB2AB_IGZQCS, 8) -DEFINE_BIT(REFCTRL1_REFRATE_MON_CLR, 11) -DEFINE_BIT(REFCTRL1_REF_OVERHEAD_PBR2PB_ENA, 13) -DEFINE_BIT(REFCTRL1_REF_OVERHEAD_RATE_REFAL_ENA, 14) -DEFINE_BIT(REFCTRL1_REF_OVERHEAD_RATE_REFPB_ENA, 15) -DEFINE_BIT(REFCTRL1_REF_OVERHEAD_SLOW_REFAL_ENA, 24) -DEFINE_BIT(REFCTRL1_REF_OVERHEAD_SLOW_REFPB_ENA, 25) -DEFINE_BIT(REFCTRL1_REF_OVERHEAD_ALL_REFAL_ENA, 26) -DEFINE_BIT(REFCTRL1_REF_OVERHEAD_ALL_REFPB_ENA, 27) - -/* DRAMC_REG_REFCTRL2 */ -DEFINE_BITFIELD(REFCTRL2_MR4INT_TH, 4, 0) -DEFINE_BITFIELD(REFCTRL2_REF_OVERHEAD_RATE, 31, 16) - -/* DRAMC_REG_DRAMCTRL */ -DEFINE_BIT(DRAMCTRL_CTOREQ_HPRI_OPT, 0) -DEFINE_BIT(DRAMCTRL_ADRDECEN, 2) -DEFINE_BIT(DRAMCTRL_ADRBIT3DEC, 3) -DEFINE_BIT(DRAMCTRL_ALL_BLOCK_CTO_ALE_DBG_EN, 8) -DEFINE_BIT(DRAMCTRL_SELFREF_BLOCK_CTO_ALE_DBG_EN, 9) -DEFINE_BIT(DRAMCTRL_DVFS_BLOCK_CTO_ALE_DBG_EN, 10) -DEFINE_BIT(DRAMCTRL_AG0MWR, 12) -DEFINE_BIT(DRAMCTRL_DYNMWREN, 13) -DEFINE_BIT(DRAMCTRL_PREALL_OPTION, 19) -DEFINE_BIT(DRAMCTRL_REQQUE_THD_EN, 26) -DEFINE_BIT(DRAMCTRL_SHORTQ_OPT, 31) - -/* DRAMC_REG_ARBCTL */ -DEFINE_BITFIELD(ARBCTL_MAXPENDCNT, 7, 0) -DEFINE_BIT(ARBCTL_WDATACNTDIS, 9) - -/* DRAMC_REG_DRAM_CLK_CTRL */ -DEFINE_BIT(DRAM_CLK_CTRL_CLK_EN, 0) - -/* DRAMC_REG_RKCFG */ -DEFINE_BIT(RKCFG_MRS2RK, 10) -DEFINE_BIT(RKCFG_CKE2RANK, 12) - -/* DRAMC_REG_CKECTRL */ -DEFINE_BIT(CKECTRL_CKE2RANK_OPT3, 1) -DEFINE_BIT(CKECTRL_CKE1FIXON, 4) -DEFINE_BIT(CKECTRL_CKE1FIXOFF, 5) -DEFINE_BIT(CKECTRL_CKEFIXON, 6) -DEFINE_BIT(CKECTRL_CKEFIXOFF, 7) -DEFINE_BIT(CKECTRL_CKE2RANK_OPT5, 8) -DEFINE_BIT(CKECTRL_CKE2RANK_OPT6, 9) -DEFINE_BIT(CKECTRL_CKE2RANK_OPT7, 10) -DEFINE_BIT(CKECTRL_CKE2RANK_OPT8, 11) -DEFINE_BIT(CKECTRL_CKETIMER_SEL, 13) -DEFINE_BIT(CKECTRL_FASTWAKE_SEL, 14) -DEFINE_BIT(CKECTRL_CKEWAKE_SEL, 15) -DEFINE_BIT(CKECTRL_CKEPBDIS, 22) -DEFINE_BIT(CKECTRL_CKELCKFIX, 23) -DEFINE_BIT(CKECTRL_CKE2RANK_OPT2, 24) -DEFINE_BIT(CKECTRL_CKE2RANK_OPT, 25) -DEFINE_BIT(CKECTRL_RUNTIMEMRRCKEFIX, 27) -DEFINE_BIT(CKECTRL_RUNTIMEMRRMIODIS, 28) -DEFINE_BIT(CKECTRL_CKEON, 31) - -/* DRAMC_REG_SCHEDULER_COM */ -DEFINE_BIT(SCHEDULER_COM_RWOFOEN, 0) -DEFINE_BIT(SCHEDULER_COM_RWHPRICTL, 4) -DEFINE_BIT(SCHEDULER_COM_RWSPLIT, 5) -DEFINE_BIT(SCHEDULER_COM_MWHPRIEN, 6) -DEFINE_BIT(SCHEDULER_COM_DISRDPHASE1, 8) -DEFINE_BIT(SCHEDULER_COM_PBR2PBR_OPT, 9) - -/* DRAMC_REG_PERFCTL0 */ -DEFINE_BIT(PERFCTL0_EBG_EN, 0) -DEFINE_BIT(PERFCTL0_RWHPRIEN, 8) -DEFINE_BIT(PERFCTL0_RWLLATEN, 9) -DEFINE_BIT(PERFCTL0_RWAGEEN, 10) -DEFINE_BIT(PERFCTL0_EMILLATEN, 11) -DEFINE_BIT(PERFCTL0_WFLUSHEN, 14) -DEFINE_BIT(PERFCTL0_REORDER_MODE, 18) -DEFINE_BIT(PERFCTL0_REORDEREN, 19) - -/* DRAMC_REG_HW_MRR_FUN */ -DEFINE_BIT(HW_MRR_FUN_TMRR_ENA, 0) -DEFINE_BIT(HW_MRR_FUN_TRCDMRR_EN, 1) -DEFINE_BIT(HW_MRR_FUN_TRPMRR_EN, 2) -DEFINE_BIT(HW_MRR_FUN_MANTMRR_EN, 3) -DEFINE_BIT(HW_MRR_FUN_TR2MRR_ENA, 4) -DEFINE_BIT(HW_MRR_FUN_R2MRRHPRICTL, 5) -DEFINE_BIT(HW_MRR_FUN_MRR_HW_HIPRI, 11) - -/* DRAMC_REG_MPC_OPTION */ -DEFINE_BIT(MPC_OPTION_MPCRKEN, 17) - -/* DRAMC_REG_MPC_CTRL */ -DEFINE_BIT(MPC_CTRL_MPC_BLOCKALE_OPT, 0) -DEFINE_BIT(MPC_CTRL_MPC_BLOCKALE_OPT1, 1) -DEFINE_BIT(MPC_CTRL_MPC_BLOCKALE_OPT2, 2) -DEFINE_BIT(MPC_CTRL_ZQ_BLOCKALE_OPT, 3) -DEFINE_BIT(MPC_CTRL_REFR_BLOCKEN, 5) -DEFINE_BIT(MPC_CTRL_RTMRW_HPRI_EN, 6) -DEFINE_BIT(MPC_CTRL_RTSWCMD_HPRI_EN, 7) - -/* DRAMC_REG_HMR4 */ -DEFINE_BIT(HMR4_HMR4_TOG_OPT, 1) -DEFINE_BIT(HMR4_SPDR_MR4_OPT, 2) -DEFINE_BIT(HMR4_HMR4_BYTEMODE_EN, 5) -DEFINE_BIT(HMR4_MR4INT_LIMITEN, 6) -DEFINE_BIT(HMR4_REFR_PERIOD_OPT, 7) -DEFINE_BIT(HMR4_REFRDIS, 8) -DEFINE_BIT(HMR4_REFRCNT_OPT, 9) - -/* DRAMC_REG_RK_TEST2_A1 */ -DEFINE_BITFIELD(RK_TEST2_A1_TEST2_BASE, 31, 3) - -/* DRAMC_REG_TEST2_A2 */ -DEFINE_BITFIELD(TEST2_A2_TEST2_OFF, 31, 4) - -/* DRAMC_REG_TEST2_A4 */ -DEFINE_BITFIELD(TEST2_A4_TESTAUDINC, 4, 0) -DEFINE_BIT(TEST2_A4_TESTSSOPAT, 6) -DEFINE_BIT(TEST2_A4_TESTSSOXTALKPAT, 7) -DEFINE_BITFIELD(TEST2_A4_TESTAUDINIT, 12, 8) -DEFINE_BIT(TEST2_A4_TESTAUDBITINV, 14) -DEFINE_BIT(TEST2_A4_TESTAUDMODE, 15) -DEFINE_BIT(TEST2_A4_TESTXTALKPAT, 16) -DEFINE_BIT(TEST2_A4_TEST_REQ_LEN1, 17) -DEFINE_BITFIELD(TEST2_A4_TESTAGENTRK, 25, 24) -DEFINE_BITFIELD(TEST2_A4_TESTAGENTRKSEL, 30, 28) - -/* DRAMC_REG_CMD_DEC_CTRL0 */ -DEFINE_BIT(CMD_DEC_CTRL0_SELPH_CMD_CG_DIS, 4) -DEFINE_BITFIELD(CMD_DEC_CTRL0_RKMODE, 10, 8) - -/* DRAMC_REG_MISCTL0 */ -DEFINE_BIT(MISCTL0_REFP_ARBMASK_PBR2PBR_ENA, 0) -DEFINE_BIT(MISCTL0_REFP_ARBMASK_PBR2PBR_PA_DIS, 1) -DEFINE_BITFIELD(MISCTL0_PG_WAKEUP_OPT, 15, 14) -DEFINE_BIT(MISCTL0_PAGDIS, 17) -DEFINE_BIT(MISCTL0_REFA_ARB_EN2, 19) -DEFINE_BIT(MISCTL0_PBC_ARB_E1T, 23) -DEFINE_BIT(MISCTL0_PBC_ARB_EN, 24) -DEFINE_BIT(MISCTL0_EMIPREEN, 27) -DEFINE_BIT(MISCTL0_REFP_ARB_EN2, 31) - -/* DRAMC_REG_SCSMCTRL */ -DEFINE_BIT(SCSMCTRL_SC_PG_UPD_OPT, 0) -DEFINE_BIT(SCSMCTRL_SC_PG_MAN_DIS, 1) - -/* DRAMC_REG_SHUCTRL1 */ -DEFINE_BITFIELD(SHUCTRL1_FC_PRDCNT, 7, 0) -DEFINE_BITFIELD(SHUCTRL1_CKFSPE_PRDCNT, 15, 8) -DEFINE_BITFIELD(SHUCTRL1_CKFSPX_PRDCNT, 23, 16) -DEFINE_BITFIELD(SHUCTRL1_VRCGEN_PRDCNT, 31, 24) - -/* DRAMC_REG_DVFS_TIMING_CTRL1 */ -DEFINE_BITFIELD(DVFS_TIMING_CTRL1_SHU_PERIOD_GO_ZERO_CNT, 7, 0) -DEFINE_BITFIELD(DVFS_TIMING_CTRL1_DMSHU_CNT, 21, 16) - -/* DRAMC_REG_REFPEND1 */ -DEFINE_BITFIELD(REFPEND1_MPENDREFCNT_TH0, 3, 0) -DEFINE_BITFIELD(REFPEND1_MPENDREFCNT_TH1, 7, 4) -DEFINE_BITFIELD(REFPEND1_MPENDREFCNT_TH2, 11, 8) -DEFINE_BITFIELD(REFPEND1_MPENDREFCNT_TH3, 15, 12) -DEFINE_BITFIELD(REFPEND1_MPENDREFCNT_TH4, 19, 16) -DEFINE_BITFIELD(REFPEND1_MPENDREFCNT_TH5, 23, 20) -DEFINE_BITFIELD(REFPEND1_MPENDREFCNT_TH6, 27, 24) -DEFINE_BITFIELD(REFPEND1_MPENDREFCNT_TH7, 31, 28) - -/* DRAMC_REG_CBT_WLEV_CTRL1 */ -DEFINE_BITFIELD(CBT_WLEV_CTRL1_CATRAINLAT, 14, 11) -DEFINE_BITFIELD(CBT_WLEV_CTRL1_CATRAIN_INTV, 22, 15) -DEFINE_BITFIELD(CBT_WLEV_CTRL1_TCMDO1LAT, 30, 23) - -/* DRAMC_REG_TX_SET0 */ -DEFINE_BITFIELD(TX_SET0_TXRANK, 1, 0) -DEFINE_BIT(TX_SET0_TXRANKFIX, 2) -DEFINE_BIT(TX_SET0_OE_DOWNGRADE, 6) -DEFINE_BIT(TX_SET0_WPRE2T, 22) -DEFINE_BIT(TX_SET0_DRSCLR_EN, 24) -DEFINE_BIT(TX_SET0_DRSCLR_RK0_EN, 25) -DEFINE_BIT(TX_SET0_RK_SCINPUT_OPT, 30) - -/* DRAMC_REG_DQSOSCR */ -DEFINE_BIT(DQSOSCR_ARUIDQ_SW, 7) -DEFINE_BIT(DQSOSCR_SREF_TXUI_RELOAD_OPT, 23) -DEFINE_BIT(DQSOSCR_DQSOSCRDIS, 24) -DEFINE_BIT(DQSOSCR_R_DMDQS2DQ_FILT_OPT, 26) -DEFINE_BIT(DQSOSCR_SREF_TXPI_RELOAD_OPT, 27) -DEFINE_BIT(DQSOSCR_DQSOSC_CALEN, 31) - -/* DRAMC_REG_DUMMY_RD */ -DEFINE_BIT(DUMMY_RD_DUMMY_RD_SW, 4) -DEFINE_BIT(DUMMY_RD_DMY_WR_DBG, 6) -DEFINE_BIT(DUMMY_RD_DMY_RD_DBG, 7) -DEFINE_BIT(DUMMY_RD_DRS_SELFWAKE_DMYRD_DIS, 15) -DEFINE_BITFIELD(DUMMY_RD_RANK_NUM, 17, 16) -DEFINE_BIT(DUMMY_RD_DUMMY_RD_EN, 20) -DEFINE_BIT(DUMMY_RD_SREF_DMYRD_EN, 21) -DEFINE_BIT(DUMMY_RD_DQSG_DMYRD_EN, 22) -DEFINE_BIT(DUMMY_RD_DQSG_DMYWR_EN, 23) -DEFINE_BIT(DUMMY_RD_DUMMY_RD_PA_OPT, 24) -DEFINE_BIT(DUMMY_RD_DMYRD_REORDER_DIS, 27) - -/* DRAMC_REG_DUMMY_RD_INTV */ -DEFINE_BIT(DUMMY_RD_INTV_DUMMY_RD_CNT0, 0) -DEFINE_BIT(DUMMY_RD_INTV_DUMMY_RD_CNT1, 1) -DEFINE_BIT(DUMMY_RD_INTV_DUMMY_RD_CNT2, 2) -DEFINE_BIT(DUMMY_RD_INTV_DUMMY_RD_CNT3, 3) -DEFINE_BIT(DUMMY_RD_INTV_DUMMY_RD_CNT4, 4) -DEFINE_BIT(DUMMY_RD_INTV_DUMMY_RD_CNT5, 5) -DEFINE_BIT(DUMMY_RD_INTV_DUMMY_RD_CNT6, 6) -DEFINE_BIT(DUMMY_RD_INTV_DUMMY_RD_CNT7, 7) - -/* DRAMC_REG_RK_DQSOSC */ -DEFINE_BIT(RK_DQSOSC_RK0_BYTE_MODE, 29) -DEFINE_BIT(RK_DQSOSC_DQSOSCR_RK0EN, 30) - -/* DRAMC_REG_TX_FREQ_RATIO_OLD_MODE0 */ -DEFINE_BIT(TX_FREQ_RATIO_OLD_MODE0_SHUFFLE_LEVEL_MODE_SELECT, 31) - -/* DRAMC_REG_SWCMD_CTRL1 */ -DEFINE_BIT(SWCMD_CTRL1_RDDQC_LP_ENB, 2) -DEFINE_BIT(SWCMD_CTRL1_WRFIFO_MODE2, 31) - -/* DRAMC_REG_DBG_CMDDEC_CMDSEL0 */ -DEFINE_BIT(DBG_CMDDEC_CMDSEL0_RANK0_10GBEN, 0) -DEFINE_BIT(DBG_CMDDEC_CMDSEL0_RANK1_10GBEN, 1) - -/* DRAMC_REG_DBIWR_PROTECT */ -DEFINE_BIT(DBIWR_PROTECT_DBIWR_IMP_EN, 0) -DEFINE_BIT(DBIWR_PROTECT_DBIWR_PINMUX_EN, 1) -DEFINE_BITFIELD(DBIWR_PROTECT_DBIWR_OPT_B0, 23, 16) -DEFINE_BITFIELD(DBIWR_PROTECT_DBIWR_OPT_B1, 31, 24) - -/* DDRPHY_REG_MISC_SRAM_DMA0 */ -DEFINE_BIT(MISC_SRAM_DMA0_SW_DMA_FIRE, 0) -DEFINE_BIT(MISC_SRAM_DMA0_SW_MODE, 1) -DEFINE_BIT(MISC_SRAM_DMA0_APB_WR_MODE, 2) -DEFINE_BIT(MISC_SRAM_DMA0_SRAM_WR_MODE, 3) -DEFINE_BITFIELD(MISC_SRAM_DMA0_SW_SHU_LEVEL_SRAM, 7, 4) -DEFINE_BITFIELD(MISC_SRAM_DMA0_SW_SHU_LEVEL_APB, 11, 8) -DEFINE_BITFIELD(MISC_SRAM_DMA0_PENABLE_LAT_WR, 15, 14) -DEFINE_BIT(MISC_SRAM_DMA0_KEEP_SRAM_ARB_ENA, 16) -DEFINE_BIT(MISC_SRAM_DMA0_KEEP_APB_ARB_ENA, 17) -DEFINE_BIT(MISC_SRAM_DMA0_DMA_TIMER_EN, 18) -DEFINE_BIT(MISC_SRAM_DMA0_SW_STEP_EN_MODE, 23) -DEFINE_BITFIELD(MISC_SRAM_DMA0_APB_SLV_SEL, 29, 28) - -/* DDRPHY_MD32_REG_SSPM_MCLK_DIV */ -DEFINE_BIT(SSPM_MCLK_DIV_MCLK_DCM_EN, 8) - -/* DDRPHY_REG_CA_CMD7 */ -DEFINE_BIT(CA_CMD7_RG_TX_ARCLKB_PULL_DN, 0) -DEFINE_BIT(CA_CMD7_RG_TX_ARCLKB_PULL_UP, 1) -DEFINE_BIT(CA_CMD7_RG_TX_ARCLK_PULL_DN, 2) -DEFINE_BIT(CA_CMD7_RG_TX_ARCLK_PULL_UP, 3) -DEFINE_BIT(CA_CMD7_RG_TX_ARCS0_PULL_DN, 4) -DEFINE_BIT(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P4Y, 16) - -/* DDRPHY_REG_B0_DQ11 */ -DEFINE_BIT(B0_DQ11_DMY_DQ11_B0, 0) - -/* DDRPHY_REG_B1_DQ11 */ -DEFINE_BIT(B1_DQ11_DMY_DQ11_B1, 0) - -/* DDRPHY_REG_MISC_SRAM_DMA1 */ -DEFINE_BITFIELD(MISC_SRAM_DMA1_SPM_RESTORE_STEP_EN, 16, 0) -DEFINE_BIT(MISC_SRAM_DMA1_R_APB_DMA_DBG_ACCESS, 19) -DEFINE_BITFIELD(MISC_SRAM_DMA1_R_APB_DMA_DBG_LEVEL, 23, 20) - -/* DDRPHY_REG_MISC_CG_CTRL7 */ -DEFINE_BIT(MISC_CG_CTRL7_CK_BFE_DCM_EN, 11) -DEFINE_BIT(MISC_CG_CTRL7_ARMCTL_CK_OUT_CG_SEL, 16) - -/* DDRPHY_REG_MISC_DVFSCTL2 */ -DEFINE_BIT(MISC_DVFSCTL2_RG_TOPCK_FMEM_CK_BLOCK_DURING_DFS, 3) -DEFINE_BIT(MISC_DVFSCTL2_RG_DLL_SHUFFLE, 4) -DEFINE_BIT(MISC_DVFSCTL2_RG_ADA_MCK8X_EN_SHUFFLE, 5) -DEFINE_BIT(MISC_DVFSCTL2_RG_MRW_AFTER_DFS, 8) -DEFINE_BIT(MISC_DVFSCTL2_R_DVFS_CDC_OPTION, 9) -DEFINE_BIT(MISC_DVFSCTL2_R_DVFS_DLL_CHA, 12) -DEFINE_BIT(MISC_DVFSCTL2_R_CDC_MUX_SEL_OPTION, 13) -DEFINE_BIT(MISC_DVFSCTL2_R_DVFS_PARK_N, 14) -DEFINE_BIT(MISC_DVFSCTL2_R_DVFS_OPTION, 15) -DEFINE_BIT(MISC_DVFSCTL2_R_DVFS_CLK_CHG_OK_SEL, 29) -DEFINE_BIT(MISC_DVFSCTL2_R_DVFS_SYNC_MODULE_RST_SEL, 31) - -/* DDRPHY_REG_MISC_DVFSCTL3 */ -DEFINE_BIT(MISC_DVFSCTL3_RG_PHY_ST_DELAY_AFT_CHG_TO_MCLK, 4) -DEFINE_BIT(MISC_DVFSCTL3_RG_PHY_ST_DELAY_BEF_CHG_TO_MCLK, 5) -DEFINE_BIT(MISC_DVFSCTL3_RG_PHY_ST_DELAY_AFT_CHG_TO_BCLK, 6) -DEFINE_BIT(MISC_DVFSCTL3_RG_PHY_ST_DELAY_BEF_CHG_TO_BCLK, 7) -DEFINE_BITFIELD(MISC_DVFSCTL3_RG_DVFS_MEM_CK_SEL_DESTI, 9, 8) -DEFINE_BITFIELD(MISC_DVFSCTL3_RG_DVFS_MEM_CK_SEL_SOURCE, 11, 10) -DEFINE_BITFIELD(MISC_DVFSCTL3_RG_CNT_PHY_ST_DELAY_AFT_CHG_TO_MCLK, 17, 12) -DEFINE_BITFIELD(MISC_DVFSCTL3_RG_CNT_PHY_ST_DELAY_AFT_CHG_TO_BCLK, 27, 22) -DEFINE_BITFIELD(MISC_DVFSCTL3_RG_CNT_PHY_ST_DELAY_BEF_CHG_TO_BCLK, 31, 28) - -/* DDRPHY_REG_MISC_CLK_CTRL */ -DEFINE_BIT(MISC_CLK_CTRL_DVFS_MEM_CK_MUX_UPDATE_EN, 0) -DEFINE_BIT(MISC_CLK_CTRL_DVFS_CLK_MEM_SEL, 1) -DEFINE_BITFIELD(MISC_CLK_CTRL_DVFS_MEM_CK_MUX_SEL, 10, 9) -DEFINE_BITFIELD(MISC_CLK_CTRL_DVFS_MEM_CK_MUX_SEL_MODE, 13, 12) - -/* DDRPHY_REG_MISC_SHU_OPT */ -DEFINE_BIT(MISC_SHU_OPT_R_DQB0_SHU_PHY_GATING_RESETB_SPM_EN, 0) -DEFINE_BITFIELD(MISC_SHU_OPT_R_DQB0_SHU_PHDET_SPM_EN, 3, 2) -DEFINE_BIT(MISC_SHU_OPT_R_DQB1_SHU_PHY_GATING_RESETB_SPM_EN, 8) -DEFINE_BITFIELD(MISC_SHU_OPT_R_DQB1_SHU_PHDET_SPM_EN, 11, 10) -DEFINE_BIT(MISC_SHU_OPT_R_CA_SHU_PHY_GATING_RESETB_SPM_EN, 16) -DEFINE_BITFIELD(MISC_SHU_OPT_R_CA_SHU_PHDET_SPM_EN, 19, 18) - -/* DRAMC_REG_SHU_SELPH_CA1 */ -DEFINE_BITFIELD(SHU_SELPH_CA1_TXDLY_CS, 2, 0) -DEFINE_BITFIELD(SHU_SELPH_CA1_TXDLY_CKE, 6, 4) -DEFINE_BITFIELD(SHU_SELPH_CA1_TXDLY_ODT, 10, 8) -DEFINE_BITFIELD(SHU_SELPH_CA1_TXDLY_RESET, 14, 12) -DEFINE_BITFIELD(SHU_SELPH_CA1_TXDLY_WE, 18, 16) -DEFINE_BITFIELD(SHU_SELPH_CA1_TXDLY_CAS, 22, 20) -DEFINE_BITFIELD(SHU_SELPH_CA1_TXDLY_RAS, 26, 24) -DEFINE_BITFIELD(SHU_SELPH_CA1_TXDLY_CS1, 30, 28) - -/* DRAMC_REG_SHU_SELPH_CA2 */ -DEFINE_BITFIELD(SHU_SELPH_CA2_TXDLY_BA0, 2, 0) -DEFINE_BITFIELD(SHU_SELPH_CA2_TXDLY_BA1, 6, 4) -DEFINE_BITFIELD(SHU_SELPH_CA2_TXDLY_BA2, 10, 8) -DEFINE_BITFIELD(SHU_SELPH_CA2_TXDLY_CKE1, 26, 24) - -/* DRAMC_REG_SHU_SELPH_CA3 */ -DEFINE_BITFIELD(SHU_SELPH_CA3_TXDLY_RA0, 2, 0) -DEFINE_BITFIELD(SHU_SELPH_CA3_TXDLY_RA1, 6, 4) -DEFINE_BITFIELD(SHU_SELPH_CA3_TXDLY_RA2, 10, 8) -DEFINE_BITFIELD(SHU_SELPH_CA3_TXDLY_RA3, 14, 12) -DEFINE_BITFIELD(SHU_SELPH_CA3_TXDLY_RA4, 18, 16) -DEFINE_BITFIELD(SHU_SELPH_CA3_TXDLY_RA5, 22, 20) -DEFINE_BITFIELD(SHU_SELPH_CA3_TXDLY_RA6, 26, 24) -DEFINE_BITFIELD(SHU_SELPH_CA3_TXDLY_RA7, 30, 28) - -/* DRAMC_REG_SHU_SELPH_CA4 */ -DEFINE_BITFIELD(SHU_SELPH_CA4_TXDLY_RA8, 2, 0) -DEFINE_BITFIELD(SHU_SELPH_CA4_TXDLY_RA9, 6, 4) -DEFINE_BITFIELD(SHU_SELPH_CA4_TXDLY_RA10, 10, 8) -DEFINE_BITFIELD(SHU_SELPH_CA4_TXDLY_RA11, 14, 12) -DEFINE_BITFIELD(SHU_SELPH_CA4_TXDLY_RA12, 18, 16) -DEFINE_BITFIELD(SHU_SELPH_CA4_TXDLY_RA13, 22, 20) -DEFINE_BITFIELD(SHU_SELPH_CA4_TXDLY_RA14, 26, 24) -DEFINE_BITFIELD(SHU_SELPH_CA4_TXDLY_RA15, 30, 28) - -/* DRAMC_REG_SHU_SELPH_CA5 */ -DEFINE_BITFIELD(SHU_SELPH_CA5_DLY_CS, 2, 0) -DEFINE_BITFIELD(SHU_SELPH_CA5_DLY_CKE, 6, 4) -DEFINE_BITFIELD(SHU_SELPH_CA5_DLY_ODT, 10, 8) -DEFINE_BITFIELD(SHU_SELPH_CA5_DLY_RESET, 14, 12) -DEFINE_BITFIELD(SHU_SELPH_CA5_DLY_WE, 18, 16) -DEFINE_BITFIELD(SHU_SELPH_CA5_DLY_CAS, 22, 20) -DEFINE_BITFIELD(SHU_SELPH_CA5_DLY_RAS, 26, 24) -DEFINE_BITFIELD(SHU_SELPH_CA5_DLY_CS1, 30, 28) - -/* DRAMC_REG_SHU_SELPH_CA6 */ -DEFINE_BITFIELD(SHU_SELPH_CA6_DLY_BA0, 2, 0) -DEFINE_BITFIELD(SHU_SELPH_CA6_DLY_BA1, 6, 4) -DEFINE_BITFIELD(SHU_SELPH_CA6_DLY_BA2, 10, 8) -DEFINE_BITFIELD(SHU_SELPH_CA6_DLY_CKE1, 26, 24) - -/* DRAMC_REG_SHU_SELPH_CA7 */ -DEFINE_BITFIELD(SHU_SELPH_CA7_DLY_RA0, 2, 0) -DEFINE_BITFIELD(SHU_SELPH_CA7_DLY_RA1, 6, 4) -DEFINE_BITFIELD(SHU_SELPH_CA7_DLY_RA2, 10, 8) -DEFINE_BITFIELD(SHU_SELPH_CA7_DLY_RA3, 14, 12) -DEFINE_BITFIELD(SHU_SELPH_CA7_DLY_RA4, 18, 16) -DEFINE_BITFIELD(SHU_SELPH_CA7_DLY_RA5, 22, 20) -DEFINE_BITFIELD(SHU_SELPH_CA7_DLY_RA6, 26, 24) -DEFINE_BITFIELD(SHU_SELPH_CA7_DLY_RA7, 30, 28) - -/* DRAMC_REG_SHU_SELPH_CA8 */ -DEFINE_BITFIELD(SHU_SELPH_CA8_DLY_RA8, 2, 0) -DEFINE_BITFIELD(SHU_SELPH_CA8_DLY_RA9, 6, 4) -DEFINE_BITFIELD(SHU_SELPH_CA8_DLY_RA10, 10, 8) -DEFINE_BITFIELD(SHU_SELPH_CA8_DLY_RA11, 14, 12) -DEFINE_BITFIELD(SHU_SELPH_CA8_DLY_RA12, 18, 16) -DEFINE_BITFIELD(SHU_SELPH_CA8_DLY_RA13, 22, 20) -DEFINE_BITFIELD(SHU_SELPH_CA8_DLY_RA14, 26, 24) -DEFINE_BITFIELD(SHU_SELPH_CA8_DLY_RA15, 30, 28) - -/* DDRPHY_REG_SHU_MISC_DRVING2 */ -DEFINE_BITFIELD(SHU_MISC_DRVING2_CMDDRVN1, 4, 0) -DEFINE_BITFIELD(SHU_MISC_DRVING2_CMDDRVP1, 9, 5) -DEFINE_BITFIELD(SHU_MISC_DRVING2_CMDDRVN2, 14, 10) -DEFINE_BITFIELD(SHU_MISC_DRVING2_CMDDRVP2, 19, 15) -DEFINE_BITFIELD(SHU_MISC_DRVING2_DQDRVN1, 24, 20) -DEFINE_BITFIELD(SHU_MISC_DRVING2_DQDRVP1, 29, 25) -DEFINE_BIT(SHU_MISC_DRVING2_DIS_IMPCAL_ODT_EN, 31) - -/* DDRPHY_REG_SHU_MISC_IMPCAL1 */ -DEFINE_BITFIELD(SHU_MISC_IMPCAL1_IMPCAL_CHKCYCLE, 2, 0) -DEFINE_BITFIELD(SHU_MISC_IMPCAL1_IMPDRVP, 8, 4) -DEFINE_BITFIELD(SHU_MISC_IMPCAL1_IMPDRVN, 16, 12) -DEFINE_BITFIELD(SHU_MISC_IMPCAL1_IMPCAL_CALEN_CYCLE, 19, 17) -DEFINE_BITFIELD(SHU_MISC_IMPCAL1_IMPCALCNT, 27, 20) -DEFINE_BITFIELD(SHU_MISC_IMPCAL1_IMPCAL_CALICNT, 31, 28) - -/* DDRPHY_REG_SHU_CA_CMD12 */ -DEFINE_BITFIELD(SHU_CA_CMD12_RG_RIMP_REV, 7, 0) -DEFINE_BITFIELD(SHU_CA_CMD12_RG_RIMP_VREF_SEL_ODTN, 14, 8) -DEFINE_BITFIELD(SHU_CA_CMD12_RG_RIMP_VREF_SEL_DRVN, 22, 16) -DEFINE_BIT(SHU_CA_CMD12_RG_RIMP_DRV05, 23) -DEFINE_BITFIELD(SHU_CA_CMD12_RG_RIMP_VREF_SEL_DRVP, 30, 24) -DEFINE_BIT(SHU_CA_CMD12_RG_RIMP_UNTERM_EN, 31) - -/* DDRPHY_REG_MISC_SHU_IMPEDAMCE_UPD_DIS1 */ -DEFINE_BIT(MISC_SHU_IMPEDAMCE_UPD_DIS1_DQS_DRVP_UPD_DIS, 0) -DEFINE_BIT(MISC_SHU_IMPEDAMCE_UPD_DIS1_DQS_DRVN_UPD_DIS, 1) -DEFINE_BIT(MISC_SHU_IMPEDAMCE_UPD_DIS1_DQS_ODTN_UPD_DIS, 2) -DEFINE_BIT(MISC_SHU_IMPEDAMCE_UPD_DIS1_DQ_DRVP_UPD_DIS, 4) -DEFINE_BIT(MISC_SHU_IMPEDAMCE_UPD_DIS1_DQ_DRVN_UPD_DIS, 5) -DEFINE_BIT(MISC_SHU_IMPEDAMCE_UPD_DIS1_DQ_ODTN_UPD_DIS, 6) -DEFINE_BIT(MISC_SHU_IMPEDAMCE_UPD_DIS1_WCK_DRVP_UPD_DIS, 8) -DEFINE_BIT(MISC_SHU_IMPEDAMCE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OTF, 12) - -/* DRAMC_REG_SHU_ACTIMING_CONF */ -DEFINE_BITFIELD(SHU_ACTIMING_CONF_SCINTV, 5, 0) -DEFINE_BITFIELD(SHU_ACTIMING_CONF_REFBW_FR, 25, 16) -DEFINE_BIT(SHU_ACTIMING_CONF_TREFBWIG, 31) - -/* DRAMC_REG_SHU_DCM_CTRL0 */ -DEFINE_BIT(SHU_DCM_CTRL0_DDRPHY_CLK_EN_OPT, 7) -DEFINE_BITFIELD(SHU_DCM_CTRL0_DPHY_CMD_CLKEN_EXTCNT, 10, 8) -DEFINE_BITFIELD(SHU_DCM_CTRL0_DDRPHY_CLK_DYN_GATING_SEL, 15, 12) -DEFINE_BITFIELD(SHU_DCM_CTRL0_APHYPI_CKCGL_CNT, 19, 16) -DEFINE_BITFIELD(SHU_DCM_CTRL0_APHYPI_CKCGH_CNT, 23, 20) -DEFINE_BIT(SHU_DCM_CTRL0_FASTWAKE2, 29) -DEFINE_BIT(SHU_DCM_CTRL0_FASTWAKE, 31) - -/* DRAMC_REG_SHU_CONF0 */ -DEFINE_BITFIELD(SHU_CONF0_DMPGTIM, 6, 0) -DEFINE_BIT(SHU_CONF0_ADVPREEN, 7) -DEFINE_BIT(SHU_CONF0_PBREFEN, 8) -DEFINE_BITFIELD(SHU_CONF0_REFTHD, 15, 12) - -/* DRAMC_REG_SHU_MATYPE */ -DEFINE_BITFIELD(SHU_MATYPE_MATYPE, 1, 0) - -/* DRAMC_REG_SHU_SCHEDULER */ -DEFINE_BIT(SHU_SCHEDULER_DUALSCHEN, 2) - -/* DRAMC_REG_SHU_TX_SET0 */ -DEFINE_BITFIELD(SHU_TX_SET0_DQOE_CNT, 3, 0) -DEFINE_BIT(SHU_TX_SET0_DQOE_OPT, 4) -DEFINE_BITFIELD(SHU_TX_SET0_TXUPD_SEL, 7, 6) -DEFINE_BITFIELD(SHU_TX_SET0_TXUPD_W2R_SEL, 10, 8) -DEFINE_BIT(SHU_TX_SET0_DBIWR, 12) -DEFINE_BIT(SHU_TX_SET0_WDATRGO, 13) -DEFINE_BIT(SHU_TX_SET0_WPST1P5T, 15) -DEFINE_BITFIELD(SHU_TX_SET0_OE_EXT2UI, 24, 22) -DEFINE_BITFIELD(SHU_TX_SET0_DQS2DQ_FILT_PITHRD, 30, 25) - -/* DDRPHY_REG_MISC_SHU_STBCAL1 */ -DEFINE_BIT(MISC_SHU_STBCAL1_STB_UPDMASK_EN, 11) -DEFINE_BITFIELD(MISC_SHU_STBCAL1_STB_UPDMASKCYC, 15, 12) -DEFINE_BIT(MISC_SHU_STBCAL1_DQSINCTL_PRE_SEL, 16) -DEFINE_BITFIELD(MISC_SHU_STBCAL1_STB_PI_TRACKING_RATIO, 25, 20) - -/* DDRPHY_REG_MISC_SHU_STBCAL */ -DEFINE_BITFIELD(MISC_SHU_STBCAL_DMSTBLAT, 3, 0) -DEFINE_BITFIELD(MISC_SHU_STBCAL_PICGLAT, 6, 4) -DEFINE_BIT(MISC_SHU_STBCAL_DQSG_MODE, 8) -DEFINE_BIT(MISC_SHU_STBCAL_DQSIEN_PICG_MODE, 9) - -/* DDRPHY_REG_MISC_SHU_RANKCTL */ -DEFINE_BITFIELD(MISC_SHU_RANKCTL_RANKINCTL_RXDLY, 3, 0) -DEFINE_BIT(MISC_SHU_RANKCTL_RANK_RXDLY_OPT, 4) -DEFINE_BIT(MISC_SHU_RANKCTL_RANKSEL_SELPH_FRUN, 15) -DEFINE_BITFIELD(MISC_SHU_RANKCTL_RANKINCTL_STB, 19, 16) -DEFINE_BITFIELD(MISC_SHU_RANKCTL_RANKINCTL, 23, 20) -DEFINE_BITFIELD(MISC_SHU_RANKCTL_RANKINCTL_ROOT1, 27, 24) -DEFINE_BITFIELD(MISC_SHU_RANKCTL_RANKINCTL_PHY, 31, 28) - -/* DRAMC_REG_SHU_MISC */ -DEFINE_BITFIELD(SHU_MISC_REQQUE_MAXCNT, 3, 0) -DEFINE_BITFIELD(SHU_MISC_DCMDLYREF, 18, 16) -DEFINE_BIT(SHU_MISC_DAREFEN, 30) - -/* DDRPHY_REG_MISC_SHU_RK_DQSIEN_PICG_CTRL */ -DEFINE_BITFIELD(MISC_SHU_RK_DQSIEN_PICG_CTRL_DQSIEN_PICG_HEAD_EXT_LAT, 2, 0) -DEFINE_BITFIELD(MISC_SHU_RK_DQSIEN_PICG_CTRL_DQSIEN_PICG_TAIL_EXT_LAT, 6, 4) - -/* DDRPHY_REG_MISC_SHU_RODTENSTB */ -DEFINE_BIT(MISC_SHU_RODTENSTB_RODTENSTB_TRACK_EN, 0) -DEFINE_BIT(MISC_SHU_RODTENSTB_RODTEN_P1_ENABLE, 1) -DEFINE_BIT(MISC_SHU_RODTENSTB_RODTENSTB_TRACK_UDFLWCTRL, 3) -DEFINE_BIT(MISC_SHU_RODTENSTB_RODTENSTB_SELPH_MODE, 4) -DEFINE_BIT(MISC_SHU_RODTENSTB_RODTENSTB_SELPH_BY_BITTIME, 5) -DEFINE_BITFIELD(MISC_SHU_RODTENSTB_RODTENSTB__UI_OFFSET, 11, 8) -DEFINE_BITFIELD(MISC_SHU_RODTENSTB_RODTENSTB_MCK_OFFSET, 15, 12) -DEFINE_BITFIELD(MISC_SHU_RODTENSTB_RODTENSTB_EXT, 31, 16) - -/* DDRPHY_REG_MISC_SHU_RODTENSTB1 */ -DEFINE_BITFIELD(MISC_SHU_RODTENSTB1_RODTENCGEN_HEAD, 5, 4) -DEFINE_BITFIELD(MISC_SHU_RODTENSTB1_RODTENCGEN_TAIL, 7, 6) - -/* DDRPHY_REG_MISC_SHU_RX_SELPH_MODE */ -DEFINE_BITFIELD(MISC_SHU_RX_SELPH_MODE_DQSIEN_SELPH_SERMODE, 1, 0) -DEFINE_BITFIELD(MISC_SHU_RX_SELPH_MODE_RODT_SELPH_SERMODE, 5, 4) -DEFINE_BITFIELD(MISC_SHU_RX_SELPH_MODE_RANK_SELPH_SERMODE, 7, 6) - -/* DDRPHY_REG_MISC_SHU_RDAT1 */ -DEFINE_BIT(MISC_SHU_RDAT1_R_DMRDSEL_DIV2_OPT, 0) -DEFINE_BIT(MISC_SHU_RDAT1_R_DMRDSEL_LOBYTE_OPT, 1) -DEFINE_BIT(MISC_SHU_RDAT1_R_DMRDSEL_HIBYTE_OPT, 2) - -/* DRAMC_REG_SHURK_CKE_CTRL */ -DEFINE_BITFIELD(SHURK_CKE_CTRL_CKE_DBE_CNT, 3, 0) - -/* DDRPHY_REG_MISC_SHU_DQSG_RETRY1 */ -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_SW_RESET, 0) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_SW_EN, 1) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_DDR1866_PLUS, 2) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_ONCE, 3) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_3TIMES, 4) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_1RANK, 5) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_BY_RANK, 6) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_DM4BYTE, 7) -DEFINE_BITFIELD(MISC_SHU_DQSG_RETRY1_RETRY_DQSIENLAT, 11, 8) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_STBENCMP_ALLBYTE, 12) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_XSR_DQSG_RETRY_EN, 13) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_XSR_RETRY_SPM_MODE, 14) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_CMP_DATA, 15) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_ALE_BLOCK_MASK, 20) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_RDY_SEL_DLE, 21) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_USE_NON_EXTEND, 22) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_USE_CG_GATING, 23) -DEFINE_BITFIELD(MISC_SHU_DQSG_RETRY1_RETRY_ROUND_NUM, 25, 24) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_RANKSEL_FROM_PHY, 28) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_PA_DISABLE, 29) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_STBEN_RESET_MSK, 30) -DEFINE_BIT(MISC_SHU_DQSG_RETRY1_RETRY_USE_BURST_MODE, 31) - -/* DRAMC_REG_SHU_HWSET_MR13 */ -DEFINE_BITFIELD(SHU_HWSET_MR13_HWSET_MR13_MRSMA, 12, 0) -DEFINE_BITFIELD(SHU_HWSET_MR13_HWSET_MR13_OP, 23, 16) - -/* DRAMC_REG_SHU_HWSET_VRCG */ -DEFINE_BITFIELD(SHU_HWSET_VRCG_HWSET_VRCG_MRSMA, 12, 0) -DEFINE_BITFIELD(SHU_HWSET_VRCG_HWSET_VRCG_OP, 23, 16) -DEFINE_BITFIELD(SHU_HWSET_VRCG_VRCGDIS_PRDCNT, 31, 24) - -/* DRAMC_REG_SHU_HWSET_MR2 */ -DEFINE_BITFIELD(SHU_HWSET_MR2_HWSET_MR2_MRSMA, 12, 0) -DEFINE_BITFIELD(SHU_HWSET_MR2_HWSET_MR2_OP, 23, 16) - -/* DDRPHY_REG_MISC_SHU_DVFSDLL */ -DEFINE_BIT(MISC_SHU_DVFSDLL_R_BYPASS_1ST_DLL, 0) -DEFINE_BIT(MISC_SHU_DVFSDLL_R_BYPASS_2ND_DLL, 1) -DEFINE_BITFIELD(MISC_SHU_DVFSDLL_R_DLL_IDLE, 10, 4) -DEFINE_BITFIELD(MISC_SHU_DVFSDLL_R_2ND_DLL_IDLE, 22, 16) - -/* DDRPHY_REG_SHU_MISC_RX_PIPE_CTRL */ -DEFINE_BIT(SHU_MISC_RX_PIPE_CTRL_RX_PIPE_BYPASS_EN, 0) - -/* DRAMC_REG_SHU_ACTIM1 */ -DEFINE_BITFIELD(SHU_ACTIM1_TRPAB, 3, 0) -DEFINE_BITFIELD(SHU_ACTIM1_TMRWCKEL, 7, 4) -DEFINE_BITFIELD(SHU_ACTIM1_TRP, 11, 8) -DEFINE_BITFIELD(SHU_ACTIM1_TRAS, 21, 16) -DEFINE_BITFIELD(SHU_ACTIM1_TRC, 28, 24) - -/* DRAMC_REG_SHU_ACTIM3 */ -DEFINE_BITFIELD(SHU_ACTIM3_TRFCPB, 7, 0) -DEFINE_BITFIELD(SHU_ACTIM3_MANTMRR, 11, 8) -DEFINE_BITFIELD(SHU_ACTIM3_TR2MRR, 15, 12) -DEFINE_BITFIELD(SHU_ACTIM3_TRFC, 23, 16) -DEFINE_BITFIELD(SHU_ACTIM3_TWTR_L, 29, 24) - -/* DRAMC_REG_SHU_ACTIM2 */ -DEFINE_BITFIELD(SHU_ACTIM2_TXP, 3, 0) -DEFINE_BITFIELD(SHU_ACTIM2_TMRRI, 8, 4) -DEFINE_BITFIELD(SHU_ACTIM2_TRTP, 14, 12) -DEFINE_BITFIELD(SHU_ACTIM2_TR2W, 21, 16) -DEFINE_BITFIELD(SHU_ACTIM2_TFAW, 28, 24) - -/* DRAMC_REG_SHU_ACTIM0 */ -DEFINE_BITFIELD(SHU_ACTIM0_TWTR, 5, 0) -DEFINE_BITFIELD(SHU_ACTIM0_TWR, 15, 8) -DEFINE_BITFIELD(SHU_ACTIM0_TRRD, 18, 16) -DEFINE_BITFIELD(SHU_ACTIM0_TRCD, 27, 24) -DEFINE_BITFIELD(SHU_ACTIM0_CKELCKCNT, 31, 28) - -/* DRAMC_REG_SHU_ACTIM5 */ -DEFINE_BITFIELD(SHU_ACTIM5_TR2PD, 6, 0) -DEFINE_BITFIELD(SHU_ACTIM5_TWTPD, 14, 8) -DEFINE_BITFIELD(SHU_ACTIM5_TPBR2PBR, 23, 16) -DEFINE_BITFIELD(SHU_ACTIM5_TPBR2ACT, 29, 28) - -/* DRAMC_REG_SHU_ACTIM6 */ -DEFINE_BITFIELD(SHU_ACTIM6_TZQLAT2, 4, 0) -DEFINE_BITFIELD(SHU_ACTIM6_TMRD, 11, 8) -DEFINE_BITFIELD(SHU_ACTIM6_TMRW, 15, 12) -DEFINE_BITFIELD(SHU_ACTIM6_TW2MRW, 25, 20) -DEFINE_BITFIELD(SHU_ACTIM6_TR2MRW, 31, 26) - -/* DRAMC_REG_SHU_ACTIM4 */ -DEFINE_BITFIELD(SHU_ACTIM4_TXREFCNT, 9, 0) -DEFINE_BITFIELD(SHU_ACTIM4_TMRR2MRW, 15, 10) -DEFINE_BITFIELD(SHU_ACTIM4_TMRR2W, 21, 16) -DEFINE_BITFIELD(SHU_ACTIM4_TZQCS, 31, 24) - -/* DRAMC_REG_SHU_CKECTRL */ -DEFINE_BIT(SHU_CKECTRL_TPDE_05T, 0) -DEFINE_BIT(SHU_CKECTRL_TPDX_05T, 1) -DEFINE_BITFIELD(SHU_CKECTRL_TPDE, 14, 12) -DEFINE_BITFIELD(SHU_CKECTRL_TPDX, 18, 16) -DEFINE_BITFIELD(SHU_CKECTRL_TCKEPRD, 22, 20) -DEFINE_BITFIELD(SHU_CKECTRL_TCKESRX, 25, 24) - -/* DRAMC_REG_SHU_ACTIM_XRT */ -DEFINE_BITFIELD(SHU_ACTIM_XRT_XRTR2R, 4, 0) -DEFINE_BITFIELD(SHU_ACTIM_XRT_XRTR2W, 13, 8) -DEFINE_BITFIELD(SHU_ACTIM_XRT_XRTW2R, 19, 16) -DEFINE_BITFIELD(SHU_ACTIM_XRT_XRTW2W, 28, 24) - -/* DRAMC_REG_SHU_AC_TIME_05T */ -DEFINE_BIT(SHU_AC_TIME_05T_TRC_05T, 0) -DEFINE_BIT(SHU_AC_TIME_05T_TRFCPB_05T, 1) -DEFINE_BIT(SHU_AC_TIME_05T_TRFC_05T, 2) -DEFINE_BIT(SHU_AC_TIME_05T_TPBR2PBR_05T, 3) -DEFINE_BIT(SHU_AC_TIME_05T_TXP_05T, 4) -DEFINE_BIT(SHU_AC_TIME_05T_TRTP_05T, 5) -DEFINE_BIT(SHU_AC_TIME_05T_TRCD_05T, 6) -DEFINE_BIT(SHU_AC_TIME_05T_TRP_05T, 7) -DEFINE_BIT(SHU_AC_TIME_05T_TRPAB_05T, 8) -DEFINE_BIT(SHU_AC_TIME_05T_TRAS_05T, 9) -DEFINE_BIT(SHU_AC_TIME_05T_TWR_M05T, 10) -DEFINE_BIT(SHU_AC_TIME_05T_TRRD_05T, 12) -DEFINE_BIT(SHU_AC_TIME_05T_TFAW_05T, 13) -DEFINE_BIT(SHU_AC_TIME_05T_TCKEPRD_05T, 14) -DEFINE_BIT(SHU_AC_TIME_05T_TR2PD_05T, 15) -DEFINE_BIT(SHU_AC_TIME_05T_TWTPD_M05T, 16) -DEFINE_BIT(SHU_AC_TIME_05T_TMRRI_05T, 17) -DEFINE_BIT(SHU_AC_TIME_05T_TMRWCKEL_05T, 18) -DEFINE_BIT(SHU_AC_TIME_05T_BGTRRD_05T, 19) -DEFINE_BIT(SHU_AC_TIME_05T_BGTCCD_05T, 20) -DEFINE_BIT(SHU_AC_TIME_05T_BGTWTR_M05T, 21) -DEFINE_BIT(SHU_AC_TIME_05T_TR2W_05T, 22) -DEFINE_BIT(SHU_AC_TIME_05T_TWTR_M05T, 23) -DEFINE_BIT(SHU_AC_TIME_05T_XRTR2W_05T, 24) -DEFINE_BIT(SHU_AC_TIME_05T_TMRD_05T, 25) -DEFINE_BIT(SHU_AC_TIME_05T_TMRW_05T, 26) -DEFINE_BIT(SHU_AC_TIME_05T_TMRR2MRW_05T, 27) -DEFINE_BIT(SHU_AC_TIME_05T_TW2MRW_05T, 28) -DEFINE_BIT(SHU_AC_TIME_05T_TR2MRW_05T, 29) -DEFINE_BIT(SHU_AC_TIME_05T_TPBR2ACT_05T, 30) -DEFINE_BIT(SHU_AC_TIME_05T_XRTW2R_M05T, 31) - -/* DRAMC_REG_SHU_AC_DERATING0 */ -DEFINE_BIT(SHU_AC_DERATING0_ACDERATEEN, 0) -DEFINE_BITFIELD(SHU_AC_DERATING0_TRRD_DERATE, 18, 16) -DEFINE_BITFIELD(SHU_AC_DERATING0_TRCD_DERATE, 27, 24) - -/* DRAMC_REG_SHU_AC_DERATING1 */ -DEFINE_BITFIELD(SHU_AC_DERATING1_TRPAB_DERATE, 3, 0) -DEFINE_BITFIELD(SHU_AC_DERATING1_TRP_DERATE, 11, 8) -DEFINE_BITFIELD(SHU_AC_DERATING1_TRAS_DERATE, 21, 16) -DEFINE_BITFIELD(SHU_AC_DERATING1_TRC_DERATE, 28, 24) - -/* DRAMC_REG_SHU_AC_DERATING_05T */ -DEFINE_BIT(SHU_AC_DERATING_05T_TRC_05T_DERATE, 0) -DEFINE_BIT(SHU_AC_DERATING_05T_TRCD_05T_DERATE, 6) -DEFINE_BIT(SHU_AC_DERATING_05T_TRP_05T_DERATE, 7) -DEFINE_BIT(SHU_AC_DERATING_05T_TRPAB_05T_DERATE, 8) -DEFINE_BIT(SHU_AC_DERATING_05T_TRAS_05T_DERATE, 9) -DEFINE_BIT(SHU_AC_DERATING_05T_TRRD_05T_DERATE, 12) - -/* DRAMC_REG_REFCTRL3 */ -DEFINE_BITFIELD(REFCTRL3_REF_DERATING_EN, 15, 0) - -/* DDRPHY_REG_MISC_SHU_RK_DQSCTL */ -DEFINE_BITFIELD(MISC_SHU_RK_DQSCTL_DQSINCTL, 3, 0) - -/* DDRPHY_REG_MISC_SHU_ODTCTRL */ -DEFINE_BIT(MISC_SHU_ODTCTRL_RODTEN, 0) -DEFINE_BIT(MISC_SHU_ODTCTRL_RODTENSTB_SELPH_CG_IG, 1) -DEFINE_BITFIELD(MISC_SHU_ODTCTRL_RODT_LAT, 7, 4) -DEFINE_BIT(MISC_SHU_ODTCTRL_RODTEN_SELPH_FRUN, 15) -DEFINE_BITFIELD(MISC_SHU_ODTCTRL_RODTDLY_LAT_OPT, 25, 24) -DEFINE_BIT(MISC_SHU_ODTCTRL_FIXRODT, 27) -DEFINE_BIT(MISC_SHU_ODTCTRL_RODTEN_OPT, 29) -DEFINE_BIT(MISC_SHU_ODTCTRL_RODTE2, 30) -DEFINE_BIT(MISC_SHU_ODTCTRL_RODTE, 31) - -/* DDRPHY_REG_SHU_MISC_RANK_SEL_STB */ -DEFINE_BIT(SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_EN, 0) -DEFINE_BIT(SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_EN_B23, 1) -DEFINE_BITFIELD(SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_SERMODE, 3, 2) -DEFINE_BIT(SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_TRACK, 4) -DEFINE_BIT(SHU_MISC_RANK_SEL_STB_RANK_SEL_RXDLY_TRACK, 5) -DEFINE_BIT(SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_PHASE_EN, 7) -DEFINE_BITFIELD(SHU_MISC_RANK_SEL_STB_RANK_SEL_PHSINCTL, 11, 8) -DEFINE_BITFIELD(SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_UI_PLUS, 19, 16) -DEFINE_BITFIELD(SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_MCK_PLUS, 23, 20) -DEFINE_BITFIELD(SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_UI_MINUS, 27, 24) -DEFINE_BITFIELD(SHU_MISC_RANK_SEL_STB_RANK_SEL_STB_MCK_MINUS, 31, 28) - -/* DDRPHY_REG_MISC_SHU_RDAT */ -DEFINE_BITFIELD(MISC_SHU_RDAT_DATLAT, 4, 0) -DEFINE_BITFIELD(MISC_SHU_RDAT_DATLAT_DSEL, 12, 8) -DEFINE_BITFIELD(MISC_SHU_RDAT_DATLAT_DSEL_PHY, 20, 16) - -/* DRAMC_REG_SHU_TX_RANKCTL */ -DEFINE_BITFIELD(SHU_TX_RANKCTL_TXRANKINCTL_TXDLY, 3, 0) -DEFINE_BITFIELD(SHU_TX_RANKCTL_TXRANKINCTL, 7, 4) -DEFINE_BITFIELD(SHU_TX_RANKCTL_TXRANKINCTL_ROOT, 11, 8) - -/* DRAMC_REG_BYPASS_FSPOP */ -DEFINE_BIT(BYPASS_FSPOP_BPFSP_OPT, 16) - -/* DDRPHY_MD32_REG_LPIF_FSM_CFG_1 */ -DEFINE_BIT(LPIF_FSM_CFG_1_LPIF_LEGACY_CONTROL, 0) -DEFINE_BIT(LPIF_FSM_CFG_1_LPIF_LEGACY_CONTROL_2ND, 1) -DEFINE_BIT(LPIF_FSM_CFG_1_LPIF_LEGACY_CONTROL_FOR_PWR, 2) -DEFINE_BIT(LPIF_FSM_CFG_1_LPIF_LEGACY_CONTROL_FOR_PWR_2ND, 3) -DEFINE_BIT(LPIF_FSM_CFG_1_LPIF_OUTPUT_PATH_FROM_SW, 4) -DEFINE_BIT(LPIF_FSM_CFG_1_LPIF_OUTPUT_PATH_FROM_SW_2ND, 5) -DEFINE_BIT(LPIF_FSM_CFG_1_LPIF_POWER_CONTROL_SEL, 6) -DEFINE_BIT(LPIF_FSM_CFG_1_LPIF_POWER_CONTROL_SEL_2ND, 7) - -/* DDRPHY_MD32_REG_LPIF_LOW_POWER_CFG_0 */ -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_0_PHYPLL_EN, 3, 2) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_0_DPY_DLL_EN, 5, 4) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_0_DPY_2ND_DLL_EN, 7, 6) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_0_DPY_DLL_CK_EN, 9, 8) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_0_DPY_VREF_EN, 11, 10) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_0_DDRPHY_FB_CK_EN, 17, 16) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_0_PHYPLL_SHU_EN, 21, 20) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_0_PHYPLL_MODE_SW, 23, 22) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_0_PHYPLL2_SHU_EN, 25, 24) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_0_PHYPLL2_MODE_SW, 27, 26) - -/* DDRPHY_MD32_REG_LPIF_LOW_POWER_CFG_1 */ -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_1_DMY_EN_MOD_SEL, 13, 12) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_1_DMYRD_INTV_SEL, 15, 14) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_1_DMYRD_EN, 17, 16) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_1_TX_TRACKING_RETRY_EN, 21, 20) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_1_DR_SHU_SRAM_LEVEL, 29, 22) - -/* DDRPHY_MD32_REG_LPIF_LOW_POWER_CFG_3 */ -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_3_DPY_MCK8X_EN, 1, 0) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_3_DPY_MIDPI_EN, 3, 2) -DEFINE_BITFIELD(LPIF_LOW_POWER_CFG_3_DPY_PI_RESETB_EN, 5, 4) - -/* DDRPHY_MD32_REG_LPIF_FSM_OUT_CTRL_0 */ -DEFINE_BIT(LPIF_FSM_OUT_CTRL_0_LOG_OPT_PHYPLL_EN, 1) -DEFINE_BIT(LPIF_FSM_OUT_CTRL_0_LOG_OPT_DPY_DLL_EN, 2) -DEFINE_BIT(LPIF_FSM_OUT_CTRL_0_LOG_OPT_DPY_2ND_DLL_EN, 3) -DEFINE_BIT(LPIF_FSM_OUT_CTRL_0_LOG_OPT_DPY_DLL_CK_EN, 4) -DEFINE_BIT(LPIF_FSM_OUT_CTRL_0_LOG_OPT_DPY_VREF_EN, 5) -DEFINE_BIT(LPIF_FSM_OUT_CTRL_0_LOG_OPT_PHYPLL_SHU_EN, 10) -DEFINE_BIT(LPIF_FSM_OUT_CTRL_0_LOG_OPT_PHYPLL_MODE_SW, 11) - -/* DDRPHY_REG_CLRPLL0 */ -DEFINE_BIT(CLRPLL0_RG_RCLRPLL_EN, 31) - -/* DDRPHY_MD32_REG_LPIF_DFD_DBUG_0 */ -DEFINE_BIT(LPIF_DFD_DBUG_0_LPIF_DFD_DEBUG_ISO_EN, 0) - -/* DDRPHY_REG_MISC_DMA_DEBUG0 */ -DEFINE_BIT(MISC_DMA_DEBUG0_SRAM_DONE, 16) -DEFINE_BIT(MISC_DMA_DEBUG0_APB_DONE, 17) -DEFINE_BIT(MISC_DMA_DEBUG0_SC_DR_SRAM_LOAD_ACK, 29) -DEFINE_BIT(MISC_DMA_DEBUG0_SC_DR_SRAM_RESTORE_ACK, 30) - -/* DDRPHY_MD32_REG_LPIF_STATUS_4 */ -DEFINE_BITFIELD(LPIF_STATUS_4_SHU_EN_ACK, 15, 14) - -/* DRAMC_REG_MRR_STATUS2 */ -DEFINE_BITFIELD(MRR_STATUS2_DVFS_STATE, 31, 24) - -/* DDRPHY_REG_SHU_MISC_RDSEL_TRACK */ -DEFINE_BITFIELD(SHU_MISC_RDSEL_TRACK_DMDATLAT_I, 4, 0) -DEFINE_BIT(SHU_MISC_RDSEL_TRACK_RDSEL_HWSAVE_MSK, 6) -DEFINE_BIT(SHU_MISC_RDSEL_TRACK_RDSEL_TRACK_EN, 7) -DEFINE_BITFIELD(SHU_MISC_RDSEL_TRACK_SHU_GW_THRD_NEG, 19, 8) -DEFINE_BITFIELD(SHU_MISC_RDSEL_TRACK_SHU_GW_THRD_POS, 31, 20) - -/* DDRPHY_REG_MISC_SHU_PHY_RX_CTRL */ -DEFINE_BIT(MISC_SHU_PHY_RX_CTRL_RANK_RXDLY_UPDLAT_EN, 8) -DEFINE_BITFIELD(MISC_SHU_PHY_RX_CTRL_RANK_RXDLY_UPD_OFFSET, 11, 9) -DEFINE_BITFIELD(MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_PRE_OFFSET, 15, 14) -DEFINE_BITFIELD(MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_HEAD, 18, 16) -DEFINE_BITFIELD(MISC_SHU_PHY_RX_CTRL_RX_IN_GATE_EN_TAIL, 22, 20) -DEFINE_BITFIELD(MISC_SHU_PHY_RX_CTRL_RX_IN_BUFF_EN_HEAD, 26, 24) -DEFINE_BITFIELD(MISC_SHU_PHY_RX_CTRL_RX_IN_BUFF_EN_TAIL, 30, 28) - -/* DDRPHY_REG_MISC_SHU_RANK_SEL_LAT */ -DEFINE_BITFIELD(MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_B0, 3, 0) -DEFINE_BITFIELD(MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_B1, 7, 4) -DEFINE_BITFIELD(MISC_SHU_RANK_SEL_LAT_RANK_SEL_LAT_CA, 11, 8) - -/* DDRPHY_REG_SHU_RK_B0_DQSIEN_MCK_UI_DLY */ -DEFINE_BITFIELD(SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P0_B0, 3, 0) -DEFINE_BITFIELD(SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P1_B0, 7, 4) -DEFINE_BITFIELD(SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P0_B0, 19, 16) -DEFINE_BITFIELD(SHU_RK_B0_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P1_B0, 23, 20) - -/* DDRPHY_REG_SHU_RK_B0_DQSIEN_PI_DLY */ -DEFINE_BITFIELD(SHU_RK_B0_DQSIEN_PI_DLY_DQSIEN_PI_B0, 6, 0) - -/* DDRPHY_REG_SHU_RK_B1_DQSIEN_MCK_UI_DLY */ -DEFINE_BITFIELD(SHU_RK_B1_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P0_B1, 3, 0) -DEFINE_BITFIELD(SHU_RK_B1_DQSIEN_MCK_UI_DLY_DQSIEN_UI_P1_B1, 7, 4) -DEFINE_BITFIELD(SHU_RK_B1_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P0_B1, 19, 16) -DEFINE_BITFIELD(SHU_RK_B1_DQSIEN_MCK_UI_DLY_DQSIEN_MCK_P1_B1, 23, 20) - -/* DDRPHY_REG_SHU_RK_B1_DQSIEN_PI_DLY */ -DEFINE_BITFIELD(SHU_RK_B1_DQSIEN_PI_DLY_DQSIEN_PI_B1, 6, 0) - -/* DDRPHY_REG_SHU_RK_B0_RODTEN_MCK_UI_DLY */ -DEFINE_BITFIELD(SHU_RK_B0_RODTEN_MCK_UI_DLY_RODTEN_UI_P0_B0, 2, 0) -DEFINE_BITFIELD(SHU_RK_B0_RODTEN_MCK_UI_DLY_RODTEN_UI_P1_B0, 6, 4) -DEFINE_BITFIELD(SHU_RK_B0_RODTEN_MCK_UI_DLY_RODTEN_MCK_P0_B0, 18, 16) -DEFINE_BITFIELD(SHU_RK_B0_RODTEN_MCK_UI_DLY_RODTEN_MCK_P1_B0, 22, 20) - -/* DDRPHY_REG_SHU_RK_B1_RODTEN_MCK_UI_DLY */ -DEFINE_BITFIELD(SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_UI_P0_B1, 2, 0) -DEFINE_BITFIELD(SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_UI_P1_B1, 6, 4) -DEFINE_BITFIELD(SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_MCK_P0_B1, 18, 16) -DEFINE_BITFIELD(SHU_RK_B1_RODTEN_MCK_UI_DLY_RODTEN_MCK_P1_B1, 22, 20) - -/* DRAMC_REG_SHU_RX_CG_SET0 */ -DEFINE_BIT(SHU_RX_CG_SET0_DLE_LAST_EXTEND3, 0) -DEFINE_BIT(SHU_RX_CG_SET0_READ_START_EXTEND3, 1) -DEFINE_BIT(SHU_RX_CG_SET0_DLE_LAST_EXTEND2, 2) -DEFINE_BIT(SHU_RX_CG_SET0_READ_START_EXTEND2, 3) -DEFINE_BIT(SHU_RX_CG_SET0_DLE_LAST_EXTEND1, 4) -DEFINE_BIT(SHU_RX_CG_SET0_READ_START_EXTEND1, 5) - -/* DDRPHY_REG_MISC_SHU_RK_DQSCAL */ -DEFINE_BITFIELD(MISC_SHU_RK_DQSCAL_DQSIENLLMT, 6, 0) -DEFINE_BIT(MISC_SHU_RK_DQSCAL_DQSIENLLMTEN, 7) -DEFINE_BITFIELD(MISC_SHU_RK_DQSCAL_DQSIENHLMT, 14, 8) -DEFINE_BIT(MISC_SHU_RK_DQSCAL_DQSIENHLMTEN, 15) - -/* DDRPHY_REG_SHU_R0_B0_INI_UIPI */ -DEFINE_BITFIELD(SHU_R0_B0_INI_UIPI_CURR_INI_PI_B0, 6, 0) -DEFINE_BITFIELD(SHU_R0_B0_INI_UIPI_CURR_INI_UI_B0, 15, 8) - -/* DDRPHY_REG_SHU_R0_B1_INI_UIPI */ -DEFINE_BITFIELD(SHU_R0_B1_INI_UIPI_CURR_INI_PI_B1, 6, 0) -DEFINE_BITFIELD(SHU_R0_B1_INI_UIPI_CURR_INI_UI_B1, 15, 8) - -/* DDRPHY_REG_SHU_R0_B0_NEXT_INI_UIPI */ -DEFINE_BITFIELD(SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_PI_B0, 6, 0) -DEFINE_BITFIELD(SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_UI_B0, 15, 8) -DEFINE_BITFIELD(SHU_R0_B0_NEXT_INI_UIPI_NEXT_INI_UI_P1_B0, 31, 24) - -/* DDRPHY_REG_SHU_R0_B1_NEXT_INI_UIPI */ -DEFINE_BITFIELD(SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_PI_B1, 6, 0) -DEFINE_BITFIELD(SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_UI_B1, 15, 8) -DEFINE_BITFIELD(SHU_R0_B1_NEXT_INI_UIPI_NEXT_INI_UI_P1_B1, 31, 24) - -/* DDRPHY_REG_SHU_R0_B0_DQ0 */ -DEFINE_BITFIELD(SHU_R0_B0_DQ0_RG_RX_ARDQS0_R_DLY_DUTY, 2, 0) -DEFINE_BITFIELD(SHU_R0_B0_DQ0_RG_RX_ARDQS0_F_DLY_DUTY,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DEFINE_BITFIELD(SHURK_APHY_TX_PICG_CTRL_TX_DQ_RK_SEL_P1, 2, 0) -DEFINE_BITFIELD(SHURK_APHY_TX_PICG_CTRL_TX_DQ_RK_SEL_P0, 6, 4) - -/* DRAMC_REG_SHU_NEW_XRW2W_CTRL */ -DEFINE_BITFIELD(SHU_NEW_XRW2W_CTRL_TX_PI_UPDCTL_B0, 18, 16) -DEFINE_BITFIELD(SHU_NEW_XRW2W_CTRL_TX_PI_UPDCTL_B1, 26, 24) -DEFINE_BIT(SHU_NEW_XRW2W_CTRL_TXPI_UPD_MODE, 31) - -/* DRAMC_REG_SHU_SELPH_DQS0 */ -DEFINE_BITFIELD(SHU_SELPH_DQS0_TXDLY_DQS0, 2, 0) -DEFINE_BITFIELD(SHU_SELPH_DQS0_TXDLY_DQS1, 6, 4) -DEFINE_BITFIELD(SHU_SELPH_DQS0_TXDLY_DQS2, 10, 8) -DEFINE_BITFIELD(SHU_SELPH_DQS0_TXDLY_DQS3, 14, 12) -DEFINE_BITFIELD(SHU_SELPH_DQS0_TXDLY_OEN_DQS0, 18, 16) -DEFINE_BITFIELD(SHU_SELPH_DQS0_TXDLY_OEN_DQS1, 22, 20) -DEFINE_BITFIELD(SHU_SELPH_DQS0_TXDLY_OEN_DQS2, 26, 24) -DEFINE_BITFIELD(SHU_SELPH_DQS0_TXDLY_OEN_DQS3, 30, 28) - -/* DRAMC_REG_SHURK_SELPH_DQ0 */ -DEFINE_BITFIELD(SHURK_SELPH_DQ0_TXDLY_DQ0, 2, 0) -DEFINE_BITFIELD(SHURK_SELPH_DQ0_TXDLY_DQ1, 6, 4) -DEFINE_BITFIELD(SHURK_SELPH_DQ0_TXDLY_DQ2, 10, 8) -DEFINE_BITFIELD(SHURK_SELPH_DQ0_TXDLY_DQ3, 14, 12) -DEFINE_BITFIELD(SHURK_SELPH_DQ0_TXDLY_OEN_DQ0, 18, 16) -DEFINE_BITFIELD(SHURK_SELPH_DQ0_TXDLY_OEN_DQ1, 22, 20) -DEFINE_BITFIELD(SHURK_SELPH_DQ0_TXDLY_OEN_DQ2, 26, 24) -DEFINE_BITFIELD(SHURK_SELPH_DQ0_TXDLY_OEN_DQ3, 30, 28) - -/* DRAMC_REG_SHURK_SELPH_DQ1 */ -DEFINE_BITFIELD(SHURK_SELPH_DQ1_TXDLY_DQM0, 2, 0) -DEFINE_BITFIELD(SHURK_SELPH_DQ1_TXDLY_DQM1, 6, 4) -DEFINE_BITFIELD(SHURK_SELPH_DQ1_TXDLY_DQM2, 10, 8) -DEFINE_BITFIELD(SHURK_SELPH_DQ1_TXDLY_DQM3, 14, 12) -DEFINE_BITFIELD(SHURK_SELPH_DQ1_TXDLY_OEN_DQM0, 18, 16) -DEFINE_BITFIELD(SHURK_SELPH_DQ1_TXDLY_OEN_DQM1, 22, 20) -DEFINE_BITFIELD(SHURK_SELPH_DQ1_TXDLY_OEN_DQM2, 26, 24) -DEFINE_BITFIELD(SHURK_SELPH_DQ1_TXDLY_OEN_DQM3, 30, 28) - -/* DRAMC_REG_SHURK_SELPH_DQ2 */ -DEFINE_BITFIELD(SHURK_SELPH_DQ2_DLY_DQ0, 3, 0) -DEFINE_BITFIELD(SHURK_SELPH_DQ2_DLY_DQ1, 7, 4) -DEFINE_BITFIELD(SHURK_SELPH_DQ2_DLY_DQ2, 11, 8) -DEFINE_BITFIELD(SHURK_SELPH_DQ2_DLY_DQ3, 15, 12) -DEFINE_BITFIELD(SHURK_SELPH_DQ2_DLY_OEN_DQ0, 19, 16) -DEFINE_BITFIELD(SHURK_SELPH_DQ2_DLY_OEN_DQ1, 23, 20) -DEFINE_BITFIELD(SHURK_SELPH_DQ2_DLY_OEN_DQ2, 27, 24) -DEFINE_BITFIELD(SHURK_SELPH_DQ2_DLY_OEN_DQ3, 31, 28) - -/* DRAMC_REG_SHURK_SELPH_DQ3 */ -DEFINE_BITFIELD(SHURK_SELPH_DQ3_DLY_DQM0, 3, 0) -DEFINE_BITFIELD(SHURK_SELPH_DQ3_DLY_DQM1, 7, 4) -DEFINE_BITFIELD(SHURK_SELPH_DQ3_DLY_DQM2, 11, 8) -DEFINE_BITFIELD(SHURK_SELPH_DQ3_DLY_DQM3, 15, 12) -DEFINE_BITFIELD(SHURK_SELPH_DQ3_DLY_OEN_DQM0, 19, 16) -DEFINE_BITFIELD(SHURK_SELPH_DQ3_DLY_OEN_DQM1, 23, 20) -DEFINE_BITFIELD(SHURK_SELPH_DQ3_DLY_OEN_DQM2, 27, 24) -DEFINE_BITFIELD(SHURK_SELPH_DQ3_DLY_OEN_DQM3, 31, 28) - -/* DRAMC_REG_SHURK_DQS2DQ_CAL1 */ -DEFINE_BITFIELD(SHURK_DQS2DQ_CAL1_BOOT_ORIG_UI_RK0_DQ0, 10, 0) -DEFINE_BITFIELD(SHURK_DQS2DQ_CAL1_BOOT_ORIG_UI_RK0_DQ1, 26, 16) - -/* DRAMC_REG_SHURK_DQS2DQ_CAL2 */ -DEFINE_BITFIELD(SHURK_DQS2DQ_CAL2_BOOT_TARG_UI_RK0_DQ0, 10, 0) -DEFINE_BITFIELD(SHURK_DQS2DQ_CAL2_BOOT_TARG_UI_RK0_DQ1, 26, 16) - -/* DRAMC_REG_SHURK_DQS2DQ_CAL5 */ -DEFINE_BITFIELD(SHURK_DQS2DQ_CAL5_BOOT_TARG_UI_RK0_DQM0, 10, 0) -DEFINE_BITFIELD(SHURK_DQS2DQ_CAL5_BOOT_TARG_UI_RK0_DQM1, 26, 16) - -/* DRAMC_REG_SHURK_PI */ -DEFINE_BITFIELD(SHURK_PI_RK0_ARPI_DQ_B1, 5, 0) -DEFINE_BITFIELD(SHURK_PI_RK0_ARPI_DQ_B0, 13, 8) -DEFINE_BITFIELD(SHURK_PI_RK0_ARPI_DQM_B1, 21, 16) -DEFINE_BITFIELD(SHURK_PI_RK0_ARPI_DQM_B0, 29, 24) - -/* DDRPHY_REG_SHU_R0_B0_TXDLY0 */ -DEFINE_BITFIELD(SHU_R0_B0_TXDLY0_TX_ARDQ0_DLY_B0, 7, 0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_DLY_B0, 14, 8) -DEFINE_BITFIELD(B0_DQ4_RG_RX_ARDQ_EYE_R_DLY_B0, 21, 16) -DEFINE_BITFIELD(B0_DQ4_RG_RX_ARDQ_EYE_F_DLY_B0, 29, 24) - -/* DDRPHY_REG_B1_DQ4 */ -DEFINE_BITFIELD(B1_DQ4_RG_RX_ARDQS_EYE_R_DLY_B1, 6, 0) -DEFINE_BITFIELD(B1_DQ4_RG_RX_ARDQS_EYE_F_DLY_B1, 14, 8) -DEFINE_BITFIELD(B1_DQ4_RG_RX_ARDQ_EYE_R_DLY_B1, 21, 16) -DEFINE_BITFIELD(B1_DQ4_RG_RX_ARDQ_EYE_F_DLY_B1, 29, 24) - -/* DDRPHY_REG_SHU_R0_CA_CMD0 */ -DEFINE_BITFIELD(SHU_R0_CA_CMD0_RG_RX_ARCLK_R_DLY_DUTY, 2, 0) -DEFINE_BITFIELD(SHU_R0_CA_CMD0_RG_RX_ARCLK_F_DLY_DUTY, 6, 4) -DEFINE_BITFIELD(SHU_R0_CA_CMD0_RG_ARPI_CS, 13, 8) -DEFINE_BITFIELD(SHU_R0_CA_CMD0_RG_ARPI_CMD, 21, 16) -DEFINE_BITFIELD(SHU_R0_CA_CMD0_RG_ARPI_CLK, 29, 24) -DEFINE_BIT(SHU_R0_CA_CMD0_DA_ARPI_DDR400_0D5UI_RK0_CA, 30) -DEFINE_BIT(SHU_R0_CA_CMD0_DA_RX_ARDQSIEN_0D5UI_RK0_CA, 31) - -/* DRAMC_REG_SHU_SELPH_DQS1 */ -DEFINE_BITFIELD(SHU_SELPH_DQS1_DLY_DQS0, 3, 0) -DEFINE_BITFIELD(SHU_SELPH_DQS1_DLY_DQS1, 7, 4) -DEFINE_BITFIELD(SHU_SELPH_DQS1_DLY_DQS2, 11, 8) -DEFINE_BITFIELD(SHU_SELPH_DQS1_DLY_DQS3, 15, 12) -DEFINE_BITFIELD(SHU_SELPH_DQS1_DLY_OEN_DQS0, 19, 16) -DEFINE_BITFIELD(SHU_SELP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, 16) -DEFINE_BITFIELD(MRR_BIT_MUX2_MRR_BIT7_SEL, 28, 24) - -/* DRAMC_REG_MRR_BIT_MUX3 */ -DEFINE_BITFIELD(MRR_BIT_MUX3_MRR_BIT8_SEL, 4, 0) -DEFINE_BITFIELD(MRR_BIT_MUX3_MRR_BIT9_SEL, 12, 8) -DEFINE_BITFIELD(MRR_BIT_MUX3_MRR_BIT10_SEL, 20, 16) -DEFINE_BITFIELD(MRR_BIT_MUX3_MRR_BIT11_SEL, 28, 24) - -/* DRAMC_REG_MRR_BIT_MUX4 */ -DEFINE_BITFIELD(MRR_BIT_MUX4_MRR_BIT12_SEL, 4, 0) -DEFINE_BITFIELD(MRR_BIT_MUX4_MRR_BIT13_SEL, 12, 8) -DEFINE_BITFIELD(MRR_BIT_MUX4_MRR_BIT14_SEL, 20, 16) -DEFINE_BITFIELD(MRR_BIT_MUX4_MRR_BIT15_SEL, 28, 24) - -/* DDRPHY_REG_MISC_DQ_SE_PINMUX_CTRL0 */ -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL0_DQ_PINMUX_SEL_DQ0, 3, 0) -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL0_DQ_PINMUX_SEL_DQ1, 7, 4) -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL0_DQ_PINMUX_SEL_DQ2, 11, 8) -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL0_DQ_PINMUX_SEL_DQ3, 15, 12) -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL0_DQ_PINMUX_SEL_DQ4, 19, 16) -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL0_DQ_PINMUX_SEL_DQ5, 23, 20) -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL0_DQ_PINMUX_SEL_DQ6, 27, 24) -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL0_DQ_PINMUX_SEL_DQ7, 31, 28) - -/* DDRPHY_REG_MISC_DQ_SE_PINMUX_CTRL1 */ -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL1_DQ_PINMUX_SEL_DQ8, 3, 0) -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL1_DQ_PINMUX_SEL_DQ9, 7, 4) -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL1_DQ_PINMUX_SEL_DQ10, 11, 8) -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL1_DQ_PINMUX_SEL_DQ11, 15, 12) -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL1_DQ_PINMUX_SEL_DQ12, 19, 16) -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL1_DQ_PINMUX_SEL_DQ13, 23, 20) -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL1_DQ_PINMUX_SEL_DQ14, 27, 24) -DEFINE_BITFIELD(MISC_DQ_SE_PINMUX_CTRL1_DQ_PINMUX_SEL_DQ15, 31, 28) - -/* DRAMC_REG_SA_RESERVE */ -DEFINE_BIT(SA_RESERVE_SINGLE_RANK, 0) -DEFINE_BITFIELD(SA_RESERVE_MODE_RK1, 27, 24) -DEFINE_BITFIELD(SA_RESERVE_MODE_RK0, 31, 28) - -/* DRAMC_REG_SWCMD_CTRL0 */ -DEFINE_BITFIELD(SWCMD_CTRL0_MRSOP, 7, 0) -DEFINE_BITFIELD(SWCMD_CTRL0_MRSMA, 20, 8) -DEFINE_BITFIELD(SWCMD_CTRL0_MRSRK, 25, 24) -DEFINE_BIT(SWCMD_CTRL0_SWTRIG_ZQ_RK, 30) - -/* DRAMC_REG_DRAMC_IRQ_EN */ -DEFINE_BIT(DRAMC_IRQ_EN_MR4INT_EN, 0) -DEFINE_BITFIELD(DRAMC_IRQ_EN_DRAMC_IRQ_EN_RSV, 31, 18) - -/* DDRPHY_REG_CA_TX_MCK */ -DEFINE_BITFIELD(CA_TX_MCK_R_DMRESETB_DRVP_FRPHY, 25, 21) -DEFINE_BITFIELD(CA_TX_MCK_R_DMRESETB_DRVN_FRPHY, 30, 26) -DEFINE_BIT(CA_TX_MCK_R_DMRESET_FRPHY_OPT, 31) - -/* DDRPHY_REG_MISC_IMPCAL */ -DEFINE_BIT(MISC_IMPCAL_DRVCGWREF, 2) -DEFINE_BIT(MISC_IMPCAL_DQDRVSWUPD, 3) -DEFINE_BIT(MISC_IMPCAL_IMPSRCEXT, 4) -DEFINE_BIT(MISC_IMPCAL_IMPBINARY, 5) -DEFINE_BIT(MISC_IMPCAL_DRV_ECO_OPT, 10) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_CHGDRV_ECO_OPT, 11) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_SM_ECO_OPT, 12) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_ECO_OPT, 13) -DEFINE_BIT(MISC_IMPCAL_DIS_SUS_CH1_DRV, 14) -DEFINE_BIT(MISC_IMPCAL_DIS_SUS_CH0_DRV, 15) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_DRVUPDOPT, 17) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_BYPASS_UP_CA_DRV, 19) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_HWSAVE_EN, 20) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_CALI_ENN, 21) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_CALI_ENP, 22) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_CALI_EN, 23) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_IMPPDN, 24) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_IMPPDP, 25) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_NEW_OLD_SL, 26) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_SWVALUE_EN, 29) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_EN, 30) -DEFINE_BIT(MISC_IMPCAL_IMPCAL_HW, 31) - -/* DDRPHY_REG_SHU_B0_DLL2 */ -DEFINE_BITFIELD(SHU_B0_DLL2_RG_ARDQ_REV_B0, 31, 0) - -/* DDRPHY_REG_SHU_B1_DLL2 */ -DEFINE_BITFIELD(SHU_B1_DLL2_RG_ARDQ_REV_B1, 31, 0) - -/* DDRPHY_REG_SHU_CA_DLL2 */ -DEFINE_BITFIELD(SHU_CA_DLL2_RG_ARCMD_REV, 31, 0) - -/* DRAMC_REG_DRAMC_DBG_SEL1 */ -DEFINE_BITFIELD(DRAMC_DBG_SEL1_DEBUG_SEL_0, 15, 0) - -/* DRAMC_REG_SWCMD_CTRL2 */ -DEFINE_BITFIELD(SWCMD_CTRL2_RTSWCMD_AGE, 9, 0) - -/* DRAMC_REG_RTMRW_CTRL0 */ -DEFINE_BITFIELD(RTMRW_CTRL0_RTMRW_AGE, 24, 15) - -/* DRAMC_REG_REF_BOUNCE1 */ -DEFINE_BITFIELD(REF_BOUNCE1_REFRATE_DEBOUNCE_COUNT, 7, 0) -DEFINE_BITFIELD(REF_BOUNCE1_REFRATE_DEBOUNCE_TH, 12, 8) -DEFINE_BIT(REF_BOUNCE1_REFRATE_DEBOUNCE_OPT, 13) -DEFINE_BITFIELD(REF_BOUNCE1_REFRATE_DEBOUNCE_DIS, 31, 16) - -/* DRAMC_REG_REFPEND2 */ -DEFINE_BITFIELD(REFPEND2_MPENDREFCNT_TH8, 3, 0) - -/* DRAMC_REG_RTSWCMD_CNT */ -DEFINE_BITFIELD(RTSWCMD_CNT_RTSWCMD_CNT, 31, 0) - -/* DDRPHY_REG_B0_DLL_ARPI4 */ -DEFINE_BIT(B0_DLL_ARPI4_RG_ARPI_BYPASS_SR_DQ_B0, 8) -DEFINE_BIT(B0_DLL_ARPI4_RG_ARPI_BYPASS_SR_DQS_B0, 9) - -/* DDRPHY_REG_B1_DLL_ARPI4 */ -DEFINE_BIT(B1_DLL_ARPI4_RG_ARPI_BYPASS_SR_DQ_B1, 8) -DEFINE_BIT(B1_DLL_ARPI4_RG_ARPI_BYPASS_SR_DQS_B1, 9) - -/* DDRPHY_REG_CA_DLL_ARPI4 */ -DEFINE_BIT(CA_DLL_ARPI4_RG_ARPI_BYPASS_SR_CA_CA, 8) -DEFINE_BIT(CA_DLL_ARPI4_RG_ARPI_BYPASS_SR_CLK_CA, 9) - -/* DDRPHY_REG_MISC_DDR_RESERVE */ -DEFINE_BITFIELD(MISC_DDR_RESERVE_WDT_CONF_ISO_CNT, 7, 0) -DEFINE_BIT(MISC_DDR_RESERVE_WDT_SM_CLR, 24) -DEFINE_BIT(MISC_DDR_RESERVE_WDT_LITE_EN, 25) - -/* DDRPHY_REG_MISC_CTRL6 */ -DEFINE_BIT(MISC_CTRL6_RG_PHDET_EN_SHU_OPT, 0) -DEFINE_BIT(MISC_CTRL6_RG_ADA_MCK8X_EN_SHU_OPT, 1) - -/* DRAMC_REG_REF_BOUNCE2 */ -DEFINE_BITFIELD(REF_BOUNCE2_PRE_MR4INT_TH, 4, 0) - -/* DRAMC_REG_SHU_REF0 */ -DEFINE_BITFIELD(SHU_REF0_MPENDREF_CNT, 2, 0) - -/* DRAMC_REG_ZQ_SET1 */ -DEFINE_BIT(ZQ_SET1_ZQCALDISB, 30) - -/* DRAMC_REG_TX_RETRY_SET0 */ -DEFINE_BIT(TX_RETRY_SET0_XSR_TX_RETRY_BLOCK_ALE_MASK, 0) -DEFINE_BIT(TX_RETRY_SET0_XSR_TX_RETRY_EN, 2) -DEFINE_BIT(TX_RETRY_SET0_XSR_TX_RETRY_SW_EN, 4) - -/* DRAMC_REG_SPCMDRESP */ -DEFINE_BIT(SPCMDRESP_MRR_RESPONSE, 1) -DEFINE_BIT(SPCMDRESP_RDDQC_RESPONSE, 7) -DEFINE_BIT(SPCMDRESP_TX_RETRY_DONE_RESPONSE, 15) - -/* DDRPHY_REG_SHU_B0_VREF */ -DEFINE_BIT(SHU_B0_VREF_RG_RX_ARDQ_VREF_RANK_SEL_EN_B0, 16) -DEFINE_BIT(SHU_B0_VREF_RG_RX_ARDQ_VREF_UNTERM_EN_B0, 22) - -/* DDRPHY_REG_SHU_B1_VREF */ -DEFINE_BIT(SHU_B1_VREF_RG_RX_ARDQ_VREF_RANK_SEL_EN_B1, 16) -DEFINE_BIT(SHU_B1_VREF_RG_RX_ARDQ_VREF_UNTERM_EN_B1, 22) - -/* DDRPHY_REG_SHU_B0_PHY_VREF_SEL */ -DEFINE_BITFIELD(RG_RX_ARDQ_VREF_SEL_LB_B0, 6, 0) -DEFINE_BITFIELD(RG_RX_ARDQ_VREF_SEL_UB_B0, 14, 8) - -/* DDRPHY_REG_SHU_B1_PHY_VREF_SEL */ -DEFINE_BITFIELD(RG_RX_ARDQ_VREF_SEL_LB_B1, 6, 0) -DEFINE_BITFIELD(RG_RX_ARDQ_VREF_SEL_UB_B1, 14, 8) - -/* DDRPHY_REG_SHU_MISC_DRVING1 */ -DEFINE_BITFIELD(SHU_MISC_DRVING1_DQDRVN2, 4, 0) -DEFINE_BITFIELD(SHU_MISC_DRVING1_DQDRVP2, 9, 5) -DEFINE_BITFIELD(SHU_MISC_DRVING1_DQSDRVN1, 14, 10) -DEFINE_BITFIELD(SHU_MISC_DRVING1_DQSDRVP1, 19, 15) -DEFINE_BITFIELD(SHU_MISC_DRVING1_DQSDRVN2, 24, 20) -DEFINE_BITFIELD(SHU_MISC_DRVING1_DQSDRVP2, 29, 25) -DEFINE_BIT(SHU_MISC_DRVING1_DIS_IMP_ODTN_TRACK, 30) -DEFINE_BIT(SHU_MISC_DRVING1_DIS_IMPCAL_HW, 31) - -/* DRAMC_REG_SHU_ZQ_SET0 */ -DEFINE_BITFIELD(SHU_ZQ_SET0_ZQCSCNT, 15, 0) -DEFINE_BITFIELD(SHU_ZQ_SET0_TZQLAT, 31, 27) - -/* DRAMC_REG_DCM_SUB_CTRL */ -DEFINE_BIT(DCM_SUB_CTRL_SUBCLK_CTRL_TX_TRACKING, 1) -DEFINE_BIT(DCM_SUB_CTRL_SUBCLK_CTRL_TX_AUTOK, 12) - -/* DDRPHY_REG_B0_PHY3 */ -DEFINE_BIT(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8) -DEFINE_BITFIELD(SHU_R0_CA_TXDLY1_TX_ARCA6_DLY, 23, 16) -DEFINE_BITFIELD(SHU_R0_CA_TXDLY1_TX_ARCA7_DLY, 31, 24) - -/* DRAMC_REG_CBT_WLEV_CTRL4 */ -DEFINE_BITFIELD(CBT_WLEV_CTRL4_CBT_TXDQ_B0, 7, 0) -DEFINE_BITFIELD(CBT_WLEV_CTRL4_CBT_TXDQ_B1, 15, 8) - -/* DRAMC_REG_CBT_WLEV_CTRL3 */ -DEFINE_BITFIELD(CBT_WLEV_CTRL3_DQSBX_G, 17, 14) - -/* DRAMC_REG_SWCMD_EN */ -DEFINE_BIT(SWCMD_EN_RDDQCEN, 5) -DEFINE_BIT(SWCMD_EN_MRWEN, 11) -DEFINE_BIT(SWCMD_EN_MRREN, 12) -DEFINE_BIT(SWCMD_EN_ZQCEN_SWTRIG, 16) -DEFINE_BIT(SWCMD_EN_ZQLATEN_SWTRIG, 17) -DEFINE_BIT(SWCMD_EN_WCK2DQI_START_SWTRIG, 18) - -/* DRAMC_REG_SPCMDRESP3 */ -DEFINE_BIT(SPCMDRESP3_ZQC_SWTRIG_RESPONSE, 1) -DEFINE_BIT(SPCMDRESP3_ZQLAT_SWTRIG_RESPONSE, 2) -DEFINE_BIT(SPCMDRESP3_WCK2DQI_START_SWTRIG_RESPONSE, 3) - -/* DDRPHY_REG_SHU_B0_RANK_SELPH_UI_DLY */ -DEFINE_BITFIELD(SHU_B0_RANK_SELPH_UI_DLY_RANKSEL_MCK_DLY_P0_B0, 18, 16) -DEFINE_BITFIELD(SHU_B0_RANK_SELPH_UI_DLY_RANKSEL_MCK_DLY_P1_B0, 22, 20) - -/* DDRPHY_REG_SHU_B1_RANK_SELPH_UI_DLY */ -DEFINE_BITFIELD(SHU_B1_RANK_SELPH_UI_DLY_RANKSEL_MCK_DLY_P0_B1, 18, 16) -DEFINE_BITFIELD(SHU_B1_RANK_SELPH_UI_DLY_RANKSEL_MCK_DLY_P1_B1, 22, 20) - -/* DRAMC_REG_RDDQCGOLDEN */ -DEFINE_BITFIELD(RDDQCGOLDEN_MR20_GOLDEN, 7, 0) -DEFINE_BITFIELD(RDDQCGOLDEN_MR15_GOLDEN, 15, 8) -DEFINE_BITFIELD(RDDQCGOLDEN_MR40_GOLDEN, 23, 16) -DEFINE_BITFIELD(RDDQCGOLDEN_MR32_GOLDEN, 31, 24) - -/* DDRPHY_REG_MISC_JMETER */ -DEFINE_BIT(MISC_JMETER_JMTR_EN, 0) - -/* DDRPHY_REG_MISC_DUTY_TOGGLE_CNT */ -DEFINE_BITFIELD(MISC_DUTY_TOGGLE_CNT_TOGGLE_CNT, 31, 0) - -/* DDRPHY_REG_MISC_DUTY_DQS0_ERR_CNT */ -DEFINE_BITFIELD(MISC_DUTY_DQS0_ERR_CNT_DQS0_ERR_CNT, 31, 0) - -/* DDRPHY_REG_DVFS_STATUS */ -DEFINE_BITFIELD(DVFS_STATUS_OTHER_SHU_GP, 17, 16) - -/* DDRPHY_REG_SHU_MISC_DRVING3 */ -DEFINE_BITFIELD(SHU_MISC_DRVING3_DQODTN2, 4, 0) -DEFINE_BITFIELD(SHU_MISC_DRVING3_DQODTP2, 9, 5) -DEFINE_BITFIELD(SHU_MISC_DRVING3_DQSODTN, 14, 10) -DEFINE_BITFIELD(SHU_MISC_DRVING3_DQSODTP, 19, 15) -DEFINE_BITFIELD(SHU_MISC_DRVING3_DQSODTN2, 24, 20) -DEFINE_BITFIELD(SHU_MISC_DRVING3_DQSODTP2, 29, 25) - -/* DDRPHY_REG_SHU_MISC_DRVING4 */ -DEFINE_BITFIELD(SHU_MISC_DRVING4_CMDODTN1, 4, 0) -DEFINE_BITFIELD(SHU_MISC_DRVING4_CMDODTP1, 9, 5) -DEFINE_BITFIELD(SHU_MISC_DRVING4_CMDODTN2, 14, 10) -DEFINE_BITFIELD(SHU_MISC_DRVING4_CMDODTP2, 19, 15) -DEFINE_BITFIELD(SHU_MISC_DRVING4_DQODTN1, 24, 20) -DEFINE_BITFIELD(SHU_MISC_DRVING4_DQODTP1, 29, 25) - -/* DDRPHY_REG_MISC_SHU_DRVING8 */ -DEFINE_BITFIELD(MISC_SHU_DRVING8_CS_DRVN, 4, 0) -DEFINE_BITFIELD(MISC_SHU_DRVING8_CS_DRVP, 12, 8) - -/* DDRPHY_REG_MISC_PHY_RGS_CMD */ -DEFINE_BIT(MISC_PHY_RGS_CMD_RGS_RIMPCALOUT, 24) - -/* DDRPHY_REG_SHU_CA_TXDUTY */ -DEFINE_BITFIELD(SHU_CA_TXDUTY_DA_TX_ARCLK_DUTY_DLY, 13, 8) - -/* DRAMC_REG_ADDR(DDRPHY_REG_SHU_B0_TXDUTY */ -DEFINE_BITFIELD(SHU_B0_TXDUTY_DA_TX_ARDQ_DUTY_DLY_B0, 5, 0) -DEFINE_BITFIELD(SHU_B0_TXDUTY_DA_TX_ARDQS_DUTY_DLY_B0, 13, 8) -DEFINE_BITFIELD(SHU_B0_TXDUTY_DA_TX_ARDQM_DUTY_DLY_B0, 21, 16) -DEFINE_BITFIELD(SHU_B0_TXDUTY_DA_TX_ARWCK_DUTY_DLY_B0, 29, 24) - -/* DRAMC_ADDR_SHIFT_CHN(DRAMC_REG_TEST2_A3 */ -DEFINE_BITFIELD(TEST2_A3_TESTCNT, 3, 0) - -/* DRAMC_REG_SHU_DQSOSC_SET0 */ -DEFINE_BIT(SHU_DQSOSC_SET0_DQSOSCENDIS, 0) -DEFINE_BITFIELD(SHU_DQSOSC_SET0_DQSOSC_PRDCNT, 13, 4) -DEFINE_BITFIELD(SHU_DQSOSC_SET0_DQSOSCENCNT, 31, 16) - -/* DRAMC_REG_SHURK_DQSOSC */ -DEFINE_BITFIELD(SHURK_DQSOSC_DQSOSC_BASE_RK0, 15, 0) -DEFINE_BITFIELD(SHURK_DQSOSC_DQSOSC_BASE_RK0_B1, 31, 16) - -/* DRAMC_REG_SHU_DQSOSCR */ -DEFINE_BITFIELD(SHU_DQSOSCR_DQSOSCRCNT, 7, 0) - -/* DRAMC_REG_SHURK_DQSOSC_THRD */ -DEFINE_BITFIELD(SHURK_DQSOSC_THRD_DQSOSCTHRD_INC, 11, 0) -DEFINE_BITFIELD(SHURK_DQSOSC_THRD_DQSOSCTHRD_DEC, 27, 16) - -/* DRAMC_REG_SHU_FREQ_RATIO_SET0 */ -DEFINE_BITFIELD(SHU_FREQ_RATIO_SET0_TDQSCK_JUMP_RATIO3, 7, 0) -DEFINE_BITFIELD(SHU_FREQ_RATIO_SET0_TDQSCK_JUMP_RATIO2, 15, 8) -DEFINE_BITFIELD(SHU_FREQ_RATIO_SET0_TDQSCK_JUMP_RATIO1, 23, 16) -DEFINE_BITFIELD(SHU_FREQ_RATIO_SET0_TDQSCK_JUMP_RATIO0, 31, 24) - -/* DRAMC_REG_SHU_FREQ_RATIO_SET1 */ -DEFINE_BITFIELD(SHU_FREQ_RATIO_SET1_TDQSCK_JUMP_RATIO7, 7, 0) -DEFINE_BITFIELD(SHU_FREQ_RATIO_SET1_TDQSCK_JUMP_RATIO6, 15, 8) -DEFINE_BITFIELD(SHU_FREQ_RATIO_SET1_TDQSCK_JUMP_RATIO5, 23, 16) -DEFINE_BITFIELD(SHU_FREQ_RATIO_SET1_TDQSCK_JUMP_RATIO4, 31, 24) - -/* DRAMC_REG_SHU_FREQ_RATIO_SET2 */ -DEFINE_BITFIELD(SHU_FREQ_RATIO_SET2_TDQSCK_JUMP_RATIO9, 23, 16) -DEFINE_BITFIELD(SHU_FREQ_RATIO_SET2_TDQSCK_JUMP_RATIO8, 31, 24) - -/* DDRPHY_REG_SHU_MISC_PRE_TDQSCK */ -DEFINE_BIT(SHU_MISC_PRE_TDQSCK_PRECAL_DISABLE, 0) - -/* DDRPHY_REG_MISC_PRE_TDQSCK1 */ -DEFINE_BIT(MISC_PRE_TDQSCK1_TDQSCK_HW_SW_UP_SEL, 22) -DEFINE_BIT(MISC_PRE_TDQSCK1_TDQSCK_REG_DVFS, 25) -DEFINE_BIT(MISC_PRE_TDQSCK1_TDQSCK_PRECAL_HW, 26) - -/* DRAMC_REG_MISC_STATUSA */ -DEFINE_BIT(MISC_STATUSA_REQQ_EMPTY, 2) -DEFINE_BITFIELD(MISC_STATUSA_REFRESH_QUEUE_CNT, 27, 24) - -/* DRAMC_REG_TEST2_A0 */ -DEFINE_BITFIELD(TEST2_A0_TEST2_PAT1, 7, 0) -DEFINE_BITFIELD(TEST2_A0_TEST2_PAT0, 15, 8) -DEFINE_BIT(TEST2_A0_LOOP_NV_END, 16) -DEFINE_BIT(TEST2_A0_ERR_BREAK_EN, 17) -DEFINE_BIT(TEST2_A0_TA2_LOOP_EN, 18) -DEFINE_BITFIELD(TEST2_A0_LOOP_CNT_INDEX, 23, 20) - -/* DRAMC_REG_TESTRPT */ -DEFINE_BITFIELD(TESTRPT_TESTSTAT, 22, 20) - -/* DRAMC_REG_MRR_STATUS */ -DEFINE_BITFIELD(MRR_STATUS_MRR_SW_REG, 31, 16) - -/* DRAMC_REG_SPCMDRESP */ -DEFINE_BIT(SPCMDRESP_MRW_RESPONSE, 0) - -/* DRAMC_REG_MISC_STATUSA */ -DEFINE_BITFIELD(MISC_STATUSA_REFRESH_RATE, 12, 8) - -/* DDRPHY_REG_SHU_CA_CMD0 */ -DEFINE_BIT(SHU_CA_CMD0_R_LP4Y_WDN_MODE_CLK, 31) - -/* DDRPHY_REG_SHU_B0_DQ0 */ -DEFINE_BIT(SHU_B0_DQ0_R_LP4Y_WDN_MODE_DQS0, 31) - -/* DDRPHY_REG_SHU_B1_DQ0 */ -DEFINE_BIT(SHU_B1_DQ0_R_LP4Y_WDN_MODE_DQS1, 31) - -#endif /* __SOC_MEDIATEK_MT8192_DRAMC_MACRO_DEF_H__ */ |