#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/pwm.h>
#include <linux/of.h>
#include <asm/div64.h>
#define HAS_SECONDARY_PWM …
static const struct platform_device_id pwm_id_table[] = …;
MODULE_DEVICE_TABLE(platform, pwm_id_table);
#define PWMCR …
#define PWMDCR …
#define PWMPCR …
#define PWMCR_SD …
#define PWMDCR_FD …
struct pxa_pwm_chip { … };
static inline struct pxa_pwm_chip *to_pxa_pwm_chip(struct pwm_chip *chip)
{ … }
static int pxa_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
u64 duty_ns, u64 period_ns)
{ … }
static int pxa_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
const struct pwm_state *state)
{ … }
static const struct pwm_ops pxa_pwm_ops = …;
#ifdef CONFIG_OF
static const struct of_device_id pwm_of_match[] = …;
MODULE_DEVICE_TABLE(of, pwm_of_match);
#else
#define pwm_of_match …
#endif
static int pwm_probe(struct platform_device *pdev)
{ … }
static struct platform_driver pwm_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;