drivers: pwm: nrf: Migrate SW PWM Kconfig options to DT

1. Kconfig option Clock prescaler removed.
2. Modified pwm_nrf5_sw.c driver to use DT
   defines instead of Kconfig, and also use new
   DT options (timer, ppi/gpiote, etc).
3. Cleanup some code.

Signed-off-by: Gaute Gamnes <gaute.gamnes@nordicsemi.no>
This commit is contained in:
Gaute Gamnes 2019-03-12 09:05:51 +01:00 committed by Carles Cufí
commit 121a9e41b2
2 changed files with 23 additions and 36 deletions

View file

@ -24,23 +24,4 @@ config PWM_NRF5_SW_0_DEV_NAME
Specify the device name for the Nordic Semiconductor nRF5x series S/W
PWM driver.
config PWM_NRF5_SW_0_CLOCK_PRESCALER
int "Nordic Semiconductor nRF5x series S/W PWM Clock Prescaler"
default 0
range 0 9
help
Set the clock prescaler for the timer used for generating
the PWM output signals. Prescaler values correspond to the
following timer frequencies:
0: 16 MHz
1: 8 MHz
2: 4 MHz
3: 2 MHz
4: 1 MHz
5: 500 kHz
6: 250 kHz
7: 125 kHz
8: 62500 Hz
9: 31250 Hz
endif # PWM_NRF5_SW