mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-19 00:44:44 -04:00
mpc8xxx: Display RDIMM if detected
Print a message when a RDIMM is detected. Signed-off-by: York Sun <yorksun@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
243be8e296
commit
dd12768974
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2008 Freescale Semiconductor, Inc.
|
* Copyright 2008-2011 Freescale Semiconductor, Inc.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
@ -98,7 +98,7 @@ compute_lowest_common_dimm_parameters(const dimm_params_t *dimm_params,
|
|||||||
unsigned int tDQSQ_max_ps = 0;
|
unsigned int tDQSQ_max_ps = 0;
|
||||||
unsigned int tQHS_ps = 0;
|
unsigned int tQHS_ps = 0;
|
||||||
|
|
||||||
unsigned int temp1, temp2, temp3;
|
unsigned int temp1, temp2;
|
||||||
unsigned int additive_latency = 0;
|
unsigned int additive_latency = 0;
|
||||||
#if !defined(CONFIG_FSL_DDR3)
|
#if !defined(CONFIG_FSL_DDR3)
|
||||||
const unsigned int mclk_ps = get_memory_clk_period_ps();
|
const unsigned int mclk_ps = get_memory_clk_period_ps();
|
||||||
@ -215,18 +215,14 @@ compute_lowest_common_dimm_parameters(const dimm_params_t *dimm_params,
|
|||||||
}
|
}
|
||||||
|
|
||||||
outpdimm->all_DIMMs_registered = 0;
|
outpdimm->all_DIMMs_registered = 0;
|
||||||
|
outpdimm->all_DIMMs_unbuffered = 0;
|
||||||
if (temp1 && !temp2) {
|
if (temp1 && !temp2) {
|
||||||
outpdimm->all_DIMMs_registered = 1;
|
outpdimm->all_DIMMs_registered = 1;
|
||||||
}
|
printf("Detected RDIMM(s)\n");
|
||||||
|
} else if (!temp1 && temp2) {
|
||||||
outpdimm->all_DIMMs_unbuffered = 0;
|
|
||||||
if (!temp1 && temp2) {
|
|
||||||
outpdimm->all_DIMMs_unbuffered = 1;
|
outpdimm->all_DIMMs_unbuffered = 1;
|
||||||
}
|
printf("Detected UDIMM(s)\n");
|
||||||
|
} else {
|
||||||
/* CHECKME: */
|
|
||||||
if (!outpdimm->all_DIMMs_registered
|
|
||||||
&& !outpdimm->all_DIMMs_unbuffered) {
|
|
||||||
printf("ERROR: Mix of registered buffered and unbuffered "
|
printf("ERROR: Mix of registered buffered and unbuffered "
|
||||||
"DIMMs detected!\n");
|
"DIMMs detected!\n");
|
||||||
}
|
}
|
||||||
@ -237,7 +233,7 @@ compute_lowest_common_dimm_parameters(const dimm_params_t *dimm_params,
|
|||||||
outpdimm->rcw[j] = dimm_params[0].rcw[j];
|
outpdimm->rcw[j] = dimm_params[0].rcw[j];
|
||||||
for (i = 1; i < number_of_dimms; i++)
|
for (i = 1; i < number_of_dimms; i++)
|
||||||
if (dimm_params[i].rcw[j] != dimm_params[0].rcw[j]) {
|
if (dimm_params[i].rcw[j] != dimm_params[0].rcw[j]) {
|
||||||
temp3 = 1;
|
temp1 = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user