Masahiro Yamada | 9fadbc8 | 2014-09-22 19:59:05 +0900 | [diff] [blame] | 1 | # |
| 2 | # Device Tree Control |
| 3 | # |
Masahiro Yamada | 9fadbc8 | 2014-09-22 19:59:05 +0900 | [diff] [blame] | 4 | |
| 5 | config SUPPORT_OF_CONTROL |
| 6 | bool |
| 7 | |
| 8 | menu "Device Tree Control" |
Masahiro Yamada | 9fadbc8 | 2014-09-22 19:59:05 +0900 | [diff] [blame] | 9 | depends on SUPPORT_OF_CONTROL |
| 10 | |
| 11 | config OF_CONTROL |
| 12 | bool "Run-time configuration via Device Tree" |
| 13 | help |
| 14 | This feature provides for run-time configuration of U-Boot |
| 15 | via a flattened device tree. |
| 16 | |
Simon Glass | 400d040 | 2015-02-27 22:06:38 -0700 | [diff] [blame^] | 17 | config SPL_DISABLE_OF_CONTROL |
| 18 | bool "Disable run-time configuration via Device Tree in SPL" |
| 19 | depends on OF_CONTROL |
| 20 | help |
| 21 | Some boards use device tree in U-Boot but only have 4KB of SRAM |
| 22 | which is not enough to support device tree. Enable this option to |
| 23 | allow such boards to be supported by U-Boot SPL. |
| 24 | |
Masahiro Yamada | 9fadbc8 | 2014-09-22 19:59:05 +0900 | [diff] [blame] | 25 | choice |
| 26 | prompt "Provider of DTB for DT control" |
| 27 | depends on OF_CONTROL |
| 28 | |
| 29 | config OF_SEPARATE |
| 30 | bool "Separate DTB for DT control" |
| 31 | depends on !SANDBOX |
| 32 | help |
| 33 | If this option is enabled, the device tree will be built and |
| 34 | placed as a separate u-boot.dtb file alongside the U-Boot image. |
| 35 | |
| 36 | config OF_EMBED |
| 37 | bool "Embedded DTB for DT control" |
| 38 | help |
| 39 | If this option is enabled, the device tree will be picked up and |
| 40 | built into the U-Boot image. |
| 41 | |
| 42 | config OF_HOSTFILE |
| 43 | bool "Host filed DTB for DT control" |
| 44 | depends on SANDBOX |
| 45 | help |
| 46 | If this option is enabled, DTB will be read from a file on startup. |
| 47 | This is only useful for Sandbox. Use the -d flag to U-Boot to |
| 48 | specify the file to read. |
| 49 | |
| 50 | endchoice |
| 51 | |
Masahiro Yamada | 8c65b9d | 2014-09-22 19:59:06 +0900 | [diff] [blame] | 52 | config DEFAULT_DEVICE_TREE |
| 53 | string "Default Device Tree for DT control" |
| 54 | help |
| 55 | This option specifies the default Device Tree used for DT control. |
Robert P. J. Day | eb61df5 | 2014-10-21 16:44:32 -0400 | [diff] [blame] | 56 | It can be overridden from the command line: |
Masahiro Yamada | 8c65b9d | 2014-09-22 19:59:06 +0900 | [diff] [blame] | 57 | $ make DEVICE_TREE=<device-tree-name> |
| 58 | |
Masahiro Yamada | 9fadbc8 | 2014-09-22 19:59:05 +0900 | [diff] [blame] | 59 | endmenu |