#include <linux/clk.h>
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/kernel.h>
#include <linux/mfd/ingenic-tcu.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/regmap.h>
struct soc_info { … };
struct jz4740_pwm_chip { … };
static inline struct jz4740_pwm_chip *to_jz4740(struct pwm_chip *chip)
{ … }
static bool jz4740_pwm_can_use_chn(struct pwm_chip *chip, unsigned int channel)
{ … }
static int jz4740_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm)
{ … }
static void jz4740_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm)
{ … }
static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
{ … }
static void jz4740_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm)
{ … }
static int jz4740_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
const struct pwm_state *state)
{ … }
static const struct pwm_ops jz4740_pwm_ops = …;
static int jz4740_pwm_probe(struct platform_device *pdev)
{ … }
static const struct soc_info jz4740_soc_info = …;
static const struct soc_info jz4725b_soc_info = …;
static const struct soc_info x1000_soc_info = …;
static const struct of_device_id jz4740_pwm_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, jz4740_pwm_dt_ids);
static struct platform_driver jz4740_pwm_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_ALIAS(…) …;
MODULE_LICENSE(…) …;