mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
![Krzysztof Kozlowski](/assets/img/avatar_default.png)
So far all Exynos, S3C64xx and S5Pv210 clock units were selected by respective SOC/ARCH Kconfig option. On a kernel built for selected SoCs, this allowed to build only limited set of matching clock drivers. However compile testing was not possible in such case as Makefile object depends on SOC/ARCH option. Add separate Kconfig options for each of them to be able to compile test. Link: https://lore.kernel.org/r/20201119164509.754851-1-krzk@kernel.org Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
56 lines
1.7 KiB
C
56 lines
1.7 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2020 Krzysztof Kozlowski <krzk@kernel.org>
|
|
*/
|
|
|
|
#ifndef __LINUX_CLK_SAMSUNG_H_
|
|
#define __LINUX_CLK_SAMSUNG_H_
|
|
|
|
#include <linux/compiler_types.h>
|
|
|
|
struct device_node;
|
|
|
|
#ifdef CONFIG_S3C64XX_COMMON_CLK
|
|
void s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f,
|
|
unsigned long xusbxti_f, bool s3c6400,
|
|
void __iomem *base);
|
|
#else
|
|
static inline void s3c64xx_clk_init(struct device_node *np,
|
|
unsigned long xtal_f,
|
|
unsigned long xusbxti_f,
|
|
bool s3c6400, void __iomem *base) { }
|
|
#endif /* CONFIG_S3C64XX_COMMON_CLK */
|
|
|
|
#ifdef CONFIG_S3C2410_COMMON_CLK
|
|
void s3c2410_common_clk_init(struct device_node *np, unsigned long xti_f,
|
|
int current_soc,
|
|
void __iomem *reg_base);
|
|
#else
|
|
static inline void s3c2410_common_clk_init(struct device_node *np,
|
|
unsigned long xti_f,
|
|
int current_soc,
|
|
void __iomem *reg_base) { }
|
|
#endif /* CONFIG_S3C2410_COMMON_CLK */
|
|
|
|
#ifdef CONFIG_S3C2412_COMMON_CLK
|
|
void s3c2412_common_clk_init(struct device_node *np, unsigned long xti_f,
|
|
unsigned long ext_f, void __iomem *reg_base);
|
|
#else
|
|
static inline void s3c2412_common_clk_init(struct device_node *np,
|
|
unsigned long xti_f,
|
|
unsigned long ext_f,
|
|
void __iomem *reg_base) { }
|
|
#endif /* CONFIG_S3C2412_COMMON_CLK */
|
|
|
|
#ifdef CONFIG_S3C2443_COMMON_CLK
|
|
void s3c2443_common_clk_init(struct device_node *np, unsigned long xti_f,
|
|
int current_soc,
|
|
void __iomem *reg_base);
|
|
#else
|
|
static inline void s3c2443_common_clk_init(struct device_node *np,
|
|
unsigned long xti_f,
|
|
int current_soc,
|
|
void __iomem *reg_base) { }
|
|
#endif /* CONFIG_S3C2443_COMMON_CLK */
|
|
|
|
#endif /* __LINUX_CLK_SAMSUNG_H_ */
|