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 DMA_DECLARE_COHERENT if HAS_DMA
  39. select OF_FLATTREE
  40. config OF_PROMTREE
  41. bool
  42. config OF_KOBJ
  43. def_bool SYSFS
  44. # Hardly any platforms need this. It is safe to select, but only do so if you
  45. # need it.
  46. config OF_DYNAMIC
  47. bool "Support for dynamic device trees" if OF_UNITTEST
  48. select OF_KOBJ
  49. help
  50. On some platforms, the device tree can be manipulated at runtime.
  51. While this option is selected automatically on such platforms, you
  52. can enable it manually to improve device tree unit test coverage.
  53. config OF_ADDRESS
  54. def_bool y
  55. depends on !SPARC && (HAS_IOMEM || UML)
  56. config OF_IRQ
  57. def_bool y
  58. depends on !SPARC && IRQ_DOMAIN
  59. config OF_NET
  60. depends on NETDEVICES
  61. def_bool y
  62. config OF_MDIO
  63. def_tristate PHYLIB
  64. depends on PHYLIB
  65. select FIXED_PHY
  66. help
  67. OpenFirmware MDIO bus (Ethernet PHY) accessors
  68. config OF_RESERVED_MEM
  69. bool
  70. depends on OF_EARLY_FLATTREE
  71. default y if DMA_DECLARE_COHERENT || DMA_CMA
  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