From: Philipp Zabel <p.zabel@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Subject: [PATCH 1/6] ARM i.MX6: sabrelite: switch to multiboard support
Date: Mon, 18 Nov 2013 12:06:32 +0100 [thread overview]
Message-ID: <1384772798-3297-1-git-send-email-p.zabel@pengutronix.de> (raw)
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
arch/arm/boards/freescale-mx6-sabrelite/board.c | 13 +++++++++++--
arch/arm/configs/freescale-mx6-sabrelite_defconfig | 2 +-
arch/arm/mach-imx/Kconfig | 10 +++++-----
3 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/arch/arm/boards/freescale-mx6-sabrelite/board.c b/arch/arm/boards/freescale-mx6-sabrelite/board.c
index eb6eb3c..a8fe7c0 100644
--- a/arch/arm/boards/freescale-mx6-sabrelite/board.c
+++ b/arch/arm/boards/freescale-mx6-sabrelite/board.c
@@ -120,6 +120,9 @@ static void sabrelite_ehci_init(void)
static int sabrelite_devices_init(void)
{
+ if (!of_machine_is_compatible("fsl,imx6q-sabrelite"))
+ return 0;
+
sabrelite_ehci_init();
armlinux_set_bootparams((void *)0x10000100);
@@ -134,18 +137,24 @@ device_initcall(sabrelite_devices_init);
static int sabrelite_coredevices_init(void)
{
+ if (!of_machine_is_compatible("fsl,imx6q-sabrelite"))
+ return 0;
+
phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK,
ksz9021rn_phy_fixup);
return 0;
}
coredevice_initcall(sabrelite_coredevices_init);
-static int sabrelite_core_init(void)
+static int sabrelite_postcore_init(void)
{
+ if (!of_machine_is_compatible("fsl,imx6q-sabrelite"))
+ return 0;
+
imx6_init_lowlevel();
barebox_set_hostname("sabrelite");
return 0;
}
-core_initcall(sabrelite_core_init);
+postcore_initcall(sabrelite_postcore_init);
diff --git a/arch/arm/configs/freescale-mx6-sabrelite_defconfig b/arch/arm/configs/freescale-mx6-sabrelite_defconfig
index d4d6cf2..4cbed2a 100644
--- a/arch/arm/configs/freescale-mx6-sabrelite_defconfig
+++ b/arch/arm/configs/freescale-mx6-sabrelite_defconfig
@@ -1,7 +1,7 @@
CONFIG_BUILTIN_DTB=y
CONFIG_BUILTIN_DTB_NAME="imx6q-sabrelite"
CONFIG_ARCH_IMX=y
-CONFIG_ARCH_IMX6=y
+CONFIG_IMX_MULTI_BOARDS=y
CONFIG_MACH_SABRELITE=y
CONFIG_IMX_IIM=y
CONFIG_IMX_IIM_FUSE_BLOW=y
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index e3fd6bd..c7b147e 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -215,6 +215,11 @@ config MACH_TQMA6X
bool "TQ tqma6x on mba6x"
select ARCH_IMX6
+config MACH_SABRELITE
+ bool "Freescale i.MX6 Sabre Lite"
+ select ARCH_IMX6
+ select HAVE_DEFAULT_ENVIRONMENT_NEW
+
endif
# ----------------------------------------------------------
@@ -444,11 +449,6 @@ config MACH_MX6Q_ARM2
bool "Freescale i.MX6q Armadillo2"
select ARCH_IMX6
-config MACH_SABRELITE
- bool "Freescale i.MX6 Sabre Lite"
- select ARCH_IMX6
- select HAVE_DEFAULT_ENVIRONMENT_NEW
-
config MACH_SABRESD
bool "Freescale i.MX6 SabreSD"
select ARCH_IMX6
--
1.8.4.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2013-11-18 11:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-18 11:06 Philipp Zabel [this message]
2013-11-18 11:06 ` [PATCH 2/6] ARM i.MX6: sabrelite: switch to multi image support Philipp Zabel
2013-11-18 11:06 ` [PATCH 3/6] ARM i.MX6: sabrelite: use &uart2 instead of hard-coding path Philipp Zabel
2013-11-18 11:06 ` [PATCH 4/6] ARM i.MX6: sabrelite: usb is probed from device tree Philipp Zabel
2013-11-18 11:11 ` Alexander Shiyan
2013-11-20 6:20 ` Sascha Hauer
2013-11-18 11:06 ` [PATCH 5/6] ARM i.MX6: sabrelite: move flash partitions into " Philipp Zabel
2013-11-18 11:06 ` [PATCH 6/6] ARM i.MX6: sabrelite: register SPI flash barebox update handler Philipp Zabel
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=1384772798-3297-1-git-send-email-p.zabel@pengutronix.de \
--to=p.zabel@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