2017-12-28 03:55:14 +09:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2010-07-06 03:02:13 +09:00
|
|
|
config DTC
|
|
|
|
bool
|
|
|
|
|
2015-05-29 02:48:45 +09:00
|
|
|
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.
|
2010-06-29 11:45:51 +09:00
|
|
|
|
2015-05-29 02:48:45 +09:00
|
|
|
if OF
|
2010-07-06 03:02:13 +09:00
|
|
|
|
2014-11-04 22:24:45 +09:00
|
|
|
config OF_UNITTEST
|
|
|
|
bool "Device Tree runtime unit tests"
|
2017-07-26 04:46:56 +09:00
|
|
|
depends on !SPARC
|
|
|
|
select IRQ_DOMAIN
|
2015-05-29 02:58:02 +09:00
|
|
|
select OF_EARLY_FLATTREE
|
2014-10-02 22:36:46 +09:00
|
|
|
select OF_RESOLVE
|
2011-12-13 01:25:57 +09:00
|
|
|
help
|
|
|
|
This option builds in test cases for the device tree infrastructure
|
2013-12-25 05:06:01 +09:00
|
|
|
that are executed once at boot time, and the results dumped to the
|
2011-12-13 01:25:57 +09:00
|
|
|
console.
|
|
|
|
|
|
|
|
If unsure, say N here, but this option is safe to enable.
|
|
|
|
|
2015-10-07 07:57:33 +09:00
|
|
|
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.
|
|
|
|
|
2009-11-24 06:53:09 +09:00
|
|
|
config OF_FLATTREE
|
|
|
|
bool
|
2010-07-06 03:02:13 +09:00
|
|
|
select DTC
|
2014-04-03 05:10:14 +09:00
|
|
|
select LIBFDT
|
2014-11-15 02:05:35 +09:00
|
|
|
select CRC32
|
2009-11-24 06:53:09 +09:00
|
|
|
|
2010-11-19 08:54:56 +09:00
|
|
|
config OF_EARLY_FLATTREE
|
|
|
|
bool
|
2019-02-04 04:12:02 +09:00
|
|
|
select DMA_DECLARE_COHERENT if HAS_DMA
|
2010-11-19 08:54:56 +09:00
|
|
|
select OF_FLATTREE
|
|
|
|
|
2010-10-11 12:42:33 +09:00
|
|
|
config OF_PROMTREE
|
|
|
|
bool
|
|
|
|
|
2017-10-05 04:09:40 +09:00
|
|
|
config OF_KOBJ
|
|
|
|
def_bool SYSFS
|
|
|
|
|
2012-02-16 12:38:40 +09:00
|
|
|
# Hardly any platforms need this. It is safe to select, but only do so if you
|
|
|
|
# need it.
|
2010-01-29 21:04:33 +09:00
|
|
|
config OF_DYNAMIC
|
2015-01-24 01:10:04 +09:00
|
|
|
bool "Support for dynamic device trees" if OF_UNITTEST
|
2017-10-05 04:09:40 +09:00
|
|
|
select OF_KOBJ
|
2015-01-24 01:10:04 +09:00
|
|
|
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.
|
2010-01-29 21:04:33 +09:00
|
|
|
|
2010-06-08 22:48:09 +09:00
|
|
|
config OF_ADDRESS
|
|
|
|
def_bool y
|
2017-07-26 04:46:56 +09:00
|
|
|
depends on !SPARC && (HAS_IOMEM || UML)
|
2010-06-08 22:48:09 +09:00
|
|
|
|
2010-06-19 02:09:59 +09:00
|
|
|
config OF_IRQ
|
|
|
|
def_bool y
|
2015-04-05 23:59:24 +09:00
|
|
|
depends on !SPARC && IRQ_DOMAIN
|
2010-06-19 02:09:59 +09:00
|
|
|
|
2010-10-27 07:07:13 +09:00
|
|
|
config OF_NET
|
|
|
|
depends on NETDEVICES
|
|
|
|
def_bool y
|
|
|
|
|
2014-02-28 22:42:48 +09:00
|
|
|
config OF_RESERVED_MEM
|
|
|
|
bool
|
2019-02-01 18:10:52 +09:00
|
|
|
depends on OF_EARLY_FLATTREE
|
2019-02-04 04:12:02 +09:00
|
|
|
default y if DMA_DECLARE_COHERENT || DMA_CMA
|
2014-02-28 22:42:48 +09:00
|
|
|
|
2019-09-21 06:31:04 +09:00
|
|
|
config OF_RESERVED_MEM_CHECK
|
|
|
|
bool "Reserved memory registration check"
|
|
|
|
depends on OF_RESERVED_MEM
|
|
|
|
help
|
|
|
|
If a device has a reserved memory region and allocates memory
|
|
|
|
through the DMA API, check to see if the device and region have been
|
|
|
|
associated through a call to of_reserved_mem_device_init_by_idx()
|
|
|
|
before performing an allocation. If the association hasn't occurred,
|
|
|
|
WARN_ON.
|
|
|
|
|
2014-07-05 01:59:20 +09:00
|
|
|
config OF_RESOLVE
|
|
|
|
bool
|
|
|
|
|
2014-10-29 05:35:58 +09:00
|
|
|
config OF_OVERLAY
|
2015-02-16 00:22:47 +09:00
|
|
|
bool "Device Tree overlays"
|
2014-10-29 05:35:58 +09:00
|
|
|
select OF_DYNAMIC
|
2018-02-12 17:19:42 +09:00
|
|
|
select OF_FLATTREE
|
2014-10-29 05:35:58 +09:00
|
|
|
select OF_RESOLVE
|
2015-01-24 01:10:04 +09:00
|
|
|
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.
|
2014-10-29 05:35:58 +09:00
|
|
|
|
2016-04-09 07:50:25 +09:00
|
|
|
config OF_NUMA
|
|
|
|
bool
|
|
|
|
|
2020-01-26 20:52:47 +09:00
|
|
|
config OF_DMA_DEFAULT_COHERENT
|
|
|
|
# arches should select this if DMA is coherent by default for OF devices
|
|
|
|
bool
|
|
|
|
|
2015-05-29 02:48:45 +09:00
|
|
|
endif # OF
|