linux/drivers/pwm/pwm-bcm2835.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright 2014 Bart Tanghe <[email protected]>
 */

#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>

#define PWM_CONTROL
#define PWM_CONTROL_SHIFT(x)
#define PWM_CONTROL_MASK
#define PWM_MODE
#define PWM_ENABLE
#define PWM_POLARITY

#define PERIOD(x)
#define DUTY(x)

#define PERIOD_MIN

struct bcm2835_pwm {};

static inline struct bcm2835_pwm *to_bcm2835_pwm(struct pwm_chip *chip)
{}

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

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

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

static const struct pwm_ops bcm2835_pwm_ops =;

static int bcm2835_pwm_probe(struct platform_device *pdev)
{}

static int bcm2835_pwm_suspend(struct device *dev)
{}

static int bcm2835_pwm_resume(struct device *dev)
{}

static DEFINE_SIMPLE_DEV_PM_OPS(bcm2835_pwm_pm_ops, bcm2835_pwm_suspend,
				bcm2835_pwm_resume);

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

static struct platform_driver bcm2835_pwm_driver =;
module_platform_driver();

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