Skip to content

Commit

Permalink
x86: fsp: Convert fsp_dram to use log_debug()
Browse files Browse the repository at this point in the history
Use log_debug() instead of debug() in this file, to enable the extra
features.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
  • Loading branch information
sjg20 authored and lbmeng committed Nov 6, 2020
1 parent e0028ab commit d0147fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arch/x86/lib/fsp2/fsp_dram.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Written by Simon Glass <[email protected]>
*/

#define LOG_CATEGORY LOGC_ARCH

#include <common.h>
#include <handoff.h>
#include <init.h>
Expand Down Expand Up @@ -35,7 +37,7 @@ int dram_init(void)
ret = fsp_memory_init(s3wake,
IS_ENABLED(CONFIG_APL_BOOT_FROM_FAST_SPI_FLASH));
if (ret) {
debug("Memory init failed (err=%x)\n", ret);
log_debug("Memory init failed (err=%x)\n", ret);
return ret;
}

Expand All @@ -60,7 +62,7 @@ int dram_init(void)
struct spl_handoff *ho = gd->spl_handoff;

if (!ho) {
debug("No SPL handoff found\n");
log_debug("No SPL handoff found\n");
return -ESTRPIPE;
}
gd->ram_size = ho->ram_size;
Expand All @@ -82,6 +84,8 @@ ulong board_get_usable_ram_top(ulong total_size)
#if CONFIG_IS_ENABLED(HANDOFF)
struct spl_handoff *ho = gd->spl_handoff;

log_debug("usable_ram_top = %lx\n", ho->arch.usable_ram_top);

return ho->arch.usable_ram_top;
#endif

Expand Down

0 comments on commit d0147fe

Please sign in to comment.