linux/drivers/pwm/pwm-lpss.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Intel Low Power Subsystem PWM controller driver
 *
 * Copyright (C) 2014, Intel Corporation
 * Author: Mika Westerberg <[email protected]>
 * Author: Chew Kean Ho <[email protected]>
 * Author: Chang Rebecca Swee Fun <[email protected]>
 * Author: Chew Chiau Ee <[email protected]>
 * Author: Alan Cox <[email protected]>
 */

#include <linux/bits.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pm_runtime.h>
#include <linux/time.h>

#define DEFAULT_SYMBOL_NAMESPACE

#include "pwm-lpss.h"

#define PWM
#define PWM_ENABLE
#define PWM_SW_UPDATE
#define PWM_BASE_UNIT_SHIFT
#define PWM_ON_TIME_DIV_MASK

/* Size of each PWM register space if multiple */
#define PWM_SIZE

/* BayTrail */
const struct pwm_lpss_boardinfo pwm_lpss_byt_info =;
EXPORT_SYMBOL_GPL();

/* Braswell */
const struct pwm_lpss_boardinfo pwm_lpss_bsw_info =;
EXPORT_SYMBOL_GPL();

/* Broxton */
const struct pwm_lpss_boardinfo pwm_lpss_bxt_info =;
EXPORT_SYMBOL_GPL();

/* Tangier */
const struct pwm_lpss_boardinfo pwm_lpss_tng_info =;
EXPORT_SYMBOL_GPL();

static inline struct pwm_lpss_chip *to_lpwm(struct pwm_chip *chip)
{}

static inline u32 pwm_lpss_read(const struct pwm_device *pwm)
{}

static inline void pwm_lpss_write(const struct pwm_device *pwm, u32 value)
{}

static int pwm_lpss_wait_for_update(struct pwm_device *pwm)
{}

static inline int pwm_lpss_is_updating(struct pwm_device *pwm)
{}

static void pwm_lpss_prepare(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm,
			     int duty_ns, int period_ns)
{}

static inline void pwm_lpss_cond_enable(struct pwm_device *pwm, bool cond)
{}

static int pwm_lpss_prepare_enable(struct pwm_lpss_chip *lpwm,
				   struct pwm_device *pwm,
				   const struct pwm_state *state)
{}

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

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

static const struct pwm_ops pwm_lpss_ops =;

struct pwm_chip *devm_pwm_lpss_probe(struct device *dev, void __iomem *base,
				     const struct pwm_lpss_boardinfo *info)
{}
EXPORT_SYMBOL_GPL();

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