mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 4/4] arm/boards: Add IMD_USED_OF for a few boards
Date: Thu, 17 Sep 2020 22:17:08 +0200	[thread overview]
Message-ID: <20200917201708.12168-4-u.kleine-koenig@pengutronix.de> (raw)
In-Reply-To: <20200917201708.12168-1-u.kleine-koenig@pengutronix.de>

Not all boards can make use of the helper macros introduced in the previous
commits, for these add an explicit call to IMD_USED_OF to add meta data
to the barebox image.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/arm/boards/embest-riotboard/lowlevel.c     | 1 +
 arch/arm/boards/technexion-wandboard/lowlevel.c | 2 ++
 arch/arm/boards/zii-imx51-rdu1/lowlevel.c       | 3 +++
 3 files changed, 6 insertions(+)

diff --git a/arch/arm/boards/embest-riotboard/lowlevel.c b/arch/arm/boards/embest-riotboard/lowlevel.c
index 07f669fc0309..b0f5339b0a70 100644
--- a/arch/arm/boards/embest-riotboard/lowlevel.c
+++ b/arch/arm/boards/embest-riotboard/lowlevel.c
@@ -23,6 +23,7 @@ ENTRY_FUNCTION(start_imx6s_riotboard, r0, r1, r2)
 		putc_ll('a');
 	}
 
+	IMD_USED_OF(imx6s_riotboard);
 	fdt = __dtb_imx6s_riotboard_start + get_runtime_offset();
 	barebox_arm_entry(0x10000000, SZ_1G, fdt);
 }
diff --git a/arch/arm/boards/technexion-wandboard/lowlevel.c b/arch/arm/boards/technexion-wandboard/lowlevel.c
index 33babbbb2feb..5c1b5d6ed292 100644
--- a/arch/arm/boards/technexion-wandboard/lowlevel.c
+++ b/arch/arm/boards/technexion-wandboard/lowlevel.c
@@ -334,9 +334,11 @@ static noinline void wandboard_start(void)
 	switch (cpu_type) {
 	case IMX6_CPUTYPE_IMX6S:
 	case IMX6_CPUTYPE_IMX6DL:
+		IMD_USED_OF(imx6dl_wandboard);
 		dtb = __dtb_z_imx6dl_wandboard_start;
 		break;
 	case IMX6_CPUTYPE_IMX6Q:
+		IMD_USED_OF(imx6q_wandboard);
 		dtb = __dtb_z_imx6q_wandboard_start;
 		break;
 	default:
diff --git a/arch/arm/boards/zii-imx51-rdu1/lowlevel.c b/arch/arm/boards/zii-imx51-rdu1/lowlevel.c
index c7bb044e0d59..530d6a2f57e1 100644
--- a/arch/arm/boards/zii-imx51-rdu1/lowlevel.c
+++ b/arch/arm/boards/zii-imx51-rdu1/lowlevel.c
@@ -96,12 +96,15 @@ ENTRY_FUNCTION(start_imx51_zii_rdu1, r0, r1, r2)
 		/* FALLTHROUGH */
 	case ZII_PLATFORM_IMX51_RDU_REV_B:
 	case ZII_PLATFORM_IMX51_RDU_REV_C:
+		IMD_USED_OF(imx51_zii_rdu1);
 		fdt = __dtb_z_imx51_zii_rdu1_start;
 		break;
 	case ZII_PLATFORM_IMX51_SCU2_MEZZ:
+		IMD_USED_OF(imx51_zii_scu2_mezz);
 		fdt = __dtb_z_imx51_zii_scu2_mezz_start;
 		break;
 	case ZII_PLATFORM_IMX51_SCU3_ESB:
+		IMD_USED_OF(imx51_zii_scu3_esb);
 		fdt = __dtb_z_imx51_zii_scu3_esb_start;
 		break;
 	}
-- 
2.27.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2020-09-17 20:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-17 20:17 [PATCH 1/4] imx/esdctl: reorder some function declarations to be sorted by SoC Uwe Kleine-König
2020-09-17 20:17 ` [PATCH 2/4] imx/esdctl: Define new helper macros to reduce board entry boilerplate Uwe Kleine-König
2020-09-18 10:32   ` Sascha Hauer
2020-09-17 20:17 ` [PATCH 3/4] arm/boards: Convert a few boards to the new entry macros Uwe Kleine-König
2020-09-17 20:17 ` Uwe Kleine-König [this message]
2020-09-18 10:03   ` [PATCH 4/4] arm/boards: Add IMD_USED_OF for a few boards 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=20200917201708.12168-4-u.kleine-koenig@pengutronix.de \
    --to=u.kleine-koenig@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