* [PATCH] stm32mp: bsec: manage clock when present in device tree
@ 2021-02-25 12:43 Patrick Delaunay
2021-03-09 13:27 ` Patrice CHOTARD
0 siblings, 1 reply; 3+ messages in thread
From: Patrick Delaunay @ 2021-02-25 12:43 UTC (permalink / raw)
To: u-boot
Enable the clocks during bsec probe when they are present in device tree.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
arch/arm/mach-stm32mp/bsec.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/mach-stm32mp/bsec.c b/arch/arm/mach-stm32mp/bsec.c
index 88c7aec8b4..fe39bd80cf 100644
--- a/arch/arm/mach-stm32mp/bsec.c
+++ b/arch/arm/mach-stm32mp/bsec.c
@@ -6,6 +6,7 @@
#define LOG_CATEGORY UCLASS_MISC
#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
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] stm32mp: bsec: manage clock when present in device tree
2021-02-25 12:43 [PATCH] stm32mp: bsec: manage clock when present in device tree Patrick Delaunay
@ 2021-03-09 13:27 ` Patrice CHOTARD
2021-03-12 12:29 ` Patrice CHOTARD
0 siblings, 1 reply; 3+ messages in thread
From: Patrice CHOTARD @ 2021-03-09 13:27 UTC (permalink / raw)
To: u-boot
Hi Patrick
On 2/25/21 1:43 PM, Patrick Delaunay wrote:
> Enable the clocks during bsec probe when they are present in device tree.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> arch/arm/mach-stm32mp/bsec.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/arch/arm/mach-stm32mp/bsec.c b/arch/arm/mach-stm32mp/bsec.c
> index 88c7aec8b4..fe39bd80cf 100644
> --- a/arch/arm/mach-stm32mp/bsec.c
> +++ b/arch/arm/mach-stm32mp/bsec.c
> @@ -6,6 +6,7 @@
> #define LOG_CATEGORY UCLASS_MISC
>
> #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
>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Thanks
Patrice
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] stm32mp: bsec: manage clock when present in device tree
2021-03-09 13:27 ` Patrice CHOTARD
@ 2021-03-12 12:29 ` Patrice CHOTARD
0 siblings, 0 replies; 3+ messages in thread
From: Patrice CHOTARD @ 2021-03-12 12:29 UTC (permalink / raw)
To: u-boot
Hi
On 3/9/21 2:27 PM, Patrice CHOTARD wrote:
> Hi Patrick
>
> On 2/25/21 1:43 PM, Patrick Delaunay wrote:
>> Enable the clocks during bsec probe when they are present in device tree.
>>
>> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
>> ---
>>
>> arch/arm/mach-stm32mp/bsec.c | 10 ++++++++++
>> 1 file changed, 10 insertions(+)
>>
>> diff --git a/arch/arm/mach-stm32mp/bsec.c b/arch/arm/mach-stm32mp/bsec.c
>> index 88c7aec8b4..fe39bd80cf 100644
>> --- a/arch/arm/mach-stm32mp/bsec.c
>> +++ b/arch/arm/mach-stm32mp/bsec.c
>> @@ -6,6 +6,7 @@
>> #define LOG_CATEGORY UCLASS_MISC
>>
>> #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
>>
>
> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
> Thanks
> Patrice
>
Applied to u-boot-stm/next
Thanks
Patrice
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-12 12:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-25 12:43 [PATCH] stm32mp: bsec: manage clock when present in device tree Patrick Delaunay
2021-03-09 13:27 ` Patrice CHOTARD
2021-03-12 12:29 ` Patrice CHOTARD
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.