15ab5fc7eSGrant Likelyconfig DTC 25ab5fc7eSGrant Likely bool 35ab5fc7eSGrant Likely 40166dc11SRob Herringmenuconfig OF 50166dc11SRob Herring bool "Device Tree and Open Firmware support" 60166dc11SRob Herring help 70166dc11SRob Herring This option enables the device tree infrastructure. 80166dc11SRob Herring It is automatically selected by platforms that need it or can 90166dc11SRob Herring be enabled manually for unittests, overlays or 100166dc11SRob Herring compile-coverage. 11bcbefae2SStephen Rothwell 120166dc11SRob Herringif OF 135ab5fc7eSGrant Likely 1419fd7487SGrant Likelyconfig OF_UNITTEST 1519fd7487SGrant Likely bool "Device Tree runtime unit tests" 1632147e9aSGaurav Minocha depends on OF_IRQ && OF_EARLY_FLATTREE 172eb46da2SGrant Likely select OF_RESOLVE 1853a42093SGrant Likely help 1953a42093SGrant Likely This option builds in test cases for the device tree infrastructure 205d927086SGeert Uytterhoeven that are executed once at boot time, and the results dumped to the 2153a42093SGrant Likely console. 2253a42093SGrant Likely 2353a42093SGrant Likely If unsure, say N here, but this option is safe to enable. 2453a42093SGrant Likely 25e169cfbeSGrant Likelyconfig OF_FLATTREE 26e169cfbeSGrant Likely bool 275ab5fc7eSGrant Likely select DTC 28e6a6928cSRob Herring select LIBFDT 2908d53aa5SArd Biesheuvel select CRC32 30e169cfbeSGrant Likely 31e6ce1324SStephen Neuendorfferconfig OF_EARLY_FLATTREE 32e6ce1324SStephen Neuendorffer bool 33e6ce1324SStephen Neuendorffer select OF_FLATTREE 34e6ce1324SStephen Neuendorffer 353cfc535cSAndres Salomonconfig OF_PROMTREE 363cfc535cSAndres Salomon bool 373cfc535cSAndres Salomon 380f22dd39SGrant Likely# Hardly any platforms need this. It is safe to select, but only do so if you 390f22dd39SGrant Likely# need it. 40fcdeb7feSGrant Likelyconfig OF_DYNAMIC 41121c92caSGeert Uytterhoeven bool "Support for dynamic device trees" if OF_UNITTEST 42121c92caSGeert Uytterhoeven help 43121c92caSGeert Uytterhoeven On some platforms, the device tree can be manipulated at runtime. 44121c92caSGeert Uytterhoeven While this option is selected automatically on such platforms, you 45121c92caSGeert Uytterhoeven can enable it manually to improve device tree unit test coverage. 46fcdeb7feSGrant Likely 476b884a8dSGrant Likelyconfig OF_ADDRESS 486b884a8dSGrant Likely def_bool y 495ab5fc7eSGrant Likely depends on !SPARC 5025a31579SGregory CLEMENT select OF_ADDRESS_PCI if PCI 5125a31579SGregory CLEMENT 5225a31579SGregory CLEMENTconfig OF_ADDRESS_PCI 5325a31579SGregory CLEMENT bool 546b884a8dSGrant Likely 55e3873444SGrant Likelyconfig OF_IRQ 56e3873444SGrant Likely def_bool y 5763c60e3aSGeert Uytterhoeven depends on !SPARC && IRQ_DOMAIN 58e3873444SGrant Likely 594b6ba8aaSDavid Daneyconfig OF_NET 604b6ba8aaSDavid Daney depends on NETDEVICES 614b6ba8aaSDavid Daney def_bool y 624b6ba8aaSDavid Daney 638bc487d1SGrant Likelyconfig OF_MDIO 648bc487d1SGrant Likely def_tristate PHYLIB 655ab5fc7eSGrant Likely depends on PHYLIB 668bc487d1SGrant Likely help 678bc487d1SGrant Likely OpenFirmware MDIO bus (Ethernet PHY) accessors 685ab5fc7eSGrant Likely 6904bea68bSSebastian Andrzej Siewiorconfig OF_PCI 7004bea68bSSebastian Andrzej Siewior def_tristate PCI 7198d9f30cSBenjamin Herrenschmidt depends on PCI 7204bea68bSSebastian Andrzej Siewior help 7304bea68bSSebastian Andrzej Siewior OpenFirmware PCI bus accessors 7404bea68bSSebastian Andrzej Siewior 7598d9f30cSBenjamin Herrenschmidtconfig OF_PCI_IRQ 7698d9f30cSBenjamin Herrenschmidt def_tristate PCI 7798d9f30cSBenjamin Herrenschmidt depends on OF_PCI && OF_IRQ 7898d9f30cSBenjamin Herrenschmidt help 7998d9f30cSBenjamin Herrenschmidt OpenFirmware PCI IRQ routing helpers 8098d9f30cSBenjamin Herrenschmidt 81770d7c39SJean-Christophe PLAGNIOL-VILLARDconfig OF_MTD 82770d7c39SJean-Christophe PLAGNIOL-VILLARD depends on MTD 83770d7c39SJean-Christophe PLAGNIOL-VILLARD def_bool y 84770d7c39SJean-Christophe PLAGNIOL-VILLARD 853f0c8206SMarek Szyprowskiconfig OF_RESERVED_MEM 863f0c8206SMarek Szyprowski depends on OF_EARLY_FLATTREE 873f0c8206SMarek Szyprowski bool 883f0c8206SMarek Szyprowski help 893f0c8206SMarek Szyprowski Helpers to allow for reservation of memory regions 903f0c8206SMarek Szyprowski 917941b27bSPantelis Antoniouconfig OF_RESOLVE 927941b27bSPantelis Antoniou bool 937941b27bSPantelis Antoniou 947518b589SPantelis Antoniouconfig OF_OVERLAY 955c776064SMatwey V. Kornilov bool "Device Tree overlays" 967518b589SPantelis Antoniou select OF_DYNAMIC 977518b589SPantelis Antoniou select OF_RESOLVE 98121c92caSGeert Uytterhoeven help 99121c92caSGeert Uytterhoeven Overlays are a method to dynamically modify part of the kernel's 100121c92caSGeert Uytterhoeven device tree with dynamically loaded data. 101121c92caSGeert Uytterhoeven While this option is selected automatically when needed, you can 102121c92caSGeert Uytterhoeven enable it manually to improve device tree unit test coverage. 1037518b589SPantelis Antoniou 1040166dc11SRob Herringendif # OF 105