mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
b06a532bf1
Exynos5250/5420/5800 have only one clock controller, but some of their clock depends on respective power domains. Handling integration of clock controller and power domain can be done using runtime PM feature of CCF framework. This however needs a separate struct device for each power domain. This patch adds such separate driver for a group of such clocks, which can be instantiated more than once, each time for a different power domain. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
27 lines
589 B
C
27 lines
589 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef __CLK_EXYNOS5_SUBCMU_H
|
|
#define __CLK_EXYNOS5_SUBCMU_H
|
|
|
|
struct exynos5_subcmu_reg_dump {
|
|
u32 offset;
|
|
u32 value;
|
|
u32 mask;
|
|
u32 save;
|
|
};
|
|
|
|
struct exynos5_subcmu_info {
|
|
const struct samsung_div_clock *div_clks;
|
|
unsigned int nr_div_clks;
|
|
const struct samsung_gate_clock *gate_clks;
|
|
unsigned int nr_gate_clks;
|
|
struct exynos5_subcmu_reg_dump *suspend_regs;
|
|
unsigned int nr_suspend_regs;
|
|
const char *pd_name;
|
|
};
|
|
|
|
void exynos5_subcmus_init(struct samsung_clk_provider *ctx, int nr_cmus,
|
|
const struct exynos5_subcmu_info *cmu);
|
|
|
|
#endif
|