[PATCH 4/4] arm/boards: Add IMD_USED_OF for a few boards

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux