Skip to content

Commit b29ac0a

Browse files
henning-schildlag-linaro
authored andcommitted
leds: simatic-ipc-leds-gpio: Introduce more Kconfig switches
To describe the dependency chain better and allow for potential fine-grained config tuning, introduce Kconfig switch for the individual GPIO based drivers. Signed-off-by: Henning Schild <henning.schild@siemens.com> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230524124628.32295-5-henning.schild@siemens.com
1 parent 2f5d6fe commit b29ac0a

2 files changed

Lines changed: 31 additions & 7 deletions

File tree

drivers/leds/simple/Kconfig

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,36 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
config LEDS_SIEMENS_SIMATIC_IPC
33
tristate "LED driver for Siemens Simatic IPCs"
4-
depends on LEDS_GPIO
54
depends on SIEMENS_SIMATIC_IPC
65
help
76
This option enables support for the LEDs of several Industrial PCs
87
from Siemens.
98

10-
To compile this driver as a module, choose M here: the modules
11-
will be called simatic-ipc-leds and simatic-ipc-leds-gpio.
9+
To compile this driver as a module, choose M here: the module
10+
will be called simatic-ipc-leds.
11+
12+
config LEDS_SIEMENS_SIMATIC_IPC_APOLLOLAKE
13+
tristate "LED driver for Siemens Simatic IPCs based on Intel Apollo Lake GPIO"
14+
depends on LEDS_GPIO
15+
depends on PINCTRL_BROXTON
16+
depends on SIEMENS_SIMATIC_IPC
17+
default LEDS_SIEMENS_SIMATIC_IPC
18+
help
19+
This option enables support for the LEDs of several Industrial PCs
20+
from Siemens based on Apollo Lake GPIO i.e. IPC127E.
21+
22+
To compile this driver as a module, choose M here: the module
23+
will be called simatic-ipc-leds-gpio-apollolake.
24+
25+
config LEDS_SIEMENS_SIMATIC_IPC_F7188X
26+
tristate "LED driver for Siemens Simatic IPCs based on Nuvoton GPIO"
27+
depends on LEDS_GPIO
28+
depends on GPIO_F7188X
29+
depends on SIEMENS_SIMATIC_IPC
30+
default LEDS_SIEMENS_SIMATIC_IPC
31+
help
32+
This option enables support for the LEDs of several Industrial PCs
33+
from Siemens based on Nuvoton GPIO i.e. IPC227G.
34+
35+
To compile this driver as a module, choose M here: the module
36+
will be called simatic-ipc-leds-gpio-f7188x.

drivers/leds/simple/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC) += simatic-ipc-leds.o
3-
obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC) += simatic-ipc-leds-gpio-core.o
4-
obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC) += simatic-ipc-leds-gpio-apollolake.o
5-
obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC) += simatic-ipc-leds-gpio-f7188x.o
2+
obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC) += simatic-ipc-leds.o
3+
obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC_APOLLOLAKE) += simatic-ipc-leds-gpio-core.o simatic-ipc-leds-gpio-apollolake.o
4+
obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC_F7188X) += simatic-ipc-leds-gpio-core.o simatic-ipc-leds-gpio-f7188x.o

0 commit comments

Comments
 (0)