Kconfig 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. help
  63. OpenFirmware MDIO bus (Ethernet PHY) accessors
  64. config OF_PCI
  65. def_tristate PCI
  66. depends on PCI
  67. help
  68. OpenFirmware PCI bus accessors
  69. config OF_PCI_IRQ
  70. def_tristate PCI
  71. depends on OF_PCI && OF_IRQ
  72. help
  73. OpenFirmware PCI IRQ routing helpers
  74. config OF_MTD
  75. depends on MTD
  76. def_bool y
  77. config OF_RESERVED_MEM
  78. depends on OF_EARLY_FLATTREE
  79. bool
  80. help
  81. Helpers to allow for reservation of memory regions
  82. config OF_RESOLVE
  83. bool
  84. config OF_OVERLAY
  85. bool "Device Tree overlays"
  86. select OF_DYNAMIC
  87. select OF_RESOLVE
  88. help
  89. Overlays are a method to dynamically modify part of the kernel's
  90. device tree with dynamically loaded data.
  91. While this option is selected automatically when needed, you can
  92. enable it manually to improve device tree unit test coverage.
  93. endif # OF