Kconfig 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # SPDX-License-Identifier: GPL-2.0
  2. config DTC
  3. bool
  4. menuconfig OF
  5. bool "Device Tree and Open Firmware support"
  6. help
  7. This option enables the device tree infrastructure.
  8. It is automatically selected by platforms that need it or can
  9. be enabled manually for unittests, overlays or
  10. compile-coverage.
  11. if OF
  12. config OF_UNITTEST
  13. bool "Device Tree runtime unit tests"
  14. depends on !SPARC
  15. select IRQ_DOMAIN
  16. select OF_EARLY_FLATTREE
  17. select OF_RESOLVE
  18. help
  19. This option builds in test cases for the device tree infrastructure
  20. that are executed once at boot time, and the results dumped to the
  21. console.
  22. If unsure, say N here, but this option is safe to enable.
  23. config OF_ALL_DTBS
  24. bool "Build all Device Tree Blobs"
  25. depends on COMPILE_TEST
  26. select DTC
  27. help
  28. This option builds all possible Device Tree Blobs (DTBs) for the
  29. current architecture.
  30. If unsure, say N here, but this option is safe to enable.
  31. config OF_FLATTREE
  32. bool
  33. select DTC
  34. select LIBFDT
  35. select CRC32
  36. config OF_EARLY_FLATTREE
  37. bool
  38. select OF_FLATTREE
  39. config OF_PROMTREE
  40. bool
  41. config OF_KOBJ
  42. def_bool SYSFS
  43. # Hardly any platforms need this. It is safe to select, but only do so if you
  44. # need it.
  45. config OF_DYNAMIC
  46. bool "Support for dynamic device trees" if OF_UNITTEST
  47. select OF_KOBJ
  48. help
  49. On some platforms, the device tree can be manipulated at runtime.
  50. While this option is selected automatically on such platforms, you
  51. can enable it manually to improve device tree unit test coverage.
  52. config OF_ADDRESS
  53. def_bool y
  54. depends on !SPARC && (HAS_IOMEM || UML)
  55. config OF_IRQ
  56. def_bool y
  57. depends on !SPARC && IRQ_DOMAIN
  58. config OF_NET
  59. depends on NETDEVICES
  60. def_bool y
  61. config OF_MDIO
  62. def_tristate PHYLIB
  63. depends on PHYLIB
  64. select FIXED_PHY
  65. help
  66. OpenFirmware MDIO bus (Ethernet PHY) accessors
  67. config OF_RESERVED_MEM
  68. depends on OF_EARLY_FLATTREE
  69. bool
  70. help
  71. Helpers to allow for reservation of memory regions
  72. config OF_RESOLVE
  73. bool
  74. config OF_OVERLAY
  75. bool "Device Tree overlays"
  76. select OF_DYNAMIC
  77. select OF_FLATTREE
  78. select OF_RESOLVE
  79. help
  80. Overlays are a method to dynamically modify part of the kernel's
  81. device tree with dynamically loaded data.
  82. While this option is selected automatically when needed, you can
  83. enable it manually to improve device tree unit test coverage.
  84. config OF_NUMA
  85. bool
  86. config OF_DMA_DEFAULT_COHERENT
  87. # arches should select this if DMA is coherent by default for OF devices
  88. bool
  89. endif # OF