mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
bf32e7dbfc
In order to make it easier in subsequent patch to create different subcmu
lists for exynos5420 and exynos5800 SoCs the code is rewritten so we pass
an array of pointers to the subcmus initialization function.
Fixes: b06a532bf1
("clk: samsung: Add Exynos5 sub-CMU clock driver")
Tested-by: Jaafar Ali <jaafarkhalaf@gmail.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Link: https://lkml.kernel.org/r/20190808144929.18685-1-s.nawrocki@samsung.com
Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
27 lines
590 B
C
27 lines
590 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
|