/* SPDX-License-Identifier: GPL-2.0-only */1/*2* Copyright (C) 2013 Samsung Electronics Co., Ltd.3*/4#ifndef __CLOCKSOURCE_SAMSUNG_PWM_H5#define __CLOCKSOURCE_SAMSUNG_PWM_H67#include <linux/spinlock.h>89#define SAMSUNG_PWM_NUM 51011/*12* Following declaration must be in an ifdef due to this symbol being static13* in pwm-samsung driver if the clocksource driver is not compiled in and the14* spinlock is not shared between both drivers.15*/16#ifdef CONFIG_CLKSRC_SAMSUNG_PWM17extern spinlock_t samsung_pwm_lock;18#endif1920struct samsung_pwm_variant {21u8 bits;22u8 div_base;23u8 tclk_mask;24u8 output_mask;25bool has_tint_cstat;26};2728void samsung_pwm_clocksource_init(void __iomem *base,29unsigned int *irqs,30const struct samsung_pwm_variant *variant);3132#endif /* __CLOCKSOURCE_SAMSUNG_PWM_H */333435