mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
2fd36aa0ad
The PWM LPSS device can be embedded in another device. In order to enable it, allow that drivers to probe a corresponding device. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Thierry Reding <thierry.reding@gmail.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
32 lines
726 B
C
32 lines
726 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 {
|
|
struct pwm_chip 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 */
|