Home
last modified time | relevance | path

Searched refs:ctrl_num (Results 1 – 25 of 71) sorted by relevance

123

/external/u-boot/drivers/ddr/fsl/
Dctrl_regs.c84 const unsigned int ctrl_num) in compute_cas_write_latency() argument
87 const unsigned int mclk_ps = get_memory_clk_period_ps(ctrl_num); in compute_cas_write_latency()
118 const unsigned int ctrl_num) in compute_cas_write_latency() argument
121 const unsigned int mclk_ps = get_memory_clk_period_ps(ctrl_num); in compute_cas_write_latency()
294 static void set_timing_cfg_0(const unsigned int ctrl_num, in set_timing_cfg_0() argument
314 const unsigned int mclk_ps = get_memory_clk_period_ps(ctrl_num); in set_timing_cfg_0()
320 unsigned int data_rate = get_ddr_freq(ctrl_num); in set_timing_cfg_0()
342 act_pd_exit_mclk = picos_to_mclk(ctrl_num, txp); in set_timing_cfg_0()
348 tmrd_mclk = max(24U, picos_to_mclk(ctrl_num, 15000)); in set_timing_cfg_0()
350 unsigned int data_rate = get_ddr_freq(ctrl_num); in set_timing_cfg_0()
[all …]
Dutil.c27 u32 fsl_ddr_get_version(unsigned int ctrl_num) in fsl_ddr_get_version() argument
32 switch (ctrl_num) { in fsl_ddr_get_version()
52 printf("%s unexpected ctrl_num = %u\n", __func__, ctrl_num); in fsl_ddr_get_version()
69 unsigned int get_memory_clk_period_ps(const unsigned int ctrl_num) in get_memory_clk_period_ps() argument
71 unsigned int data_rate = get_ddr_freq(ctrl_num); in get_memory_clk_period_ps()
85 unsigned int picos_to_mclk(const unsigned int ctrl_num, unsigned int picos) in picos_to_mclk() argument
88 unsigned long data_rate = get_ddr_freq(ctrl_num); in picos_to_mclk()
114 unsigned int mclk_to_picos(const unsigned int ctrl_num, unsigned int mclk) in mclk_to_picos() argument
116 return get_memory_clk_period_ps(ctrl_num) * mclk; in mclk_to_picos()
123 unsigned int ctrl_num) in __fsl_ddr_set_lawbar() argument
[all …]
Doptions.c27 unsigned int ctrl_num);
742 unsigned int ctrl_num) in populate_memctl_options() argument
980 debug("mclk_ps = %u ps\n", get_memory_clk_period_ps(ctrl_num)); in populate_memctl_options()
1035 popts->bstopre = picos_to_mclk(ctrl_num, common_dimm->refresh_rate_ps) in populate_memctl_options()
1046 popts->tfaw_window_four_activates_ps = mclk_to_picos(ctrl_num, 1); in populate_memctl_options()
1094 printf("There is no rank on CS0 for controller %d.\n", ctrl_num); in populate_memctl_options()
1116 ((CONFIG_SYS_NUM_DDR_CTLRS == 3) && ctrl_num == 2) ? in populate_memctl_options()
1119 ((CONFIG_SYS_NUM_DDR_CTLRS == 3) && ctrl_num == 2) ? in populate_memctl_options()
1125 ((CONFIG_SYS_NUM_DDR_CTLRS == 3) && ctrl_num == 2) ? in populate_memctl_options()
1128 ((CONFIG_SYS_NUM_DDR_CTLRS == 3) && ctrl_num == 2) ? in populate_memctl_options()
[all …]
Dlc_common_dimm_params.c14 compute_cas_latency(const unsigned int ctrl_num, in compute_cas_latency() argument
24 const unsigned int mclk_ps = get_memory_clk_period_ps(ctrl_num); in compute_cas_latency()
73 compute_cas_latency(const unsigned int ctrl_num, in compute_cas_latency() argument
79 const unsigned int mclk_ps = get_memory_clk_period_ps(ctrl_num); in compute_cas_latency()
214 compute_lowest_common_dimm_parameters(const unsigned int ctrl_num, in compute_lowest_common_dimm_parameters() argument
449 if (compute_cas_latency(ctrl_num, dimm_params, in compute_lowest_common_dimm_parameters()
526 (picos_to_mclk(ctrl_num, trcd_ps) > in compute_lowest_common_dimm_parameters()
528 additive_latency = picos_to_mclk(ctrl_num, trcd_ps) - in compute_lowest_common_dimm_parameters()
530 if (mclk_to_picos(ctrl_num, additive_latency) > trcd_ps) { in compute_lowest_common_dimm_parameters()
531 additive_latency = picos_to_mclk(ctrl_num, trcd_ps); in compute_lowest_common_dimm_parameters()
[all …]
Dfsl_ddr_gen4.c51 unsigned int ctrl_num, int step) in fsl_ddr_set_memctl_regs() argument
73 switch (ctrl_num) { in fsl_ddr_set_memctl_regs()
93 printf("%s unexpected ctrl_num = %u\n", __func__, ctrl_num); in fsl_ddr_set_memctl_regs()
258 if (fsl_ddr_get_version(ctrl_num) == 0x50200) { in fsl_ddr_set_memctl_regs()
267 } else if (fsl_ddr_get_version(ctrl_num) == 0x50201) { in fsl_ddr_set_memctl_regs()
293 temp32 = get_ddr_freq(ctrl_num) / 1000000; in fsl_ddr_set_memctl_regs()
358 ctrl_num, ddr_in32(&ddr->debug[1])); in fsl_ddr_set_memctl_regs()
363 if (fsl_ddr_get_version(ctrl_num) == 0x50200) { in fsl_ddr_set_memctl_regs()
408 ctrl_num, ddr_in32(&ddr->debug[1])); in fsl_ddr_set_memctl_regs()
460 (get_ddr_freq(ctrl_num) >> 20)) << 2; in fsl_ddr_set_memctl_regs()
[all …]
Dddr1_dimm_params.c220 unsigned int ddr_compute_dimm_parameters(const unsigned int ctrl_num, in ddr_compute_dimm_parameters() argument
303 get_memory_clk_period_ps(ctrl_num)); in ddr_compute_dimm_parameters()
310 pdimm->twr_ps = mclk_to_picos(ctrl_num, 3); in ddr_compute_dimm_parameters()
311 pdimm->twtr_ps = mclk_to_picos(ctrl_num, 1); in ddr_compute_dimm_parameters()
326 pdimm->trtp_ps = mclk_to_picos(ctrl_num, 2); /* By the book. */ in ddr_compute_dimm_parameters()
/external/u-boot/include/
Dfsl_ddr.h34 u32 fsl_ddr_get_version(unsigned int ctrl_num);
42 compute_dimm_parameters(const unsigned int ctrl_num, in compute_dimm_parameters() argument
47 return ddr_compute_dimm_parameters(ctrl_num, spd, pdimm, dimm_number); in compute_dimm_parameters()
90 unsigned int compute_fsl_memctl_config_regs(const unsigned int ctrl_num,
98 const unsigned int ctrl_num,
105 unsigned int ctrl_num);
108 unsigned int mclk_to_picos(const unsigned int ctrl_num, unsigned int mclk);
109 unsigned int get_memory_clk_period_ps(const unsigned int ctrl_num);
110 unsigned int picos_to_mclk(const unsigned int ctrl_num, unsigned int picos);
114 unsigned int ctrl_num);
[all …]
/external/u-boot/board/freescale/ls2080aqds/
Dddr.c17 unsigned int ctrl_num) in fsl_ddr_board_options() argument
26 if (ctrl_num > 2) { in fsl_ddr_board_options()
27 printf("Not supported controller number %d\n", ctrl_num); in fsl_ddr_board_options()
44 pbsp = rdimms[ctrl_num]; in fsl_ddr_board_options()
46 pbsp = udimms[ctrl_num]; in fsl_ddr_board_options()
52 ddr_freq = get_ddr_freq(ctrl_num) / 1000000; in fsl_ddr_board_options()
86 if (ctrl_num == CONFIG_DP_DDR_CTRL) { in fsl_ddr_board_options()
/external/u-boot/board/freescale/ls2080ardb/
Dddr.c17 unsigned int ctrl_num) in fsl_ddr_board_options() argument
26 if (ctrl_num > 2) { in fsl_ddr_board_options()
27 printf("Not supported controller number %d\n", ctrl_num); in fsl_ddr_board_options()
44 pbsp = rdimms[ctrl_num]; in fsl_ddr_board_options()
46 pbsp = udimms[ctrl_num]; in fsl_ddr_board_options()
52 ddr_freq = get_ddr_freq(ctrl_num) / 1000000; in fsl_ddr_board_options()
86 if (ctrl_num == CONFIG_DP_DDR_CTRL) { in fsl_ddr_board_options()
/external/u-boot/board/freescale/mpc8572ds/
Dddr.c111 unsigned int ctrl_num) in fsl_ddr_board_options() argument
116 if (ctrl_num > 1) { in fsl_ddr_board_options()
117 printf("Wrong parameter for controller number %d", ctrl_num); in fsl_ddr_board_options()
124 pbsp = rdimms[ctrl_num]; in fsl_ddr_board_options()
126 pbsp = udimms[ctrl_num]; in fsl_ddr_board_options()
/external/u-boot/board/freescale/ls2080a/
Dddr.c17 unsigned int ctrl_num) in fsl_ddr_board_options() argument
22 if (ctrl_num > 3) { in fsl_ddr_board_options()
23 printf("Not supported controller number %d\n", ctrl_num); in fsl_ddr_board_options()
34 pbsp = rdimms[ctrl_num]; in fsl_ddr_board_options()
36 pbsp = udimms[ctrl_num]; in fsl_ddr_board_options()
76 if (ctrl_num == CONFIG_DP_DDR_CTRL) { in fsl_ddr_board_options()
/external/u-boot/board/varisys/cyrus/
Dddr.c97 unsigned int ctrl_num) in fsl_ddr_board_options() argument
102 if (ctrl_num > 1) { in fsl_ddr_board_options()
103 printf("Wrong parameter for controller number %d", ctrl_num); in fsl_ddr_board_options()
110 pbsp = rdimms[ctrl_num]; in fsl_ddr_board_options()
112 pbsp = udimms[ctrl_num]; in fsl_ddr_board_options()
/external/u-boot/board/freescale/mpc8641hpcn/
Dddr.c55 unsigned int ctrl_num) in fsl_ddr_board_options() argument
61 if (ctrl_num > 1) { in fsl_ddr_board_options()
62 printf("Wrong parameter for controller number %d", ctrl_num); in fsl_ddr_board_options()
72 pbsp = dimms[ctrl_num]; in fsl_ddr_board_options()
/external/u-boot/board/xes/xpedite517x/
Dddr.c94 unsigned int ctrl_num) in fsl_ddr_board_options() argument
96 struct board_memctl_options *bopts = bopts_ctrl[ctrl_num]; in fsl_ddr_board_options()
104 for (i = 0; i < ARRAY_SIZE(bopts_ctrl[ctrl_num]); i++) { in fsl_ddr_board_options()
107 debug("controller %d:\n", ctrl_num); in fsl_ddr_board_options()
/external/u-boot/board/xes/xpedite537x/
Dddr.c204 unsigned int ctrl_num) in fsl_ddr_board_options() argument
206 struct board_memctl_options *bopts = bopts_ctrl[ctrl_num]; in fsl_ddr_board_options()
214 for (i = 0; i < ARRAY_SIZE(bopts_ctrl[ctrl_num]); i++) { in fsl_ddr_board_options()
217 debug("controller %d:\n", ctrl_num); in fsl_ddr_board_options()
/external/u-boot/board/freescale/corenet_ds/
Dddr.c187 unsigned int ctrl_num) in fsl_ddr_board_options() argument
192 if (ctrl_num > 1) { in fsl_ddr_board_options()
193 printf("Wrong parameter for controller number %d", ctrl_num); in fsl_ddr_board_options()
200 pbsp = rdimms[ctrl_num]; in fsl_ddr_board_options()
202 pbsp = udimms[ctrl_num]; in fsl_ddr_board_options()
/external/u-boot/board/keymile/kmp204x/
Dddr.c20 unsigned int ctrl_num) in fsl_ddr_board_options() argument
22 if (ctrl_num) { in fsl_ddr_board_options()
23 printf("Wrong parameter for controller number %d", ctrl_num); in fsl_ddr_board_options()
/external/u-boot/board/gdsys/p1022/
Dddr.c15 unsigned int ctrl_num) in fsl_ddr_board_options() argument
19 if (ctrl_num) { in fsl_ddr_board_options()
20 printf("Wrong parameter for controller number %d", ctrl_num); in fsl_ddr_board_options()
/external/u-boot/board/xes/xpedite550x/
Dddr.c69 unsigned int ctrl_num) in fsl_ddr_board_options() argument
72 &(board_specific_parameters[ctrl_num][0]); in fsl_ddr_board_options()
73 u32 num_params = sizeof(board_specific_parameters[ctrl_num]) / in fsl_ddr_board_options()
/external/u-boot/board/freescale/p1022ds/
Dddr.c41 unsigned int ctrl_num) in fsl_ddr_board_options() argument
48 if (ctrl_num) { in fsl_ddr_board_options()
49 printf("Wrong parameter for controller number %d", ctrl_num); in fsl_ddr_board_options()
/external/u-boot/board/freescale/ls1046ardb/
Dddr.c19 unsigned int ctrl_num) in fsl_ddr_board_options() argument
24 if (ctrl_num > 1) { in fsl_ddr_board_options()
25 printf("Not supported controller number %d\n", ctrl_num); in fsl_ddr_board_options()
/external/u-boot/board/freescale/ls1046aqds/
Dddr.c19 unsigned int ctrl_num) in fsl_ddr_board_options() argument
24 if (ctrl_num > 3) { in fsl_ddr_board_options()
25 printf("Not supported controller number %d\n", ctrl_num); in fsl_ddr_board_options()
/external/u-boot/board/freescale/t208xrdb/
Dddr.c19 unsigned int ctrl_num) in fsl_ddr_board_options() argument
24 if (ctrl_num > 1) { in fsl_ddr_board_options()
25 printf("Not supported controller number %d\n", ctrl_num); in fsl_ddr_board_options()
/external/u-boot/board/freescale/p2041rdb/
Dddr.c51 unsigned int ctrl_num) in fsl_ddr_board_options() argument
56 if (ctrl_num) { in fsl_ddr_board_options()
57 printf("Wrong parameter for controller number %d", ctrl_num); in fsl_ddr_board_options()
/external/u-boot/board/freescale/t4rdb/
Dddr.c19 unsigned int ctrl_num) in fsl_ddr_board_options() argument
24 if (ctrl_num > 2) { in fsl_ddr_board_options()
25 printf("Not supported controller number %d\n", ctrl_num); in fsl_ddr_board_options()

123