#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/mfd/atmel-hlcdc.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/regmap.h>
#define ATMEL_HLCDC_PWMCVAL_MASK …
#define ATMEL_HLCDC_PWMCVAL(x) …
#define ATMEL_HLCDC_PWMPOL …
#define ATMEL_HLCDC_PWMPS_MASK …
#define ATMEL_HLCDC_PWMPS_MAX …
#define ATMEL_HLCDC_PWMPS(x) …
struct atmel_hlcdc_pwm_errata { … };
struct atmel_hlcdc_pwm { … };
static inline struct atmel_hlcdc_pwm *to_atmel_hlcdc_pwm(struct pwm_chip *chip)
{ … }
static int atmel_hlcdc_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
const struct pwm_state *state)
{ … }
static const struct pwm_ops atmel_hlcdc_pwm_ops = …;
static const struct atmel_hlcdc_pwm_errata atmel_hlcdc_pwm_at91sam9x5_errata = …;
static const struct atmel_hlcdc_pwm_errata atmel_hlcdc_pwm_sama5d3_errata = …;
static int atmel_hlcdc_pwm_suspend(struct device *dev)
{ … }
static int atmel_hlcdc_pwm_resume(struct device *dev)
{ … }
static DEFINE_SIMPLE_DEV_PM_OPS(atmel_hlcdc_pwm_pm_ops,
atmel_hlcdc_pwm_suspend, atmel_hlcdc_pwm_resume);
static const struct of_device_id atmel_hlcdc_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, atmel_hlcdc_dt_ids);
static int atmel_hlcdc_pwm_probe(struct platform_device *pdev)
{ … }
static void atmel_hlcdc_pwm_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id atmel_hlcdc_pwm_dt_ids[] = …;
static struct platform_driver atmel_hlcdc_pwm_driver = …;
module_platform_driver(…) …;
MODULE_ALIAS(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;