From: "Andreas Färber" <afaerber@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] rockchip: rk3368: Set fdtfile
Date: Mon, 1 May 2017 19:41:18 +0200 [thread overview]
Message-ID: <20170501174118.15817-1-afaerber@suse.de> (raw)
In-Reply-To: <df67b8f4-c24e-3639-e0a5-b2b5ec0689de@suse.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ärber <afaerber@suse.de>
---
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=y
CONFIG_TARGET_GEEKBOX=y
CONFIG_DEFAULT_DEVICE_TREE="rk3368-geekbox"
CONFIG_HUSH_PARSER=y
+CONFIG_DEFAULT_FDT_FILE="rockchip/rk3368-geekbox.dtb"
# CONFIG_DISPLAY_CPUINFO is not set
# CONFIG_CMD_IMLS is not set
CONFIG_REGMAP=y
diff --git a/include/configs/rk3368_common.h b/include/configs/rk3368_common.h
index d4fd54492c..0208e6f9f2 100644
--- a/include/configs/rk3368_common.h
+++ b/include/configs/rk3368_common.h
@@ -35,8 +35,13 @@
#include <config_distro_bootcmd.h>
+#ifndef FDTFILE
+#define FDTFILE "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0"
+#endif
+
#define CONFIG_EXTRA_ENV_SETTINGS \
- BOOTENV
+ BOOTENV \
+ FDTFILE
#endif
--
2.12.0
next prev parent reply other threads:[~2017-05-01 17:41 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-21 2:29 [U-Boot] [PATCH 0/7] Add basic support for Rockchip RK3368 SOC Andy Yan
2017-04-21 2:31 ` [U-Boot] [PATCH 1/7] rockchip: rk3368: Add clok drvier Andy Yan
2017-04-29 0:26 ` Simon Glass
2017-05-04 8:48 ` Andy Yan
2017-05-04 16:49 ` Simon Glass
2017-04-29 0:28 ` Simon Glass
2017-04-29 8:54 ` Andreas Färber
2017-04-30 8:33 ` Andreas Färber
2017-04-21 2:31 ` [U-Boot] [PATCH 2/7] rockchip: rk3368: Add pinctrl driver Andy Yan
2017-04-29 0:26 ` Simon Glass
2017-04-21 2:31 ` [U-Boot] [PATCH 3/7] rockchip: rk3368: Add core start-up code for RK3368 Andy Yan
2017-04-29 0:26 ` Simon Glass
2017-04-21 2:32 ` [U-Boot] [PATCH 4/7] rockchip: rk3368: Add sysreset driver Andy Yan
2017-04-29 0:26 ` Simon Glass
2017-04-21 2:32 ` [U-Boot] [PATCH 5/7] rockchip: rk3368: Add initial support for RK3368 based GeekBox Andy Yan
2017-04-21 2:59 ` Andreas Färber
2017-04-21 6:17 ` Andy Yan
2017-04-30 9:17 ` Andreas Färber
2017-05-01 17:41 ` Andreas Färber [this message]
2017-05-01 17:48 ` [U-Boot] [PATCH] rockchip: rk3368: Set fdtfile Andreas Färber
2017-05-08 16:38 ` Simon Glass
2017-05-09 8:05 ` Andreas Färber
2017-05-15 3:02 ` Simon Glass
2017-04-21 2:33 ` [U-Boot] [PATCH 6/7] rockchip: rk3368: Add PX5 Evaluation board Andy Yan
2017-04-29 0:26 ` Simon Glass
2017-05-01 17:44 ` Andreas Färber
2017-05-02 11:27 ` Simon Glass
2017-04-21 2:33 ` [U-Boot] [PATCH 7/7] rockchip: rk3368: add Sheep board Andy Yan
2017-04-29 0:26 ` Simon Glass
2017-04-21 7:58 ` [U-Boot] [PATCH 0/7] Add basic support for Rockchip RK3368 SOC Kever Yang
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=20170501174118.15817-1-afaerber@suse.de \
--to=afaerber@suse.de \
--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