From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 1 May 2017 19:41:18 +0200 Subject: [U-Boot] [PATCH] rockchip: rk3368: Set fdtfile In-Reply-To: References: Message-ID: <20170501174118.15817-1-afaerber@suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Populate the fdtfile environment variable based on CONFIG_DEFAULT_FDT_FILE. Allow to override this default behavior via FDTFILE. Set CONFIG_DEFAULT_FDT_FILE for the GeekBox. Signed-off-by: Andreas F=C3=A4rber --- configs/geekbox_defconfig | 1 + include/configs/rk3368_common.h | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configs/geekbox_defconfig b/configs/geekbox_defconfig index f5783100c0..5e4d5f03a4 100644 --- a/configs/geekbox_defconfig +++ b/configs/geekbox_defconfig @@ -4,6 +4,7 @@ CONFIG_ROCKCHIP_RK3368=3Dy CONFIG_TARGET_GEEKBOX=3Dy CONFIG_DEFAULT_DEVICE_TREE=3D"rk3368-geekbox" CONFIG_HUSH_PARSER=3Dy +CONFIG_DEFAULT_FDT_FILE=3D"rockchip/rk3368-geekbox.dtb" # CONFIG_DISPLAY_CPUINFO is not set # CONFIG_CMD_IMLS is not set CONFIG_REGMAP=3Dy diff --git a/include/configs/rk3368_common.h b/include/configs/rk3368_commo= n.h index d4fd54492c..0208e6f9f2 100644 --- a/include/configs/rk3368_common.h +++ b/include/configs/rk3368_common.h @@ -35,8 +35,13 @@ =20 #include =20 +#ifndef FDTFILE +#define FDTFILE "fdtfile=3D" CONFIG_DEFAULT_FDT_FILE "\0" +#endif + #define CONFIG_EXTRA_ENV_SETTINGS \ - BOOTENV + BOOTENV \ + FDTFILE =20 #endif =20 --=20 2.12.0