Kconfig 2.29 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2 3 4
config DTC
	bool

5 6 7 8 9 10 11
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.
12

13
if OF
14

15 16
config OF_UNITTEST
	bool "Device Tree runtime unit tests"
Rob Herring's avatar
Rob Herring committed
17 18
	depends on !SPARC
	select IRQ_DOMAIN
19
	select OF_EARLY_FLATTREE
20
	select OF_RESOLVE
Grant Likely's avatar
Grant Likely committed
21 22
	help
	  This option builds in test cases for the device tree infrastructure
23
	  that are executed once at boot time, and the results dumped to the
Grant Likely's avatar
Grant Likely committed
24 25 26 27
	  console.

	  If unsure, say N here, but this option is safe to enable.

28 29 30 31 32 33 34 35 36 37
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.

38 39
config OF_FLATTREE
	bool
40
	select DTC
41
	select LIBFDT
42
	select CRC32
43

44 45 46 47
config OF_EARLY_FLATTREE
	bool
	select OF_FLATTREE

48 49 50
config OF_PROMTREE
	bool

51 52 53
config OF_KOBJ
	def_bool SYSFS

54 55
# Hardly any platforms need this.  It is safe to select, but only do so if you
# need it.
56
config OF_DYNAMIC
57
	bool "Support for dynamic device trees" if OF_UNITTEST
58
	select OF_KOBJ
59 60 61 62
	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.
63

Grant Likely's avatar
Grant Likely committed
64 65
config OF_ADDRESS
	def_bool y
Rob Herring's avatar
Rob Herring committed
66
	depends on !SPARC && (HAS_IOMEM || UML)
Grant Likely's avatar
Grant Likely committed
67

68 69
config OF_IRQ
	def_bool y
70
	depends on !SPARC && IRQ_DOMAIN
71

72 73 74 75
config OF_NET
	depends on NETDEVICES
	def_bool y

76 77
config OF_MDIO
	def_tristate PHYLIB
78
	depends on PHYLIB
79
	select FIXED_PHY
80 81
	help
	  OpenFirmware MDIO bus (Ethernet PHY) accessors
82

83 84
config OF_RESERVED_MEM
	bool
85 86
	depends on OF_EARLY_FLATTREE
	default y if HAVE_GENERIC_DMA_COHERENT || DMA_CMA
87

88 89 90
config OF_RESOLVE
	bool

91
config OF_OVERLAY
92
	bool "Device Tree overlays"
93
	select OF_DYNAMIC
94
	select OF_FLATTREE
95
	select OF_RESOLVE
96 97 98 99 100
	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.
101

102 103 104
config OF_NUMA
	bool

105
endif # OF