aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-dwc.h
diff options
context:
space:
mode:
authorRaag Jadav <[email protected]>2024-02-19 03:38:34 +0000
committerUwe Kleine-König <[email protected]>2024-02-26 10:14:46 +0000
commitebf2c89eb95ec9598da19184632b765de72a7db4 (patch)
tree5706f7b59036e55ad211697fab16c90afe121f4b /drivers/pwm/pwm-dwc.h
parentpwm: dwc: drop redundant error check (diff)
downloadkernel-ebf2c89eb95ec9598da19184632b765de72a7db4.tar.gz
kernel-ebf2c89eb95ec9598da19184632b765de72a7db4.zip
pwm: dwc: Add 16 channel support for Intel Elkhart Lake
Intel Elkhart Lake PSE includes two instances of PWM as a single PCI function with 8 channels each. Add support for the remaining channels. Signed-off-by: Raag Jadav <[email protected]> Tested-by: Jarkko Nikula <[email protected]> Tested-by: Lakshmi Sowjanya D <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-dwc.h')
-rw-r--r--drivers/pwm/pwm-dwc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-dwc.h b/drivers/pwm/pwm-dwc.h
index 5887371803fd..a8b074841ae8 100644
--- a/drivers/pwm/pwm-dwc.h
+++ b/drivers/pwm/pwm-dwc.h
@@ -33,6 +33,11 @@ MODULE_IMPORT_NS(dwc_pwm);
#define DWC_TIM_CTRL_INT_MASK BIT(2)
#define DWC_TIM_CTRL_PWM BIT(3)
+struct dwc_pwm_info {
+ unsigned int nr;
+ unsigned int size;
+};
+
struct dwc_pwm_ctx {
u32 cnt;
u32 cnt2;