aboutsummaryrefslogtreecommitdiff
path: root/drivers/pwm/Kconfig
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2021-10-15 15:17:29 +0200
committerMichal Simek <michal.simek@xilinx.com>2022-03-30 14:50:47 +0200
commitfb92cc2c17724d66a32f7a033608a1bd2176a478 (patch)
treed1119d0f13dde85e40980d4ae94c1620dc63714e /drivers/pwm/Kconfig
parentdcbdd24259beaff903e7ffffde646a3c5bd756ac (diff)
downloadu-boot-fb92cc2c17724d66a32f7a033608a1bd2176a478.zip
u-boot-fb92cc2c17724d66a32f7a033608a1bd2176a478.tar.gz
u-boot-fb92cc2c17724d66a32f7a033608a1bd2176a478.tar.bz2
pwm: Add driver for cadence TTC
TTC has three modes of operations. Timer, PWM and input counters. There is already driver for timer under CADENCE_TTC_TIMER which is used for ZynqMP R5 configuration. This driver is targeting PWM which is for example configuration which can be used for fan control. The driver has been tested on Xilinx Kria SOM platform where fan is connected to one PL pin. When TTC output is connected via EMIO to PL pin TTC pwm can be configured and tested for example like this: pwm config 0 0 10000 1200 pwm enable 0 0 pwm config 0 0 10000 1400 pwm config 0 0 10000 1600 Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Sean Anderson <sean.anderson@seco.com> Link: https://lore.kernel.org/r/915a662ddb88f7a958ca1f307e8fea59af9d7feb.1634303847.git.michal.simek@xilinx.com
Diffstat (limited to 'drivers/pwm/Kconfig')
-rw-r--r--drivers/pwm/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index 6be612d..cb54e67 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -23,6 +23,13 @@ config PWM_AT91
help
Support for PWM hardware on AT91 based SoC.
+config PWM_CADENCE_TTC
+ bool "Enable support for the Cadence TTC PWM"
+ depends on DM_PWM && !CADENCE_TTC_TIMER
+ help
+ Cadence TTC can be configured as timer which is done via
+ CONFIG_CADENCE_TTC_TIMER or as PWM. This is covering only PWM now.
+
config PWM_CROS_EC
bool "Enable support for the Chrome OS EC PWM"
depends on DM_PWM