Kconfig 2.5 KB

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