From: Michael Tretter <m.tretter@pengutronix.de>
To: barebox@lists.infradead.org
Subject: Re: [PATCH 3/3] ARM: zynqmp: add support for Xilinx ZCU104 board
Date: Fri, 23 Nov 2018 15:38:59 +0100 [thread overview]
Message-ID: <20181123153859.4e48edb8@litschi.hi.pengutronix.de> (raw)
In-Reply-To: <20181123133553.24761-4-m.tretter@pengutronix.de>
On Fri, 23 Nov 2018 14:35:53 +0100, Michael Tretter wrote:
> Add support for the Xilinx Zynq Ultrascale+ MPSoC architecture (ZynqMP)
> and the Xilinx ZCU104 board.
>
> Barebox is booted as BL33 in EL-1 and expects that a BL2 (i.e. the FSBL)
> already took care of initializing the RAM. Also for debug_ll, the UART
> is expected to be already setup correctly.
>
> Thus, you have to add the Barebox binary to a boot image as described in
> "Chapter 11: Boot and Configuration" of "Zynq Ultrascale+ Device
> Technical Reference Manual".
>
> The ENTRY_FUNCTION macro cannot be used in aarch64, because aarch64 does
> not specify the __naked__ attribute and gcc add a function prologue to
> the entry function which writes to the stack, but the stack is not set
> up. Thus, the entry has to be implemented in assembly.
>
> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
> ---
> arch/arm/Kconfig | 14 +++++++
> arch/arm/Makefile | 1 +
> arch/arm/boards/Makefile | 1 +
> arch/arm/boards/xilinx-zcu104/Makefile | 2 +
> arch/arm/boards/xilinx-zcu104/board.c | 25 ++++++++++++
> arch/arm/boards/xilinx-zcu104/lowlevel.c | 30 +++++++++++++++
> arch/arm/boards/xilinx-zcu104/lowlevel_init.S | 32 ++++++++++++++++
> arch/arm/configs/zynqmp_defconfig | 38 +++++++++++++++++++
> arch/arm/dts/Makefile | 1 +
> arch/arm/mach-zynqmp/Kconfig | 9 +++++
> arch/arm/mach-zynqmp/Makefile | 1 +
> arch/arm/mach-zynqmp/include/mach/debug_ll.h | 30 +++++++++++++++
> arch/arm/mach-zynqmp/zynqmp.c | 22 +++++++++++
> images/Makefile | 1 +
> images/Makefile.zynqmp | 7 ++++
> 15 files changed, 214 insertions(+)
> create mode 100644 arch/arm/boards/xilinx-zcu104/Makefile
> create mode 100644 arch/arm/boards/xilinx-zcu104/board.c
> create mode 100644 arch/arm/boards/xilinx-zcu104/lowlevel.c
> create mode 100644 arch/arm/boards/xilinx-zcu104/lowlevel_init.S
> create mode 100644 arch/arm/configs/zynqmp_defconfig
> create mode 100644 arch/arm/mach-zynqmp/Kconfig
> create mode 100644 arch/arm/mach-zynqmp/Makefile
> create mode 100644 arch/arm/mach-zynqmp/include/mach/debug_ll.h
> create mode 100644 arch/arm/mach-zynqmp/zynqmp.c
> create mode 100644 images/Makefile.zynqmp
>
[...]
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> index 503d9b18f9..0ac3124c8c 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -119,6 +119,7 @@ pbl-dtb-$(CONFIG_MACH_ZII_VF610_DEV) += \
> pbl-dtb-$(CONFIG_MACH_AT91SAM9263EK_DT) += at91sam9263ek.dtb.o
> pbl-dtb-$(CONFIG_MACH_MICROCHIP_KSZ9477_EVB) += at91-microchip-ksz9477-evb.dtb.o
> pbl-dtb-$(CONFIG_MACH_AT91SAM9X5EK) += at91sam9x5ek.dtb.o
> +pbl-dtb-$(CONFIG_MACH_XILINX_ZCU104) += zynqmp-zcu104-revA.dtb.o
I forgot to add the dts file for barebox to the patch. Will do in v2.
Michael
>
> pbl-dtb-$(CONFIG_MACH_ZII_IMX7D_RPU2) += imx7d-zii-rpu2.dtb.o
>
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2018-11-23 14:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-23 13:35 [PATCH 0/3] Xilinx Zynq Ultrascale+ MPSoC support Michael Tretter
2018-11-23 13:35 ` [PATCH 1/3] ARM: lib64: .gitignore barebox.lds Michael Tretter
2018-11-23 13:35 ` [PATCH 2/3] ARM: aarch64: compile with general-regs-only Michael Tretter
2018-11-23 13:48 ` Rouven Czerwinski
2018-11-23 13:35 ` [PATCH 3/3] ARM: zynqmp: add support for Xilinx ZCU104 board Michael Tretter
2018-11-23 13:55 ` Rouven Czerwinski
2018-11-26 10:37 ` Roland Hieber
2018-11-23 14:38 ` Michael Tretter [this message]
2018-11-23 15:08 ` Oleksij Rempel
2018-11-23 18:27 ` Michael Tretter
2018-11-23 18:41 ` Oleksij Rempel
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=20181123153859.4e48edb8@litschi.hi.pengutronix.de \
--to=m.tretter@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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