From: Andre Przywara <andre.przywara@arm.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [linux-sunxi] [PATCH 03/13] sunxi: change RMR64's RVBAR address for H6
Date: Tue, 26 Jun 2018 11:37:12 +0100 [thread overview]
Message-ID: <ec84ca76-3d01-3fe0-c693-d6f0e9ed32dc@arm.com> (raw)
In-Reply-To: <20180625103723.24760-4-icenowy@aosc.io>
Hi,
On 25/06/18 11:37, Icenowy Zheng wrote:
> Allwinner H6 has a different RVBAR address with A64/H5.
>
> Add conditional RVBAR configuration into the code which does RMR switch.
>
> Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
And thanks for amending the assembly stub too!
Cheers,
Andre.
> ---
> arch/arm/include/asm/arch-sunxi/boot0.h | 4 ++++
> arch/arm/mach-sunxi/rmr_switch.S | 6 ++++++
> 2 files changed, 10 insertions(+)
>
> diff --git a/arch/arm/include/asm/arch-sunxi/boot0.h b/arch/arm/include/asm/arch-sunxi/boot0.h
> index 9c6d82dda1..5176fdcfdc 100644
> --- a/arch/arm/include/asm/arch-sunxi/boot0.h
> +++ b/arch/arm/include/asm/arch-sunxi/boot0.h
> @@ -27,7 +27,11 @@
> .word 0xf57ff06f // isb sy
> .word 0xe320f003 // wfi
> .word 0xeafffffd // b @wfi
> +#ifndef CONFIG_MACH_SUN50I_H6
> .word 0x017000a0 // writeable RVBAR mapping address
> +#else
> + .word 0x09010040 // writeable RVBAR mapping address
> +#endif
> #ifdef CONFIG_SPL_BUILD
> .word CONFIG_SPL_TEXT_BASE
> #else
> diff --git a/arch/arm/mach-sunxi/rmr_switch.S b/arch/arm/mach-sunxi/rmr_switch.S
> index cefa93001b..fafd306f95 100644
> --- a/arch/arm/mach-sunxi/rmr_switch.S
> +++ b/arch/arm/mach-sunxi/rmr_switch.S
> @@ -26,9 +26,15 @@
> @ reference and to be able to regenerate a (probably fixed) version of this
> @ code found in encoded form in boot0.h.
>
> +#include <config.h>
> +
> .text
>
> +#ifndef CONFIG_MACH_SUN50I_H6
> ldr r1, =0x017000a0 @ MMIO mapped RVBAR[0] register
> +#else
> + ldr r1, =0x09010040 @ MMIO mapped RVBAR[0] register
> +#endif
> ldr r0, =0x57aA7add @ start address, to be replaced
> str r0, [r1]
> dsb sy
>
next prev parent reply other threads:[~2018-06-26 10:37 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-25 10:37 [U-Boot] [PATCH 00/13] Allwinner H6 support (w/ SPL) Icenowy Zheng
2018-06-25 10:37 ` [U-Boot] [PATCH 01/13] sunxi: change SUNXI_HIGH_SRAM option to SUNXI_SRAM_ADDRESS Icenowy Zheng
2018-06-25 12:30 ` Maxime Ripard
2018-06-26 10:34 ` [U-Boot] [linux-sunxi] " Andre Przywara
2018-06-25 10:37 ` [U-Boot] [PATCH 02/13] sunxi: add basical memory map definitions of H6 SoC Icenowy Zheng
2018-06-25 12:33 ` Maxime Ripard
2018-06-25 12:50 ` Icenowy Zheng
2018-06-25 17:07 ` Maxime Ripard
2018-06-26 10:35 ` [U-Boot] [linux-sunxi] " Andre Przywara
2018-06-27 8:51 ` [U-Boot] [linux-sunxi] " Andre Przywara
2018-06-25 10:37 ` [U-Boot] [PATCH 03/13] sunxi: change RMR64's RVBAR address for H6 Icenowy Zheng
2018-06-26 10:37 ` Andre Przywara [this message]
2018-06-25 10:37 ` [U-Boot] [PATCH 04/13] sunxi: change ATF position " Icenowy Zheng
2018-06-26 10:56 ` [U-Boot] [linux-sunxi] " Andre Przywara
2018-06-25 10:37 ` [U-Boot] [PATCH 05/13] sunxi: add config for SPL at 0x20000 on H6 Icenowy Zheng
2018-06-26 10:56 ` [U-Boot] [linux-sunxi] " Andre Przywara
2018-06-25 10:37 ` [U-Boot] [PATCH 06/13] sunxi: change GIC address " Icenowy Zheng
2018-06-26 10:56 ` [U-Boot] [linux-sunxi] " Andre Przywara
2018-06-25 10:37 ` [U-Boot] [PATCH 07/13] sunxi: add clock code for H6 Icenowy Zheng
2018-06-26 13:04 ` [U-Boot] [linux-sunxi] " Andre Przywara
2018-06-25 10:37 ` [U-Boot] [PATCH 08/13] sunxi: use sun6i-style watchdog " Icenowy Zheng
2018-06-25 10:37 ` [U-Boot] [PATCH 09/13] sunxi: add UART0 setup " Icenowy Zheng
2018-06-26 11:01 ` [U-Boot] [linux-sunxi] " Andre Przywara
2018-06-25 10:37 ` [U-Boot] [PATCH 10/13] sunxi: add MMC support " Icenowy Zheng
2018-06-25 10:37 ` [U-Boot] [PATCH 11/13] sunxi: add DRAM support to H6 Icenowy Zheng
2018-06-27 9:46 ` [U-Boot] [linux-sunxi] " Andre Przywara
2018-06-27 10:49 ` Icenowy Zheng
2018-06-27 17:29 ` Andre Przywara
2018-06-25 10:37 ` [U-Boot] [PATCH 12/13] sunxi: add support for Allwinner H6 SoC Icenowy Zheng
2018-06-27 14:04 ` [U-Boot] [linux-sunxi] " Andre Przywara
2018-06-27 14:26 ` Icenowy Zheng
2018-06-25 10:37 ` [U-Boot] [PATCH 13/13] sunxi: add support for Pine H64 board Icenowy Zheng
2018-06-25 12:40 ` [U-Boot] [linux-sunxi] [PATCH 00/13] Allwinner H6 support (w/ SPL) Jagan Teki
2018-06-25 12:49 ` Icenowy Zheng
2018-06-25 13:02 ` Jagan Teki
2018-07-19 18:14 ` Jagan Teki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ec84ca76-3d01-3fe0-c693-d6f0e9ed32dc@arm.com \
--to=andre.przywara@arm.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox