Lines Matching refs:mrc_params
70 static void mrc_adjust_params(struct mrc_params *mrc_params) in mrc_adjust_params() argument
80 mrc_params->status = MRC_SUCCESS; in mrc_adjust_params()
82 dram_width = mrc_params->dram_width; in mrc_adjust_params()
83 rank_enables = mrc_params->rank_enables; in mrc_adjust_params()
84 channel_width = mrc_params->channel_width; in mrc_adjust_params()
92 mrc_params->board_id = 2; /* select x8 layout */ in mrc_adjust_params()
94 mrc_params->board_id = 0; /* select x16 layout */ in mrc_adjust_params()
97 mrc_params->mem_size = 0; in mrc_adjust_params()
100 dram_params = &mrc_params->params; in mrc_adjust_params()
107 mrc_params->column_bits[0] = in mrc_adjust_params()
120 mrc_params->row_bits[0] = 12 + dram_params[0].density + in mrc_adjust_params()
140 mrc_params->channel_size[0] = 1 << dram_params[0].density; in mrc_adjust_params()
141 mrc_params->channel_size[0] *= (dram_width == X8) ? 2 : 1; in mrc_adjust_params()
142 mrc_params->channel_size[0] *= (rank_enables == 0x3) ? 2 : 1; in mrc_adjust_params()
143 mrc_params->channel_size[0] *= (channel_width == X16) ? 1 : 2; 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
160 if (mrc_params->boot_mode != BM_COLD) { in mrc_mem_init()
161 if (mrc_params->ddr_speed != mrc_params->timings.ddr_speed) { in mrc_mem_init()
163 mrc_params->boot_mode = BM_COLD; in mrc_mem_init()
170 if (mrc_params->boot_mode & init[i].boot_path) { 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()
201 mrc_mem_init(mrc_params); in mrc_init()