Files
BPI-CM9-Linux/aml-comp/kernel/aml-6.12/common_drivers/drivers/pwm/main.h
T

51 lines
859 B
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef _PWM_MAIN_H__
#define _PWM_MAIN_H__
#include <linux/pwm.h>
#if IS_ENABLED(CONFIG_AMLOGIC_PWM_MESON)
int meson_pwm_init(void);
void meson_pwm_exit(void);
#else
static inline int meson_pwm_init(void)
{
return 0;
}
static inline void meson_pwm_exit(void)
{
}
struct meson_pwm *to_meson_pwm(struct pwm_chip *chip)
{
return NULL;
}
EXPORT_SYMBOL(to_meson_pwm);
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_PWM_MESON_TEE)
int pwm_meson_tee_init(void);
void pwm_meson_tee_exit(void);
#else
static inline int pwm_meson_tee_init(void)
{
return 0;
}
static inline void pwm_meson_tee_exit(void)
{
}
struct meson_pwm_tee *to_meson_pwm_tee(struct pwm_chip *chip)
{
return NULL;
}
EXPORT_SYMBOL(to_meson_pwm_tee);
#endif
#endif /* _PMM_MAIN_H__ */