[PATCH] LEON3: Update power-down function

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jan 16 15:51:30 UTC 2024


Hello Martin,

the patch removes the UT699 reference. Is this workaround also valid for 
the UT699?

On 12.01.24 20:02, Martin Åberg wrote:
> This updates the implementation of the LEON3 processor power-down
> function.
> 
> It now contains the workaround for the GR712RC power-down errata
> described in GR712RC-UM, version 2.16, section 1.7.8. The workaround is
> compatible with other LEON3/LEON4 components.
> 
> Update #4875.
> ---
>   bsps/sparc/leon3/start/bspidle.S | 16 +++++++++++++---
>   1 file changed, 13 insertions(+), 3 deletions(-)
> 
> diff --git a/bsps/sparc/leon3/start/bspidle.S b/bsps/sparc/leon3/start/bspidle.S
> index 82c04a231d..cbba6dda78 100644
> --- a/bsps/sparc/leon3/start/bspidle.S
> +++ b/bsps/sparc/leon3/start/bspidle.S
> @@ -34,14 +34,24 @@
>   
>   #include <rtems/asm.h>
>   
> -/* LEON specific power-down function */
> +/*
> + * LEON specific power-down function
> + *
> + * This implementation contains the workaround for the GR712RC
> + * power-down errata described in GR712RC-UM, version 2.16, section
> + * 1.7.8. The workaround is compatible with other LEON3 components.
> + */
>   
>           .align 4
>           PUBLIC(bsp_idle_thread)
>           PUBLIC(leon3_power_down_loop)
>   SYM(bsp_idle_thread):
>   SYM(leon3_power_down_loop):
> -pwdloop:  mov   %g0, %asr19
> -          lda   [%sp] 1, %g0            ! Needed for UT699 and GR712
> +pwdloop:
> +          set     0xfffffff0, %o0
> +          .align 32
> +          mov     %g0, %asr19
> +          lda     [%o0] 0x1c, %g0
> +          .align 32
>             ba,a    pwdloop
>              nop

-- 
embedded brains GmbH & Co. KG
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list