The function in its current form is confusing because unlike other similarly named functions (dt_nodelabel_has_prop(), dt_node_has_prop()) or devicetree macros (DT_NODE_HAS_COMPAT(), DT_NODE_HAS_PROP()), this function takes into account the status of the checked node and returns "y" only when the node is enabled. This commit redefines dt_nodelabel_has_compat() so that it no longer checks the node status, and for cases where the previous functionality is needed, a new function named dt_nodelabel_enabled_with_compat() is introduced as a replacement. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
24 lines
850 B
Plaintext
24 lines
850 B
Plaintext
# Copyright (c) 2015 ITE Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config ITE_IT8XXX2_INTC
|
|
def_bool $(dt_nodelabel_enabled_with_compat,intc,it8xxx2-intc)
|
|
depends on (SOC_IT8XXX2)
|
|
help
|
|
Configures the maximum number of clients allowed per shared
|
|
instance of the shared interrupt driver. To conserve RAM set
|
|
this value to the lowest practical value.
|
|
this software interrupt default set on by device tree.
|
|
|
|
# Workaround for not being able to have commas in macro arguments
|
|
DT_COMPAT_ITE_IT8XXX2_WUC := ite,it8xxx2-wuc
|
|
|
|
config ITE_IT8XXX2_WUC
|
|
bool "ITE it8xxx2 Wakeup controller (WUC) interface"
|
|
depends on SOC_IT8XXX2
|
|
default $(dt_compat_enabled,$(DT_COMPAT_ITE_IT8XXX2_WUC))
|
|
help
|
|
This option enables the wakeup controller interface for IT8XXX2
|
|
family.
|
|
This is required for KSCAN, UART, eSPI, GPIO etc., interrupt support.
|