Masahiro Yamada | 783e6a7 | 2014-09-22 19:59:05 +0900 | [diff] [blame^] | 1 | # |
| 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 | |
| 8 | config SUPPORT_OF_CONTROL |
| 9 | bool |
| 10 | |
| 11 | menu "Device Tree Control" |
| 12 | depends on !SPL_BUILD |
| 13 | depends on SUPPORT_OF_CONTROL |
| 14 | |
| 15 | config 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 | |
| 21 | choice |
| 22 | prompt "Provider of DTB for DT control" |
| 23 | depends on OF_CONTROL |
| 24 | |
| 25 | config 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 | |
| 32 | config 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 | |
| 38 | config 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 | |
| 46 | endchoice |
| 47 | |
| 48 | endmenu |