]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
dts: keep clock-names and clocks in SPL DTB if SPL_CLK is enabled
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 3 Feb 2016 11:51:36 +0000 (20:51 +0900)
committerSimon Glass <sjg@chromium.org>
Thu, 25 Feb 2016 04:06:19 +0000 (20:06 -0800)
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>
dts/Kconfig

index fb2d79edbc3ba375944a997bc191cad4585a2a5a..d639be9a078e3edc0c49091576ebc3f761c441f8 100644 (file)
@@ -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