xref: /openbmc/linux/drivers/of/Kconfig (revision e23feb16)
1config DTC
2	bool
3
4config OF
5	bool
6
7menu "Device Tree and Open Firmware support"
8	depends on OF
9
10config PROC_DEVICETREE
11	bool "Support for device tree in /proc"
12	depends on PROC_FS && !SPARC
13	help
14	  This option adds a device-tree directory under /proc which contains
15	  an image of the device tree that the kernel copies from Open
16	  Firmware or other boot firmware. If unsure, say Y here.
17
18config OF_SELFTEST
19	bool "Device Tree Runtime self tests"
20	help
21	  This option builds in test cases for the device tree infrastructure
22	  that are executed one at boot time, and the results dumped to the
23	  console.
24
25	  If unsure, say N here, but this option is safe to enable.
26
27config OF_FLATTREE
28	bool
29	select DTC
30
31config OF_EARLY_FLATTREE
32	bool
33	select OF_FLATTREE
34
35config OF_PROMTREE
36	bool
37
38# Hardly any platforms need this.  It is safe to select, but only do so if you
39# need it.
40config OF_DYNAMIC
41	bool
42
43config OF_ADDRESS
44	def_bool y
45	depends on !SPARC
46
47config OF_IRQ
48	def_bool y
49	depends on !SPARC
50
51config OF_NET
52	depends on NETDEVICES
53	def_bool y
54
55config OF_MDIO
56	def_tristate PHYLIB
57	depends on PHYLIB
58	help
59	  OpenFirmware MDIO bus (Ethernet PHY) accessors
60
61config OF_PCI
62	def_tristate PCI
63	depends on PCI
64	help
65	  OpenFirmware PCI bus accessors
66
67config OF_PCI_IRQ
68	def_tristate PCI
69	depends on OF_PCI && OF_IRQ
70	help
71	  OpenFirmware PCI IRQ routing helpers
72
73config OF_MTD
74	depends on MTD
75	def_bool y
76
77config OF_RESERVED_MEM
78	depends on OF_FLATTREE && (DMA_CMA || (HAVE_GENERIC_DMA_COHERENT && HAVE_MEMBLOCK))
79	def_bool y
80	help
81	  Initialization code for DMA reserved memory
82
83endmenu # OF
84