Skip to content

Commit 4ee6130

Browse files
committed
drivers: gpio: Fix when psoc6 gpio driver is built
Add check to see that the GPIO devicetree node is actually enabled before we build the PSoC6 GPIO driver. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
1 parent aeb767f commit 4ee6130

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/gpio/Kconfig.psoc6

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# Copyright (c) 2020 ATL Electronics
22
# SPDX-License-Identifier: Apache-2.0
33

4+
# Workaround for not being able to have commas in macro arguments
5+
DT_COMPAT_CYPRESS_PSOC6_GPIO := cypress,psoc6-gpio
6+
47
config GPIO_PSOC6
58
bool "Cypress PSoC-6 GPIO driver"
6-
default y
9+
default y if $(dt_compat_enabled,$(DT_COMPAT_CYPRESS_PSOC6_GPIO))
710
depends on SOC_FAMILY_PSOC6
811
help
912
Enable support for the Cypress PSoC-6 GPIO controllers.

0 commit comments

Comments
 (0)