diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2020-11-06 21:01:56 +0300 |
---|---|---|
committer | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-01-13 11:52:58 +0300 |
commit | a3ce8d600cee4366dd96be7c7285e56bf463200f (patch) | |
tree | ed7040d4d3203d72abd98281dc1c5c1832643d34 /drivers/serial/serial_stm32.c | |
parent | b6e91f71d66defff7fa97deb5563f59987ba0d69 (diff) | |
download | u-boot-a3ce8d600cee4366dd96be7c7285e56bf463200f.tar.xz |
serial: stm32: define LOG_CATEGORY
Define LOG_CATEGORY to allow filtering with log command.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'drivers/serial/serial_stm32.c')
-rw-r--r-- | drivers/serial/serial_stm32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/serial/serial_stm32.c b/drivers/serial/serial_stm32.c index 818c34cf11..f6cb708c37 100644 --- a/drivers/serial/serial_stm32.c +++ b/drivers/serial/serial_stm32.c @@ -4,6 +4,8 @@ * Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics. */ +#define LOG_CATEGORY UCLASS_SERIAL + #include <common.h> #include <clk.h> #include <dm.h> @@ -13,6 +15,7 @@ #include <watchdog.h> #include <asm/io.h> #include <asm/arch/stm32.h> +#include <dm/device_compat.h> #include <linux/bitops.h> #include <linux/delay.h> #include "serial_stm32.h" |