mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
05013062a8
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>
31 lines
703 B
C
31 lines
703 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Intel Low Power Subsystem PWM controller driver
|
|
*
|
|
* Copyright (C) 2014, Intel Corporation
|
|
*
|
|
* Derived from the original pwm-lpss.c
|
|
*/
|
|
|
|
#ifndef __PWM_LPSS_H
|
|
#define __PWM_LPSS_H
|
|
|
|
#include <linux/pwm.h>
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/platform_data/x86/pwm-lpss.h>
|
|
|
|
#define LPSS_MAX_PWMS 4
|
|
|
|
struct pwm_lpss_chip {
|
|
void __iomem *regs;
|
|
const struct pwm_lpss_boardinfo *info;
|
|
};
|
|
|
|
extern const struct pwm_lpss_boardinfo pwm_lpss_byt_info;
|
|
extern const struct pwm_lpss_boardinfo pwm_lpss_bsw_info;
|
|
extern const struct pwm_lpss_boardinfo pwm_lpss_bxt_info;
|
|
extern const struct pwm_lpss_boardinfo pwm_lpss_tng_info;
|
|
|
|
#endif /* __PWM_LPSS_H */
|