aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-09-07 09:58:15 -0600
committerBin Meng <bmeng@tinylab.org>2023-09-22 06:03:46 +0800
commit02de9199bc469a99cab27af117637da070a85721 (patch)
tree179f21bcc7e525b79a64fc82c9a24cc756847d1a
parent8e34ddc1135caaf08a2ecce8d455c556089f5f73 (diff)
downloadu-boot-02de9199bc469a99cab27af117637da070a85721.zip
u-boot-02de9199bc469a99cab27af117637da070a85721.tar.gz
u-boot-02de9199bc469a99cab27af117637da070a85721.tar.bz2
x86: Add some log categories
Add some missing log categories to a few files. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r--arch/x86/cpu/broadwell/sdram.c2
-rw-r--r--arch/x86/lib/tpl.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/cpu/broadwell/sdram.c b/arch/x86/cpu/broadwell/sdram.c
index f477d51..d30ebee 100644
--- a/arch/x86/cpu/broadwell/sdram.c
+++ b/arch/x86/cpu/broadwell/sdram.c
@@ -5,6 +5,8 @@
* From coreboot src/soc/intel/broadwell/romstage/raminit.c
*/
+#define LOG_CATEGORY UCLASS_RAM
+
#include <common.h>
#include <dm.h>
#include <init.h>
diff --git a/arch/x86/lib/tpl.c b/arch/x86/lib/tpl.c
index 18b05b2..273e9c8 100644
--- a/arch/x86/lib/tpl.c
+++ b/arch/x86/lib/tpl.c
@@ -3,6 +3,8 @@
* Copyright (c) 2018 Google, Inc
*/
+#define LOG_CATEGORY LOGC_BOOT
+
#include <common.h>
#include <debug_uart.h>
#include <dm.h>