Commit 622c956c authored by Patrick Delaunay's avatar Patrick Delaunay Committed by Patrice Chotard
Browse files

stm32mp: bsec: manage clock when present in device tree

Enable the clocks during bsec probe when they are present in device tree.

Signed-off-by: Patrick Delaunay's avatarPatrick Delaunay <>
Reviewed-by: Patrice Chotard's avatarPatrice Chotard <>
parent f49eb16c
......@@ -6,6 +6,7 @@
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
#include <misc.h>
......@@ -490,6 +491,15 @@ static int stm32mp_bsec_probe(struct udevice *dev)
int otp;
struct stm32mp_bsec_plat *plat;
struct clk_bulk clk_bulk;
int ret;
ret = clk_get_bulk(dev, &clk_bulk);
if (!ret) {
ret = clk_enable_bulk(&clk_bulk);
if (ret)
return ret;
* update unlocked shadow for OTP cleared by the rom code
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment