From: Jagan Teki <jagan@openedev.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v6 10/21] sabresd: i.MX6QP: Add initial dts support
Date: Thu, 18 May 2017 16:30:20 +0530 [thread overview]
Message-ID: <1495105231-1723-11-git-send-email-jagan@openedev.com> (raw)
In-Reply-To: <1495105231-1723-1-git-send-email-jagan@openedev.com>
From: Jagan Teki <jagan@amarulasolutions.com>
Add initial devicetree support for i.MX6 Quad Plus Sabresd board.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
arch/arm/cpu/armv7/mx6/Kconfig | 3 +++
board/freescale/mx6sabresd/spl.c | 12 ++++++++++++
configs/mx6sabresd_spl_defconfig | 1 +
3 files changed, 16 insertions(+)
diff --git a/arch/arm/cpu/armv7/mx6/Kconfig b/arch/arm/cpu/armv7/mx6/Kconfig
index 0497fe0..42ac9b9 100644
--- a/arch/arm/cpu/armv7/mx6/Kconfig
+++ b/arch/arm/cpu/armv7/mx6/Kconfig
@@ -220,6 +220,9 @@ config TARGET_MX6SABRESD
select PINCTRL
select PINCTRL_IMX6
select SUPPORT_SPL
+ select FIT
+ select SPL_LOAD_FIT
+ select SPL_OF_LIBFDT
config TARGET_MX6SLEVK
bool "mx6slevk"
diff --git a/board/freescale/mx6sabresd/spl.c b/board/freescale/mx6sabresd/spl.c
index 01d45ce..63847b3 100644
--- a/board/freescale/mx6sabresd/spl.c
+++ b/board/freescale/mx6sabresd/spl.c
@@ -147,6 +147,18 @@ int board_mmc_init(bd_t *bis)
}
#endif /* CONFIG_FSL_ESDHC */
+#ifdef CONFIG_SPL_LOAD_FIT
+int board_fit_config_name_match(const char *name)
+{
+ if (is_mx6dqp() && !strcmp(name, "imx6qp-sabresd"))
+ return 0;
+ else if (is_mx6dq() && !strcmp(name, "imx6q-sabresd"))
+ return 0;
+ else
+ return -1;
+}
+#endif
+
#ifdef CONFIG_SPL_OS_BOOT
int spl_start_uboot(void)
{
diff --git a/configs/mx6sabresd_spl_defconfig b/configs/mx6sabresd_spl_defconfig
index 33e84f0..ef02df1 100644
--- a/configs/mx6sabresd_spl_defconfig
+++ b/configs/mx6sabresd_spl_defconfig
@@ -10,6 +10,7 @@ CONFIG_SPL_LIBDISK_SUPPORT=y
CONFIG_SPL_WATCHDOG_SUPPORT=y
CONFIG_VIDEO=y
CONFIG_DEFAULT_DEVICE_TREE="imx6q-sabresd"
+CONFIG_OF_LIST="imx6qp-sabresd imx6q-sabresd"
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,SPL,MX6QDL"
CONFIG_BOOTDELAY=3
# CONFIG_CONSOLE_MUX is not set
--
1.9.1
next prev parent reply other threads:[~2017-05-18 11:00 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-18 11:00 [U-Boot] [PATCH v6 00/21] ARM: i.MX6: SabreSD: Add dts support Jagan Teki
2017-05-18 11:00 ` [U-Boot] [PATCH v6 01/21] mx6sabresd: MAINTAINERS: Remove invalid defconfigs F: list Jagan Teki
2017-05-18 12:16 ` Fabio Estevam
2017-05-18 11:00 ` [U-Boot] [PATCH v6 02/21] mx6sabresd: README: Fix to add space on dd command Jagan Teki
2017-05-18 12:17 ` Fabio Estevam
2017-05-18 15:41 ` Jagan Teki
2017-05-18 11:00 ` [U-Boot] [PATCH v6 03/21] ARM: i.MX6: sabresd: Remove SPL_I2C_SUPPORT Jagan Teki
2017-05-18 12:18 ` Fabio Estevam
2017-05-18 11:00 ` [U-Boot] [PATCH v6 04/21] ARM: dts: i.MX6: Add imx6qdl-sabresd.dtsi Jagan Teki
2017-05-18 12:20 ` Fabio Estevam
2017-05-22 16:51 ` Jagan Teki
2017-05-22 17:01 ` Fabio Estevam
2017-05-18 11:00 ` [U-Boot] [PATCH v6 05/21] ARM: dts: i.MX6: Add imx6q-sabresd.dts Jagan Teki
2017-05-18 11:00 ` [U-Boot] [PATCH v6 06/21] ARM: dts: i.MX6: Add imx6dl-sabresd.dts Jagan Teki
2017-05-18 11:00 ` [U-Boot] [PATCH v6 07/21] ARM: dts: i.MX6: Add imx6qp.dtsi Jagan Teki
2017-05-18 11:00 ` [U-Boot] [PATCH v6 08/21] ARM: dts: i.MX6: Add imx6qp-sabresd.dts Jagan Teki
2017-05-18 11:00 ` [U-Boot] [PATCH v6 09/21] sabresd: i.MX6Q: Add initial dts support Jagan Teki
2017-05-18 11:00 ` Jagan Teki [this message]
2017-05-18 11:00 ` [U-Boot] [PATCH v6 11/21] SabreSD: i.MX6DL: " Jagan Teki
2017-05-18 11:00 ` [U-Boot] [PATCH v6 12/21] SabreSD: Move CONFIG_SYS_I2C_MXC to defconfigs Jagan Teki
2017-05-18 11:00 ` [U-Boot] [PATCH v6 13/21] SabreSD: Enable DM_I2C and DM_PMIC Jagan Teki
2017-05-18 12:22 ` Fabio Estevam
2017-05-18 12:41 ` Fabio Estevam
2017-05-22 14:38 ` Jagan Teki
2017-05-22 14:48 ` Fabio Estevam
2017-05-18 11:00 ` [U-Boot] [PATCH v6 14/21] SabreSD: Enable CONFIG_DM_REGULATOR Jagan Teki
2017-05-18 12:23 ` Fabio Estevam
2017-05-18 11:00 ` [U-Boot] [PATCH v6 15/21] SabreSD: Enable DM_USB Jagan Teki
2017-05-18 11:00 ` [U-Boot] [PATCH v6 16/21] i.MX6: Sabre: Move CONFIG_FEC_MXC to defconfigs Jagan Teki
2017-05-18 11:00 ` [U-Boot] [PATCH v6 17/21] i.MX6: SabreSD: Enable DM_ETH Jagan Teki
2017-05-18 12:26 ` Fabio Estevam
2017-05-18 11:00 ` [U-Boot] [PATCH v6 18/21] i.MX6: sabresd: Drop checkboard Jagan Teki
2017-05-18 11:00 ` [U-Boot] [PATCH v6 19/21] i.MX6: SabreSD: Cleanup board code Jagan Teki
2017-05-18 11:00 ` [U-Boot] [PATCH v6 20/21] i.MX6: SabreSD: mx6sabresd_spl_defconfig => mx6sabresd_defconfig Jagan Teki
2017-05-18 12:27 ` Fabio Estevam
2017-05-18 11:00 ` [U-Boot] [PATCH v6 21/21] SabreSD: README: Update with dtb changes Jagan Teki
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=1495105231-1723-11-git-send-email-jagan@openedev.com \
--to=jagan@openedev.com \
--cc=u-boot@lists.denx.de \
/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