xref: /openbmc/linux/drivers/of/Kconfig (revision afb46f79)
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
24config OF_EARLY_FLATTREE
25	bool
26	select OF_FLATTREE
27
28config OF_PROMTREE
29	bool
30
31# Hardly any platforms need this.  It is safe to select, but only do so if you
32# need it.
33config OF_DYNAMIC
34	bool
35
36config OF_ADDRESS
37	def_bool y
38	depends on !SPARC
39	select OF_ADDRESS_PCI if PCI
40
41config OF_ADDRESS_PCI
42	bool
43
44config OF_IRQ
45	def_bool y
46	depends on !SPARC
47
48config OF_NET
49	depends on NETDEVICES
50	def_bool y
51
52config OF_MDIO
53	def_tristate PHYLIB
54	depends on PHYLIB
55	help
56	  OpenFirmware MDIO bus (Ethernet PHY) accessors
57
58config OF_PCI
59	def_tristate PCI
60	depends on PCI
61	help
62	  OpenFirmware PCI bus accessors
63
64config OF_PCI_IRQ
65	def_tristate PCI
66	depends on OF_PCI && OF_IRQ
67	help
68	  OpenFirmware PCI IRQ routing helpers
69
70config OF_MTD
71	depends on MTD
72	def_bool y
73
74config OF_RESERVED_MEM
75	depends on OF_EARLY_FLATTREE
76	bool
77	help
78	  Helpers to allow for reservation of memory regions
79
80endmenu # OF
81