/openbmc/u-boot/arch/x86/cpu/quark/ |
H A D | dram.c | 19 static __maybe_unused int prepare_mrc_cache(struct mrc_params *mrc_params) in prepare_mrc_cache() argument 42 static int mrc_configure_params(struct mrc_params *mrc_params) in mrc_configure_params() argument 55 mrc_params->boot_mode = prepare_mrc_cache(mrc_params); in mrc_configure_params() 56 if (mrc_params->boot_mode) in mrc_configure_params() 116 mrc_params->params.density, mrc_params->params.cl, in mrc_configure_params() 117 mrc_params->params.ras, mrc_params->params.wtr, in mrc_configure_params() 118 mrc_params->params.rrd, mrc_params->params.faw); in mrc_configure_params() 125 struct mrc_params mrc_params; in dram_init() local 131 memset(&mrc_params, 0, sizeof(struct mrc_params)); in dram_init() 137 mrc_init(&mrc_params); in dram_init() [all …]
|
H A D | mrc.c | 70 static void mrc_adjust_params(struct mrc_params *mrc_params) in mrc_adjust_params() argument 97 mrc_params->mem_size = 0; in mrc_adjust_params() 107 mrc_params->column_bits[0] = in mrc_adjust_params() 146 mrc_params->mem_size += mrc_params->channel_size[0] << 26; in mrc_adjust_params() 151 static void mrc_mem_init(struct mrc_params *mrc_params) in mrc_mem_init() argument 161 if (mrc_params->ddr_speed != mrc_params->timings.ddr_speed) { in mrc_mem_init() 176 init[i].init_fn(mrc_params); in mrc_mem_init() 182 print_timings(mrc_params); in mrc_mem_init() 190 void mrc_init(struct mrc_params *mrc_params) in mrc_init() argument 198 mrc_adjust_params(mrc_params); in mrc_init() [all …]
|
H A D | smc.h | 511 void ddrphy_init(struct mrc_params *mrc_params); 516 void rcvn_cal(struct mrc_params *mrc_params); 517 void wr_level(struct mrc_params *mrc_params); 518 void prog_page_ctrl(struct mrc_params *mrc_params); 519 void rd_train(struct mrc_params *mrc_params); 520 void wr_train(struct mrc_params *mrc_params); 521 void store_timings(struct mrc_params *mrc_params); 524 void prog_dra_drb(struct mrc_params *mrc_params); 525 void perform_wake(struct mrc_params *mrc_params); 528 void ecc_enable(struct mrc_params *mrc_params); [all …]
|
H A D | smc.c | 52 void clear_self_refresh(struct mrc_params *mrc_params) in clear_self_refresh() argument 63 void prog_ddr_timing_control(struct mrc_params *mrc_params) in prog_ddr_timing_control() argument 230 void perform_ddr_reset(struct mrc_params *mrc_params) in perform_ddr_reset() argument 252 void ddrphy_init(struct mrc_params *mrc_params) in ddrphy_init() argument 1402 void rcvn_cal(struct mrc_params *mrc_params) in rcvn_cal() argument 1549 void wr_level(struct mrc_params *mrc_params) in wr_level() argument 1784 void rd_train(struct mrc_params *mrc_params) in rd_train() argument 2082 void wr_train(struct mrc_params *mrc_params) in wr_train() argument 2391 void prog_dra_drb(struct mrc_params *mrc_params) in prog_dra_drb() argument 2543 void ecc_enable(struct mrc_params *mrc_params) in ecc_enable() argument [all …]
|
H A D | mrc_util.h | 107 uint32_t sample_dqs(struct mrc_params *mrc_params, uint8_t channel, 109 void find_rising_edge(struct mrc_params *mrc_params, uint32_t delay[], 111 uint32_t byte_lane_mask(struct mrc_params *mrc_params); 112 uint32_t check_rw_coarse(struct mrc_params *mrc_params, uint32_t address); 113 uint32_t check_bls_ex(struct mrc_params *mrc_params, uint32_t address); 116 void print_timings(struct mrc_params *mrc_params);
|
H A D | hte.c | 86 static u16 hte_basic_data_cmp(struct mrc_params *mrc_params, u32 addr, in hte_basic_data_cmp() argument 141 static u16 hte_rw_data_cmp(struct mrc_params *mrc_params, u32 addr, in hte_rw_data_cmp() argument 207 u32 hte_mem_init(struct mrc_params *mrc_params, u8 flag) in hte_mem_init() argument 225 msg_port_write(HTE, 0x00020022, (mrc_params->mem_size >> 6) - 1); in hte_mem_init() 297 u16 hte_basic_write_read(struct mrc_params *mrc_params, u32 addr, in hte_basic_write_read() argument 308 errors = hte_basic_data_cmp(mrc_params, addr, first_run, mode); in hte_basic_write_read() 326 u16 hte_write_stress_bit_lanes(struct mrc_params *mrc_params, in hte_write_stress_bit_lanes() argument 348 errors = hte_rw_data_cmp(mrc_params, addr, HTE_LOOP_CNT, in hte_write_stress_bit_lanes()
|
H A D | hte.h | 36 u32 hte_mem_init(struct mrc_params *mrc_params, u8 flag); 37 u16 hte_basic_write_read(struct mrc_params *mrc_params, u32 addr, 39 u16 hte_write_stress_bit_lanes(struct mrc_params *mrc_params,
|
H A D | mrc_util.c | 1022 uint32_t sample_dqs(struct mrc_params *mrc_params, uint8_t channel, in sample_dqs() argument 1048 mrc_params->first_run = 0; in sample_dqs() 1089 void find_rising_edge(struct mrc_params *mrc_params, uint32_t delay[], in find_rising_edge() argument 1106 mrc_params->first_run = 1; in find_rising_edge() 1253 uint32_t byte_lane_mask(struct mrc_params *mrc_params) in byte_lane_mask() argument 1282 uint32_t check_rw_coarse(struct mrc_params *mrc_params, uint32_t address) in check_rw_coarse() argument 1287 if (mrc_params->hte_setup) { in check_rw_coarse() 1288 mrc_params->hte_setup = 0; in check_rw_coarse() 1306 uint32_t check_bls_ex(struct mrc_params *mrc_params, uint32_t address) in check_bls_ex() argument 1312 mrc_params->hte_setup = 0; in check_bls_ex() [all …]
|
/openbmc/u-boot/arch/x86/include/asm/arch-quark/ |
H A D | mrc.h | 108 struct mrc_params { struct 167 void (*init_fn)(struct mrc_params *mrc_params); argument 184 void mrc_init(struct mrc_params *mrc_params);
|