xref: /openbmc/linux/drivers/of/Kconfig (revision 6019a3d0)
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"
166019a3d0SRob Herring	depends on !SPARC
176019a3d0SRob Herring	select IRQ_DOMAIN
18649e0a77SRob Herring	select OF_EARLY_FLATTREE
192eb46da2SGrant Likely	select OF_RESOLVE
2053a42093SGrant Likely	help
2153a42093SGrant Likely	  This option builds in test cases for the device tree infrastructure
225d927086SGeert Uytterhoeven	  that are executed once at boot time, and the results dumped to the
2353a42093SGrant Likely	  console.
2453a42093SGrant Likely
2553a42093SGrant Likely	  If unsure, say N here, but this option is safe to enable.
2653a42093SGrant Likely
271b7c501bSRob Herringconfig OF_ALL_DTBS
281b7c501bSRob Herring	bool "Build all Device Tree Blobs"
291b7c501bSRob Herring	depends on COMPILE_TEST
301b7c501bSRob Herring	select DTC
311b7c501bSRob Herring	help
321b7c501bSRob Herring	  This option builds all possible Device Tree Blobs (DTBs) for the
331b7c501bSRob Herring	  current architecture.
341b7c501bSRob Herring
351b7c501bSRob Herring	  If unsure, say N here, but this option is safe to enable.
361b7c501bSRob Herring
37e169cfbeSGrant Likelyconfig OF_FLATTREE
38e169cfbeSGrant Likely	bool
395ab5fc7eSGrant Likely	select DTC
40e6a6928cSRob Herring	select LIBFDT
4108d53aa5SArd Biesheuvel	select CRC32
42e169cfbeSGrant Likely
43e6ce1324SStephen Neuendorfferconfig OF_EARLY_FLATTREE
44e6ce1324SStephen Neuendorffer	bool
45e6ce1324SStephen Neuendorffer	select OF_FLATTREE
46e6ce1324SStephen Neuendorffer
473cfc535cSAndres Salomonconfig OF_PROMTREE
483cfc535cSAndres Salomon	bool
493cfc535cSAndres Salomon
50b56b5528SRob Herringconfig OF_KOBJ
51b56b5528SRob Herring	def_bool SYSFS
52b56b5528SRob Herring
530f22dd39SGrant Likely# Hardly any platforms need this.  It is safe to select, but only do so if you
540f22dd39SGrant Likely# need it.
55fcdeb7feSGrant Likelyconfig OF_DYNAMIC
56121c92caSGeert Uytterhoeven	bool "Support for dynamic device trees" if OF_UNITTEST
57b56b5528SRob Herring	select OF_KOBJ
58121c92caSGeert Uytterhoeven	help
59121c92caSGeert Uytterhoeven	  On some platforms, the device tree can be manipulated at runtime.
60121c92caSGeert Uytterhoeven	  While this option is selected automatically on such platforms, you
61121c92caSGeert Uytterhoeven	  can enable it manually to improve device tree unit test coverage.
62fcdeb7feSGrant Likely
636b884a8dSGrant Likelyconfig OF_ADDRESS
646b884a8dSGrant Likely	def_bool y
656019a3d0SRob Herring	depends on !SPARC && (HAS_IOMEM || UML)
6625a31579SGregory CLEMENT	select OF_ADDRESS_PCI if PCI
6725a31579SGregory CLEMENT
6825a31579SGregory CLEMENTconfig OF_ADDRESS_PCI
6925a31579SGregory CLEMENT	bool
706b884a8dSGrant Likely
71e3873444SGrant Likelyconfig OF_IRQ
72e3873444SGrant Likely	def_bool y
7363c60e3aSGeert Uytterhoeven	depends on !SPARC && IRQ_DOMAIN
74e3873444SGrant Likely
754b6ba8aaSDavid Daneyconfig OF_NET
764b6ba8aaSDavid Daney	depends on NETDEVICES
774b6ba8aaSDavid Daney	def_bool y
784b6ba8aaSDavid Daney
798bc487d1SGrant Likelyconfig OF_MDIO
808bc487d1SGrant Likely	def_tristate PHYLIB
815ab5fc7eSGrant Likely	depends on PHYLIB
82a5e4bd99SArnd Bergmann	select FIXED_PHY
838bc487d1SGrant Likely	help
848bc487d1SGrant Likely	  OpenFirmware MDIO bus (Ethernet PHY) accessors
855ab5fc7eSGrant Likely
8604bea68bSSebastian Andrzej Siewiorconfig OF_PCI
8704bea68bSSebastian Andrzej Siewior	def_tristate PCI
8898d9f30cSBenjamin Herrenschmidt	depends on PCI
8904bea68bSSebastian Andrzej Siewior	help
9004bea68bSSebastian Andrzej Siewior	  OpenFirmware PCI bus accessors
9104bea68bSSebastian Andrzej Siewior
9298d9f30cSBenjamin Herrenschmidtconfig OF_PCI_IRQ
9398d9f30cSBenjamin Herrenschmidt	def_tristate PCI
9498d9f30cSBenjamin Herrenschmidt	depends on OF_PCI && OF_IRQ
9598d9f30cSBenjamin Herrenschmidt	help
9698d9f30cSBenjamin Herrenschmidt	  OpenFirmware PCI IRQ routing helpers
9798d9f30cSBenjamin Herrenschmidt
983f0c8206SMarek Szyprowskiconfig OF_RESERVED_MEM
993f0c8206SMarek Szyprowski	depends on OF_EARLY_FLATTREE
1003f0c8206SMarek Szyprowski	bool
1013f0c8206SMarek Szyprowski	help
1023f0c8206SMarek Szyprowski	  Helpers to allow for reservation of memory regions
1033f0c8206SMarek Szyprowski
1047941b27bSPantelis Antoniouconfig OF_RESOLVE
1057941b27bSPantelis Antoniou	bool
1067941b27bSPantelis Antoniou
1077518b589SPantelis Antoniouconfig OF_OVERLAY
1085c776064SMatwey V. Kornilov	bool "Device Tree overlays"
1097518b589SPantelis Antoniou	select OF_DYNAMIC
1107518b589SPantelis Antoniou	select OF_RESOLVE
111121c92caSGeert Uytterhoeven	help
112121c92caSGeert Uytterhoeven	  Overlays are a method to dynamically modify part of the kernel's
113121c92caSGeert Uytterhoeven	  device tree with dynamically loaded data.
114121c92caSGeert Uytterhoeven	  While this option is selected automatically when needed, you can
115121c92caSGeert Uytterhoeven	  enable it manually to improve device tree unit test coverage.
1167518b589SPantelis Antoniou
117298535c0SDavid Daneyconfig OF_NUMA
118298535c0SDavid Daney	bool
119298535c0SDavid Daney
1200166dc11SRob Herringendif # OF
121