mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
mpc8xxx: DDR2/DDR3: Clean up DIMM-type switch statements
The numeric constants in the switch statements are replaced by #defines added to the common ddr_spd.h header. This dramatically improves the readability of the switch statments. In addition, a few of the longer lines were cleaned up, and the DDR2 type for an SO-RDIMM module was added to the DDR2 switch statement. Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com> Cc: Andy Fleming <afleming@gmail.com> Cc: Kim Phillips <kim.phillips@freescale.com> Acked-by: York Sun <yorksun@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
e820a131f4
commit
c7fd27ccfb
4 changed files with 53 additions and 43 deletions
|
@ -18,7 +18,7 @@ spd_check(const u8 *buf, u8 spd_rev, u8 spd_cksum)
|
|||
|
||||
/*
|
||||
* Check SPD revision supported
|
||||
* Rev 1.2 or less supported by this code
|
||||
* Rev 1.X or less supported by this code
|
||||
*/
|
||||
if (spd_rev >= 0x20) {
|
||||
printf("SPD revision %02X not supported by this code\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue