2019-06-04 16:11:33 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2014-08-20 00:17:35 +08:00
|
|
|
/*
|
|
|
|
* 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>
|
2022-11-17 19:08:02 +08:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
2022-11-17 19:08:03 +08:00
|
|
|
#include <linux/platform_data/x86/pwm-lpss.h>
|
2014-08-20 00:17:35 +08:00
|
|
|
|
2022-11-17 19:08:01 +08:00
|
|
|
#define LPSS_MAX_PWMS 4
|
2018-10-12 18:12:26 +08:00
|
|
|
|
|
|
|
struct pwm_lpss_chip {
|
|
|
|
struct pwm_chip chip;
|
|
|
|
void __iomem *regs;
|
|
|
|
const struct pwm_lpss_boardinfo *info;
|
|
|
|
};
|
2014-08-20 00:17:35 +08:00
|
|
|
|
2022-09-28 00:24:15 +08:00
|
|
|
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;
|
|
|
|
|
2014-08-20 00:17:35 +08:00
|
|
|
#endif /* __PWM_LPSS_H */
|