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