blob: ba7b034b2b91c94afb1b7135cdee7fc3d6955828 [file] [log] [blame]
Grant Likely5ab5fc72010-07-05 12:02:13 -06001config DTC
2 bool
3
Rob Herring0166dc12015-05-28 12:48:45 -05004menuconfig OF
5 bool "Device Tree and Open Firmware support"
6 help
7 This option enables the device tree infrastructure.
8 It is automatically selected by platforms that need it or can
9 be enabled manually for unittests, overlays or
10 compile-coverage.
Stephen Rothwellbcbefae2010-06-29 12:45:51 +100011
Rob Herring0166dc12015-05-28 12:48:45 -050012if OF
Grant Likely5ab5fc72010-07-05 12:02:13 -060013
Grant Likely19fd7482014-11-04 13:24:45 +000014config OF_UNITTEST
15 bool "Device Tree runtime unit tests"
Rob Herring649e0a72015-05-28 12:58:02 -050016 depends on OF_IRQ
17 select OF_EARLY_FLATTREE
Grant Likely2eb46da2014-10-02 14:36:46 +010018 select OF_RESOLVE
Grant Likely53a42092011-12-12 09:25:57 -070019 help
20 This option builds in test cases for the device tree infrastructure
Geert Uytterhoeven5d927082013-12-24 21:06:01 +010021 that are executed once at boot time, and the results dumped to the
Grant Likely53a42092011-12-12 09:25:57 -070022 console.
23
24 If unsure, say N here, but this option is safe to enable.
25
Rob Herring1b7c5012015-10-06 17:57:33 -050026config OF_ALL_DTBS
27 bool "Build all Device Tree Blobs"
28 depends on COMPILE_TEST
29 select DTC
30 help
31 This option builds all possible Device Tree Blobs (DTBs) for the
32 current architecture.
33
34 If unsure, say N here, but this option is safe to enable.
35
Grant Likelye169cfb2009-11-23 14:53:09 -070036config OF_FLATTREE
37 bool
Grant Likely5ab5fc72010-07-05 12:02:13 -060038 select DTC
Rob Herringe6a69282014-04-02 15:10:14 -050039 select LIBFDT
Ard Biesheuvel08d53aa2014-11-14 18:05:35 +010040 select CRC32
Grant Likelye169cfb2009-11-23 14:53:09 -070041
Stephen Neuendorffere6ce1322010-11-18 15:54:56 -080042config OF_EARLY_FLATTREE
43 bool
44 select OF_FLATTREE
45
Andres Salomon3cfc5352010-10-10 21:42:33 -060046config OF_PROMTREE
47 bool
48
Grant Likely0f22dd32012-02-15 20:38:40 -070049# Hardly any platforms need this. It is safe to select, but only do so if you
50# need it.
Grant Likelyfcdeb7f2010-01-29 05:04:33 -070051config OF_DYNAMIC
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +010052 bool "Support for dynamic device trees" if OF_UNITTEST
53 help
54 On some platforms, the device tree can be manipulated at runtime.
55 While this option is selected automatically on such platforms, you
56 can enable it manually to improve device tree unit test coverage.
Grant Likelyfcdeb7f2010-01-29 05:04:33 -070057
Grant Likely6b884a82010-06-08 07:48:09 -060058config OF_ADDRESS
59 def_bool y
Rob Herring39da8092015-07-05 10:18:41 -050060 depends on !SPARC && HAS_IOMEM
Gregory CLEMENT25a31572014-02-19 23:14:55 +010061 select OF_ADDRESS_PCI if PCI
62
63config OF_ADDRESS_PCI
64 bool
Grant Likely6b884a82010-06-08 07:48:09 -060065
Grant Likelye3873442010-06-18 11:09:59 -060066config OF_IRQ
67 def_bool y
Geert Uytterhoeven63c60e32015-04-05 16:59:24 +020068 depends on !SPARC && IRQ_DOMAIN
Grant Likelye3873442010-06-18 11:09:59 -060069
David Daney4b6ba8a2010-10-26 15:07:13 -070070config OF_NET
71 depends on NETDEVICES
72 def_bool y
73
Grant Likely8bc487d2009-04-25 12:52:56 +000074config OF_MDIO
75 def_tristate PHYLIB
Grant Likely5ab5fc72010-07-05 12:02:13 -060076 depends on PHYLIB
Arnd Bergmanna5e4bd92016-06-24 11:24:08 +020077 select FIXED_PHY
Grant Likely8bc487d2009-04-25 12:52:56 +000078 help
79 OpenFirmware MDIO bus (Ethernet PHY) accessors
Grant Likely5ab5fc72010-07-05 12:02:13 -060080
Sebastian Andrzej Siewior04bea682011-01-24 09:58:55 +053081config OF_PCI
82 def_tristate PCI
Benjamin Herrenschmidt98d9f30c82011-04-11 11:37:07 +100083 depends on PCI
Sebastian Andrzej Siewior04bea682011-01-24 09:58:55 +053084 help
85 OpenFirmware PCI bus accessors
86
Benjamin Herrenschmidt98d9f30c82011-04-11 11:37:07 +100087config OF_PCI_IRQ
88 def_tristate PCI
89 depends on OF_PCI && OF_IRQ
90 help
91 OpenFirmware PCI IRQ routing helpers
92
Marek Szyprowski3f0c8202014-02-28 14:42:48 +010093config OF_RESERVED_MEM
94 depends on OF_EARLY_FLATTREE
95 bool
96 help
97 Helpers to allow for reservation of memory regions
98
Pantelis Antoniou7941b272014-07-04 19:59:20 +030099config OF_RESOLVE
100 bool
101
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200102config OF_OVERLAY
Matwey V. Kornilov5c776062015-02-15 18:22:47 +0300103 bool "Device Tree overlays"
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200104 select OF_DYNAMIC
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200105 select OF_RESOLVE
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +0100106 help
107 Overlays are a method to dynamically modify part of the kernel's
108 device tree with dynamically loaded data.
109 While this option is selected automatically when needed, you can
110 enable it manually to improve device tree unit test coverage.
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200111
David Daney298535c2016-04-08 15:50:25 -0700112config OF_NUMA
113 bool
114
Rob Herring0166dc12015-05-28 12:48:45 -0500115endif # OF