Kconfig 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #
  2. # Device Tree Control
  3. #
  4. config SUPPORT_OF_CONTROL
  5. bool
  6. menu "Device Tree Control"
  7. depends on SUPPORT_OF_CONTROL
  8. config OF_CONTROL
  9. bool "Run-time configuration via Device Tree"
  10. help
  11. This feature provides for run-time configuration of U-Boot
  12. via a flattened device tree.
  13. config SPL_OF_CONTROL
  14. bool "Enable run-time configuration via Device Tree in SPL"
  15. depends on SPL && OF_CONTROL
  16. help
  17. Some boards use device tree in U-Boot but only have 4KB of SRAM
  18. which is not enough to support device tree. Enable this option to
  19. allow such boards to be supported by U-Boot SPL.
  20. choice
  21. prompt "Provider of DTB for DT control"
  22. depends on OF_CONTROL
  23. config OF_SEPARATE
  24. bool "Separate DTB for DT control"
  25. depends on !SANDBOX
  26. help
  27. If this option is enabled, the device tree will be built and
  28. placed as a separate u-boot.dtb file alongside the U-Boot image.
  29. config OF_EMBED
  30. bool "Embedded DTB for DT control"
  31. help
  32. If this option is enabled, the device tree will be picked up and
  33. built into the U-Boot image. This is suitable for local debugging
  34. and development only and is not recommended for production devices.
  35. Boards in the mainline U-Boot tree should not use it.
  36. config OF_HOSTFILE
  37. bool "Host filed DTB for DT control"
  38. depends on SANDBOX
  39. help
  40. If this option is enabled, DTB will be read from a file on startup.
  41. This is only useful for Sandbox. Use the -d flag to U-Boot to
  42. specify the file to read.
  43. endchoice
  44. config DEFAULT_DEVICE_TREE
  45. string "Default Device Tree for DT control"
  46. depends on OF_CONTROL
  47. help
  48. This option specifies the default Device Tree used for DT control.
  49. It can be overridden from the command line:
  50. $ make DEVICE_TREE=<device-tree-name>
  51. config OF_LIST
  52. string "List of device tree files to include for DT control"
  53. depends on SPL_LOAD_FIT
  54. default DEFAULT_DEVICE_TREE
  55. help
  56. This option specifies a list of device tree files to use for DT
  57. control. These will be packaged into a FIT. At run-time, SPL will
  58. select the correct DT to use by examining the hardware (e.g.
  59. reading a board ID value). This is a list of device tree files
  60. (without the directory or .dtb suffix) separated by <space>.
  61. config OF_SPL_REMOVE_PROPS
  62. string "List of device tree properties to drop for SPL"
  63. depends on SPL_OF_CONTROL
  64. default "interrupt-parent" if SPL_PINCTRL_FULL && SPL_CLK
  65. default "clocks clock-names interrupt-parent" if SPL_PINCTRL_FULL
  66. default "pinctrl-0 pinctrl-names interrupt-parent" if SPL_CLK
  67. default "pinctrl-0 pinctrl-names clocks clock-names interrupt-parent"
  68. help
  69. Since SPL normally runs in a reduced memory space, the device tree
  70. is cut down to only what is needed to load and start U-Boot. Only
  71. nodes marked with the property "u-boot,dm-pre-reloc" will be
  72. included. In addition, some properties are not used by U-Boot and
  73. can be discarded. This option defines the list of properties to
  74. discard.
  75. endmenu