mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-04-08 12:02:33 +02:00
This prepares the pwm-lpss drivers to further changes of the pwm core outlined in the commit introducing devm_pwmchip_alloc(). There is no intended semantical change and the driver should behave as before. Reviewed-by: Andy Shevchenko <andy@kernel.org> Link: https://lore.kernel.org/r/b567ab5dd992e361eb884fa6c2cac11be9c7dde3.1707900770.git.u.kleine-koenig@pengutronix.de Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
34 lines
894 B
C
34 lines
894 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* Intel Low Power Subsystem PWM controller driver */
|
|
|
|
#ifndef __PLATFORM_DATA_X86_PWM_LPSS_H
|
|
#define __PLATFORM_DATA_X86_PWM_LPSS_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct device;
|
|
|
|
struct pwm_lpss_chip;
|
|
|
|
struct pwm_lpss_boardinfo {
|
|
unsigned long clk_rate;
|
|
unsigned int npwm;
|
|
unsigned long base_unit_bits;
|
|
/*
|
|
* Some versions of the IP may stuck in the state machine if enable
|
|
* bit is not set, and hence update bit will show busy status till
|
|
* the reset. For the rest it may be otherwise.
|
|
*/
|
|
bool bypass;
|
|
/*
|
|
* On some devices the _PS0/_PS3 AML code of the GPU (GFX0) device
|
|
* messes with the PWM0 controllers state,
|
|
*/
|
|
bool other_devices_aml_touches_pwm_regs;
|
|
};
|
|
|
|
struct pwm_chip *devm_pwm_lpss_probe(struct device *dev, void __iomem *base,
|
|
const struct pwm_lpss_boardinfo *info);
|
|
|
|
#endif /* __PLATFORM_DATA_X86_PWM_LPSS_H */
|