mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Andrey Smirnov <andrew.smirnov@gmail.com>
To: barebox@lists.infradead.org
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
Subject: [PATCH 2/2] ARM: i.MX: Add ZII SCU3 ESB board
Date: Wed, 19 Sep 2018 09:31:15 -0700	[thread overview]
Message-ID: <20180919163115.7354-2-andrew.smirnov@gmail.com> (raw)
In-Reply-To: <20180919163115.7354-1-andrew.smirnov@gmail.com>

Add ZII SCU3 ESB board, which is i.MX51 based and similar enought to
RDU1 that it can be handled by the same image (different DT).

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 arch/arm/boards/zii-imx51-rdu1/board.c    |  3 ++-
 arch/arm/boards/zii-imx51-rdu1/lowlevel.c |  4 ++++
 arch/arm/dts/Makefile                     |  3 ++-
 arch/arm/dts/imx51-zii-scu3-esb.dts       | 12 ++++++++++++
 4 files changed, 20 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm/dts/imx51-zii-scu3-esb.dts

diff --git a/arch/arm/boards/zii-imx51-rdu1/board.c b/arch/arm/boards/zii-imx51-rdu1/board.c
index 5c05134c2..46368cccc 100644
--- a/arch/arm/boards/zii-imx51-rdu1/board.c
+++ b/arch/arm/boards/zii-imx51-rdu1/board.c
@@ -26,7 +26,8 @@ static int zii_rdu1_init(void)
 	const char *hostname;
 
 	if (!of_machine_is_compatible("zii,imx51-rdu1") &&
-	    !of_machine_is_compatible("zii,imx51-scu2-mezz"))
+	    !of_machine_is_compatible("zii,imx51-scu2-mezz") &&
+	    !of_machine_is_compatible("zii,imx51-scu3-esb"))
 		return 0;
 
 	hostname = of_get_machine_compatible() + strlen("imx51-");
diff --git a/arch/arm/boards/zii-imx51-rdu1/lowlevel.c b/arch/arm/boards/zii-imx51-rdu1/lowlevel.c
index d82597e0b..849c5624c 100644
--- a/arch/arm/boards/zii-imx51-rdu1/lowlevel.c
+++ b/arch/arm/boards/zii-imx51-rdu1/lowlevel.c
@@ -70,6 +70,7 @@ static unsigned int get_system_type(void)
 
 extern char __dtb_imx51_zii_rdu1_start[];
 extern char __dtb_imx51_zii_scu2_mezz_start[];
+extern char __dtb_imx51_zii_scu3_esb_start[];
 
 ENTRY_FUNCTION(start_imx51_zii_rdu1, r0, r1, r2)
 {
@@ -107,6 +108,9 @@ ENTRY_FUNCTION(start_imx51_zii_rdu1, r0, r1, r2)
 	case ZII_PLATFORM_IMX51_SCU2_MEZZ:
 		fdt = __dtb_imx51_zii_scu2_mezz_start;
 		break;
+	case ZII_PLATFORM_IMX51_SCU3_ESB:
+		fdt = __dtb_imx51_zii_scu3_esb_start;
+		break;
 	}
 
 	imx51_barebox_entry(fdt + get_runtime_offset());
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 82ff1b666..315183666 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -105,7 +105,8 @@ pbl-dtb-$(CONFIG_MACH_WARP7) += imx7s-warp.dtb.o
 pbl-dtb-$(CONFIG_MACH_VF610_TWR) += vf610-twr.dtb.o
 pbl-dtb-$(CONFIG_MACH_ZII_RDU1) +=	\
 	imx51-zii-rdu1.dtb.o		\
-	imx51-zii-scu2-mezz.dtb.o
+	imx51-zii-scu2-mezz.dtb.o	\
+	imx51-zii-scu3-esb.dtb.o
 pbl-dtb-$(CONFIG_MACH_ZII_RDU2) += imx6q-zii-rdu2.dtb.o imx6qp-zii-rdu2.dtb.o
 pbl-dtb-$(CONFIG_MACH_ZII_VF610_DEV) += \
 	vf610-zii-dev-rev-b.dtb.o 	\
diff --git a/arch/arm/dts/imx51-zii-scu3-esb.dts b/arch/arm/dts/imx51-zii-scu3-esb.dts
new file mode 100644
index 000000000..c83bf1731
--- /dev/null
+++ b/arch/arm/dts/imx51-zii-scu3-esb.dts
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+
+/*
+ * Copyright (C) 2018 Zodiac Inflight Innovations
+ */
+
+
+#include <arm/imx51-zii-scu3-esb.dts>
+
+&iim {
+	barebox,provide-mac-address = <&fec 1 9>;
+};
-- 
2.17.1


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

  reply	other threads:[~2018-09-19 16:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-19 16:31 [PATCH 1/2] ARM: i.MX: Add ZII SCU2 Mezz Board Andrey Smirnov
2018-09-19 16:31 ` Andrey Smirnov [this message]
2018-09-24  6:56 ` 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=20180919163115.7354-2-andrew.smirnov@gmail.com \
    --to=andrew.smirnov@gmail.com \
    --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