linux/drivers/pwm/pwm-mxs.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright 2012 Freescale Semiconductor, Inc.
 */

#include <linux/clk.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>
#include <linux/stmp_device.h>

#define SET
#define CLR
#define TOG

#define PWM_CTRL
#define PWM_ACTIVE0
#define PWM_PERIOD0
#define PERIOD_PERIOD(p)
#define PERIOD_PERIOD_MAX
#define PERIOD_ACTIVE_HIGH
#define PERIOD_ACTIVE_LOW
#define PERIOD_INACTIVE_HIGH
#define PERIOD_INACTIVE_LOW
#define PERIOD_POLARITY_NORMAL
#define PERIOD_POLARITY_INVERSE
#define PERIOD_CDIV(div)
#define PERIOD_CDIV_MAX

static const u8 cdiv_shift[PERIOD_CDIV_MAX] =;

struct mxs_pwm_chip {};

static inline struct mxs_pwm_chip *to_mxs_pwm_chip(struct pwm_chip *chip)
{}

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

static const struct pwm_ops mxs_pwm_ops =;

static int mxs_pwm_probe(struct platform_device *pdev)
{}

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

static struct platform_driver mxs_pwm_driver =;
module_platform_driver();

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