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