diff options
author | Tom Rini <trini@konsulko.com> | 2021-12-15 22:51:44 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-12-15 22:51:44 +0300 |
commit | 5b20efeafec0ebe0ee5742c611e4f2153346797a (patch) | |
tree | 2ad78099a2ce53f471be5cecdbe7fb2efa4f7b6d /drivers/clk/clk-gate.c | |
parent | e09ca91cfa66fadb3b3e51f5bd9d15b1dfcc12d2 (diff) | |
parent | 560e1e005093b1d62c53391d68960237294e7f89 (diff) | |
download | u-boot-5b20efeafec0ebe0ee5742c611e4f2153346797a.tar.xz |
Merge tag 'clk-2022.01-rc3' of https://source.denx.de/u-boot/custodians/u-boot-clk
Clock patches for v2022.01-rc3
This adds better logging support for many CCF drivers, and clarifies some
documentation regarding clk_get_rate.
Diffstat (limited to 'drivers/clk/clk-gate.c')
-rw-r--r-- | drivers/clk/clk-gate.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c index 006d3b6629..aa40daf3d7 100644 --- a/drivers/clk/clk-gate.c +++ b/drivers/clk/clk-gate.c @@ -7,18 +7,23 @@ * Gated clock implementation */ +#define LOG_CATEGORY UCLASS_CLK + #include <common.h> -#include <asm/io.h> -#include <malloc.h> +#include <clk.h> +#include <log.h> #include <clk-uclass.h> +#include <malloc.h> +#include <asm/io.h> #include <dm/device.h> +#include <dm/device_compat.h> #include <dm/devres.h> #include <linux/bitops.h> #include <linux/clk-provider.h> -#include <clk.h> -#include "clk.h" #include <linux/err.h> +#include "clk.h" + #define UBOOT_DM_CLK_GATE "clk_gate" /** @@ -123,7 +128,7 @@ struct clk *clk_register_gate(struct device *dev, const char *name, if (clk_gate_flags & CLK_GATE_HIWORD_MASK) { if (bit_idx > 15) { - pr_err("gate bit exceeds LOWORD field\n"); + dev_err(dev, "gate bit exceeds LOWORD field\n"); return ERR_PTR(-EINVAL); } } |