xref: /openbmc/linux/drivers/of/Kconfig (revision 4b6ba8aa)
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
18e169cfbeSGrant Likelyconfig OF_FLATTREE
19e169cfbeSGrant Likely	bool
205ab5fc7eSGrant Likely	select DTC
21e169cfbeSGrant Likely
223cfc535cSAndres Salomonconfig OF_PROMTREE
233cfc535cSAndres Salomon	bool
243cfc535cSAndres Salomon
25fcdeb7feSGrant Likelyconfig OF_DYNAMIC
26fcdeb7feSGrant Likely	def_bool y
275ab5fc7eSGrant Likely	depends on PPC_OF
28fcdeb7feSGrant Likely
296b884a8dSGrant Likelyconfig OF_ADDRESS
306b884a8dSGrant Likely	def_bool y
315ab5fc7eSGrant Likely	depends on !SPARC
326b884a8dSGrant Likely
33e3873444SGrant Likelyconfig OF_IRQ
34e3873444SGrant Likely	def_bool y
355ab5fc7eSGrant Likely	depends on !SPARC
36e3873444SGrant Likely
37f85ff305SStephen Rothwellconfig OF_DEVICE
38f85ff305SStephen Rothwell	def_bool y
39863fbf49SAnton Vorontsov
40863fbf49SAnton Vorontsovconfig OF_GPIO
41863fbf49SAnton Vorontsov	def_bool y
425ab5fc7eSGrant Likely	depends on GPIOLIB && !SPARC
43863fbf49SAnton Vorontsov	help
44863fbf49SAnton Vorontsov	  OpenFirmware GPIO accessors
45612212a3SJochen Friedrich
46612212a3SJochen Friedrichconfig OF_I2C
47585468e5SJochen Friedrich	def_tristate I2C
485ab5fc7eSGrant Likely	depends on I2C && !SPARC
49612212a3SJochen Friedrich	help
50612212a3SJochen Friedrich	  OpenFirmware I2C accessors
51284b0189SGrant Likely
524b6ba8aaSDavid Daneyconfig OF_NET
534b6ba8aaSDavid Daney	depends on NETDEVICES
544b6ba8aaSDavid Daney	def_bool y
554b6ba8aaSDavid Daney
56284b0189SGrant Likelyconfig OF_SPI
57284b0189SGrant Likely	def_tristate SPI
585ab5fc7eSGrant Likely	depends on SPI && !SPARC
59284b0189SGrant Likely	help
60284b0189SGrant Likely	  OpenFirmware SPI accessors
618bc487d1SGrant Likely
628bc487d1SGrant Likelyconfig OF_MDIO
638bc487d1SGrant Likely	def_tristate PHYLIB
645ab5fc7eSGrant Likely	depends on PHYLIB
658bc487d1SGrant Likely	help
668bc487d1SGrant Likely	  OpenFirmware MDIO bus (Ethernet PHY) accessors
675ab5fc7eSGrant Likely
685ab5fc7eSGrant Likelyendmenu # OF
69