x86: fsp: Use if() instead of #ifdef
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:11:27 +0000 (08:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:53:48 +0000 (13:53 +0800)
commit86875f050bf433fa8078ae9c53d8493f79941f1a
tree85b8b232b0ad15af5cd819d329d57b2d334c6265
parent07f2f58b94b69ea962d1adea0b892825dea908e9
x86: fsp: Use if() instead of #ifdef

Update a few #ifdefs to if() to improve build coverage.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: recover the codes that got wrongly deleted in dram_init()]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/fsp1/fsp_common.c
arch/x86/lib/fsp1/fsp_dram.c