/u-boot/drivers/ddr/marvell/axp/ |
A D | ddr3_hw_training.c | 86 MV_DRAM_INFO dram_info; in ddr3_hw_training() local 94 memset(&dram_info, 0, sizeof(dram_info)); in ddr3_hw_training() 109 dram_info.ecc_ena = 1; in ddr3_hw_training() 113 dram_info.ecc_ena = 0; in ddr3_hw_training() 122 dram_info.num_of_total_pups = ddr_width / PUP_SIZE + dram_info.ecc_ena; in ddr3_hw_training() 147 dram_info.cwl = reg; in ddr3_hw_training() 302 &dram_info)) { in ddr3_hw_training() 504 tmp1 = (dram_info->rl_max_phase - dram_info->wl_min_phase) / 2 + in ddr3_set_performance_params() 505 (((dram_info->rl_max_phase - dram_info->wl_min_phase) % 2) > in ddr3_set_performance_params() 507 tmp2 = (dram_info->wl_max_phase - dram_info->rl_min_phase) / 2 + in ddr3_set_performance_params() [all …]
|
A D | ddr3_read_leveling.c | 47 MV_DRAM_INFO *dram_info); 94 dram_info->rl_max_phase = 0; in ddr3_read_leveling_hw() 95 dram_info->rl_min_phase = 10; in ddr3_read_leveling_hw() 151 dram_info->rd_rdy_dly = in ddr3_read_leveling_hw() 154 dram_info->rd_smpl_dly = in ddr3_read_leveling_hw() 223 reg |= (dram_info->cl << in ddr3_read_leveling_sw() 248 dram_info); in ddr3_read_leveling_sw() 256 dram_info) in ddr3_read_leveling_sw() 267 pup < (dram_info->num_of_std_pups + dram_info->ecc_ena); in ddr3_read_leveling_sw() 285 pup < (dram_info->num_of_std_pups + dram_info->ecc_ena); in ddr3_read_leveling_sw() [all …]
|
A D | ddr3_write_leveling.c | 50 MV_DRAM_INFO *dram_info); 340 dram_info->wl_val[cs] in ddr3_wl_supplement() 351 dram_info->wl_val[cs] in ddr3_wl_supplement() 355 dram_info->wl_val in ddr3_wl_supplement() 367 dram_info->wl_val in ddr3_wl_supplement() 371 dram_info->wl_val in ddr3_wl_supplement() 384 dram_info->wl_val[cs] in ddr3_wl_supplement() 387 dram_info->wl_val[cs] in ddr3_wl_supplement() 413 if (dram_info->ecc_ena) in ddr3_wl_supplement() 772 dram_info)) { in ddr3_write_leveling_sw() [all …]
|
A D | ddr3_hw_training.h | 251 typedef struct dram_info { struct 361 int ddr3_wl_supplement(MV_DRAM_INFO *dram_info); 366 int ddr3_pbs_tx(MV_DRAM_INFO *dram_info); 367 int ddr3_pbs_rx(MV_DRAM_INFO *dram_info); 368 int ddr3_load_pbs_patterns(MV_DRAM_INFO *dram_info); 370 int ddr3_dqs_centralization_rx(MV_DRAM_INFO *dram_info); 371 int ddr3_dqs_centralization_tx(MV_DRAM_INFO *dram_info); 372 int ddr3_load_dqs_patterns(MV_DRAM_INFO *dram_info); 377 void ddr3_set_performance_params(MV_DRAM_INFO *dram_info); 379 void ddr3_save_training(MV_DRAM_INFO *dram_info); [all …]
|
A D | ddr3_dqs.c | 98 switch (dram_info->ddr_width) { in ddr3_dqs_choose_pattern() 152 if (dram_info->cs_ena & (1 << cs)) { in ddr3_dqs_centralization_rx() 161 reg |= (dram_info->ecc_ena * in ddr3_dqs_centralization_rx() 234 if (dram_info->cs_ena & (1 << cs)) { in ddr3_dqs_centralization_tx() 241 reg |= (dram_info->ecc_ena * in ddr3_dqs_centralization_tx() 335 if (dram_info->cs_ena & (1 << cs_tmp)) in ddr3_find_adll_limits() 395 dram_info->wl_val[cs] in ddr3_find_adll_limits() 1336 if (dram_info->cs_ena & (1 << cs)) { in ddr3_load_dqs_patterns() 1339 if (dram_info->cs_ena & (1 << cs_tmp)) in ddr3_load_dqs_patterns() 1350 dram_info, (u32)NULL, NULL, in ddr3_load_dqs_patterns() [all …]
|
A D | ddr3_pbs.c | 76 int ddr3_pbs_tx(MV_DRAM_INFO *dram_info) in ddr3_pbs_tx() argument 105 pups = dram_info->num_of_total_pups; in ddr3_pbs_tx() 143 dram_info->num_of_std_pups + ecc; in ddr3_pbs_tx() 230 dram_info, &start_over, 1, in ddr3_pbs_tx() 378 ddr3_set_pbs_results(dram_info, 1); in ddr3_pbs_tx() 417 switch (dram_info->ddr_width) { in ddr3_tx_shift_dqs_adll_step_before_fail() 666 (dram_info, cur_pup, in ddr3_pbs_rx() 730 dram_info, &start_over, in ddr3_pbs_rx() 890 ddr3_set_pbs_results(dram_info, 0); in ddr3_pbs_rx() 928 switch (dram_info->ddr_width) { in ddr3_rx_shift_dqs_to_first_fail() [all …]
|
A D | ddr3_sdram.c | 163 int ddr3_sdram_compare(MV_DRAM_INFO *dram_info, u32 unlock_pup, in ddr3_sdram_compare() argument 174 if (dram_info->num_of_std_pups == PUP_NUM_64BIT) in ddr3_sdram_compare() 227 if (dram_info->num_of_std_pups == PUP_NUM_64BIT) in ddr3_sdram_dm_compare() 298 switch (dram_info->ddr_width) { in ddr3_sdram_pbs_compare() 316 max_pup = dram_info->num_of_std_pups; in ddr3_sdram_pbs_compare() 320 if (dram_info->num_of_std_pups == PUP_NUM_64BIT) in ddr3_sdram_pbs_compare() 348 if (dram_info->ddr_width > 16) { in ddr3_sdram_pbs_compare() 451 if (dram_info->num_of_std_pups == PUP_NUM_64BIT) in ddr3_sdram_direct_compare() 473 if (dram_info->ddr_width > 16) { in ddr3_sdram_direct_compare() 607 if (dram_info->num_of_std_pups == PUP_NUM_64BIT) in ddr3_sdram_dqs_compare() [all …]
|
A D | ddr3_dfs.c | 154 if (dram_info->reg_dimm) { in ddr3_dfs_high_2_low() 197 if (dram_info->cs_ena & (1 << cs)) { in ddr3_dfs_high_2_low() 394 if (dram_info->reg_dimm) { in ddr3_dfs_high_2_low() 443 if (dram_info->cs_ena & (1 << cs)) in ddr3_dfs_high_2_low() 469 if (dram_info->cs_ena & (1 << cs)) { in ddr3_dfs_high_2_low() 677 if (dram_info->cs_ena & (1 << cs)) { in ddr3_dfs_high_2_low() 1006 if (dram_info->cs_ena & (1 << cs)) { in ddr3_dfs_low_2_high() 1068 if (dram_info->reg_dimm) { in ddr3_dfs_low_2_high() 1138 if (dram_info->cs_ena & (1 << cs)) in ddr3_dfs_low_2_high() 1511 reg |= (dram_info->cl << in ddr3_dfs_low_2_high() [all …]
|
A D | xor.c | 24 void mv_sys_xor_init(MV_DRAM_INFO *dram_info) in mv_sys_xor_init() argument 35 for (ui = 0; ui < (dram_info->num_cs + 1); ui++) { in mv_sys_xor_init() 46 reg_write(XOR_BASE_ADDR_REG(0, dram_info->num_cs), base); in mv_sys_xor_init() 48 reg_write(XOR_SIZE_MASK_REG(0, dram_info->num_cs), 0x03FF0000); in mv_sys_xor_init() 52 if (dram_info->cs_ena & (1 << ui)) { in mv_sys_xor_init()
|
A D | xor.h | 64 void mv_sys_xor_init(MV_DRAM_INFO *dram_info);
|
/u-boot/drivers/ram/rockchip/ |
A D | sdram_rk3308.c | 14 struct dram_info { struct 21 struct dram_info *priv = dev_get_priv(dev); in rk3308_dmc_probe() argument 32 struct dram_info *priv = dev_get_priv(dev); in rk3308_dmc_get_info() 54 .priv_auto = sizeof(struct dram_info),
|
A D | sdram_px30.c | 22 struct dram_info { struct 125 struct dram_info dram_info; variable 485 static int sdram_init_(struct dram_info *dram, in sdram_init_() 700 dram_info.phy = (void *)DDR_PHY_BASE_ADDR; in sdram_init() 701 dram_info.pctl = (void *)DDRC_BASE_ADDR; in sdram_init() 702 dram_info.grf = (void *)GRF_BASE_ADDR; in sdram_init() 703 dram_info.cru = (void *)CRU_BASE_ADDR; in sdram_init() 706 dram_info.pmugrf = (void *)PMUGRF_BASE_ADDR; in sdram_init() 725 struct dram_info *priv = dev_get_priv(dev); in px30_dmc_probe() 738 struct dram_info *priv = dev_get_priv(dev); in px30_dmc_get_info() [all …]
|
A D | sdram_rk3128.c | 15 struct dram_info { struct 22 struct dram_info *priv = dev_get_priv(dev); in rk3128_dmc_probe() argument 35 struct dram_info *priv = dev_get_priv(dev); in rk3128_dmc_get_info() 57 .priv_auto = sizeof(struct dram_info),
|
A D | sdram_rk3328.c | 24 struct dram_info { struct 66 static void rkclk_ddr_reset(struct dram_info *dram, in rkclk_ddr_reset() 119 static void rkclk_configure_ddr(struct dram_info *dram, in rkclk_configure_ddr() 304 static void dram_all_config(struct dram_info *dram, in dram_all_config() 320 static void enable_low_power(struct dram_info *dram, in enable_low_power() 342 static int sdram_init(struct dram_info *dram, in sdram_init() 398 static u64 dram_detect_cap(struct dram_info *dram, in dram_detect_cap() 516 struct dram_info *priv = dev_get_priv(dev); in rk3328_dmc_init() 579 struct dram_info *priv = dev_get_priv(dev); in rk3328_dmc_probe() 592 struct dram_info *priv = dev_get_priv(dev); in rk3328_dmc_get_info() [all …]
|
A D | sdram_rk322x.c | 34 struct dram_info { struct 365 static void phy_softreset(struct dram_info *dram) in phy_softreset() 380 static void set_bw(struct dram_info *dram, u32 bw) in set_bw() 579 static void dram_all_config(const struct dram_info *dram, in dram_all_config() 602 static int dram_cap_detect(struct dram_info *dram, in dram_cap_detect() 687 static int sdram_init(struct dram_info *dram, in sdram_init() 787 struct dram_info *priv = dev_get_priv(dev); in rk322x_dmc_probe() 825 struct dram_info *priv = dev_get_priv(dev); in rk322x_dmc_get_info() 850 .priv_auto = sizeof(struct dram_info),
|
A D | sdram_rk3288.c | 39 struct dram_info { struct 594 static void dram_all_config(const struct dram_info *dram, in dram_all_config() 622 static int sdram_rank_bw_detect(struct dram_info *dram, int channel, in sdram_rank_bw_detect() 675 static int sdram_col_row_detect(struct dram_info *dram, int channel, in sdram_col_row_detect() 785 static int sdram_init(struct dram_info *dram, in sdram_init() 931 static int veyron_init(struct dram_info *priv) in veyron_init() 958 struct dram_info *priv = dev_get_priv(dev); in setup_sdram() 1004 struct dram_info *priv = dev_get_priv(dev); in rk3288_dmc_of_to_plat() 1049 struct dram_info *priv = dev_get_priv(dev); in rk3288_dmc_probe() 1099 struct dram_info *priv = dev_get_priv(dev); in rk3288_dmc_get_info() [all …]
|
A D | sdram_rk3188.c | 37 struct dram_info { struct 536 static void dram_all_config(const struct dram_info *dram, in dram_all_config() 568 static int sdram_rank_bw_detect(struct dram_info *dram, int channel, in sdram_rank_bw_detect() 629 static int sdram_col_row_detect(struct dram_info *dram, int channel, in sdram_col_row_detect() 713 static int sdram_init(struct dram_info *dram, in sdram_init() 811 struct dram_info *priv = dev_get_priv(dev); in setup_sdram() 886 struct dram_info *priv = dev_get_priv(dev); in rk3188_dmc_probe() 931 struct dram_info *priv = dev_get_priv(dev); in rk3188_dmc_get_info() 956 .priv_auto = sizeof(struct dram_info),
|
A D | dmc-rk3368.c | 27 struct dram_info { struct 606 struct dram_info *priv = dev_get_priv(dev); in sdram_col_row_detect() 775 struct dram_info *priv = dev_get_priv(dev); in dram_all_config() 800 struct dram_info *priv = dev_get_priv(dev); in setup_sdram() 923 struct dram_info *priv = dev_get_priv(dev); in rk3368_dmc_probe() 979 struct dram_info *priv = dev_get_priv(dev); in rk3368_dmc_get_info() 1001 .priv_auto = sizeof(struct dram_info), 1004 .priv_auto = sizeof(struct dram_info),
|
A D | sdram_rk3399.c | 66 struct dram_info { struct 87 int (*set_rate_index)(struct dram_info *dram, 787 static void pctl_start(struct dram_info *dram, in pctl_start() 2468 static void lpddr4_set_phy(struct dram_info *dram, in lpddr4_set_phy() 2479 static int lpddr4_set_ctl(struct dram_info *dram, in lpddr4_set_ctl() 2541 static int lpddr4_set_rate(struct dram_info *dram, in lpddr4_set_rate() 2902 static int sdram_init(struct dram_info *dram, in sdram_init() 3068 struct dram_info *priv = dev_get_priv(dev); in rk3399_dmc_init() 3141 struct dram_info *priv = dev_get_priv(dev); in rk3399_dmc_probe() 3154 struct dram_info *priv = dev_get_priv(dev); in rk3399_dmc_get_info() [all …]
|
/u-boot/drivers/ram/aspeed/ |
A D | sdram_ast2500.c | 68 struct dram_info { struct 95 static void ast2500_ddr_phy_init_process(struct dram_info *info) in ast2500_ddr_phy_init_process() argument 116 static int ast2500_ddr_cbr_test(struct dram_info *info) in ast2500_ddr_cbr_test() 198 static void ast2500_sdrammc_calc_size(struct dram_info *info) in ast2500_sdrammc_calc_size() 242 static int ast2500_sdrammc_init_ddr4(struct dram_info *info) in ast2500_sdrammc_init_ddr4() 316 static void ast2500_sdrammc_unlock(struct dram_info *info) in ast2500_sdrammc_unlock() 323 static void ast2500_sdrammc_lock(struct dram_info *info) in ast2500_sdrammc_lock() 333 struct dram_info *priv = (struct dram_info *)dev_get_priv(dev); in ast2500_sdrammc_probe() 392 struct dram_info *priv = dev_get_priv(dev); in ast2500_sdrammc_of_to_plat() 416 struct dram_info *priv = dev_get_priv(dev); in ast2500_sdrammc_get_info() [all …]
|
A D | sdram_ast2600.c | 429 struct dram_info { struct 618 int ast2600_sdrammc_cbr_test(struct dram_info *info) in ast2600_sdrammc_cbr_test() 638 static int ast2600_sdrammc_test(struct dram_info *info) in ast2600_sdrammc_test() 719 static void ast2600_sdrammc_calc_size(struct dram_info *info) in ast2600_sdrammc_calc_size() 762 static int ast2600_sdrammc_init_ddr4(struct dram_info *info) in ast2600_sdrammc_init_ddr4() 808 static void ast2600_sdrammc_unlock(struct dram_info *info) in ast2600_sdrammc_unlock() 815 static void ast2600_sdrammc_lock(struct dram_info *info) in ast2600_sdrammc_lock() 945 struct dram_info *priv = (struct dram_info *)dev_get_priv(dev); in ast2600_sdrammc_probe() 1020 struct dram_info *priv = dev_get_priv(dev); in ast2600_sdrammc_of_to_plat() 1038 struct dram_info *priv = dev_get_priv(dev); in ast2600_sdrammc_get_info() [all …]
|