linux/drivers/pwm/pwm-imx1.c

// SPDX-License-Identifier: GPL-2.0
/*
 * simple driver for PWM (Pulse Width Modulator) controller
 *
 * Derived from pxa PWM driver by eric miao <[email protected]>
 */

#include <linux/bitfield.h>
#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/slab.h>

#define MX1_PWMC
#define MX1_PWMS
#define MX1_PWMP

#define MX1_PWMC_EN

struct pwm_imx1_chip {};

static inline struct pwm_imx1_chip *to_pwm_imx1_chip(struct pwm_chip *chip)
{}

static int pwm_imx1_clk_prepare_enable(struct pwm_chip *chip)
{}

static void pwm_imx1_clk_disable_unprepare(struct pwm_chip *chip)
{}

static int pwm_imx1_config(struct pwm_chip *chip,
			   struct pwm_device *pwm, u64 duty_ns, u64 period_ns)
{}

static int pwm_imx1_enable(struct pwm_chip *chip, struct pwm_device *pwm)
{}

static void pwm_imx1_disable(struct pwm_chip *chip, struct pwm_device *pwm)
{}

static int pwm_imx1_apply(struct pwm_chip *chip, struct pwm_device *pwm,
			  const struct pwm_state *state)
{}

static const struct pwm_ops pwm_imx1_ops =;

static const struct of_device_id pwm_imx1_dt_ids[] =;
MODULE_DEVICE_TABLE(of, pwm_imx1_dt_ids);

static int pwm_imx1_probe(struct platform_device *pdev)
{}

static struct platform_driver pwm_imx1_driver =;
module_platform_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_AUTHOR();