xref: /openbmc/linux/drivers/of/Kconfig (revision ef2a4524)
15ab5fc7eSGrant Likelyconfig DTC
25ab5fc7eSGrant Likely	bool
35ab5fc7eSGrant Likely
4bcbefae2SStephen Rothwellconfig OF
5bcbefae2SStephen Rothwell	bool
6bcbefae2SStephen Rothwell
75ab5fc7eSGrant Likelymenu "Flattened 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
22fcdeb7feSGrant Likelyconfig OF_DYNAMIC
23fcdeb7feSGrant Likely	def_bool y
245ab5fc7eSGrant Likely	depends on PPC_OF
25fcdeb7feSGrant Likely
266b884a8dSGrant Likelyconfig OF_ADDRESS
276b884a8dSGrant Likely	def_bool y
285ab5fc7eSGrant Likely	depends on !SPARC
296b884a8dSGrant Likely
30e3873444SGrant Likelyconfig OF_IRQ
31e3873444SGrant Likely	def_bool y
325ab5fc7eSGrant Likely	depends on !SPARC
33e3873444SGrant Likely
34f85ff305SStephen Rothwellconfig OF_DEVICE
35f85ff305SStephen Rothwell	def_bool y
36863fbf49SAnton Vorontsov
37863fbf49SAnton Vorontsovconfig OF_GPIO
38863fbf49SAnton Vorontsov	def_bool y
395ab5fc7eSGrant Likely	depends on GPIOLIB && !SPARC
40863fbf49SAnton Vorontsov	help
41863fbf49SAnton Vorontsov	  OpenFirmware GPIO accessors
42612212a3SJochen Friedrich
43612212a3SJochen Friedrichconfig OF_I2C
44585468e5SJochen Friedrich	def_tristate I2C
455ab5fc7eSGrant Likely	depends on I2C && !SPARC
46612212a3SJochen Friedrich	help
47612212a3SJochen Friedrich	  OpenFirmware I2C accessors
48284b0189SGrant Likely
49284b0189SGrant Likelyconfig OF_SPI
50284b0189SGrant Likely	def_tristate SPI
515ab5fc7eSGrant Likely	depends on SPI && !SPARC
52284b0189SGrant Likely	help
53284b0189SGrant Likely	  OpenFirmware SPI accessors
548bc487d1SGrant Likely
558bc487d1SGrant Likelyconfig OF_MDIO
568bc487d1SGrant Likely	def_tristate PHYLIB
575ab5fc7eSGrant Likely	depends on PHYLIB
588bc487d1SGrant Likely	help
598bc487d1SGrant Likely	  OpenFirmware MDIO bus (Ethernet PHY) accessors
605ab5fc7eSGrant Likely
615ab5fc7eSGrant Likelyendmenu # OF
62