mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
![Sylwester Nawrocki](/assets/img/avatar_default.png)
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>
26 lines
590 B
C
26 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
|