Re: [U-Boot] [v2,2/2] armv7: ls102xa: not power down OCRAM1

2019-09-25 Thread Biwen Li
: [v2,2/2] armv7: ls102xa: not power down OCRAM1
> >
> >The patch always not power down OCRAM1
> >for wakeup source to wakeup system in
> >deep sleep
> Please provide a better description.
Okay, got it, I will provide it in v3.
> 
> --priyankajain
> >
> >Signed-off-by: Biwen Li 
> >---
> >Change in v2:
> > - split one patch to two patches
> > - always not power down OCRAM1
> >
> > arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> >diff --git a/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c
> >b/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c
> >index e23fcc135b..34773305ae 100644
> >--- a/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c
> >+++ b/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c
> >@@ -73,7 +73,8 @@ static void __secure ls1_deepsleep_irq_cfg(void)
> >  * read, that is why we don't read it from register ippdexpcr1 itself.
> >  */
> > ippdexpcr1 = in_le32(>sparecr[7]);
> >-out_be32(>ippdexpcr1, ippdexpcr1);
> >+/* Always not power down OCRAM1 */
> >+out_be32(>ippdexpcr1, ippdexpcr1 |
> >RCPM_IPPDEXPCR1_OCRAM1);
> >
> > if (ippdexpcr0 & RCPM_IPPDEXPCR0_ETSEC)
> > pmcintecr |= SCFG_PMCINTECR_ETSECRXG0 |
> >--
> >2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [v2,2/2] armv7: ls102xa: not power down OCRAM1

2019-09-24 Thread Priyanka Jain


>-Original Message-
>From: Biwen Li 
>Sent: Tuesday, September 24, 2019 12:49 PM
>To: albert.u.b...@aribaud.net; Prabhakar X
>; Rajesh Bhagat ;
>Priyanka Jain ; Ran Wang ;
>Leo Li ; Jagdish Gediya 
>Cc: u-boot@lists.denx.de; Biwen Li 
>Subject: [v2,2/2] armv7: ls102xa: not power down OCRAM1
>
>The patch always not power down OCRAM1
>for wakeup source to wakeup system in
>deep sleep
Please provide a better description.

--priyankajain
>
>Signed-off-by: Biwen Li 
>---
>Change in v2:
>   - split one patch to two patches
>   - always not power down OCRAM1
>
> arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
>diff --git a/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c
>b/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c
>index e23fcc135b..34773305ae 100644
>--- a/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c
>+++ b/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c
>@@ -73,7 +73,8 @@ static void __secure ls1_deepsleep_irq_cfg(void)
>* read, that is why we don't read it from register ippdexpcr1 itself.
>*/
>   ippdexpcr1 = in_le32(>sparecr[7]);
>-  out_be32(>ippdexpcr1, ippdexpcr1);
>+  /* Always not power down OCRAM1 */
>+  out_be32(>ippdexpcr1, ippdexpcr1 |
>RCPM_IPPDEXPCR1_OCRAM1);
>
>   if (ippdexpcr0 & RCPM_IPPDEXPCR0_ETSEC)
>   pmcintecr |= SCFG_PMCINTECR_ETSECRXG0 |
>--
>2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [v2,2/2] armv7: ls102xa: not power down OCRAM1

2019-09-24 Thread Biwen Li
The patch always not power down OCRAM1
for wakeup source to wakeup system in
deep sleep

Signed-off-by: Biwen Li 
---
Change in v2:
- split one patch to two patches
- always not power down OCRAM1

 arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c 
b/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c
index e23fcc135b..34773305ae 100644
--- a/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c
+++ b/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c
@@ -73,7 +73,8 @@ static void __secure ls1_deepsleep_irq_cfg(void)
 * read, that is why we don't read it from register ippdexpcr1 itself.
 */
ippdexpcr1 = in_le32(>sparecr[7]);
-   out_be32(>ippdexpcr1, ippdexpcr1);
+   /* Always not power down OCRAM1 */
+   out_be32(>ippdexpcr1, ippdexpcr1 | RCPM_IPPDEXPCR1_OCRAM1);
 
if (ippdexpcr0 & RCPM_IPPDEXPCR0_ETSEC)
pmcintecr |= SCFG_PMCINTECR_ETSECRXG0 |
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot