xref: /openbmc/linux/drivers/of/Kconfig (revision 0f22dd39)
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"
2053a42093SGrant Likely	help
2153a42093SGrant Likely	  This option builds in test cases for the device tree infrastructure
2253a42093SGrant Likely	  that are executed one 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
27e169cfbeSGrant Likelyconfig OF_FLATTREE
28e169cfbeSGrant Likely	bool
295ab5fc7eSGrant Likely	select DTC
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
410f22dd39SGrant Likely	bool
42fcdeb7feSGrant Likely
436b884a8dSGrant Likelyconfig OF_ADDRESS
446b884a8dSGrant Likely	def_bool y
455ab5fc7eSGrant Likely	depends on !SPARC
466b884a8dSGrant Likely
47e3873444SGrant Likelyconfig OF_IRQ
48e3873444SGrant Likely	def_bool y
495ab5fc7eSGrant Likely	depends on !SPARC
50e3873444SGrant Likely
51f85ff305SStephen Rothwellconfig OF_DEVICE
52f85ff305SStephen Rothwell	def_bool y
53863fbf49SAnton Vorontsov
54863fbf49SAnton Vorontsovconfig OF_GPIO
55863fbf49SAnton Vorontsov	def_bool y
565ab5fc7eSGrant Likely	depends on GPIOLIB && !SPARC
57863fbf49SAnton Vorontsov	help
58863fbf49SAnton Vorontsov	  OpenFirmware GPIO accessors
59612212a3SJochen Friedrich
60612212a3SJochen Friedrichconfig OF_I2C
61585468e5SJochen Friedrich	def_tristate I2C
625ab5fc7eSGrant Likely	depends on I2C && !SPARC
63612212a3SJochen Friedrich	help
64612212a3SJochen Friedrich	  OpenFirmware I2C accessors
65284b0189SGrant Likely
664b6ba8aaSDavid Daneyconfig OF_NET
674b6ba8aaSDavid Daney	depends on NETDEVICES
684b6ba8aaSDavid Daney	def_bool y
694b6ba8aaSDavid Daney
70284b0189SGrant Likelyconfig OF_SPI
71284b0189SGrant Likely	def_tristate SPI
725ab5fc7eSGrant Likely	depends on SPI && !SPARC
73284b0189SGrant Likely	help
74284b0189SGrant Likely	  OpenFirmware SPI accessors
758bc487d1SGrant Likely
768bc487d1SGrant Likelyconfig OF_MDIO
778bc487d1SGrant Likely	def_tristate PHYLIB
785ab5fc7eSGrant Likely	depends on PHYLIB
798bc487d1SGrant Likely	help
808bc487d1SGrant Likely	  OpenFirmware MDIO bus (Ethernet PHY) accessors
815ab5fc7eSGrant Likely
8204bea68bSSebastian Andrzej Siewiorconfig OF_PCI
8304bea68bSSebastian Andrzej Siewior	def_tristate PCI
8498d9f30cSBenjamin Herrenschmidt	depends on PCI
8504bea68bSSebastian Andrzej Siewior	help
8604bea68bSSebastian Andrzej Siewior	  OpenFirmware PCI bus accessors
8704bea68bSSebastian Andrzej Siewior
8898d9f30cSBenjamin Herrenschmidtconfig OF_PCI_IRQ
8998d9f30cSBenjamin Herrenschmidt	def_tristate PCI
9098d9f30cSBenjamin Herrenschmidt	depends on OF_PCI && OF_IRQ
9198d9f30cSBenjamin Herrenschmidt	help
9298d9f30cSBenjamin Herrenschmidt	  OpenFirmware PCI IRQ routing helpers
9398d9f30cSBenjamin Herrenschmidt
945ab5fc7eSGrant Likelyendmenu # OF
95