xref: /openbmc/linux/drivers/of/Kconfig (revision e6a6928c)
15ab5fc7eSGrant Likelyconfig DTC
25ab5fc7eSGrant Likely	bool
35ab5fc7eSGrant Likely
4bcbefae2SStephen Rothwellconfig OF
5bcbefae2SStephen Rothwell	bool
6bcbefae2SStephen Rothwell
73cfc535cSAndres Salomonmenu "Device Tree and Open Firmware support"
85ab5fc7eSGrant Likely	depends on OF
95ab5fc7eSGrant Likely
1053a42093SGrant Likelyconfig OF_SELFTEST
1153a42093SGrant Likely	bool "Device Tree Runtime self tests"
12f5ae18ecSRob Herring	depends on OF_IRQ
1353a42093SGrant Likely	help
1453a42093SGrant Likely	  This option builds in test cases for the device tree infrastructure
155d927086SGeert Uytterhoeven	  that are executed once at boot time, and the results dumped to the
1653a42093SGrant Likely	  console.
1753a42093SGrant Likely
1853a42093SGrant Likely	  If unsure, say N here, but this option is safe to enable.
1953a42093SGrant Likely
20e169cfbeSGrant Likelyconfig OF_FLATTREE
21e169cfbeSGrant Likely	bool
225ab5fc7eSGrant Likely	select DTC
23e6a6928cSRob Herring	select LIBFDT
24e169cfbeSGrant Likely
25e6ce1324SStephen Neuendorfferconfig OF_EARLY_FLATTREE
26e6ce1324SStephen Neuendorffer	bool
27e6ce1324SStephen Neuendorffer	select OF_FLATTREE
28e6ce1324SStephen Neuendorffer
293cfc535cSAndres Salomonconfig OF_PROMTREE
303cfc535cSAndres Salomon	bool
313cfc535cSAndres Salomon
320f22dd39SGrant Likely# Hardly any platforms need this.  It is safe to select, but only do so if you
330f22dd39SGrant Likely# need it.
34fcdeb7feSGrant Likelyconfig OF_DYNAMIC
350f22dd39SGrant Likely	bool
36fcdeb7feSGrant Likely
376b884a8dSGrant Likelyconfig OF_ADDRESS
386b884a8dSGrant Likely	def_bool y
395ab5fc7eSGrant Likely	depends on !SPARC
4025a31579SGregory CLEMENT	select OF_ADDRESS_PCI if PCI
4125a31579SGregory CLEMENT
4225a31579SGregory CLEMENTconfig OF_ADDRESS_PCI
4325a31579SGregory CLEMENT	bool
446b884a8dSGrant Likely
45e3873444SGrant Likelyconfig OF_IRQ
46e3873444SGrant Likely	def_bool y
475ab5fc7eSGrant Likely	depends on !SPARC
48e3873444SGrant Likely
494b6ba8aaSDavid Daneyconfig OF_NET
504b6ba8aaSDavid Daney	depends on NETDEVICES
514b6ba8aaSDavid Daney	def_bool y
524b6ba8aaSDavid Daney
538bc487d1SGrant Likelyconfig OF_MDIO
548bc487d1SGrant Likely	def_tristate PHYLIB
555ab5fc7eSGrant Likely	depends on PHYLIB
568bc487d1SGrant Likely	help
578bc487d1SGrant Likely	  OpenFirmware MDIO bus (Ethernet PHY) accessors
585ab5fc7eSGrant Likely
5904bea68bSSebastian Andrzej Siewiorconfig OF_PCI
6004bea68bSSebastian Andrzej Siewior	def_tristate PCI
6198d9f30cSBenjamin Herrenschmidt	depends on PCI
6204bea68bSSebastian Andrzej Siewior	help
6304bea68bSSebastian Andrzej Siewior	  OpenFirmware PCI bus accessors
6404bea68bSSebastian Andrzej Siewior
6598d9f30cSBenjamin Herrenschmidtconfig OF_PCI_IRQ
6698d9f30cSBenjamin Herrenschmidt	def_tristate PCI
6798d9f30cSBenjamin Herrenschmidt	depends on OF_PCI && OF_IRQ
6898d9f30cSBenjamin Herrenschmidt	help
6998d9f30cSBenjamin Herrenschmidt	  OpenFirmware PCI IRQ routing helpers
7098d9f30cSBenjamin Herrenschmidt
71770d7c39SJean-Christophe PLAGNIOL-VILLARDconfig OF_MTD
72770d7c39SJean-Christophe PLAGNIOL-VILLARD	depends on MTD
73770d7c39SJean-Christophe PLAGNIOL-VILLARD	def_bool y
74770d7c39SJean-Christophe PLAGNIOL-VILLARD
753f0c8206SMarek Szyprowskiconfig OF_RESERVED_MEM
763f0c8206SMarek Szyprowski	depends on OF_EARLY_FLATTREE
773f0c8206SMarek Szyprowski	bool
783f0c8206SMarek Szyprowski	help
793f0c8206SMarek Szyprowski	  Helpers to allow for reservation of memory regions
803f0c8206SMarek Szyprowski
815ab5fc7eSGrant Likelyendmenu # OF
82