summaryrefslogtreecommitdiff
path: root/drivers/rng/stm32mp1_rng.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-09-19 08:35:20 -0400
committerTom Rini <trini@konsulko.com>2020-09-19 08:35:20 -0400
commit400f84c5baaec9b8a9f30e4ea77785e6f9e00c4b (patch)
treea38334e5dd5ea274d84f5cb94e0a043ffcb05545 /drivers/rng/stm32mp1_rng.c
parent667ab37d586e702bc745934afff3dae2f67a2257 (diff)
parent8f0ac536d4937d07a95fcc56756c14ef7a94e397 (diff)
Merge tag 'efi-2020-10-rc5-2' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for efi-2020-10-rc5 (2) The following bugs are fixed: * incorrect online help for setenv and env * description of function efi_mem_carve_out() * replace printf() by log_err() in stm32mp1_rng driver A unit test is provided to check that the boot hart id is provided in the RISC-V device-tree.
Diffstat (limited to 'drivers/rng/stm32mp1_rng.c')
-rw-r--r--drivers/rng/stm32mp1_rng.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/rng/stm32mp1_rng.c b/drivers/rng/stm32mp1_rng.c
index 7ef7ff9756..c1bae180f7 100644
--- a/drivers/rng/stm32mp1_rng.c
+++ b/drivers/rng/stm32mp1_rng.c
@@ -3,6 +3,8 @@
* Copyright (c) 2019, Linaro Limited
*/
+#define LOG_CATEGORY UCLASS_RNG
+
#include <common.h>
#include <clk.h>
#include <dm.h>
@@ -53,7 +55,7 @@ static int stm32_rng_read(struct udevice *dev, void *data, size_t len)
for (i = 0; i < 12; i++)
readl(pdata->base + RNG_DR);
if (readl(pdata->base + RNG_SR) & RNG_SR_SEIS) {
- printf("RNG Noise");
+ log_err("RNG Noise");
return -EIO;
}
/* start again */