xref: /openbmc/linux/drivers/of/Kconfig (revision f5ae18ec)
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
10ef2a4524SAndres Salomonconfig PROC_DEVICETREE
11ef2a4524SAndres Salomon	bool "Support for device tree in /proc"
12ef2a4524SAndres Salomon	depends on PROC_FS && !SPARC
13ef2a4524SAndres Salomon	help
14ef2a4524SAndres Salomon	  This option adds a device-tree directory under /proc which contains
15ef2a4524SAndres Salomon	  an image of the device tree that the kernel copies from Open
16ef2a4524SAndres Salomon	  Firmware or other boot firmware. If unsure, say Y here.
17ef2a4524SAndres Salomon
1853a42093SGrant Likelyconfig OF_SELFTEST
1953a42093SGrant Likely	bool "Device Tree Runtime self tests"
20f5ae18ecSRob Herring	depends on OF_IRQ
2153a42093SGrant Likely	help
2253a42093SGrant Likely	  This option builds in test cases for the device tree infrastructure
2353a42093SGrant Likely	  that are executed one at boot time, and the results dumped to the
2453a42093SGrant Likely	  console.
2553a42093SGrant Likely
2653a42093SGrant Likely	  If unsure, say N here, but this option is safe to enable.
2753a42093SGrant Likely
28e169cfbeSGrant Likelyconfig OF_FLATTREE
29e169cfbeSGrant Likely	bool
305ab5fc7eSGrant Likely	select DTC
31e169cfbeSGrant Likely
32e6ce1324SStephen Neuendorfferconfig OF_EARLY_FLATTREE
33e6ce1324SStephen Neuendorffer	bool
34e6ce1324SStephen Neuendorffer	select OF_FLATTREE
35e6ce1324SStephen Neuendorffer
363cfc535cSAndres Salomonconfig OF_PROMTREE
373cfc535cSAndres Salomon	bool
383cfc535cSAndres Salomon
390f22dd39SGrant Likely# Hardly any platforms need this.  It is safe to select, but only do so if you
400f22dd39SGrant Likely# need it.
41fcdeb7feSGrant Likelyconfig OF_DYNAMIC
420f22dd39SGrant Likely	bool
43fcdeb7feSGrant Likely
446b884a8dSGrant Likelyconfig OF_ADDRESS
456b884a8dSGrant Likely	def_bool y
465ab5fc7eSGrant Likely	depends on !SPARC
476b884a8dSGrant Likely
48e3873444SGrant Likelyconfig OF_IRQ
49e3873444SGrant Likely	def_bool y
505ab5fc7eSGrant Likely	depends on !SPARC
51e3873444SGrant Likely
524b6ba8aaSDavid Daneyconfig OF_NET
534b6ba8aaSDavid Daney	depends on NETDEVICES
544b6ba8aaSDavid Daney	def_bool y
554b6ba8aaSDavid Daney
568bc487d1SGrant Likelyconfig OF_MDIO
578bc487d1SGrant Likely	def_tristate PHYLIB
585ab5fc7eSGrant Likely	depends on PHYLIB
598bc487d1SGrant Likely	help
608bc487d1SGrant Likely	  OpenFirmware MDIO bus (Ethernet PHY) accessors
615ab5fc7eSGrant Likely
6204bea68bSSebastian Andrzej Siewiorconfig OF_PCI
6304bea68bSSebastian Andrzej Siewior	def_tristate PCI
6498d9f30cSBenjamin Herrenschmidt	depends on PCI
6504bea68bSSebastian Andrzej Siewior	help
6604bea68bSSebastian Andrzej Siewior	  OpenFirmware PCI bus accessors
6704bea68bSSebastian Andrzej Siewior
6898d9f30cSBenjamin Herrenschmidtconfig OF_PCI_IRQ
6998d9f30cSBenjamin Herrenschmidt	def_tristate PCI
7098d9f30cSBenjamin Herrenschmidt	depends on OF_PCI && OF_IRQ
7198d9f30cSBenjamin Herrenschmidt	help
7298d9f30cSBenjamin Herrenschmidt	  OpenFirmware PCI IRQ routing helpers
7398d9f30cSBenjamin Herrenschmidt
74770d7c39SJean-Christophe PLAGNIOL-VILLARDconfig OF_MTD
75770d7c39SJean-Christophe PLAGNIOL-VILLARD	depends on MTD
76770d7c39SJean-Christophe PLAGNIOL-VILLARD	def_bool y
77770d7c39SJean-Christophe PLAGNIOL-VILLARD
789d8eab7aSMarek Szyprowskiconfig OF_RESERVED_MEM
799d8eab7aSMarek Szyprowski	depends on OF_FLATTREE && (DMA_CMA || (HAVE_GENERIC_DMA_COHERENT && HAVE_MEMBLOCK))
809d8eab7aSMarek Szyprowski	def_bool y
819d8eab7aSMarek Szyprowski	help
829d8eab7aSMarek Szyprowski	  Initialization code for DMA reserved memory
839d8eab7aSMarek Szyprowski
845ab5fc7eSGrant Likelyendmenu # OF
85