Skip to content

Commit 25ac483

Browse files
morimotoUwe Kleine-König
authored andcommitted
pwm: Tidyup PWM menu for Renesas
Because current PWM Kconfig is sorting by symbol name, it looks strange ordering in menuconfig. => [ ] Renesas R-Car PWM support => [ ] Renesas TPU PWM support [ ] Rockchip PWM support => [ ] Renesas RZ/G2L General PWM Timer support => [ ] Renesas RZ/G2L MTU3a PWM Timer support Let's use common CONFIG_PWM_RENESAS_xxx symbol name for Renesas, and sort it. Signed-off-by: Kuninori Morimoto <[email protected]> Reviewed-by: Biju Das <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
1 parent 96ce677 commit 25ac483

File tree

5 files changed

+30
-30
lines changed

5 files changed

+30
-30
lines changed

arch/arm/configs/multi_v7_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ CONFIG_PWM_BCM2835=y
11841184
CONFIG_PWM_BRCMSTB=m
11851185
CONFIG_PWM_FSL_FTM=m
11861186
CONFIG_PWM_MESON=m
1187-
CONFIG_PWM_RCAR=m
1187+
CONFIG_PWM_RENESAS_RCAR=m
11881188
CONFIG_PWM_RENESAS_TPU=y
11891189
CONFIG_PWM_ROCKCHIP=m
11901190
CONFIG_PWM_SAMSUNG=m

arch/arm/configs/shmobile_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ CONFIG_RZ_DMAC=y
203203
CONFIG_IIO=y
204204
CONFIG_AK8975=y
205205
CONFIG_PWM=y
206-
CONFIG_PWM_RCAR=y
206+
CONFIG_PWM_RENESAS_RCAR=y
207207
CONFIG_PWM_RENESAS_TPU=y
208208
CONFIG_PHY_RCAR_GEN2=y
209209
CONFIG_PHY_RCAR_GEN3_USB2=y

arch/arm64/configs/defconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,11 +1528,11 @@ CONFIG_PWM_IMX27=m
15281528
CONFIG_PWM_MESON=m
15291529
CONFIG_PWM_MTK_DISP=m
15301530
CONFIG_PWM_MEDIATEK=m
1531-
CONFIG_PWM_RCAR=m
1531+
CONFIG_PWM_RENESAS_RCAR=m
1532+
CONFIG_PWM_RENESAS_RZG2L_GPT=m
1533+
CONFIG_PWM_RENESAS_RZ_MTU3=m
15321534
CONFIG_PWM_RENESAS_TPU=m
15331535
CONFIG_PWM_ROCKCHIP=y
1534-
CONFIG_PWM_RZG2L_GPT=m
1535-
CONFIG_PWM_RZ_MTU3=m
15361536
CONFIG_PWM_SAMSUNG=y
15371537
CONFIG_PWM_SL28CPLD=m
15381538
CONFIG_PWM_SUN4I=m

drivers/pwm/Kconfig

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ config PWM_RASPBERRYPI_POE
534534
Enable Raspberry Pi firmware controller PWM bus used to control the
535535
official RPI PoE hat
536536

537-
config PWM_RCAR
537+
config PWM_RENESAS_RCAR
538538
tristate "Renesas R-Car PWM support"
539539
depends on ARCH_RENESAS || COMPILE_TEST
540540
depends on HAS_IOMEM
@@ -545,26 +545,7 @@ config PWM_RCAR
545545
To compile this driver as a module, choose M here: the module
546546
will be called pwm-rcar.
547547

