blob: 5fe63f8025879a7fca596cd403a409f601ca97e8 [file] [log] [blame]
Googlere00b8eb2019-07-08 16:37:07 -07001#
2# Device Tree Control
3#
Googler5e15fb12022-06-11 12:44:13 +08004# TODO:
5# This feature is not currently supported for SPL,
6# but this restriction should be removed in the future.
Googlere00b8eb2019-07-08 16:37:07 -07007
8config SUPPORT_OF_CONTROL
9 bool
10
Googlere00b8eb2019-07-08 16:37:07 -070011menu "Device Tree Control"
Googler5e15fb12022-06-11 12:44:13 +080012 depends on !SPL_BUILD
Googlere00b8eb2019-07-08 16:37:07 -070013 depends on SUPPORT_OF_CONTROL
14
15config OF_CONTROL
16 bool "Run-time configuration via Device Tree"
Googlere00b8eb2019-07-08 16:37:07 -070017 help
18 This feature provides for run-time configuration of U-Boot
19 via a flattened device tree.
20
Googlere00b8eb2019-07-08 16:37:07 -070021choice
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
Googler5e15fb12022-06-11 12:44:13 +080036 built into the U-Boot image.
Googlere00b8eb2019-07-08 16:37:07 -070037
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
Googlere00b8eb2019-07-08 16:37:07 -070046endchoice
47
48config DEFAULT_DEVICE_TREE
49 string "Default Device Tree for DT control"
Googlere00b8eb2019-07-08 16:37:07 -070050 help
51 This option specifies the default Device Tree used for DT control.
52 It can be overridden from the command line:
53 $ make DEVICE_TREE=<device-tree-name>
54
Googlere00b8eb2019-07-08 16:37:07 -070055endmenu