[U-Boot] [PATCH v2 10/10] configs: enable device tree for Colibri iMX7

Stefan Agner stefan at agner.ch
Tue Aug 2 07:50:24 CEST 2016


From: Stefan Agner <stefan.agner at toradex.com>

Enable device tree configuration and specify default device tree
for Toradex Colibri iMX7. Also configure CONFIG_CUSTOM_BOARDINFO
to avoid that board info get printed twice (once from the device
tree and one from the runtime detection in board specific code).

Signed-off-by: Stefan Agner <stefan.agner at toradex.com>
---

 configs/colibri_imx7_defconfig | 10 +++++++++-
 include/configs/colibri_imx7.h |  1 +
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/configs/colibri_imx7_defconfig b/configs/colibri_imx7_defconfig
index 50c1201..d78b35c 100644
--- a/configs/colibri_imx7_defconfig
+++ b/configs/colibri_imx7_defconfig
@@ -1,8 +1,11 @@
 CONFIG_ARM=y
 CONFIG_ARCH_MX7=y
 CONFIG_TARGET_COLIBRI_IMX7=y
+CONFIG_DM_I2C=y
+CONFIG_DM_GPIO=y
 CONFIG_IMX_RDC=y
 CONFIG_IMX_BOOTAUX=y
+CONFIG_DEFAULT_DEVICE_TREE="imx7-colibri"
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/toradex/colibri_imx7/imximage.cfg,MX7D"
 CONFIG_BOOTDELAY=1
 CONFIG_HUSH_PARSER=y
@@ -29,6 +32,12 @@ CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT4=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
+CONFIG_OF_CONTROL=y
+CONFIG_OF_EMBED=y
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_IMX7=y
+CONFIG_DM_PMIC=y
+CONFIG_PMIC_RN5T567=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_GADGET=y
@@ -37,4 +46,3 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Toradex"
 CONFIG_G_DNL_VENDOR_NUM=0x1b67
 CONFIG_G_DNL_PRODUCT_NUM=0x4020
-CONFIG_OF_LIBFDT=y
diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h
index 32b6101..2927818 100644
--- a/include/configs/colibri_imx7.h
+++ b/include/configs/colibri_imx7.h
@@ -24,6 +24,7 @@
 #define CONFIG_BOARD_EARLY_INIT_F
 #define CONFIG_BOARD_LATE_INIT
 
+#define CONFIG_CUSTOM_BOARDINFO
 #define CONFIG_DISPLAY_BOARDINFO_LATE
 
 /* Size of malloc() pool */
-- 
2.9.0



More information about the U-Boot mailing list