summaryrefslogtreecommitdiff
path: root/dts
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-02-03 20:51:36 +0900
committerSimon Glass <sjg@chromium.org>2016-02-24 20:06:19 -0800
commit5f3f7b79dbe83144ef5562fa212266c86cd639e2 (patch)
treec5d03a04e4a93589918b624dbf3d3220a7a3327e /dts
parent52dd704bf8eda7ca039cdb398ec0b6895c3ef939 (diff)
downloadu-boot-imx-5f3f7b79dbe83144ef5562fa212266c86cd639e2.zip
u-boot-imx-5f3f7b79dbe83144ef5562fa212266c86cd639e2.tar.gz
u-boot-imx-5f3f7b79dbe83144ef5562fa212266c86cd639e2.tar.bz2
dts: keep clock-names and clocks in SPL DTB if SPL_CLK is enabled
These two properties are necessary for SPL to get clocks from DT. Note: For now, only clock look-up by index is supported (clk_get_by_index() function), so "clock-names" is never parsed in U-Boot. However, we may want to support something like clk_get_by_name() in the future, so let's keep "clock-names" as well as "clocks". Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'dts')
-rw-r--r--dts/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/dts/Kconfig b/dts/Kconfig
index fb2d79e..d639be9 100644
--- a/dts/Kconfig
+++ b/dts/Kconfig
@@ -61,7 +61,9 @@ config DEFAULT_DEVICE_TREE
config OF_SPL_REMOVE_PROPS
string "List of device tree properties to drop for SPL"
depends on SPL_OF_CONTROL
+ default "interrupt-parent" if SPL_PINCTRL_FULL && SPL_CLK
default "clocks clock-names interrupt-parent" if SPL_PINCTRL_FULL
+ default "pinctrl-0 pinctrl-names interrupt-parent" if SPL_CLK
default "pinctrl-0 pinctrl-names clocks clock-names interrupt-parent"
help
Since SPL normally runs in a reduced memory space, the device tree