548-
config PWM_RENESAS_TPU
549-
tristate "Renesas TPU PWM support"
550-
depends on ARCH_RENESAS || COMPILE_TEST
551-
depends on HAS_IOMEM
552-
help
553-
This driver exposes the Timer Pulse Unit (TPU) PWM controller found
554-
in Renesas chips through the PWM API.
555-
556-
To compile this driver as a module, choose M here: the module
557-
will be called pwm-renesas-tpu.
558-
559-
config PWM_ROCKCHIP
560-
tristate "Rockchip PWM support"
561-
depends on ARCH_ROCKCHIP || COMPILE_TEST
562-
depends on HAS_IOMEM
563-
help
564-
Generic PWM framework driver for the PWM controller found on
565-
Rockchip SoCs.
566-
567-
config PWM_RZG2L_GPT
548+
config PWM_RENESAS_RZG2L_GPT
568549
tristate "Renesas RZ/G2L General PWM Timer support"
569550
depends on ARCH_RZG2L || COMPILE_TEST
570551
depends on HAS_IOMEM
@@ -575,7 +556,7 @@ config PWM_RZG2L_GPT
575556
To compile this driver as a module, choose M here: the module
576557
will be called pwm-rzg2l-gpt.
577558

578-
config PWM_RZ_MTU3
559+
config PWM_RENESAS_RZ_MTU3
579560
tristate "Renesas RZ/G2L MTU3a PWM Timer support"
580561
depends on RZ_MTU3
581562
depends on HAS_IOMEM
@@ -586,6 +567,25 @@ config PWM_RZ_MTU3
586567
To compile this driver as a module, choose M here: the module
587568
will be called pwm-rz-mtu3.
588569

570+
config PWM_RENESAS_TPU
571+
tristate "Renesas TPU PWM support"
572+
depends on ARCH_RENESAS || COMPILE_TEST
573+
depends on HAS_IOMEM
574+
help
575+
This driver exposes the Timer Pulse Unit (TPU) PWM controller found
576+
in Renesas chips through the PWM API.
577+
578+
To compile this driver as a module, choose M here: the module
579+
will be called pwm-renesas-tpu.
580+
581+
config PWM_ROCKCHIP
582+
tristate "Rockchip PWM support"
583+
depends on ARCH_ROCKCHIP || COMPILE_TEST
584+
depends on HAS_IOMEM
585+
help
586+
Generic PWM framework driver for the PWM controller found on
587+
Rockchip SoCs.
588+
589589
config PWM_SAMSUNG
590590
tristate "Samsung PWM support"
591591
depends on PLAT_SAMSUNG || ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST

drivers/pwm/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ obj-$(CONFIG_PWM_OMAP_DMTIMER) += pwm-omap-dmtimer.o
4848
obj-$(CONFIG_PWM_PCA9685) += pwm-pca9685.o
4949
obj-$(CONFIG_PWM_PXA) += pwm-pxa.o
5050
obj-$(CONFIG_PWM_RASPBERRYPI_POE) += pwm-raspberrypi-poe.o
51-
obj-$(CONFIG_PWM_RCAR) += pwm-rcar.o
51+
obj-$(CONFIG_PWM_RENESAS_RCAR) += pwm-rcar.o
52+
obj-$(CONFIG_PWM_RENESAS_RZG2L_GPT) += pwm-rzg2l-gpt.o
53+
obj-$(CONFIG_PWM_RENESAS_RZ_MTU3) += pwm-rz-mtu3.o
5254
obj-$(CONFIG_PWM_RENESAS_TPU) += pwm-renesas-tpu.o
5355
obj-$(CONFIG_PWM_ROCKCHIP) += pwm-rockchip.o
54-
obj-$(CONFIG_PWM_RZG2L_GPT) += pwm-rzg2l-gpt.o
55-
obj-$(CONFIG_PWM_RZ_MTU3) += pwm-rz-mtu3.o
5656
obj-$(CONFIG_PWM_SAMSUNG) += pwm-samsung.o
5757
obj-$(CONFIG_PWM_SIFIVE) += pwm-sifive.o
5858
obj-$(CONFIG_PWM_SL28CPLD) += pwm-sl28cpld.o

0 commit comments

Comments
 (0)