xref: /openbmc/u-boot/dts/Kconfig (revision 5699ea6d0ee01ab3e41d2cb2ebe2c56a24b9ffff)
1783e6a72SMasahiro Yamada#
2783e6a72SMasahiro Yamada# Device Tree Control
3783e6a72SMasahiro Yamada#
4783e6a72SMasahiro Yamada# TODO:
5783e6a72SMasahiro Yamada#   This feature is not currently supported for SPL,
6783e6a72SMasahiro Yamada#    but this restriction should be removed in the future.
7783e6a72SMasahiro Yamada
8783e6a72SMasahiro Yamadaconfig SUPPORT_OF_CONTROL
9783e6a72SMasahiro Yamada	bool
10783e6a72SMasahiro Yamada
11783e6a72SMasahiro Yamadamenu "Device Tree Control"
12783e6a72SMasahiro Yamada	depends on !SPL_BUILD
13783e6a72SMasahiro Yamada	depends on SUPPORT_OF_CONTROL
14783e6a72SMasahiro Yamada
15783e6a72SMasahiro Yamadaconfig OF_CONTROL
16783e6a72SMasahiro Yamada	bool "Run-time configuration via Device Tree"
17783e6a72SMasahiro Yamada	help
18783e6a72SMasahiro Yamada	  This feature provides for run-time configuration of U-Boot
19783e6a72SMasahiro Yamada	  via a flattened device tree.
20783e6a72SMasahiro Yamada
21783e6a72SMasahiro Yamadachoice
22783e6a72SMasahiro Yamada	prompt "Provider of DTB for DT control"
23783e6a72SMasahiro Yamada	depends on OF_CONTROL
24783e6a72SMasahiro Yamada
25783e6a72SMasahiro Yamadaconfig OF_SEPARATE
26783e6a72SMasahiro Yamada	bool "Separate DTB for DT control"
27783e6a72SMasahiro Yamada	depends on !SANDBOX
28783e6a72SMasahiro Yamada	help
29783e6a72SMasahiro Yamada	  If this option is enabled, the device tree will be built and
30783e6a72SMasahiro Yamada	  placed as a separate u-boot.dtb file alongside the U-Boot image.
31783e6a72SMasahiro Yamada
32783e6a72SMasahiro Yamadaconfig OF_EMBED
33783e6a72SMasahiro Yamada	bool "Embedded DTB for DT control"
34783e6a72SMasahiro Yamada	help
35783e6a72SMasahiro Yamada	  If this option is enabled, the device tree will be picked up and
36783e6a72SMasahiro Yamada	  built into the U-Boot image.
37783e6a72SMasahiro Yamada
38783e6a72SMasahiro Yamadaconfig OF_HOSTFILE
39783e6a72SMasahiro Yamada	bool "Host filed DTB for DT control"
40783e6a72SMasahiro Yamada	depends on SANDBOX
41783e6a72SMasahiro Yamada	help
42783e6a72SMasahiro Yamada	  If this option is enabled, DTB will be read from a file on startup.
43783e6a72SMasahiro Yamada	  This is only useful for Sandbox.  Use the -d flag to U-Boot to
44783e6a72SMasahiro Yamada	  specify the file to read.
45783e6a72SMasahiro Yamada
46783e6a72SMasahiro Yamadaendchoice
47783e6a72SMasahiro Yamada
48f1ef2b62SMasahiro Yamadaconfig DEFAULT_DEVICE_TREE
49f1ef2b62SMasahiro Yamada	string "Default Device Tree for DT control"
50f1ef2b62SMasahiro Yamada	help
51f1ef2b62SMasahiro Yamada	  This option specifies the default Device Tree used for DT control.
52*5699ea6dSRobert P. J. Day	  It can be overridden from the command line:
53f1ef2b62SMasahiro Yamada	  $ make DEVICE_TREE=<device-tree-name>
54f1ef2b62SMasahiro Yamada
55783e6a72SMasahiro Yamadaendmenu
56