blob: 83ba7a6e9815a50990083565934442d81123a7e0 [file] [log] [blame]
Masahiro Yamada9fadbc82014-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"
12 depends on !SPL_BUILD
13 depends on SUPPORT_OF_CONTROL
14
15config OF_CONTROL
16 bool "Run-time configuration via Device Tree"
17 help
18 This feature provides for run-time configuration of U-Boot
19 via a flattened device tree.
20
21choice
22 prompt "Provider of DTB for DT control"
23 depends on OF_CONTROL
24
25config OF_SEPARATE
26 bool "Separate DTB for DT control"
27 depends on !SANDBOX
28 help
29 If this option is enabled, the device tree will be built and
30 placed as a separate u-boot.dtb file alongside the U-Boot image.
31
32config OF_EMBED
33 bool "Embedded DTB for DT control"
34 help
35 If this option is enabled, the device tree will be picked up and
36 built into the U-Boot image.
37
38config OF_HOSTFILE
39 bool "Host filed DTB for DT control"
40 depends on SANDBOX
41 help
42 If this option is enabled, DTB will be read from a file on startup.
43 This is only useful for Sandbox. Use the -d flag to U-Boot to
44 specify the file to read.
45
46endchoice
47
Masahiro Yamada8c65b9d2014-09-22 19:59:06 +090048config DEFAULT_DEVICE_TREE
49 string "Default Device Tree for DT control"
50 help
51 This option specifies the default Device Tree used for DT control.
52 It can be overrided from the command line:
53 $ make DEVICE_TREE=<device-tree-name>
54
Masahiro Yamada9fadbc82014-09-22 19:59:05 +090055endmenu