nb/intel/i945/raminit.c: Replace numbers with macros
Use macro instead of numbers Change-Id: Ife1aff0a5cf311881b3a11533b71a74c518a633f Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/21472 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
parent
38bded0eb0
commit
5613b175de
1 changed files with 20 additions and 20 deletions
|
@ -880,29 +880,29 @@ static void sdram_program_dram_width(struct sys_info *sysinfo)
|
||||||
idx = 1;
|
idx = 1;
|
||||||
|
|
||||||
switch (sysinfo->dimm[0]) {
|
switch (sysinfo->dimm[0]) {
|
||||||
case 0:
|
case SYSINFO_DIMM_X16DS:
|
||||||
c0dramw = 0x0000; break; /* x16DS */
|
c0dramw = 0x0000; break;
|
||||||
case 1:
|
case SYSINFO_DIMM_X8DS:
|
||||||
c0dramw = 0x0001; break; /* x8DS */
|
c0dramw = 0x0001; break;
|
||||||
case 2:
|
case SYSINFO_DIMM_X16SS:
|
||||||
c0dramw = 0x0000; break; /* x16SS */
|
c0dramw = 0x0000; break;
|
||||||
case 3:
|
case SYSINFO_DIMM_X8DDS:
|
||||||
c0dramw = 0x0005; break; /* x8DDS */
|
c0dramw = 0x0005; break;
|
||||||
case 4:
|
case SYSINFO_DIMM_NOT_POPULATED:
|
||||||
c0dramw = 0x0000; break; /* NC */
|
c0dramw = 0x0000; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (sysinfo->dimm[idx]) {
|
switch (sysinfo->dimm[idx]) {
|
||||||
case 0:
|
case SYSINFO_DIMM_X16DS:
|
||||||
c1dramw = 0x0000; break; /* x16DS */
|
c1dramw = 0x0000; break;
|
||||||
case 1:
|
case SYSINFO_DIMM_X8DS:
|
||||||
c1dramw = 0x0010; break; /* x8DS */
|
c1dramw = 0x0010; break;
|
||||||
case 2:
|
case SYSINFO_DIMM_X16SS:
|
||||||
c1dramw = 0x0000; break; /* x16SS */
|
c1dramw = 0x0000; break;
|
||||||
case 3:
|
case SYSINFO_DIMM_X8DDS:
|
||||||
c1dramw = 0x0050; break; /* x8DDS */
|
c1dramw = 0x0050; break;
|
||||||
case 4:
|
case SYSINFO_DIMM_NOT_POPULATED:
|
||||||
c1dramw = 0x0000; break; /* NC */
|
c1dramw = 0x0000; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sdram_capabilities_dual_channel()) {
|
if (!sdram_capabilities_dual_channel()) {
|
||||||
|
|
Loading…
Reference in a new issue