mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
i945: Replace some two magic values by defined names
Devoutly to be wish'd. To die,—to sleep;— To sleep! perchance to dream:—ay, there's the rub; For in that sleep of death what dreams may come, (Since who could argue with William Shakespeare?) Change-Id: I4e4c617dcd3ede81a0abbe16f9916562d24fa8ce Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Reviewed-on: http://review.coreboot.org/2733 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
594ea4ac5f
commit
86a1110837
1 changed files with 4 additions and 4 deletions
|
@ -295,18 +295,18 @@ static void sdram_detect_errors(struct sys_info *sysinfo)
|
||||||
pci_write_config8(PCI_DEV(0, 0x1f, 0), 0xa2, reg8);
|
pci_write_config8(PCI_DEV(0, 0x1f, 0), 0xa2, reg8);
|
||||||
|
|
||||||
/* clear self refresh status if check is disabled or not a resume */
|
/* clear self refresh status if check is disabled or not a resume */
|
||||||
if (!CONFIG_CHECK_SLFRCS_ON_RESUME || sysinfo->boot_path != 2) {
|
if (!CONFIG_CHECK_SLFRCS_ON_RESUME || sysinfo->boot_path != BOOT_PATH_RESUME) {
|
||||||
MCHBAR8(0xf14) |= 3;
|
MCHBAR8(SLFRCS) |= 3;
|
||||||
} else {
|
} else {
|
||||||
/* Validate self refresh config */
|
/* Validate self refresh config */
|
||||||
if (((sysinfo->dimm[0] != SYSINFO_DIMM_NOT_POPULATED) ||
|
if (((sysinfo->dimm[0] != SYSINFO_DIMM_NOT_POPULATED) ||
|
||||||
(sysinfo->dimm[1] != SYSINFO_DIMM_NOT_POPULATED)) &&
|
(sysinfo->dimm[1] != SYSINFO_DIMM_NOT_POPULATED)) &&
|
||||||
!(MCHBAR8(0xf14) & (1<<0))) {
|
!(MCHBAR8(SLFRCS) & (1<<0))) {
|
||||||
do_reset = 1;
|
do_reset = 1;
|
||||||
}
|
}
|
||||||
if (((sysinfo->dimm[2] != SYSINFO_DIMM_NOT_POPULATED) ||
|
if (((sysinfo->dimm[2] != SYSINFO_DIMM_NOT_POPULATED) ||
|
||||||
(sysinfo->dimm[3] != SYSINFO_DIMM_NOT_POPULATED)) &&
|
(sysinfo->dimm[3] != SYSINFO_DIMM_NOT_POPULATED)) &&
|
||||||
!(MCHBAR8(0xf14) & (1<<1))) {
|
!(MCHBAR8(SLFRCS) & (1<<1))) {
|
||||||
do_reset = 1;
|
do_reset = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue