blob: ca5bd6fb46626eafb7b0f15d023d243b79783f93 [file] [log] [blame]
Masahiro Yamada783e6a72014-09-22 19:59:05 +09001#
2# Device Tree Control
3#
4# TODO:
5# This feature is not currently supported for SPL,
6# but this restriction should be removed in the future.
7
8config SUPPORT_OF_CONTROL
9 bool
10
11menu "Device Tree Control"
Masahiro Yamada783e6a72014-09-22 19:59:05 +090012 depends on SUPPORT_OF_CONTROL
13
14config OF_CONTROL
15 bool "Run-time configuration via Device Tree"
16 help
17 This feature provides for run-time configuration of U-Boot
18 via a flattened device tree.
19
20choice
21 prompt "Provider of DTB for DT control"
22 depends on OF_CONTROL
23
24config OF_SEPARATE
25 bool "Separate DTB for DT control"
26 depends on !SANDBOX
27 help
28 If this option is enabled, the device tree will be built and
29 placed as a separate u-boot.dtb file alongside the U-Boot image.
30
31config OF_EMBED
32 bool "Embedded DTB for DT control"
33 help
34 If this option is enabled, the device tree will be picked up and
35 built into the U-Boot image.
36
37config OF_HOSTFILE
38 bool "Host filed DTB for DT control"
39 depends on SANDBOX
40 help
41 If this option is enabled, DTB will be read from a file on startup.
42 This is only useful for Sandbox. Use the -d flag to U-Boot to
43 specify the file to read.
44
45endchoice
46
Masahiro Yamadaf1ef2b62014-09-22 19:59:06 +090047config DEFAULT_DEVICE_TREE
48 string "Default Device Tree for DT control"
49 help
50 This option specifies the default Device Tree used for DT control.
Robert P. J. Day5699ea62014-10-21 16:44:32 -040051 It can be overridden from the command line:
Masahiro Yamadaf1ef2b62014-09-22 19:59:06 +090052 $ make DEVICE_TREE=<device-tree-name>
53
Masahiro Yamada783e6a72014-09-22 19:59:05 +090054endmenu