.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2014 Samsung Electronics Co., Ltd. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License version 2 as |
---|
6 | | - * published by the Free Software Foundation. |
---|
7 | 4 | * |
---|
8 | 5 | * Common Clock Framework support for Exynos3250 SoC. |
---|
9 | 6 | */ |
---|
10 | 7 | |
---|
11 | 8 | #include <linux/clk-provider.h> |
---|
| 9 | +#include <linux/io.h> |
---|
12 | 10 | #include <linux/of.h> |
---|
13 | 11 | #include <linux/of_address.h> |
---|
14 | 12 | #include <linux/platform_device.h> |
---|
15 | | -#include <linux/syscore_ops.h> |
---|
16 | 13 | |
---|
17 | 14 | #include <dt-bindings/clock/exynos3250.h> |
---|
18 | 15 | |
---|
.. | .. |
---|
811 | 808 | static void __init exynos3250_cmu_init(struct device_node *np) |
---|
812 | 809 | { |
---|
813 | 810 | struct samsung_clk_provider *ctx; |
---|
| 811 | + struct clk_hw **hws; |
---|
814 | 812 | |
---|
815 | 813 | ctx = samsung_cmu_register_one(np, &cmu_info); |
---|
816 | 814 | if (!ctx) |
---|
817 | 815 | return; |
---|
818 | 816 | |
---|
| 817 | + hws = ctx->clk_data.hws; |
---|
819 | 818 | exynos_register_cpu_clock(ctx, CLK_ARM_CLK, "armclk", |
---|
820 | | - mout_core_p[0], mout_core_p[1], 0x14200, |
---|
821 | | - e3250_armclk_d, ARRAY_SIZE(e3250_armclk_d), |
---|
| 819 | + hws[CLK_MOUT_APLL], hws[CLK_MOUT_MPLL_USER_C], |
---|
| 820 | + 0x14200, e3250_armclk_d, ARRAY_SIZE(e3250_armclk_d), |
---|
822 | 821 | CLK_CPU_HAS_DIV1); |
---|
823 | 822 | |
---|
824 | 823 | exynos3_core_down_clock(ctx->reg_base); |
---|