From: Martin Kelly <mkelly@xevo.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] sunxi: allow CONFIG_DEFAULT_FDT_FILE override
Date: Tue, 1 May 2018 17:46:41 -0700 [thread overview]
Message-ID: <20180502004641.13415-1-mkelly@xevo.com> (raw)
Currently, sunxi-common.h ignores CONFIG_DEFAULT_FDT_FILE and assumes
the kernel fdtfile and the u-boot devicetree names are the same.
Although this is typically the case, sometimes you might want to
customize one of these differently, so it's useful to allow them to be
different.
Add logic in sunxi-common.h to respect CONFIG_DEFAULT_FDT_FILE, if set,
and default to the values it currently uses.
Signed-off-by: Martin Kelly <mkelly@xevo.com>
---
include/configs/sunxi-common.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 9d9e9ce173..cfd0b1d8c6 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -501,12 +501,18 @@ extern int soft_i2c_gpio_scl;
CONSOLE_STDIN_SETTINGS \
CONSOLE_STDOUT_SETTINGS
+#ifdef CONFIG_DEFAULT_FDT_FILE
+#define FDTFILE CONFIG_DEFAULT_FDT_FILE ".dtb"
+#else /* ifndef CONFIG_DEFAULT_FDT_FILE */
+
#ifdef CONFIG_ARM64
#define FDTFILE "allwinner/" CONFIG_DEFAULT_DEVICE_TREE ".dtb"
#else
#define FDTFILE CONFIG_DEFAULT_DEVICE_TREE ".dtb"
#endif
+#endif /* ifdef CONFIG_DEFAULT_FDT_FILE */
+
#define CONFIG_EXTRA_ENV_SETTINGS \
CONSOLE_ENV_SETTINGS \
MEM_LAYOUT_ENV_SETTINGS \
--
2.11.0
next reply other threads:[~2018-05-02 0:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-02 0:46 Martin Kelly [this message]
2018-05-17 12:01 ` [U-Boot] [PATCH] sunxi: allow CONFIG_DEFAULT_FDT_FILE override Maxime Ripard
2018-05-23 18:34 ` Martin Kelly
2018-05-31 17:49 ` Martin Kelly
2018-05-31 18:15 ` klaus.goger at theobroma-systems.com
2018-05-31 19:48 ` Martin Kelly
2018-05-31 19:58 ` klaus.goger at theobroma-systems.com
2018-05-31 20:02 ` Martin Kelly
2018-06-01 9:29 ` Jagan Teki
2018-05-31 18:13 ` Jagan Teki
2018-05-31 18:14 ` Martin Kelly
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=20180502004641.13415-1-mkelly@xevo.com \
--to=mkelly@xevo.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