mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 1/2] arm: avnet zedboard: Use compressed DTB
Date: Fri, 16 Dec 2022 13:11:10 +0100	[thread overview]
Message-ID: <20221216121111.1789446-1-s.hauer@pengutronix.de> (raw)

The barebox image is limited to the OCRAM size, so squeeze the binary
size a little bit by using compressed DTB.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/boards/avnet-zedboard/lowlevel.c | 4 ++--
 arch/arm/mach-zynq/Kconfig                | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/avnet-zedboard/lowlevel.c b/arch/arm/boards/avnet-zedboard/lowlevel.c
index f7bdceb42a..87ce79863d 100644
--- a/arch/arm/boards/avnet-zedboard/lowlevel.c
+++ b/arch/arm/boards/avnet-zedboard/lowlevel.c
@@ -14,7 +14,7 @@
 #define PLL_DDR_LOCK	(1 << 1)
 #define PLL_IO_LOCK	(1 << 2)
 
-extern char __dtb_zynq_zed_start[];
+extern char __dtb_z_zynq_zed_start[];
 
 static void avnet_zedboard_ps7_init(void)
 {
@@ -289,7 +289,7 @@ static void avnet_zedboard_pbl_console_init(void)
 ENTRY_FUNCTION(start_avnet_zedboard, r0, r1, r2)
 {
 
-	void *fdt = __dtb_zynq_zed_start + get_runtime_offset();
+	void *fdt = __dtb_z_zynq_zed_start + get_runtime_offset();
 
 	/* MIO_07 in GPIO Mode 3.3V VIO, can be uncomented because it is the default value */
 	writel(0x0000DF0D, ZYNQ_SLCR_UNLOCK);
diff --git a/arch/arm/mach-zynq/Kconfig b/arch/arm/mach-zynq/Kconfig
index 3f2cd8e99c..3aac4506e3 100644
--- a/arch/arm/mach-zynq/Kconfig
+++ b/arch/arm/mach-zynq/Kconfig
@@ -29,6 +29,7 @@ menu "select Zynq boards to be built"
 
 config MACH_ZEDBOARD
 	bool "Avnet Zynq-7000 ZedBoard"
+	select ARM_USE_COMPRESSED_DTB
 	select ARCH_ZYNQ7000
 
 endmenu
-- 
2.30.2




             reply	other threads:[~2022-12-16 12:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-16 12:11 Sascha Hauer [this message]
2022-12-16 12:11 ` [PATCH 2/2] arm: zync: Use XZ for image compression Sascha Hauer

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=20221216121111.1789446-1-s.hauer@pengutronix.de \
    --to=s.hauer@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