From 653d75cfbaae8ad331beaea12364202938cbb793 Mon Sep 17 00:00:00 2001 From: Florian Vaussard Date: Wed, 28 Feb 2018 22:21:00 +0100 Subject: [PATCH] pwm: stm32: Add PWM fixup for STM32* and remove Kconfig options Add fixup info for PWM nodes on STM32F0/F1/F3/F4/L4 and remove the conflicting Kconfig symbols to fully switch STM32 PWM to device tree. Signed-off-by: Florian Vaussard --- arch/arm/soc/st_stm32/stm32f0/dts.fixup | 27 +++ arch/arm/soc/st_stm32/stm32f1/dts.fixup | 24 ++ arch/arm/soc/st_stm32/stm32f3/dts.fixup | 51 +++++ arch/arm/soc/st_stm32/stm32f4/dts.fixup | 42 ++++ arch/arm/soc/st_stm32/stm32l4/dts.fixup | 33 +++ drivers/pwm/Kconfig.stm32 | 280 ------------------------ 6 files changed, 177 insertions(+), 280 deletions(-) diff --git a/arch/arm/soc/st_stm32/stm32f0/dts.fixup b/arch/arm/soc/st_stm32/stm32f0/dts.fixup index 983677f767c..9e062965e0c 100644 --- a/arch/arm/soc/st_stm32/stm32f0/dts.fixup +++ b/arch/arm/soc/st_stm32/stm32f0/dts.fixup @@ -58,4 +58,31 @@ #define CONFIG_USB_NUM_OUT_ENDPOINTS ST_STM32_USB_40005C00_NUM_OUT_ENDPOINTS #define CONFIG_USB_RAM_SIZE ST_STM32_USB_40005C00_RAM_SIZE +#define CONFIG_PWM_STM32_1_DEV_NAME ST_STM32_PWM_40012C00_PWM_LABEL +#define CONFIG_PWM_STM32_1_PRESCALER ST_STM32_PWM_40012C00_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_2_DEV_NAME ST_STM32_PWM_40000000_PWM_LABEL +#define CONFIG_PWM_STM32_2_PRESCALER ST_STM32_PWM_40000000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_3_DEV_NAME ST_STM32_PWM_40000400_PWM_LABEL +#define CONFIG_PWM_STM32_3_PRESCALER ST_STM32_PWM_40000400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_6_DEV_NAME ST_STM32_PWM_40001000_PWM_LABEL +#define CONFIG_PWM_STM32_6_PRESCALER ST_STM32_PWM_40001000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_7_DEV_NAME ST_STM32_PWM_40001400_PWM_LABEL +#define CONFIG_PWM_STM32_7_PRESCALER ST_STM32_PWM_40001400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_14_DEV_NAME ST_STM32_PWM_40002000_PWM_LABEL +#define CONFIG_PWM_STM32_14_PRESCALER ST_STM32_PWM_40002000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_15_DEV_NAME ST_STM32_PWM_40014000_PWM_LABEL +#define CONFIG_PWM_STM32_15_PRESCALER ST_STM32_PWM_40014000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_16_DEV_NAME ST_STM32_PWM_40014400_PWM_LABEL +#define CONFIG_PWM_STM32_16_PRESCALER ST_STM32_PWM_40014400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_17_DEV_NAME ST_STM32_PWM_40014800_PWM_LABEL +#define CONFIG_PWM_STM32_17_PRESCALER ST_STM32_PWM_40014800_PWM_ST_PRESCALER + /* End of SoC Level DTS fixup file */ diff --git a/arch/arm/soc/st_stm32/stm32f1/dts.fixup b/arch/arm/soc/st_stm32/stm32f1/dts.fixup index d7466a7b099..922434cfb02 100644 --- a/arch/arm/soc/st_stm32/stm32f1/dts.fixup +++ b/arch/arm/soc/st_stm32/stm32f1/dts.fixup @@ -63,4 +63,28 @@ #define CONFIG_USB_NUM_BIDIR_ENDPOINTS ST_STM32_USB_40005C00_NUM_BIDIR_ENDPOINTS #define CONFIG_USB_RAM_SIZE ST_STM32_USB_40005C00_RAM_SIZE +#define CONFIG_PWM_STM32_1_DEV_NAME ST_STM32_PWM_40012C00_PWM_LABEL +#define CONFIG_PWM_STM32_1_PRESCALER ST_STM32_PWM_40012C00_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_2_DEV_NAME ST_STM32_PWM_40000000_PWM_LABEL +#define CONFIG_PWM_STM32_2_PRESCALER ST_STM32_PWM_40000000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_3_DEV_NAME ST_STM32_PWM_40000400_PWM_LABEL +#define CONFIG_PWM_STM32_3_PRESCALER ST_STM32_PWM_40000400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_4_DEV_NAME ST_STM32_PWM_40000800_PWM_LABEL +#define CONFIG_PWM_STM32_4_PRESCALER ST_STM32_PWM_40000800_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_5_DEV_NAME ST_STM32_PWM_40000C00_PWM_LABEL +#define CONFIG_PWM_STM32_5_PRESCALER ST_STM32_PWM_40000C00_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_6_DEV_NAME ST_STM32_PWM_40001000_PWM_LABEL +#define CONFIG_PWM_STM32_6_PRESCALER ST_STM32_PWM_40001000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_7_DEV_NAME ST_STM32_PWM_40001400_PWM_LABEL +#define CONFIG_PWM_STM32_7_PRESCALER ST_STM32_PWM_40001400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_8_DEV_NAME ST_STM32_PWM_40013400_PWM_LABEL +#define CONFIG_PWM_STM32_8_PRESCALER ST_STM32_PWM_40013400_PWM_ST_PRESCALER + /* End of SoC Level DTS fixup file */ diff --git a/arch/arm/soc/st_stm32/stm32f3/dts.fixup b/arch/arm/soc/st_stm32/stm32f3/dts.fixup index 7b0c7757615..b542d64f4fd 100644 --- a/arch/arm/soc/st_stm32/stm32f3/dts.fixup +++ b/arch/arm/soc/st_stm32/stm32f3/dts.fixup @@ -61,4 +61,55 @@ #define CONFIG_USB_NUM_OUT_ENDPOINTS ST_STM32_USB_40005C00_NUM_OUT_ENDPOINTS #define CONFIG_USB_RAM_SIZE ST_STM32_USB_40005C00_RAM_SIZE +#define CONFIG_PWM_STM32_1_DEV_NAME ST_STM32_PWM_40012C00_PWM_LABEL +#define CONFIG_PWM_STM32_1_PRESCALER ST_STM32_PWM_40012C00_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_2_DEV_NAME ST_STM32_PWM_40000000_PWM_LABEL +#define CONFIG_PWM_STM32_2_PRESCALER ST_STM32_PWM_40000000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_3_DEV_NAME ST_STM32_PWM_40000400_PWM_LABEL +#define CONFIG_PWM_STM32_3_PRESCALER ST_STM32_PWM_40000400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_4_DEV_NAME ST_STM32_PWM_40000800_PWM_LABEL +#define CONFIG_PWM_STM32_4_PRESCALER ST_STM32_PWM_40000800_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_5_DEV_NAME ST_STM32_PWM_40000C00_PWM_LABEL +#define CONFIG_PWM_STM32_5_PRESCALER ST_STM32_PWM_40000C00_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_6_DEV_NAME ST_STM32_PWM_40001000_PWM_LABEL +#define CONFIG_PWM_STM32_6_PRESCALER ST_STM32_PWM_40001000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_7_DEV_NAME ST_STM32_PWM_40001400_PWM_LABEL +#define CONFIG_PWM_STM32_7_PRESCALER ST_STM32_PWM_40001400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_8_DEV_NAME ST_STM32_PWM_40013400_PWM_LABEL +#define CONFIG_PWM_STM32_8_PRESCALER ST_STM32_PWM_40013400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_12_DEV_NAME ST_STM32_PWM_40001800_PWM_LABEL +#define CONFIG_PWM_STM32_12_PRESCALER ST_STM32_PWM_40001800_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_13_DEV_NAME ST_STM32_PWM_40001C00_PWM_LABEL +#define CONFIG_PWM_STM32_13_PRESCALER ST_STM32_PWM_40001C00_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_14_DEV_NAME ST_STM32_PWM_40002000_PWM_LABEL +#define CONFIG_PWM_STM32_14_PRESCALER ST_STM32_PWM_40002000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_15_DEV_NAME ST_STM32_PWM_40014000_PWM_LABEL +#define CONFIG_PWM_STM32_15_PRESCALER ST_STM32_PWM_40014000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_16_DEV_NAME ST_STM32_PWM_40014400_PWM_LABEL +#define CONFIG_PWM_STM32_16_PRESCALER ST_STM32_PWM_40014400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_17_DEV_NAME ST_STM32_PWM_40014800_PWM_LABEL +#define CONFIG_PWM_STM32_17_PRESCALER ST_STM32_PWM_40014800_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_18_DEV_NAME ST_STM32_PWM_40009C00_PWM_LABEL +#define CONFIG_PWM_STM32_18_PRESCALER ST_STM32_PWM_40009C00_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_19_DEV_NAME ST_STM32_PWM_40015C00_PWM_LABEL +#define CONFIG_PWM_STM32_19_PRESCALER ST_STM32_PWM_40015C00_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_20_DEV_NAME ST_STM32_PWM_40015000_PWM_LABEL +#define CONFIG_PWM_STM32_20_PRESCALER ST_STM32_PWM_40015000_PWM_ST_PRESCALER + /* End of SoC Level DTS fixup file */ diff --git a/arch/arm/soc/st_stm32/stm32f4/dts.fixup b/arch/arm/soc/st_stm32/stm32f4/dts.fixup index a4577d217b9..381bb0d733f 100644 --- a/arch/arm/soc/st_stm32/stm32f4/dts.fixup +++ b/arch/arm/soc/st_stm32/stm32f4/dts.fixup @@ -91,4 +91,46 @@ #define CONFIG_USB_NUM_OUT_ENDPOINTS ST_STM32_OTGFS_50000000_NUM_OUT_ENDPOINTS #define CONFIG_USB_RAM_SIZE ST_STM32_OTGFS_50000000_RAM_SIZE +#define CONFIG_PWM_STM32_1_DEV_NAME ST_STM32_PWM_40010000_PWM_LABEL +#define CONFIG_PWM_STM32_1_PRESCALER ST_STM32_PWM_40010000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_2_DEV_NAME ST_STM32_PWM_40000000_PWM_LABEL +#define CONFIG_PWM_STM32_2_PRESCALER ST_STM32_PWM_40000000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_3_DEV_NAME ST_STM32_PWM_40000400_PWM_LABEL +#define CONFIG_PWM_STM32_3_PRESCALER ST_STM32_PWM_40000400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_4_DEV_NAME ST_STM32_PWM_40000800_PWM_LABEL +#define CONFIG_PWM_STM32_4_PRESCALER ST_STM32_PWM_40000800_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_5_DEV_NAME ST_STM32_PWM_40000C00_PWM_LABEL +#define CONFIG_PWM_STM32_5_PRESCALER ST_STM32_PWM_40000C00_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_6_DEV_NAME ST_STM32_PWM_40001000_PWM_LABEL +#define CONFIG_PWM_STM32_6_PRESCALER ST_STM32_PWM_40001000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_7_DEV_NAME ST_STM32_PWM_40001400_PWM_LABEL +#define CONFIG_PWM_STM32_7_PRESCALER ST_STM32_PWM_40001400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_8_DEV_NAME ST_STM32_PWM_40010400_PWM_LABEL +#define CONFIG_PWM_STM32_8_PRESCALER ST_STM32_PWM_40010400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_9_DEV_NAME ST_STM32_PWM_40014000_PWM_LABEL +#define CONFIG_PWM_STM32_9_PRESCALER ST_STM32_PWM_40014000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_10_DEV_NAME ST_STM32_PWM_40014400_PWM_LABEL +#define CONFIG_PWM_STM32_10_PRESCALER ST_STM32_PWM_40014400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_11_DEV_NAME ST_STM32_PWM_40014800_PWM_LABEL +#define CONFIG_PWM_STM32_11_PRESCALER ST_STM32_PWM_40014800_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_12_DEV_NAME ST_STM32_PWM_40001800_PWM_LABEL +#define CONFIG_PWM_STM32_12_PRESCALER ST_STM32_PWM_40001800_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_13_DEV_NAME ST_STM32_PWM_40001C00_PWM_LABEL +#define CONFIG_PWM_STM32_13_PRESCALER ST_STM32_PWM_40001C00_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_14_DEV_NAME ST_STM32_PWM_40002000_PWM_LABEL +#define CONFIG_PWM_STM32_14_PRESCALER ST_STM32_PWM_40002000_PWM_ST_PRESCALER + /* End of SoC Level DTS fixup file */ diff --git a/arch/arm/soc/st_stm32/stm32l4/dts.fixup b/arch/arm/soc/st_stm32/stm32l4/dts.fixup index d76ddd7c85c..72d20dd2b7d 100644 --- a/arch/arm/soc/st_stm32/stm32l4/dts.fixup +++ b/arch/arm/soc/st_stm32/stm32l4/dts.fixup @@ -98,4 +98,37 @@ #define CONFIG_USB_RAM_SIZE ST_STM32_OTGFS_50000000_RAM_SIZE #endif +#define CONFIG_PWM_STM32_1_DEV_NAME ST_STM32_PWM_40012C00_PWM_LABEL +#define CONFIG_PWM_STM32_1_PRESCALER ST_STM32_PWM_40012C00_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_2_DEV_NAME ST_STM32_PWM_40000000_PWM_LABEL +#define CONFIG_PWM_STM32_2_PRESCALER ST_STM32_PWM_40000000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_3_DEV_NAME ST_STM32_PWM_40000400_PWM_LABEL +#define CONFIG_PWM_STM32_3_PRESCALER ST_STM32_PWM_40000400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_4_DEV_NAME ST_STM32_PWM_40000800_PWM_LABEL +#define CONFIG_PWM_STM32_4_PRESCALER ST_STM32_PWM_40000800_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_5_DEV_NAME ST_STM32_PWM_40000C00_PWM_LABEL +#define CONFIG_PWM_STM32_5_PRESCALER ST_STM32_PWM_40000C00_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_6_DEV_NAME ST_STM32_PWM_40001000_PWM_LABEL +#define CONFIG_PWM_STM32_6_PRESCALER ST_STM32_PWM_40001000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_7_DEV_NAME ST_STM32_PWM_40001400_PWM_LABEL +#define CONFIG_PWM_STM32_7_PRESCALER ST_STM32_PWM_40001400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_8_DEV_NAME ST_STM32_PWM_40013400_PWM_LABEL +#define CONFIG_PWM_STM32_8_PRESCALER ST_STM32_PWM_40013400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_15_DEV_NAME ST_STM32_PWM_40014000_PWM_LABEL +#define CONFIG_PWM_STM32_15_PRESCALER ST_STM32_PWM_40014000_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_16_DEV_NAME ST_STM32_PWM_40014400_PWM_LABEL +#define CONFIG_PWM_STM32_16_PRESCALER ST_STM32_PWM_40014400_PWM_ST_PRESCALER + +#define CONFIG_PWM_STM32_17_DEV_NAME ST_STM32_PWM_40014800_PWM_LABEL +#define CONFIG_PWM_STM32_17_PRESCALER ST_STM32_PWM_40014800_PWM_ST_PRESCALER + /* End of SoC Level DTS fixup file */ diff --git a/drivers/pwm/Kconfig.stm32 b/drivers/pwm/Kconfig.stm32 index a4010dbdf4d..8260d028e95 100644 --- a/drivers/pwm/Kconfig.stm32 +++ b/drivers/pwm/Kconfig.stm32 @@ -24,20 +24,6 @@ config PWM_STM32_1 Enable output for PWM1 in the driver. Say y here if you want to use PWM1 output. -config PWM_STM32_1_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_1" - depends on PWM_STM32_1 - help - Specify the device name for the PWM driver. - -config PWM_STM32_1_PRESCALER - int "STM32 PWM 1 Prescaler" - default 10000 - depends on PWM_STM32_1 - help - Clock prescaler at the input of the timer. - config PWM_STM32_2 bool "STM32 PWM 2 Output" depends on PWM_STM32 @@ -46,20 +32,6 @@ config PWM_STM32_2 Enable output for PWM2 in the driver. Say y here if you want to use PWM2 output. -config PWM_STM32_2_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_2" - depends on PWM_STM32_2 - help - Specify the device name for the PWM driver. - -config PWM_STM32_2_PRESCALER - int "STM32 PWM 2 Prescaler" - default 0 - depends on PWM_STM32_2 - help - Clock prescaler at the input of the timer. - config PWM_STM32_3 bool "STM32 PWM 3 Output" depends on PWM_STM32 @@ -68,20 +40,6 @@ config PWM_STM32_3 Enable output for PWM3 in the driver. Say y here if you want to use PWM3 output. -config PWM_STM32_3_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_3" - depends on PWM_STM32_3 - help - Specify the device name for the PWM driver. - -config PWM_STM32_3_PRESCALER - int "STM32 PWM 3 Prescaler" - default 10000 - depends on PWM_STM32_3 - help - Clock prescaler at the input of the timer. - config PWM_STM32_4 bool "STM32 PWM 4 Output" depends on PWM_STM32 @@ -90,20 +48,6 @@ config PWM_STM32_4 Enable output for PWM4 in the driver. Say y here if you want to use PWM4 output. -config PWM_STM32_4_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_4" - depends on PWM_STM32_4 - help - Specify the device name for the PWM driver. - -config PWM_STM32_4_PRESCALER - int "STM32 PWM 4 Prescaler" - default 10000 - depends on PWM_STM32_4 - help - Clock prescaler at the input of the timer. - config PWM_STM32_5 bool "STM32 PWM 5 Output" depends on PWM_STM32 @@ -112,20 +56,6 @@ config PWM_STM32_5 Enable output for PWM5 in the driver. Say y here if you want to use PWM5 output. -config PWM_STM32_5_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_5" - depends on PWM_STM32_5 - help - Specify the device name for the PWM driver. - -config PWM_STM32_5_PRESCALER - int "STM32 PWM 5 Prescaler" - default 0 - depends on PWM_STM32_5 - help - Clock prescaler at the input of the timer. - config PWM_STM32_6 bool "STM32 PWM 6 Output" depends on PWM_STM32 @@ -134,20 +64,6 @@ config PWM_STM32_6 Enable output for PWM6 in the driver. Say y here if you want to use PWM6 output. -config PWM_STM32_6_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_6" - depends on PWM_STM32_6 - help - Specify the device name for the PWM driver. - -config PWM_STM32_6_PRESCALER - int "STM32 PWM 6 Prescaler" - default 10000 - depends on PWM_STM32_6 - help - Clock prescaler at the input of the timer. - config PWM_STM32_7 bool "STM32 PWM 7 Output" depends on PWM_STM32 @@ -156,20 +72,6 @@ config PWM_STM32_7 Enable output for PWM7 in the driver. Say y here if you want to use PWM7 output. -config PWM_STM32_7_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_7" - depends on PWM_STM32_7 - help - Specify the device name for the PWM driver. - -config PWM_STM32_7_PRESCALER - int "STM32 PWM 7 Prescaler" - default 10000 - depends on PWM_STM32_7 - help - Clock prescaler at the input of the timer. - config PWM_STM32_8 bool "STM32 PWM 8 Output" depends on PWM_STM32 @@ -178,20 +80,6 @@ config PWM_STM32_8 Enable output for PWM8 in the driver. Say y here if you want to use PWM8 output. -config PWM_STM32_8_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_8" - depends on PWM_STM32_8 - help - Specify the device name for the PWM driver. - -config PWM_STM32_8_PRESCALER - int "STM32 PWM 8 Prescaler" - default 10000 - depends on PWM_STM32_8 - help - Clock prescaler at the input of the timer. - config PWM_STM32_9 bool "STM32 PWM 9 Output" depends on PWM_STM32 @@ -200,20 +88,6 @@ config PWM_STM32_9 Enable output for PWM9 in the driver. Say y here if you want to use PWM9 output. -config PWM_STM32_9_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_9" - depends on PWM_STM32_9 - help - Specify the device name for the PWM driver. - -config PWM_STM32_9_PRESCALER - int "STM32 PWM 9 Prescaler" - default 10000 - depends on PWM_STM32_9 - help - Clock prescaler at the input of the timer. - config PWM_STM32_10 bool "STM32 PWM 10 Output" depends on PWM_STM32 @@ -222,20 +96,6 @@ config PWM_STM32_10 Enable output for PWM10 in the driver. Say y here if you want to use PWM10 output. -config PWM_STM32_10_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_10" - depends on PWM_STM32_10 - help - Specify the device name for the PWM driver. - -config PWM_STM32_10_PRESCALER - int "STM32 PWM 10 Prescaler" - default 10000 - depends on PWM_STM32_10 - help - Clock prescaler at the input of the timer. - config PWM_STM32_11 bool "STM32 PWM 11 Output" depends on PWM_STM32 @@ -244,20 +104,6 @@ config PWM_STM32_11 Enable output for PWM11 in the driver. Say y here if you want to use PWM11 output. -config PWM_STM32_11_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_11" - depends on PWM_STM32_11 - help - Specify the device name for the PWM driver. - -config PWM_STM32_11_PRESCALER - int "STM32 PWM 11 Prescaler" - default 10000 - depends on PWM_STM32_11 - help - Clock prescaler at the input of the timer. - config PWM_STM32_12 bool "STM32 PWM 12 Output" depends on PWM_STM32 @@ -266,20 +112,6 @@ config PWM_STM32_12 Enable output for PWM12 in the driver. Say y here if you want to use PWM12 output. -config PWM_STM32_12_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_12" - depends on PWM_STM32_12 - help - Specify the device name for the PWM driver. - -config PWM_STM32_12_PRESCALER - int "STM32 PWM 12 Prescaler" - default 10000 - depends on PWM_STM32_12 - help - Clock prescaler at the input of the timer. - config PWM_STM32_13 bool "STM32 PWM 13 Output" depends on PWM_STM32 @@ -288,20 +120,6 @@ config PWM_STM32_13 Enable output for PWM13 in the driver. Say y here if you want to use PWM13 output. -config PWM_STM32_13_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_13" - depends on PWM_STM32_13 - help - Specify the device name for the PWM driver. - -config PWM_STM32_13_PRESCALER - int "STM32 PWM 13 Prescaler" - default 10000 - depends on PWM_STM32_13 - help - Clock prescaler at the input of the timer. - config PWM_STM32_14 bool "STM32 PWM 14 Output" depends on PWM_STM32 @@ -310,20 +128,6 @@ config PWM_STM32_14 Enable output for PWM14 in the driver. Say y here if you want to use PWM14 output. -config PWM_STM32_14_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_14" - depends on PWM_STM32_14 - help - Specify the device name for the PWM driver. - -config PWM_STM32_14_PRESCALER - int "STM32 PWM 14 Prescaler" - default 10000 - depends on PWM_STM32_14 - help - Clock prescaler at the input of the timer. - config PWM_STM32_15 bool "STM32 PWM 15 Output" depends on PWM_STM32 @@ -332,20 +136,6 @@ config PWM_STM32_15 Enable output for PWM15 in the driver. Say y here if you want to use PWM15 output. -config PWM_STM32_15_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_15" - depends on PWM_STM32_15 - help - Specify the device name for the PWM driver. - -config PWM_STM32_15_PRESCALER - int "STM32 PWM 15 Prescaler" - default 10000 - depends on PWM_STM32_15 - help - Clock prescaler at the input of the timer. - config PWM_STM32_16 bool "STM32 PWM 16 Output" depends on PWM_STM32 @@ -354,20 +144,6 @@ config PWM_STM32_16 Enable output for PWM16 in the driver. Say y here if you want to use PWM16 output. -config PWM_STM32_16_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_16" - depends on PWM_STM32_16 - help - Specify the device name for the PWM driver. - -config PWM_STM32_16_PRESCALER - int "STM32 PWM 16 Prescaler" - default 10000 - depends on PWM_STM32_16 - help - Clock prescaler at the input of the timer. - config PWM_STM32_17 bool "STM32 PWM 17 Output" depends on PWM_STM32 @@ -376,20 +152,6 @@ config PWM_STM32_17 Enable output for PWM17 in the driver. Say y here if you want to use PWM17 output. -config PWM_STM32_17_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_17" - depends on PWM_STM32_17 - help - Specify the device name for the PWM driver. - -config PWM_STM32_17_PRESCALER - int "STM32 PWM 17 Prescaler" - default 10000 - depends on PWM_STM32_17 - help - Clock prescaler at the input of the timer. - config PWM_STM32_18 bool "STM32 PWM 18 Output" depends on PWM_STM32 @@ -398,20 +160,6 @@ config PWM_STM32_18 Enable output for PWM18 in the driver. Say y here if you want to use PWM18 output. -config PWM_STM32_18_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_18" - depends on PWM_STM32_18 - help - Specify the device name for the PWM driver. - -config PWM_STM32_18_PRESCALER - int "STM32 PWM 18 Prescaler" - default 10000 - depends on PWM_STM32_18 - help - Clock prescaler at the input of the timer. - config PWM_STM32_19 bool "STM32 PWM 19 Output" depends on PWM_STM32 @@ -420,20 +168,6 @@ config PWM_STM32_19 Enable output for PWM19 in the driver. Say y here if you want to use PWM19 output. -config PWM_STM32_19_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_19" - depends on PWM_STM32_19 - help - Specify the device name for the PWM driver. - -config PWM_STM32_19_PRESCALER - int "STM32 PWM 19 Prescaler" - default 10000 - depends on PWM_STM32_19 - help - Clock prescaler at the input of the timer. - config PWM_STM32_20 bool "STM32 PWM 20 Output" depends on PWM_STM32 @@ -441,17 +175,3 @@ config PWM_STM32_20 help Enable output for PWM20 in the driver. Say y here if you want to use PWM20 output. - -config PWM_STM32_20_DEV_NAME - string "STM32 PWM Device Name" - default "PWM_20" - depends on PWM_STM32_20 - help - Specify the device name for the PWM driver. - -config PWM_STM32_20_PRESCALER - int "STM32 PWM 20 Prescaler" - default 10000 - depends on PWM_STM32_20 - help - Clock prescaler at the input of the timer.