xref: /openbmc/linux/drivers/of/Kconfig (revision e6ce1324)
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
22e6ce1324SStephen Neuendorfferconfig OF_EARLY_FLATTREE
23e6ce1324SStephen Neuendorffer	bool
24e6ce1324SStephen Neuendorffer	select OF_FLATTREE
25e6ce1324SStephen Neuendorffer
263cfc535cSAndres Salomonconfig OF_PROMTREE
273cfc535cSAndres Salomon	bool
283cfc535cSAndres Salomon
29fcdeb7feSGrant Likelyconfig OF_DYNAMIC
30fcdeb7feSGrant Likely	def_bool y
315ab5fc7eSGrant Likely	depends on PPC_OF
32fcdeb7feSGrant Likely
336b884a8dSGrant Likelyconfig OF_ADDRESS
346b884a8dSGrant Likely	def_bool y
355ab5fc7eSGrant Likely	depends on !SPARC
366b884a8dSGrant Likely
37e3873444SGrant Likelyconfig OF_IRQ
38e3873444SGrant Likely	def_bool y
395ab5fc7eSGrant Likely	depends on !SPARC
40e3873444SGrant Likely
41f85ff305SStephen Rothwellconfig OF_DEVICE
42f85ff305SStephen Rothwell	def_bool y
43863fbf49SAnton Vorontsov
44863fbf49SAnton Vorontsovconfig OF_GPIO
45863fbf49SAnton Vorontsov	def_bool y
465ab5fc7eSGrant Likely	depends on GPIOLIB && !SPARC
47863fbf49SAnton Vorontsov	help
48863fbf49SAnton Vorontsov	  OpenFirmware GPIO accessors
49612212a3SJochen Friedrich
50612212a3SJochen Friedrichconfig OF_I2C
51585468e5SJochen Friedrich	def_tristate I2C
525ab5fc7eSGrant Likely	depends on I2C && !SPARC
53612212a3SJochen Friedrich	help
54612212a3SJochen Friedrich	  OpenFirmware I2C accessors
55284b0189SGrant Likely
564b6ba8aaSDavid Daneyconfig OF_NET
574b6ba8aaSDavid Daney	depends on NETDEVICES
584b6ba8aaSDavid Daney	def_bool y
594b6ba8aaSDavid Daney
60284b0189SGrant Likelyconfig OF_SPI
61284b0189SGrant Likely	def_tristate SPI
625ab5fc7eSGrant Likely	depends on SPI && !SPARC
63284b0189SGrant Likely	help
64284b0189SGrant Likely	  OpenFirmware SPI accessors
658bc487d1SGrant Likely
668bc487d1SGrant Likelyconfig OF_MDIO
678bc487d1SGrant Likely	def_tristate PHYLIB
685ab5fc7eSGrant Likely	depends on PHYLIB
698bc487d1SGrant Likely	help
708bc487d1SGrant Likely	  OpenFirmware MDIO bus (Ethernet PHY) accessors
715ab5fc7eSGrant Likely
725ab5fc7eSGrant Likelyendmenu # OF
73