#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/reset.h>
#define PWM_CFG0_ADDR(x) …
#define PWM_CFG1_ADDR(x) …
#define PWM_CFG2_ADDR(x) …
#define PWM_CTRL_ADDR(x) …
#define PWM_ENABLE_SHIFT …
#define PWM_ENABLE_MASK …
#define PWM_POLARITY_SHIFT …
#define PWM_POLARITY_MASK …
#define PWM_KEEP_SHIFT …
#define PWM_KEEP_MASK …
#define PWM_PERIOD_MASK …
#define PWM_DUTY_MASK …
struct hibvt_pwm_chip { … };
struct hibvt_pwm_soc { … };
static const struct hibvt_pwm_soc hi3516cv300_soc_info = …;
static const struct hibvt_pwm_soc hi3519v100_soc_info = …;
static const struct hibvt_pwm_soc hi3559v100_shub_soc_info = …;
static const struct hibvt_pwm_soc hi3559v100_soc_info = …;
static inline struct hibvt_pwm_chip *to_hibvt_pwm_chip(struct pwm_chip *chip)
{ … }
static void hibvt_pwm_set_bits(void __iomem *base, u32 offset,
u32 mask, u32 data)
{ … }
static void hibvt_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
{ … }
static void hibvt_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm)
{ … }
static void hibvt_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
int duty_cycle_ns, int period_ns)
{ … }
static void hibvt_pwm_set_polarity(struct pwm_chip *chip,
struct pwm_device *pwm,
enum pwm_polarity polarity)
{ … }
static int hibvt_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm,
struct pwm_state *state)
{ … }
static int hibvt_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
const struct pwm_state *state)
{ … }
static const struct pwm_ops hibvt_pwm_ops = …;
static int hibvt_pwm_probe(struct platform_device *pdev)
{ … }
static void hibvt_pwm_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id hibvt_pwm_of_match[] = …;
MODULE_DEVICE_TABLE(of, hibvt_pwm_of_match);
static struct platform_driver hibvt_pwm_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;