blob: 1470b52278341a79ab1e0304cdd915888045cfb6 [file] [log] [blame]
Grant Likely5ab5fc72010-07-05 12:02:13 -06001config DTC
2 bool
3
Stephen Rothwellbcbefae2010-06-29 12:45:51 +10004config OF
5 bool
6
Andres Salomon3cfc5352010-10-10 21:42:33 -06007menu "Device Tree and Open Firmware support"
Grant Likely5ab5fc72010-07-05 12:02:13 -06008 depends on OF
9
Grant Likely19fd7482014-11-04 13:24:45 +000010config OF_UNITTEST
11 bool "Device Tree runtime unit tests"
Gaurav Minocha32147e92014-07-25 19:57:38 -070012 depends on OF_IRQ && OF_EARLY_FLATTREE
Grant Likely2eb46da2014-10-02 14:36:46 +010013 select OF_RESOLVE
Grant Likely53a42092011-12-12 09:25:57 -070014 help
15 This option builds in test cases for the device tree infrastructure
Geert Uytterhoeven5d927082013-12-24 21:06:01 +010016 that are executed once at boot time, and the results dumped to the
Grant Likely53a42092011-12-12 09:25:57 -070017 console.
18
19 If unsure, say N here, but this option is safe to enable.
20
Grant Likelye169cfb2009-11-23 14:53:09 -070021config OF_FLATTREE
22 bool
Grant Likely5ab5fc72010-07-05 12:02:13 -060023 select DTC
Rob Herringe6a69282014-04-02 15:10:14 -050024 select LIBFDT
Ard Biesheuvel08d53aa2014-11-14 18:05:35 +010025 select CRC32
Grant Likelye169cfb2009-11-23 14:53:09 -070026
Stephen Neuendorffere6ce1322010-11-18 15:54:56 -080027config OF_EARLY_FLATTREE
28 bool
29 select OF_FLATTREE
30
Andres Salomon3cfc5352010-10-10 21:42:33 -060031config OF_PROMTREE
32 bool
33
Grant Likely0f22dd32012-02-15 20:38:40 -070034# Hardly any platforms need this. It is safe to select, but only do so if you
35# need it.
Grant Likelyfcdeb7f2010-01-29 05:04:33 -070036config OF_DYNAMIC
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +010037 bool "Support for dynamic device trees" if OF_UNITTEST
38 help
39 On some platforms, the device tree can be manipulated at runtime.
40 While this option is selected automatically on such platforms, you
41 can enable it manually to improve device tree unit test coverage.
Grant Likelyfcdeb7f2010-01-29 05:04:33 -070042
Grant Likely6b884a82010-06-08 07:48:09 -060043config OF_ADDRESS
44 def_bool y
Grant Likely5ab5fc72010-07-05 12:02:13 -060045 depends on !SPARC
Gregory CLEMENT25a31572014-02-19 23:14:55 +010046 select OF_ADDRESS_PCI if PCI
47
48config OF_ADDRESS_PCI
49 bool
Grant Likely6b884a82010-06-08 07:48:09 -060050
Grant Likelye3873442010-06-18 11:09:59 -060051config OF_IRQ
52 def_bool y
Grant Likely5ab5fc72010-07-05 12:02:13 -060053 depends on !SPARC
Grant Likelye3873442010-06-18 11:09:59 -060054
David Daney4b6ba8a2010-10-26 15:07:13 -070055config OF_NET
56 depends on NETDEVICES
57 def_bool y
58
Grant Likely8bc487d2009-04-25 12:52:56 +000059config OF_MDIO
60 def_tristate PHYLIB
Grant Likely5ab5fc72010-07-05 12:02:13 -060061 depends on PHYLIB
Grant Likely8bc487d2009-04-25 12:52:56 +000062 help
63 OpenFirmware MDIO bus (Ethernet PHY) accessors
Grant Likely5ab5fc72010-07-05 12:02:13 -060064
Sebastian Andrzej Siewior04bea682011-01-24 09:58:55 +053065config OF_PCI
66 def_tristate PCI
Benjamin Herrenschmidt98d9f30c82011-04-11 11:37:07 +100067 depends on PCI
Sebastian Andrzej Siewior04bea682011-01-24 09:58:55 +053068 help
69 OpenFirmware PCI bus accessors
70
Benjamin Herrenschmidt98d9f30c82011-04-11 11:37:07 +100071config OF_PCI_IRQ
72 def_tristate PCI
73 depends on OF_PCI && OF_IRQ
74 help
75 OpenFirmware PCI IRQ routing helpers
76
Jean-Christophe PLAGNIOL-VILLARD770d7c32012-01-28 12:12:36 +080077config OF_MTD
78 depends on MTD
79 def_bool y
80
Marek Szyprowski3f0c8202014-02-28 14:42:48 +010081config OF_RESERVED_MEM
82 depends on OF_EARLY_FLATTREE
83 bool
84 help
85 Helpers to allow for reservation of memory regions
86
Pantelis Antoniou7941b272014-07-04 19:59:20 +030087config OF_RESOLVE
88 bool
89
Pantelis Antoniou7518b5892014-10-28 22:35:58 +020090config OF_OVERLAY
Matwey V. Kornilov5c776062015-02-15 18:22:47 +030091 bool "Device Tree overlays"
Pantelis Antoniou7518b5892014-10-28 22:35:58 +020092 select OF_DYNAMIC
Pantelis Antoniou7518b5892014-10-28 22:35:58 +020093 select OF_RESOLVE
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +010094 help
95 Overlays are a method to dynamically modify part of the kernel's
96 device tree with dynamically loaded data.
97 While this option is selected automatically when needed, you can
98 enable it manually to improve device tree unit test coverage.
Pantelis Antoniou7518b5892014-10-28 22:35:58 +020099
Grant Likely5ab5fc72010-07-05 12:02:13 -0600100endmenu # OF