Blame view

drivers/of/Kconfig 2.31 KB
af6074fc9   Rob Herring   of: Use SPDX lice...
1
  # SPDX-License-Identifier: GPL-2.0
5ab5fc7e3   Grant Likely   of: Put all CONFI...
2
3
  config DTC
  	bool
0166dc11b   Rob Herring   of: make CONFIG_O...
4
5
6
7
8
9
10
  menuconfig OF
  	bool "Device Tree and Open Firmware support"
  	help
  	  This option enables the device tree infrastructure.
  	  It is automatically selected by platforms that need it or can
  	  be enabled manually for unittests, overlays or
  	  compile-coverage.
bcbefae2b   Stephen Rothwell   of: define CONFIG...
11

0166dc11b   Rob Herring   of: make CONFIG_O...
12
  if OF
5ab5fc7e3   Grant Likely   of: Put all CONFI...
13

19fd74879   Grant Likely   of/unittest: Rena...
14
15
  config OF_UNITTEST
  	bool "Device Tree runtime unit tests"
6019a3d07   Rob Herring   of: enable unitte...
16
17
  	depends on !SPARC
  	select IRQ_DOMAIN
649e0a77e   Rob Herring   of: make unittest...
18
  	select OF_EARLY_FLATTREE
2eb46da2a   Grant Likely   of/selftest: Use ...
19
  	select OF_RESOLVE
53a42093d   Grant Likely   of: Add device tr...
20
21
  	help
  	  This option builds in test cases for the device tree infrastructure
5d9270869   Geert Uytterhoeven   of/Kconfig: Spell...
22
  	  that are executed once at boot time, and the results dumped to the
53a42093d   Grant Likely   of: Add device tr...
23
24
25
  	  console.
  
  	  If unsure, say N here, but this option is safe to enable.
1b7c501b5   Rob Herring   of: add config op...
26
27
28
29
30
31
32
33
34
  config OF_ALL_DTBS
  	bool "Build all Device Tree Blobs"
  	depends on COMPILE_TEST
  	select DTC
  	help
  	  This option builds all possible Device Tree Blobs (DTBs) for the
  	  current architecture.
  
  	  If unsure, say N here, but this option is safe to enable.
e169cfbef   Grant Likely   of/flattree: merg...
35
36
  config OF_FLATTREE
  	bool
5ab5fc7e3   Grant Likely   of: Put all CONFI...
37
  	select DTC
e6a6928c3   Rob Herring   of/fdt: Convert F...
38
  	select LIBFDT
08d53aa58   Ard Biesheuvel   of/fdt: export fd...
39
  	select CRC32
e169cfbef   Grant Likely   of/flattree: merg...
40

e6ce1324e   Stephen Neuendorffer   of/flattree: Add ...
41
42
  config OF_EARLY_FLATTREE
  	bool
ff4c25f26   Christoph Hellwig   dma-mapping: impr...
43
  	select DMA_DECLARE_COHERENT if HAS_DMA
e6ce1324e   Stephen Neuendorffer   of/flattree: Add ...
44
  	select OF_FLATTREE
3cfc535c5   Andres Salomon   of/promtree: make...
45
46
  config OF_PROMTREE
  	bool
b56b5528f   Rob Herring   of: make kobject ...
47
48
  config OF_KOBJ
  	def_bool SYSFS
0f22dd395   Grant Likely   of: Only compile ...
49
50
  # Hardly any platforms need this.  It is safe to select, but only do so if you
  # need it.
fcdeb7fed   Grant Likely   of: merge of_atta...
51
  config OF_DYNAMIC
121c92cad   Geert Uytterhoeven   of: Allow selecti...
52
  	bool "Support for dynamic device trees" if OF_UNITTEST
b56b5528f   Rob Herring   of: make kobject ...
53
  	select OF_KOBJ
121c92cad   Geert Uytterhoeven   of: Allow selecti...
54
55
56
57
  	help
  	  On some platforms, the device tree can be manipulated at runtime.
  	  While this option is selected automatically on such platforms, you
  	  can enable it manually to improve device tree unit test coverage.
fcdeb7fed   Grant Likely   of: merge of_atta...
58

6b884a8d5   Grant Likely   of/address: merge...
59
60
  config OF_ADDRESS
  	def_bool y
6019a3d07   Rob Herring   of: enable unitte...
61
  	depends on !SPARC && (HAS_IOMEM || UML)
6b884a8d5   Grant Likely   of/address: merge...
62

e38734449   Grant Likely   of/irq: Move irq_...
63
64
  config OF_IRQ
  	def_bool y
63c60e3a6   Geert Uytterhoeven   of: OF_IRQ should...
65
  	depends on !SPARC && IRQ_DOMAIN
e38734449   Grant Likely   of/irq: Move irq_...
66

4b6ba8aac   David Daney   of/net: Move of_g...
67
68
69
  config OF_NET
  	depends on NETDEVICES
  	def_bool y
3f0c82066   Marek Szyprowski   drivers: of: add ...
70
  config OF_RESERVED_MEM
3f0c82066   Marek Szyprowski   drivers: of: add ...
71
  	bool
34e04eedd   Christoph Hellwig   of: select OF_RES...
72
  	depends on OF_EARLY_FLATTREE
ff4c25f26   Christoph Hellwig   dma-mapping: impr...
73
  	default y if DMA_DECLARE_COHERENT || DMA_CMA
3f0c82066   Marek Szyprowski   drivers: of: add ...
74

7941b27b1   Pantelis Antoniou   of: Introduce Dev...
75
76
  config OF_RESOLVE
  	bool
7518b5890   Pantelis Antoniou   of/overlay: Intro...
77
  config OF_OVERLAY
5c776064a   Matwey V. Kornilov   of: Add prompt fo...
78
  	bool "Device Tree overlays"
7518b5890   Pantelis Antoniou   of/overlay: Intro...
79
  	select OF_DYNAMIC
39a751a4c   Frank Rowand   of: change overla...
80
  	select OF_FLATTREE
7518b5890   Pantelis Antoniou   of/overlay: Intro...
81
  	select OF_RESOLVE
121c92cad   Geert Uytterhoeven   of: Allow selecti...
82
83
84
85
86
  	help
  	  Overlays are a method to dynamically modify part of the kernel's
  	  device tree with dynamically loaded data.
  	  While this option is selected automatically when needed, you can
  	  enable it manually to improve device tree unit test coverage.
7518b5890   Pantelis Antoniou   of/overlay: Intro...
87

298535c00   David Daney   of, numa: Add NUM...
88
89
  config OF_NUMA
  	bool
dabf6b36b   Michael Ellerman   of: Add OF_DMA_DE...
90
91
92
  config OF_DMA_DEFAULT_COHERENT
  	# arches should select this if DMA is coherent by default for OF devices
  	bool
0166dc11b   Rob Herring   of: make CONFIG_O...
93
  endif # OF