device/dram/ddr2.c: fix a hidden syntax error introduced earlier
A regression is hidden in commit 7eb0157fca
(device/dram/ddr2.c: Decoding byte[12] bit7 as self refresh flag ), which
breaks the build procedure when CONFIG_DEBUG_RAM_SETUP is set.
Maybe it had better implement "printram" and the like as inline
functions instead of macros.
Change-Id: If956435bd0c39b1f3e722c2cfc48d2d0f35abc9b
Signed-off-by: Bill XIE <persmule@gmail.com>
Reviewed-on: https://review.coreboot.org/21673
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
a4ab665a55
commit
c8050f4bfc
|
@ -547,7 +547,7 @@ int spd_decode_ddr2(struct dimm_attr_st *dimm, u8 spd[SPD_SIZE_MAX_DDR2])
|
||||||
ret = SPD_STATUS_INVALID_FIELD;
|
ret = SPD_STATUS_INVALID_FIELD;
|
||||||
dimm->flags.self_refresh = (spd[12] >> 7) & 1;
|
dimm->flags.self_refresh = (spd[12] >> 7) & 1;
|
||||||
printram("The assembly supports self refresh: %s\n",
|
printram("The assembly supports self refresh: %s\n",
|
||||||
dimm->flags.self_refresh ? "true", "false");
|
dimm->flags.self_refresh ? "true" : "false");
|
||||||
|
|
||||||
/* Number of PLLs on DIMM */
|
/* Number of PLLs on DIMM */
|
||||||
if (dimm->rev >= 0x11)
|
if (dimm->rev >= 0x11)
|
||||||
|
|
Loading…
Reference in New Issue