summaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-cadence-ttc.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-11-17 08:38:05 -0500
committerTom Rini <trini@konsulko.com>2023-11-17 08:38:05 -0500
commitae7ec8b0be41b59ef323f7531c0fe6745e8fef45 (patch)
treed3b5bff2626d743a15533b8400985974817f1cc3 /drivers/pwm/pwm-cadence-ttc.c
parent6c1608b1ffb372d4dabf1b879e68428712353709 (diff)
parentb83fae673a9cd9795e531883936c1468e75510a5 (diff)
Merge branch '2023-11-16-assorted-updates' into next
- squashfs improvements, remove common.h in some places, assorted code fixes, fix a few CONFIG symbol names in Kconfig files, bring in linux's <linux/time.h> conversion functions, poplar updates, bcb improvements.
Diffstat (limited to 'drivers/pwm/pwm-cadence-ttc.c')
-rw-r--r--drivers/pwm/pwm-cadence-ttc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-cadence-ttc.c b/drivers/pwm/pwm-cadence-ttc.c
index dc3b314b0cc..d9f6736a7ae 100644
--- a/drivers/pwm/pwm-cadence-ttc.c
+++ b/drivers/pwm/pwm-cadence-ttc.c
@@ -17,6 +17,7 @@
#include <linux/bitfield.h>
#include <linux/math64.h>
#include <linux/log2.h>
+#include <linux/time.h>
#include <dm/device_compat.h>
#define CLOCK_CONTROL 0
@@ -37,8 +38,6 @@
#define COUNTER_INTERVAL_ENABLE BIT(1)
#define COUNTER_COUNTING_DISABLE BIT(0)
-#define NSEC_PER_SEC 1000000000L
-
#define TTC_REG(reg, channel) ((reg) + (channel) * sizeof(u32))
#define TTC_CLOCK_CONTROL(reg, channel) \
TTC_REG((reg) + CLOCK_CONTROL, (channel))