162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2013 Samsung Electronics Co., Ltd.
462306a36Sopenharmony_ci * Copyright (c) 2013 Linaro Ltd.
562306a36Sopenharmony_ci * Author: Thomas Abraham <thomas.ab@samsung.com>
662306a36Sopenharmony_ci *
762306a36Sopenharmony_ci * Common Clock Framework support for all Exynos4 SoCs.
862306a36Sopenharmony_ci*/
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#include <dt-bindings/clock/exynos4.h>
1162306a36Sopenharmony_ci#include <linux/slab.h>
1262306a36Sopenharmony_ci#include <linux/clk.h>
1362306a36Sopenharmony_ci#include <linux/clk-provider.h>
1462306a36Sopenharmony_ci#include <linux/io.h>
1562306a36Sopenharmony_ci#include <linux/of.h>
1662306a36Sopenharmony_ci#include <linux/of_address.h>
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci#include "clk.h"
1962306a36Sopenharmony_ci#include "clk-cpu.h"
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci/* Exynos4 clock controller register offsets */
2262306a36Sopenharmony_ci#define SRC_LEFTBUS		0x4200
2362306a36Sopenharmony_ci#define DIV_LEFTBUS		0x4500
2462306a36Sopenharmony_ci#define GATE_IP_LEFTBUS		0x4800
2562306a36Sopenharmony_ci#define E4X12_GATE_IP_IMAGE	0x4930
2662306a36Sopenharmony_ci#define CLKOUT_CMU_LEFTBUS	0x4a00
2762306a36Sopenharmony_ci#define SRC_RIGHTBUS		0x8200
2862306a36Sopenharmony_ci#define DIV_RIGHTBUS		0x8500
2962306a36Sopenharmony_ci#define GATE_IP_RIGHTBUS	0x8800
3062306a36Sopenharmony_ci#define E4X12_GATE_IP_PERIR	0x8960
3162306a36Sopenharmony_ci#define CLKOUT_CMU_RIGHTBUS	0x8a00
3262306a36Sopenharmony_ci#define EPLL_LOCK		0xc010
3362306a36Sopenharmony_ci#define VPLL_LOCK		0xc020
3462306a36Sopenharmony_ci#define EPLL_CON0		0xc110
3562306a36Sopenharmony_ci#define EPLL_CON1		0xc114
3662306a36Sopenharmony_ci#define EPLL_CON2		0xc118
3762306a36Sopenharmony_ci#define VPLL_CON0		0xc120
3862306a36Sopenharmony_ci#define VPLL_CON1		0xc124
3962306a36Sopenharmony_ci#define VPLL_CON2		0xc128
4062306a36Sopenharmony_ci#define SRC_TOP0		0xc210
4162306a36Sopenharmony_ci#define SRC_TOP1		0xc214
4262306a36Sopenharmony_ci#define SRC_CAM			0xc220
4362306a36Sopenharmony_ci#define SRC_TV			0xc224
4462306a36Sopenharmony_ci#define SRC_MFC			0xc228
4562306a36Sopenharmony_ci#define SRC_G3D			0xc22c
4662306a36Sopenharmony_ci#define E4210_SRC_IMAGE		0xc230
4762306a36Sopenharmony_ci#define SRC_LCD0		0xc234
4862306a36Sopenharmony_ci#define E4210_SRC_LCD1		0xc238
4962306a36Sopenharmony_ci#define E4X12_SRC_ISP		0xc238
5062306a36Sopenharmony_ci#define SRC_MAUDIO		0xc23c
5162306a36Sopenharmony_ci#define SRC_FSYS		0xc240
5262306a36Sopenharmony_ci#define SRC_PERIL0		0xc250
5362306a36Sopenharmony_ci#define SRC_PERIL1		0xc254
5462306a36Sopenharmony_ci#define E4X12_SRC_CAM1		0xc258
5562306a36Sopenharmony_ci#define SRC_MASK_TOP		0xc310
5662306a36Sopenharmony_ci#define SRC_MASK_CAM		0xc320
5762306a36Sopenharmony_ci#define SRC_MASK_TV		0xc324
5862306a36Sopenharmony_ci#define SRC_MASK_LCD0		0xc334
5962306a36Sopenharmony_ci#define E4210_SRC_MASK_LCD1	0xc338
6062306a36Sopenharmony_ci#define E4X12_SRC_MASK_ISP	0xc338
6162306a36Sopenharmony_ci#define SRC_MASK_MAUDIO		0xc33c
6262306a36Sopenharmony_ci#define SRC_MASK_FSYS		0xc340
6362306a36Sopenharmony_ci#define SRC_MASK_PERIL0		0xc350
6462306a36Sopenharmony_ci#define SRC_MASK_PERIL1		0xc354
6562306a36Sopenharmony_ci#define DIV_TOP			0xc510
6662306a36Sopenharmony_ci#define DIV_CAM			0xc520
6762306a36Sopenharmony_ci#define DIV_TV			0xc524
6862306a36Sopenharmony_ci#define DIV_MFC			0xc528
6962306a36Sopenharmony_ci#define DIV_G3D			0xc52c
7062306a36Sopenharmony_ci#define DIV_IMAGE		0xc530
7162306a36Sopenharmony_ci#define DIV_LCD0		0xc534
7262306a36Sopenharmony_ci#define E4210_DIV_LCD1		0xc538
7362306a36Sopenharmony_ci#define E4X12_DIV_ISP		0xc538
7462306a36Sopenharmony_ci#define DIV_MAUDIO		0xc53c
7562306a36Sopenharmony_ci#define DIV_FSYS0		0xc540
7662306a36Sopenharmony_ci#define DIV_FSYS1		0xc544
7762306a36Sopenharmony_ci#define DIV_FSYS2		0xc548
7862306a36Sopenharmony_ci#define DIV_FSYS3		0xc54c
7962306a36Sopenharmony_ci#define DIV_PERIL0		0xc550
8062306a36Sopenharmony_ci#define DIV_PERIL1		0xc554
8162306a36Sopenharmony_ci#define DIV_PERIL2		0xc558
8262306a36Sopenharmony_ci#define DIV_PERIL3		0xc55c
8362306a36Sopenharmony_ci#define DIV_PERIL4		0xc560
8462306a36Sopenharmony_ci#define DIV_PERIL5		0xc564
8562306a36Sopenharmony_ci#define E4X12_DIV_CAM1		0xc568
8662306a36Sopenharmony_ci#define E4X12_GATE_BUS_FSYS1	0xc744
8762306a36Sopenharmony_ci#define GATE_SCLK_CAM		0xc820
8862306a36Sopenharmony_ci#define GATE_IP_CAM		0xc920
8962306a36Sopenharmony_ci#define GATE_IP_TV		0xc924
9062306a36Sopenharmony_ci#define GATE_IP_MFC		0xc928
9162306a36Sopenharmony_ci#define GATE_IP_G3D		0xc92c
9262306a36Sopenharmony_ci#define E4210_GATE_IP_IMAGE	0xc930
9362306a36Sopenharmony_ci#define GATE_IP_LCD0		0xc934
9462306a36Sopenharmony_ci#define E4210_GATE_IP_LCD1	0xc938
9562306a36Sopenharmony_ci#define E4X12_GATE_IP_ISP	0xc938
9662306a36Sopenharmony_ci#define E4X12_GATE_IP_MAUDIO	0xc93c
9762306a36Sopenharmony_ci#define GATE_IP_FSYS		0xc940
9862306a36Sopenharmony_ci#define GATE_IP_GPS		0xc94c
9962306a36Sopenharmony_ci#define GATE_IP_PERIL		0xc950
10062306a36Sopenharmony_ci#define E4210_GATE_IP_PERIR	0xc960
10162306a36Sopenharmony_ci#define GATE_BLOCK		0xc970
10262306a36Sopenharmony_ci#define CLKOUT_CMU_TOP		0xca00
10362306a36Sopenharmony_ci#define E4X12_MPLL_LOCK		0x10008
10462306a36Sopenharmony_ci#define E4X12_MPLL_CON0		0x10108
10562306a36Sopenharmony_ci#define SRC_DMC			0x10200
10662306a36Sopenharmony_ci#define SRC_MASK_DMC		0x10300
10762306a36Sopenharmony_ci#define DIV_DMC0		0x10500
10862306a36Sopenharmony_ci#define DIV_DMC1		0x10504
10962306a36Sopenharmony_ci#define GATE_IP_DMC		0x10900
11062306a36Sopenharmony_ci#define CLKOUT_CMU_DMC		0x10a00
11162306a36Sopenharmony_ci#define APLL_LOCK		0x14000
11262306a36Sopenharmony_ci#define E4210_MPLL_LOCK		0x14008
11362306a36Sopenharmony_ci#define APLL_CON0		0x14100
11462306a36Sopenharmony_ci#define E4210_MPLL_CON0		0x14108
11562306a36Sopenharmony_ci#define SRC_CPU			0x14200
11662306a36Sopenharmony_ci#define DIV_CPU0		0x14500
11762306a36Sopenharmony_ci#define DIV_CPU1		0x14504
11862306a36Sopenharmony_ci#define GATE_SCLK_CPU		0x14800
11962306a36Sopenharmony_ci#define GATE_IP_CPU		0x14900
12062306a36Sopenharmony_ci#define CLKOUT_CMU_CPU		0x14a00
12162306a36Sopenharmony_ci#define PWR_CTRL1		0x15020
12262306a36Sopenharmony_ci#define E4X12_PWR_CTRL2		0x15024
12362306a36Sopenharmony_ci
12462306a36Sopenharmony_ci/* Below definitions are used for PWR_CTRL settings */
12562306a36Sopenharmony_ci#define PWR_CTRL1_CORE2_DOWN_RATIO(x)		(((x) & 0x7) << 28)
12662306a36Sopenharmony_ci#define PWR_CTRL1_CORE1_DOWN_RATIO(x)		(((x) & 0x7) << 16)
12762306a36Sopenharmony_ci#define PWR_CTRL1_DIV2_DOWN_EN			(1 << 9)
12862306a36Sopenharmony_ci#define PWR_CTRL1_DIV1_DOWN_EN			(1 << 8)
12962306a36Sopenharmony_ci#define PWR_CTRL1_USE_CORE3_WFE			(1 << 7)
13062306a36Sopenharmony_ci#define PWR_CTRL1_USE_CORE2_WFE			(1 << 6)
13162306a36Sopenharmony_ci#define PWR_CTRL1_USE_CORE1_WFE			(1 << 5)
13262306a36Sopenharmony_ci#define PWR_CTRL1_USE_CORE0_WFE			(1 << 4)
13362306a36Sopenharmony_ci#define PWR_CTRL1_USE_CORE3_WFI			(1 << 3)
13462306a36Sopenharmony_ci#define PWR_CTRL1_USE_CORE2_WFI			(1 << 2)
13562306a36Sopenharmony_ci#define PWR_CTRL1_USE_CORE1_WFI			(1 << 1)
13662306a36Sopenharmony_ci#define PWR_CTRL1_USE_CORE0_WFI			(1 << 0)
13762306a36Sopenharmony_ci
13862306a36Sopenharmony_ci/* NOTE: Must be equal to the last clock ID increased by one */
13962306a36Sopenharmony_ci#define CLKS_NR					(CLK_DIV_CORE2 + 1)
14062306a36Sopenharmony_ci
14162306a36Sopenharmony_ci/* the exynos4 soc type */
14262306a36Sopenharmony_cienum exynos4_soc {
14362306a36Sopenharmony_ci	EXYNOS4210,
14462306a36Sopenharmony_ci	EXYNOS4212,
14562306a36Sopenharmony_ci	EXYNOS4412,
14662306a36Sopenharmony_ci};
14762306a36Sopenharmony_ci
14862306a36Sopenharmony_ci/* list of PLLs to be registered */
14962306a36Sopenharmony_cienum exynos4_plls {
15062306a36Sopenharmony_ci	apll, mpll, epll, vpll,
15162306a36Sopenharmony_ci	nr_plls			/* number of PLLs */
15262306a36Sopenharmony_ci};
15362306a36Sopenharmony_ci
15462306a36Sopenharmony_cistatic void __iomem *reg_base;
15562306a36Sopenharmony_cistatic enum exynos4_soc exynos4_soc;
15662306a36Sopenharmony_ci
15762306a36Sopenharmony_ci/*
15862306a36Sopenharmony_ci * list of controller registers to be saved and restored during a
15962306a36Sopenharmony_ci * suspend/resume cycle.
16062306a36Sopenharmony_ci */
16162306a36Sopenharmony_cistatic const unsigned long exynos4210_clk_save[] __initconst = {
16262306a36Sopenharmony_ci	E4210_SRC_IMAGE,
16362306a36Sopenharmony_ci	E4210_SRC_LCD1,
16462306a36Sopenharmony_ci	E4210_SRC_MASK_LCD1,
16562306a36Sopenharmony_ci	E4210_DIV_LCD1,
16662306a36Sopenharmony_ci	E4210_GATE_IP_IMAGE,
16762306a36Sopenharmony_ci	E4210_GATE_IP_LCD1,
16862306a36Sopenharmony_ci	E4210_GATE_IP_PERIR,
16962306a36Sopenharmony_ci	E4210_MPLL_CON0,
17062306a36Sopenharmony_ci	PWR_CTRL1,
17162306a36Sopenharmony_ci};
17262306a36Sopenharmony_ci
17362306a36Sopenharmony_cistatic const unsigned long exynos4x12_clk_save[] __initconst = {
17462306a36Sopenharmony_ci	E4X12_GATE_IP_IMAGE,
17562306a36Sopenharmony_ci	E4X12_GATE_IP_PERIR,
17662306a36Sopenharmony_ci	E4X12_SRC_CAM1,
17762306a36Sopenharmony_ci	E4X12_DIV_ISP,
17862306a36Sopenharmony_ci	E4X12_DIV_CAM1,
17962306a36Sopenharmony_ci	E4X12_MPLL_CON0,
18062306a36Sopenharmony_ci	PWR_CTRL1,
18162306a36Sopenharmony_ci	E4X12_PWR_CTRL2,
18262306a36Sopenharmony_ci};
18362306a36Sopenharmony_ci
18462306a36Sopenharmony_cistatic const unsigned long exynos4_clk_regs[] __initconst = {
18562306a36Sopenharmony_ci	EPLL_LOCK,
18662306a36Sopenharmony_ci	VPLL_LOCK,
18762306a36Sopenharmony_ci	EPLL_CON0,
18862306a36Sopenharmony_ci	EPLL_CON1,
18962306a36Sopenharmony_ci	EPLL_CON2,
19062306a36Sopenharmony_ci	VPLL_CON0,
19162306a36Sopenharmony_ci	VPLL_CON1,
19262306a36Sopenharmony_ci	VPLL_CON2,
19362306a36Sopenharmony_ci	SRC_LEFTBUS,
19462306a36Sopenharmony_ci	DIV_LEFTBUS,
19562306a36Sopenharmony_ci	GATE_IP_LEFTBUS,
19662306a36Sopenharmony_ci	SRC_RIGHTBUS,
19762306a36Sopenharmony_ci	DIV_RIGHTBUS,
19862306a36Sopenharmony_ci	GATE_IP_RIGHTBUS,
19962306a36Sopenharmony_ci	SRC_TOP0,
20062306a36Sopenharmony_ci	SRC_TOP1,
20162306a36Sopenharmony_ci	SRC_CAM,
20262306a36Sopenharmony_ci	SRC_TV,
20362306a36Sopenharmony_ci	SRC_MFC,
20462306a36Sopenharmony_ci	SRC_G3D,
20562306a36Sopenharmony_ci	SRC_LCD0,
20662306a36Sopenharmony_ci	SRC_MAUDIO,
20762306a36Sopenharmony_ci	SRC_FSYS,
20862306a36Sopenharmony_ci	SRC_PERIL0,
20962306a36Sopenharmony_ci	SRC_PERIL1,
21062306a36Sopenharmony_ci	SRC_MASK_TOP,
21162306a36Sopenharmony_ci	SRC_MASK_CAM,
21262306a36Sopenharmony_ci	SRC_MASK_TV,
21362306a36Sopenharmony_ci	SRC_MASK_LCD0,
21462306a36Sopenharmony_ci	SRC_MASK_MAUDIO,
21562306a36Sopenharmony_ci	SRC_MASK_FSYS,
21662306a36Sopenharmony_ci	SRC_MASK_PERIL0,
21762306a36Sopenharmony_ci	SRC_MASK_PERIL1,
21862306a36Sopenharmony_ci	DIV_TOP,
21962306a36Sopenharmony_ci	DIV_CAM,
22062306a36Sopenharmony_ci	DIV_TV,
22162306a36Sopenharmony_ci	DIV_MFC,
22262306a36Sopenharmony_ci	DIV_G3D,
22362306a36Sopenharmony_ci	DIV_IMAGE,
22462306a36Sopenharmony_ci	DIV_LCD0,
22562306a36Sopenharmony_ci	DIV_MAUDIO,
22662306a36Sopenharmony_ci	DIV_FSYS0,
22762306a36Sopenharmony_ci	DIV_FSYS1,
22862306a36Sopenharmony_ci	DIV_FSYS2,
22962306a36Sopenharmony_ci	DIV_FSYS3,
23062306a36Sopenharmony_ci	DIV_PERIL0,
23162306a36Sopenharmony_ci	DIV_PERIL1,
23262306a36Sopenharmony_ci	DIV_PERIL2,
23362306a36Sopenharmony_ci	DIV_PERIL3,
23462306a36Sopenharmony_ci	DIV_PERIL4,
23562306a36Sopenharmony_ci	DIV_PERIL5,
23662306a36Sopenharmony_ci	GATE_SCLK_CAM,
23762306a36Sopenharmony_ci	GATE_IP_CAM,
23862306a36Sopenharmony_ci	GATE_IP_TV,
23962306a36Sopenharmony_ci	GATE_IP_MFC,
24062306a36Sopenharmony_ci	GATE_IP_G3D,
24162306a36Sopenharmony_ci	GATE_IP_LCD0,
24262306a36Sopenharmony_ci	GATE_IP_FSYS,
24362306a36Sopenharmony_ci	GATE_IP_GPS,
24462306a36Sopenharmony_ci	GATE_IP_PERIL,
24562306a36Sopenharmony_ci	GATE_BLOCK,
24662306a36Sopenharmony_ci	SRC_MASK_DMC,
24762306a36Sopenharmony_ci	SRC_DMC,
24862306a36Sopenharmony_ci	DIV_DMC0,
24962306a36Sopenharmony_ci	DIV_DMC1,
25062306a36Sopenharmony_ci	GATE_IP_DMC,
25162306a36Sopenharmony_ci	APLL_CON0,
25262306a36Sopenharmony_ci	SRC_CPU,
25362306a36Sopenharmony_ci	DIV_CPU0,
25462306a36Sopenharmony_ci	DIV_CPU1,
25562306a36Sopenharmony_ci	GATE_SCLK_CPU,
25662306a36Sopenharmony_ci	GATE_IP_CPU,
25762306a36Sopenharmony_ci	CLKOUT_CMU_LEFTBUS,
25862306a36Sopenharmony_ci	CLKOUT_CMU_RIGHTBUS,
25962306a36Sopenharmony_ci	CLKOUT_CMU_TOP,
26062306a36Sopenharmony_ci	CLKOUT_CMU_DMC,
26162306a36Sopenharmony_ci	CLKOUT_CMU_CPU,
26262306a36Sopenharmony_ci};
26362306a36Sopenharmony_ci
26462306a36Sopenharmony_cistatic const struct samsung_clk_reg_dump src_mask_suspend[] = {
26562306a36Sopenharmony_ci	{ .offset = VPLL_CON0,			.value = 0x80600302, },
26662306a36Sopenharmony_ci	{ .offset = EPLL_CON0,			.value = 0x806F0302, },
26762306a36Sopenharmony_ci	{ .offset = SRC_MASK_TOP,		.value = 0x00000001, },
26862306a36Sopenharmony_ci	{ .offset = SRC_MASK_CAM,		.value = 0x11111111, },
26962306a36Sopenharmony_ci	{ .offset = SRC_MASK_TV,		.value = 0x00000111, },
27062306a36Sopenharmony_ci	{ .offset = SRC_MASK_LCD0,		.value = 0x00001111, },
27162306a36Sopenharmony_ci	{ .offset = SRC_MASK_MAUDIO,		.value = 0x00000001, },
27262306a36Sopenharmony_ci	{ .offset = SRC_MASK_FSYS,		.value = 0x01011111, },
27362306a36Sopenharmony_ci	{ .offset = SRC_MASK_PERIL0,		.value = 0x01111111, },
27462306a36Sopenharmony_ci	{ .offset = SRC_MASK_PERIL1,		.value = 0x01110111, },
27562306a36Sopenharmony_ci	{ .offset = SRC_MASK_DMC,		.value = 0x00010000, },
27662306a36Sopenharmony_ci};
27762306a36Sopenharmony_ci
27862306a36Sopenharmony_cistatic const struct samsung_clk_reg_dump src_mask_suspend_e4210[] = {
27962306a36Sopenharmony_ci	{ .offset = E4210_SRC_MASK_LCD1,	.value = 0x00001111, },
28062306a36Sopenharmony_ci};
28162306a36Sopenharmony_ci
28262306a36Sopenharmony_ci/* list of all parent clock list */
28362306a36Sopenharmony_ciPNAME(mout_apll_p)	= { "fin_pll", "fout_apll", };
28462306a36Sopenharmony_ciPNAME(mout_mpll_p)	= { "fin_pll", "fout_mpll", };
28562306a36Sopenharmony_ciPNAME(mout_epll_p)	= { "fin_pll", "fout_epll", };
28662306a36Sopenharmony_ciPNAME(mout_vpllsrc_p)	= { "fin_pll", "sclk_hdmi24m", };
28762306a36Sopenharmony_ciPNAME(mout_vpll_p)	= { "fin_pll", "fout_vpll", };
28862306a36Sopenharmony_ciPNAME(sclk_evpll_p)	= { "sclk_epll", "sclk_vpll", };
28962306a36Sopenharmony_ciPNAME(mout_mfc_p)	= { "mout_mfc0", "mout_mfc1", };
29062306a36Sopenharmony_ciPNAME(mout_g3d_p)	= { "mout_g3d0", "mout_g3d1", };
29162306a36Sopenharmony_ciPNAME(mout_g2d_p)	= { "mout_g2d0", "mout_g2d1", };
29262306a36Sopenharmony_ciPNAME(mout_hdmi_p)	= { "sclk_pixel", "sclk_hdmiphy", };
29362306a36Sopenharmony_ciPNAME(mout_jpeg_p)	= { "mout_jpeg0", "mout_jpeg1", };
29462306a36Sopenharmony_ciPNAME(mout_spdif_p)	= { "sclk_audio0", "sclk_audio1", "sclk_audio2",
29562306a36Sopenharmony_ci				"spdif_extclk", };
29662306a36Sopenharmony_ciPNAME(mout_onenand_p)  = {"aclk133", "aclk160", };
29762306a36Sopenharmony_ciPNAME(mout_onenand1_p) = {"mout_onenand", "sclk_vpll", };
29862306a36Sopenharmony_ci
29962306a36Sopenharmony_ci/* Exynos 4210-specific parent groups */
30062306a36Sopenharmony_ciPNAME(sclk_vpll_p4210)	= { "mout_vpllsrc", "fout_vpll", };
30162306a36Sopenharmony_ciPNAME(mout_core_p4210)	= { "mout_apll", "sclk_mpll", };
30262306a36Sopenharmony_ciPNAME(sclk_ampll_p4210)	= { "sclk_mpll", "sclk_apll", };
30362306a36Sopenharmony_ciPNAME(group1_p4210)	= { "xxti", "xusbxti", "sclk_hdmi24m",
30462306a36Sopenharmony_ci				"sclk_usbphy0", "none",	"sclk_hdmiphy",
30562306a36Sopenharmony_ci				"sclk_mpll", "sclk_epll", "sclk_vpll", };
30662306a36Sopenharmony_ciPNAME(mout_audio0_p4210) = { "cdclk0", "none", "sclk_hdmi24m",
30762306a36Sopenharmony_ci				"sclk_usbphy0", "xxti", "xusbxti", "sclk_mpll",
30862306a36Sopenharmony_ci				"sclk_epll", "sclk_vpll" };
30962306a36Sopenharmony_ciPNAME(mout_audio1_p4210) = { "cdclk1", "none", "sclk_hdmi24m",
31062306a36Sopenharmony_ci				"sclk_usbphy0", "xxti", "xusbxti", "sclk_mpll",
31162306a36Sopenharmony_ci				"sclk_epll", "sclk_vpll", };
31262306a36Sopenharmony_ciPNAME(mout_audio2_p4210) = { "cdclk2", "none", "sclk_hdmi24m",
31362306a36Sopenharmony_ci				"sclk_usbphy0", "xxti", "xusbxti", "sclk_mpll",
31462306a36Sopenharmony_ci				"sclk_epll", "sclk_vpll", };
31562306a36Sopenharmony_ciPNAME(mout_mixer_p4210)	= { "sclk_dac", "sclk_hdmi", };
31662306a36Sopenharmony_ciPNAME(mout_dac_p4210)	= { "sclk_vpll", "sclk_hdmiphy", };
31762306a36Sopenharmony_ciPNAME(mout_pwi_p4210) = { "xxti", "xusbxti", "sclk_hdmi24m", "sclk_usbphy0",
31862306a36Sopenharmony_ci				"sclk_usbphy1", "sclk_hdmiphy", "none",
31962306a36Sopenharmony_ci				"sclk_epll", "sclk_vpll" };
32062306a36Sopenharmony_ciPNAME(clkout_left_p4210) = { "sclk_mpll_div_2", "sclk_apll_div_2",
32162306a36Sopenharmony_ci				"div_gdl", "div_gpl" };
32262306a36Sopenharmony_ciPNAME(clkout_right_p4210) = { "sclk_mpll_div_2", "sclk_apll_div_2",
32362306a36Sopenharmony_ci				"div_gdr", "div_gpr" };
32462306a36Sopenharmony_ciPNAME(clkout_top_p4210) = { "fout_epll", "fout_vpll", "sclk_hdmi24m",
32562306a36Sopenharmony_ci				"sclk_usbphy0", "sclk_usbphy1", "sclk_hdmiphy",
32662306a36Sopenharmony_ci				"cdclk0", "cdclk1", "cdclk2", "spdif_extclk",
32762306a36Sopenharmony_ci				"aclk160", "aclk133", "aclk200", "aclk100",
32862306a36Sopenharmony_ci				"sclk_mfc", "sclk_g3d", "sclk_g2d",
32962306a36Sopenharmony_ci				"cam_a_pclk", "cam_b_pclk", "s_rxbyteclkhs0_2l",
33062306a36Sopenharmony_ci				"s_rxbyteclkhs0_4l" };
33162306a36Sopenharmony_ciPNAME(clkout_dmc_p4210) = { "div_dmcd", "div_dmcp", "div_acp_pclk", "div_dmc",
33262306a36Sopenharmony_ci				"div_dphy", "none", "div_pwi" };
33362306a36Sopenharmony_ciPNAME(clkout_cpu_p4210) = { "fout_apll_div_2", "none", "fout_mpll_div_2",
33462306a36Sopenharmony_ci				"none", "arm_clk_div_2", "div_corem0",
33562306a36Sopenharmony_ci				"div_corem1", "div_corem0", "div_atb",
33662306a36Sopenharmony_ci				"div_periph", "div_pclk_dbg", "div_hpm" };
33762306a36Sopenharmony_ci
33862306a36Sopenharmony_ci/* Exynos 4x12-specific parent groups */
33962306a36Sopenharmony_ciPNAME(mout_mpll_user_p4x12) = { "fin_pll", "sclk_mpll", };
34062306a36Sopenharmony_ciPNAME(mout_core_p4x12)	= { "mout_apll", "mout_mpll_user_c", };
34162306a36Sopenharmony_ciPNAME(mout_gdl_p4x12)	= { "mout_mpll_user_l", "sclk_apll", };
34262306a36Sopenharmony_ciPNAME(mout_gdr_p4x12)	= { "mout_mpll_user_r", "sclk_apll", };
34362306a36Sopenharmony_ciPNAME(sclk_ampll_p4x12)	= { "mout_mpll_user_t", "sclk_apll", };
34462306a36Sopenharmony_ciPNAME(group1_p4x12)	= { "xxti", "xusbxti", "sclk_hdmi24m", "sclk_usbphy0",
34562306a36Sopenharmony_ci				"none",	"sclk_hdmiphy", "mout_mpll_user_t",
34662306a36Sopenharmony_ci				"sclk_epll", "sclk_vpll", };
34762306a36Sopenharmony_ciPNAME(mout_audio0_p4x12) = { "cdclk0", "none", "sclk_hdmi24m",
34862306a36Sopenharmony_ci				"sclk_usbphy0", "xxti", "xusbxti",
34962306a36Sopenharmony_ci				"mout_mpll_user_t", "sclk_epll", "sclk_vpll" };
35062306a36Sopenharmony_ciPNAME(mout_audio1_p4x12) = { "cdclk1", "none", "sclk_hdmi24m",
35162306a36Sopenharmony_ci				"sclk_usbphy0", "xxti", "xusbxti",
35262306a36Sopenharmony_ci				"mout_mpll_user_t", "sclk_epll", "sclk_vpll", };
35362306a36Sopenharmony_ciPNAME(mout_audio2_p4x12) = { "cdclk2", "none", "sclk_hdmi24m",
35462306a36Sopenharmony_ci				"sclk_usbphy0", "xxti", "xusbxti",
35562306a36Sopenharmony_ci				"mout_mpll_user_t", "sclk_epll", "sclk_vpll", };
35662306a36Sopenharmony_ciPNAME(aclk_p4412)	= { "mout_mpll_user_t", "sclk_apll", };
35762306a36Sopenharmony_ciPNAME(mout_user_aclk400_mcuisp_p4x12) = {"fin_pll", "div_aclk400_mcuisp", };
35862306a36Sopenharmony_ciPNAME(mout_user_aclk200_p4x12) = {"fin_pll", "div_aclk200", };
35962306a36Sopenharmony_ciPNAME(mout_user_aclk266_gps_p4x12) = {"fin_pll", "div_aclk266_gps", };
36062306a36Sopenharmony_ciPNAME(mout_pwi_p4x12) = { "xxti", "xusbxti", "sclk_hdmi24m", "sclk_usbphy0",
36162306a36Sopenharmony_ci				"none", "sclk_hdmiphy", "sclk_mpll",
36262306a36Sopenharmony_ci				"sclk_epll", "sclk_vpll" };
36362306a36Sopenharmony_ciPNAME(clkout_left_p4x12) = { "sclk_mpll_user_l_div_2", "sclk_apll_div_2",
36462306a36Sopenharmony_ci				"div_gdl", "div_gpl" };
36562306a36Sopenharmony_ciPNAME(clkout_right_p4x12) = { "sclk_mpll_user_r_div_2", "sclk_apll_div_2",
36662306a36Sopenharmony_ci				"div_gdr", "div_gpr" };
36762306a36Sopenharmony_ciPNAME(clkout_top_p4x12) = { "fout_epll", "fout_vpll", "sclk_hdmi24m",
36862306a36Sopenharmony_ci				"sclk_usbphy0", "none", "sclk_hdmiphy",
36962306a36Sopenharmony_ci				"cdclk0", "cdclk1", "cdclk2", "spdif_extclk",
37062306a36Sopenharmony_ci				"aclk160", "aclk133", "aclk200", "aclk100",
37162306a36Sopenharmony_ci				"sclk_mfc", "sclk_g3d", "aclk400_mcuisp",
37262306a36Sopenharmony_ci				"cam_a_pclk", "cam_b_pclk", "s_rxbyteclkhs0_2l",
37362306a36Sopenharmony_ci				"s_rxbyteclkhs0_4l", "rx_half_byte_clk_csis0",
37462306a36Sopenharmony_ci				"rx_half_byte_clk_csis1", "div_jpeg",
37562306a36Sopenharmony_ci				"sclk_pwm_isp", "sclk_spi0_isp",
37662306a36Sopenharmony_ci				"sclk_spi1_isp", "sclk_uart_isp",
37762306a36Sopenharmony_ci				"sclk_mipihsi", "sclk_hdmi", "sclk_fimd0",
37862306a36Sopenharmony_ci				"sclk_pcm0" };
37962306a36Sopenharmony_ciPNAME(clkout_dmc_p4x12) = { "div_dmcd", "div_dmcp", "aclk_acp", "div_acp_pclk",
38062306a36Sopenharmony_ci				"div_dmc", "div_dphy", "fout_mpll_div_2",
38162306a36Sopenharmony_ci				"div_pwi", "none", "div_c2c", "div_c2c_aclk" };
38262306a36Sopenharmony_ciPNAME(clkout_cpu_p4x12) = { "fout_apll_div_2", "none", "none", "none",
38362306a36Sopenharmony_ci				"arm_clk_div_2", "div_corem0", "div_corem1",
38462306a36Sopenharmony_ci				"div_cores", "div_atb", "div_periph",
38562306a36Sopenharmony_ci				"div_pclk_dbg", "div_hpm" };
38662306a36Sopenharmony_ci
38762306a36Sopenharmony_ci/* fixed rate clocks generated outside the soc */
38862306a36Sopenharmony_cistatic struct samsung_fixed_rate_clock exynos4_fixed_rate_ext_clks[] __initdata = {
38962306a36Sopenharmony_ci	FRATE(CLK_XXTI, "xxti", NULL, 0, 0),
39062306a36Sopenharmony_ci	FRATE(CLK_XUSBXTI, "xusbxti", NULL, 0, 0),
39162306a36Sopenharmony_ci};
39262306a36Sopenharmony_ci
39362306a36Sopenharmony_ci/* fixed rate clocks generated inside the soc */
39462306a36Sopenharmony_cistatic const struct samsung_fixed_rate_clock exynos4_fixed_rate_clks[] __initconst = {
39562306a36Sopenharmony_ci	FRATE(0, "sclk_hdmi24m", NULL, 0, 24000000),
39662306a36Sopenharmony_ci	FRATE(CLK_SCLK_HDMIPHY, "sclk_hdmiphy", "hdmi", 0, 27000000),
39762306a36Sopenharmony_ci	FRATE(0, "sclk_usbphy0", NULL, 0, 48000000),
39862306a36Sopenharmony_ci};
39962306a36Sopenharmony_ci
40062306a36Sopenharmony_cistatic const struct samsung_fixed_rate_clock exynos4210_fixed_rate_clks[] __initconst = {
40162306a36Sopenharmony_ci	FRATE(0, "sclk_usbphy1", NULL, 0, 48000000),
40262306a36Sopenharmony_ci};
40362306a36Sopenharmony_ci
40462306a36Sopenharmony_cistatic const struct samsung_fixed_factor_clock exynos4_fixed_factor_clks[] __initconst = {
40562306a36Sopenharmony_ci	FFACTOR(0, "sclk_apll_div_2", "sclk_apll", 1, 2, 0),
40662306a36Sopenharmony_ci	FFACTOR(0, "fout_mpll_div_2", "fout_mpll", 1, 2, 0),
40762306a36Sopenharmony_ci	FFACTOR(0, "fout_apll_div_2", "fout_apll", 1, 2, 0),
40862306a36Sopenharmony_ci	FFACTOR(0, "arm_clk_div_2", "div_core2", 1, 2, 0),
40962306a36Sopenharmony_ci};
41062306a36Sopenharmony_ci
41162306a36Sopenharmony_cistatic const struct samsung_fixed_factor_clock exynos4210_fixed_factor_clks[] __initconst = {
41262306a36Sopenharmony_ci	FFACTOR(0, "sclk_mpll_div_2", "sclk_mpll", 1, 2, 0),
41362306a36Sopenharmony_ci};
41462306a36Sopenharmony_ci
41562306a36Sopenharmony_cistatic const struct samsung_fixed_factor_clock exynos4x12_fixed_factor_clks[] __initconst = {
41662306a36Sopenharmony_ci	FFACTOR(0, "sclk_mpll_user_l_div_2", "mout_mpll_user_l", 1, 2, 0),
41762306a36Sopenharmony_ci	FFACTOR(0, "sclk_mpll_user_r_div_2", "mout_mpll_user_r", 1, 2, 0),
41862306a36Sopenharmony_ci	FFACTOR(0, "sclk_mpll_user_t_div_2", "mout_mpll_user_t", 1, 2, 0),
41962306a36Sopenharmony_ci	FFACTOR(0, "sclk_mpll_user_c_div_2", "mout_mpll_user_c", 1, 2, 0),
42062306a36Sopenharmony_ci};
42162306a36Sopenharmony_ci
42262306a36Sopenharmony_ci/* list of mux clocks supported in all exynos4 soc's */
42362306a36Sopenharmony_cistatic const struct samsung_mux_clock exynos4_mux_clks[] __initconst = {
42462306a36Sopenharmony_ci	MUX_F(CLK_MOUT_APLL, "mout_apll", mout_apll_p, SRC_CPU, 0, 1,
42562306a36Sopenharmony_ci			CLK_SET_RATE_PARENT | CLK_RECALC_NEW_RATES, 0),
42662306a36Sopenharmony_ci	MUX(CLK_MOUT_HDMI, "mout_hdmi", mout_hdmi_p, SRC_TV, 0, 1),
42762306a36Sopenharmony_ci	MUX(0, "mout_mfc1", sclk_evpll_p, SRC_MFC, 4, 1),
42862306a36Sopenharmony_ci	MUX(0, "mout_mfc", mout_mfc_p, SRC_MFC, 8, 1),
42962306a36Sopenharmony_ci	MUX_F(CLK_MOUT_G3D1, "mout_g3d1", sclk_evpll_p, SRC_G3D, 4, 1,
43062306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
43162306a36Sopenharmony_ci	MUX_F(CLK_MOUT_G3D, "mout_g3d", mout_g3d_p, SRC_G3D, 8, 1,
43262306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
43362306a36Sopenharmony_ci	MUX(0, "mout_spdif", mout_spdif_p, SRC_PERIL1, 8, 2),
43462306a36Sopenharmony_ci	MUX(0, "mout_onenand1", mout_onenand1_p, SRC_TOP0, 0, 1),
43562306a36Sopenharmony_ci	MUX(CLK_SCLK_EPLL, "sclk_epll", mout_epll_p, SRC_TOP0, 4, 1),
43662306a36Sopenharmony_ci	MUX(0, "mout_onenand", mout_onenand_p, SRC_TOP0, 28, 1),
43762306a36Sopenharmony_ci
43862306a36Sopenharmony_ci	MUX(0, "mout_dmc_bus", sclk_ampll_p4210, SRC_DMC, 4, 1),
43962306a36Sopenharmony_ci	MUX(0, "mout_dphy", sclk_ampll_p4210, SRC_DMC, 8, 1),
44062306a36Sopenharmony_ci};
44162306a36Sopenharmony_ci
44262306a36Sopenharmony_ci/* list of mux clocks supported in exynos4210 soc */
44362306a36Sopenharmony_cistatic const struct samsung_mux_clock exynos4210_mux_early[] __initconst = {
44462306a36Sopenharmony_ci	MUX(CLK_MOUT_VPLLSRC, "mout_vpllsrc", mout_vpllsrc_p, SRC_TOP1, 0, 1),
44562306a36Sopenharmony_ci};
44662306a36Sopenharmony_ci
44762306a36Sopenharmony_cistatic const struct samsung_mux_clock exynos4210_mux_clks[] __initconst = {
44862306a36Sopenharmony_ci	MUX(0, "mout_gdl", sclk_ampll_p4210, SRC_LEFTBUS, 0, 1),
44962306a36Sopenharmony_ci	MUX(0, "mout_clkout_leftbus", clkout_left_p4210,
45062306a36Sopenharmony_ci			CLKOUT_CMU_LEFTBUS, 0, 5),
45162306a36Sopenharmony_ci
45262306a36Sopenharmony_ci	MUX(0, "mout_gdr", sclk_ampll_p4210, SRC_RIGHTBUS, 0, 1),
45362306a36Sopenharmony_ci	MUX(0, "mout_clkout_rightbus", clkout_right_p4210,
45462306a36Sopenharmony_ci			CLKOUT_CMU_RIGHTBUS, 0, 5),
45562306a36Sopenharmony_ci
45662306a36Sopenharmony_ci	MUX(0, "mout_aclk200", sclk_ampll_p4210, SRC_TOP0, 12, 1),
45762306a36Sopenharmony_ci	MUX(0, "mout_aclk100", sclk_ampll_p4210, SRC_TOP0, 16, 1),
45862306a36Sopenharmony_ci	MUX(0, "mout_aclk160", sclk_ampll_p4210, SRC_TOP0, 20, 1),
45962306a36Sopenharmony_ci	MUX(0, "mout_aclk133", sclk_ampll_p4210, SRC_TOP0, 24, 1),
46062306a36Sopenharmony_ci	MUX(CLK_MOUT_MIXER, "mout_mixer", mout_mixer_p4210, SRC_TV, 4, 1),
46162306a36Sopenharmony_ci	MUX(0, "mout_dac", mout_dac_p4210, SRC_TV, 8, 1),
46262306a36Sopenharmony_ci	MUX(0, "mout_g2d0", sclk_ampll_p4210, E4210_SRC_IMAGE, 0, 1),
46362306a36Sopenharmony_ci	MUX(0, "mout_g2d1", sclk_evpll_p, E4210_SRC_IMAGE, 4, 1),
46462306a36Sopenharmony_ci	MUX(0, "mout_g2d", mout_g2d_p, E4210_SRC_IMAGE, 8, 1),
46562306a36Sopenharmony_ci	MUX(0, "mout_fimd1", group1_p4210, E4210_SRC_LCD1, 0, 4),
46662306a36Sopenharmony_ci	MUX(0, "mout_mipi1", group1_p4210, E4210_SRC_LCD1, 12, 4),
46762306a36Sopenharmony_ci	MUX(CLK_SCLK_MPLL, "sclk_mpll", mout_mpll_p, SRC_CPU, 8, 1),
46862306a36Sopenharmony_ci	MUX(CLK_MOUT_CORE, "mout_core", mout_core_p4210, SRC_CPU, 16, 1),
46962306a36Sopenharmony_ci	MUX(0, "mout_hpm", mout_core_p4210, SRC_CPU, 20, 1),
47062306a36Sopenharmony_ci	MUX(CLK_SCLK_VPLL, "sclk_vpll", sclk_vpll_p4210, SRC_TOP0, 8, 1),
47162306a36Sopenharmony_ci	MUX(CLK_MOUT_FIMC0, "mout_fimc0", group1_p4210, SRC_CAM, 0, 4),
47262306a36Sopenharmony_ci	MUX(CLK_MOUT_FIMC1, "mout_fimc1", group1_p4210, SRC_CAM, 4, 4),
47362306a36Sopenharmony_ci	MUX(CLK_MOUT_FIMC2, "mout_fimc2", group1_p4210, SRC_CAM, 8, 4),
47462306a36Sopenharmony_ci	MUX(CLK_MOUT_FIMC3, "mout_fimc3", group1_p4210, SRC_CAM, 12, 4),
47562306a36Sopenharmony_ci	MUX(CLK_MOUT_CAM0, "mout_cam0", group1_p4210, SRC_CAM, 16, 4),
47662306a36Sopenharmony_ci	MUX(CLK_MOUT_CAM1, "mout_cam1", group1_p4210, SRC_CAM, 20, 4),
47762306a36Sopenharmony_ci	MUX(CLK_MOUT_CSIS0, "mout_csis0", group1_p4210, SRC_CAM, 24, 4),
47862306a36Sopenharmony_ci	MUX(CLK_MOUT_CSIS1, "mout_csis1", group1_p4210, SRC_CAM, 28, 4),
47962306a36Sopenharmony_ci	MUX(0, "mout_mfc0", sclk_ampll_p4210, SRC_MFC, 0, 1),
48062306a36Sopenharmony_ci	MUX_F(CLK_MOUT_G3D0, "mout_g3d0", sclk_ampll_p4210, SRC_G3D, 0, 1,
48162306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
48262306a36Sopenharmony_ci	MUX(0, "mout_fimd0", group1_p4210, SRC_LCD0, 0, 4),
48362306a36Sopenharmony_ci	MUX(0, "mout_mipi0", group1_p4210, SRC_LCD0, 12, 4),
48462306a36Sopenharmony_ci	MUX(0, "mout_audio0", mout_audio0_p4210, SRC_MAUDIO, 0, 4),
48562306a36Sopenharmony_ci	MUX(0, "mout_mmc0", group1_p4210, SRC_FSYS, 0, 4),
48662306a36Sopenharmony_ci	MUX(0, "mout_mmc1", group1_p4210, SRC_FSYS, 4, 4),
48762306a36Sopenharmony_ci	MUX(0, "mout_mmc2", group1_p4210, SRC_FSYS, 8, 4),
48862306a36Sopenharmony_ci	MUX(0, "mout_mmc3", group1_p4210, SRC_FSYS, 12, 4),
48962306a36Sopenharmony_ci	MUX(0, "mout_mmc4", group1_p4210, SRC_FSYS, 16, 4),
49062306a36Sopenharmony_ci	MUX(0, "mout_sata", sclk_ampll_p4210, SRC_FSYS, 24, 1),
49162306a36Sopenharmony_ci	MUX(0, "mout_uart0", group1_p4210, SRC_PERIL0, 0, 4),
49262306a36Sopenharmony_ci	MUX(0, "mout_uart1", group1_p4210, SRC_PERIL0, 4, 4),
49362306a36Sopenharmony_ci	MUX(0, "mout_uart2", group1_p4210, SRC_PERIL0, 8, 4),
49462306a36Sopenharmony_ci	MUX(0, "mout_uart3", group1_p4210, SRC_PERIL0, 12, 4),
49562306a36Sopenharmony_ci	MUX(0, "mout_uart4", group1_p4210, SRC_PERIL0, 16, 4),
49662306a36Sopenharmony_ci	MUX(0, "mout_audio1", mout_audio1_p4210, SRC_PERIL1, 0, 4),
49762306a36Sopenharmony_ci	MUX(0, "mout_audio2", mout_audio2_p4210, SRC_PERIL1, 4, 4),
49862306a36Sopenharmony_ci	MUX(0, "mout_spi0", group1_p4210, SRC_PERIL1, 16, 4),
49962306a36Sopenharmony_ci	MUX(0, "mout_spi1", group1_p4210, SRC_PERIL1, 20, 4),
50062306a36Sopenharmony_ci	MUX(0, "mout_spi2", group1_p4210, SRC_PERIL1, 24, 4),
50162306a36Sopenharmony_ci	MUX(0, "mout_clkout_top", clkout_top_p4210, CLKOUT_CMU_TOP, 0, 5),
50262306a36Sopenharmony_ci
50362306a36Sopenharmony_ci	MUX(0, "mout_pwi", mout_pwi_p4210, SRC_DMC, 16, 4),
50462306a36Sopenharmony_ci	MUX(0, "mout_clkout_dmc", clkout_dmc_p4210, CLKOUT_CMU_DMC, 0, 5),
50562306a36Sopenharmony_ci
50662306a36Sopenharmony_ci	MUX(0, "mout_clkout_cpu", clkout_cpu_p4210, CLKOUT_CMU_CPU, 0, 5),
50762306a36Sopenharmony_ci};
50862306a36Sopenharmony_ci
50962306a36Sopenharmony_ci/* list of mux clocks supported in exynos4x12 soc */
51062306a36Sopenharmony_cistatic const struct samsung_mux_clock exynos4x12_mux_clks[] __initconst = {
51162306a36Sopenharmony_ci	MUX(0, "mout_mpll_user_l", mout_mpll_p, SRC_LEFTBUS, 4, 1),
51262306a36Sopenharmony_ci	MUX(0, "mout_gdl", mout_gdl_p4x12, SRC_LEFTBUS, 0, 1),
51362306a36Sopenharmony_ci	MUX(0, "mout_clkout_leftbus", clkout_left_p4x12,
51462306a36Sopenharmony_ci			CLKOUT_CMU_LEFTBUS, 0, 5),
51562306a36Sopenharmony_ci
51662306a36Sopenharmony_ci	MUX(0, "mout_mpll_user_r", mout_mpll_p, SRC_RIGHTBUS, 4, 1),
51762306a36Sopenharmony_ci	MUX(0, "mout_gdr", mout_gdr_p4x12, SRC_RIGHTBUS, 0, 1),
51862306a36Sopenharmony_ci	MUX(0, "mout_clkout_rightbus", clkout_right_p4x12,
51962306a36Sopenharmony_ci			CLKOUT_CMU_RIGHTBUS, 0, 5),
52062306a36Sopenharmony_ci
52162306a36Sopenharmony_ci	MUX(CLK_MOUT_MPLL_USER_C, "mout_mpll_user_c", mout_mpll_user_p4x12,
52262306a36Sopenharmony_ci			SRC_CPU, 24, 1),
52362306a36Sopenharmony_ci	MUX(0, "mout_clkout_cpu", clkout_cpu_p4x12, CLKOUT_CMU_CPU, 0, 5),
52462306a36Sopenharmony_ci
52562306a36Sopenharmony_ci	MUX(0, "mout_aclk266_gps", aclk_p4412, SRC_TOP1, 4, 1),
52662306a36Sopenharmony_ci	MUX(0, "mout_aclk400_mcuisp", aclk_p4412, SRC_TOP1, 8, 1),
52762306a36Sopenharmony_ci	MUX(CLK_MOUT_MPLL_USER_T, "mout_mpll_user_t", mout_mpll_user_p4x12,
52862306a36Sopenharmony_ci			SRC_TOP1, 12, 1),
52962306a36Sopenharmony_ci	MUX(0, "mout_user_aclk266_gps", mout_user_aclk266_gps_p4x12,
53062306a36Sopenharmony_ci			SRC_TOP1, 16, 1),
53162306a36Sopenharmony_ci	MUX(CLK_ACLK200, "aclk200", mout_user_aclk200_p4x12, SRC_TOP1, 20, 1),
53262306a36Sopenharmony_ci	MUX(CLK_ACLK400_MCUISP, "aclk400_mcuisp",
53362306a36Sopenharmony_ci		mout_user_aclk400_mcuisp_p4x12, SRC_TOP1, 24, 1),
53462306a36Sopenharmony_ci	MUX(0, "mout_aclk200", aclk_p4412, SRC_TOP0, 12, 1),
53562306a36Sopenharmony_ci	MUX(0, "mout_aclk100", aclk_p4412, SRC_TOP0, 16, 1),
53662306a36Sopenharmony_ci	MUX(0, "mout_aclk160", aclk_p4412, SRC_TOP0, 20, 1),
53762306a36Sopenharmony_ci	MUX(0, "mout_aclk133", aclk_p4412, SRC_TOP0, 24, 1),
53862306a36Sopenharmony_ci	MUX(0, "mout_mdnie0", group1_p4x12, SRC_LCD0, 4, 4),
53962306a36Sopenharmony_ci	MUX(0, "mout_mdnie_pwm0", group1_p4x12, SRC_LCD0, 8, 4),
54062306a36Sopenharmony_ci	MUX(0, "mout_sata", sclk_ampll_p4x12, SRC_FSYS, 24, 1),
54162306a36Sopenharmony_ci	MUX(0, "mout_jpeg0", sclk_ampll_p4x12, E4X12_SRC_CAM1, 0, 1),
54262306a36Sopenharmony_ci	MUX(0, "mout_jpeg1", sclk_evpll_p, E4X12_SRC_CAM1, 4, 1),
54362306a36Sopenharmony_ci	MUX(0, "mout_jpeg", mout_jpeg_p, E4X12_SRC_CAM1, 8, 1),
54462306a36Sopenharmony_ci	MUX(CLK_SCLK_MPLL, "sclk_mpll", mout_mpll_p, SRC_DMC, 12, 1),
54562306a36Sopenharmony_ci	MUX(CLK_SCLK_VPLL, "sclk_vpll", mout_vpll_p, SRC_TOP0, 8, 1),
54662306a36Sopenharmony_ci	MUX(CLK_MOUT_CORE, "mout_core", mout_core_p4x12, SRC_CPU, 16, 1),
54762306a36Sopenharmony_ci	MUX(0, "mout_hpm", mout_core_p4x12, SRC_CPU, 20, 1),
54862306a36Sopenharmony_ci	MUX(CLK_MOUT_FIMC0, "mout_fimc0", group1_p4x12, SRC_CAM, 0, 4),
54962306a36Sopenharmony_ci	MUX(CLK_MOUT_FIMC1, "mout_fimc1", group1_p4x12, SRC_CAM, 4, 4),
55062306a36Sopenharmony_ci	MUX(CLK_MOUT_FIMC2, "mout_fimc2", group1_p4x12, SRC_CAM, 8, 4),
55162306a36Sopenharmony_ci	MUX(CLK_MOUT_FIMC3, "mout_fimc3", group1_p4x12, SRC_CAM, 12, 4),
55262306a36Sopenharmony_ci	MUX(CLK_MOUT_CAM0, "mout_cam0", group1_p4x12, SRC_CAM, 16, 4),
55362306a36Sopenharmony_ci	MUX(CLK_MOUT_CAM1, "mout_cam1", group1_p4x12, SRC_CAM, 20, 4),
55462306a36Sopenharmony_ci	MUX(CLK_MOUT_CSIS0, "mout_csis0", group1_p4x12, SRC_CAM, 24, 4),
55562306a36Sopenharmony_ci	MUX(CLK_MOUT_CSIS1, "mout_csis1", group1_p4x12, SRC_CAM, 28, 4),
55662306a36Sopenharmony_ci	MUX(0, "mout_mfc0", sclk_ampll_p4x12, SRC_MFC, 0, 1),
55762306a36Sopenharmony_ci	MUX_F(CLK_MOUT_G3D0, "mout_g3d0", sclk_ampll_p4x12, SRC_G3D, 0, 1,
55862306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
55962306a36Sopenharmony_ci	MUX(0, "mout_fimd0", group1_p4x12, SRC_LCD0, 0, 4),
56062306a36Sopenharmony_ci	MUX(0, "mout_mipi0", group1_p4x12, SRC_LCD0, 12, 4),
56162306a36Sopenharmony_ci	MUX(0, "mout_audio0", mout_audio0_p4x12, SRC_MAUDIO, 0, 4),
56262306a36Sopenharmony_ci	MUX(0, "mout_mmc0", group1_p4x12, SRC_FSYS, 0, 4),
56362306a36Sopenharmony_ci	MUX(0, "mout_mmc1", group1_p4x12, SRC_FSYS, 4, 4),
56462306a36Sopenharmony_ci	MUX(0, "mout_mmc2", group1_p4x12, SRC_FSYS, 8, 4),
56562306a36Sopenharmony_ci	MUX(0, "mout_mmc3", group1_p4x12, SRC_FSYS, 12, 4),
56662306a36Sopenharmony_ci	MUX(0, "mout_mmc4", group1_p4x12, SRC_FSYS, 16, 4),
56762306a36Sopenharmony_ci	MUX(0, "mout_mipihsi", aclk_p4412, SRC_FSYS, 24, 1),
56862306a36Sopenharmony_ci	MUX(0, "mout_uart0", group1_p4x12, SRC_PERIL0, 0, 4),
56962306a36Sopenharmony_ci	MUX(0, "mout_uart1", group1_p4x12, SRC_PERIL0, 4, 4),
57062306a36Sopenharmony_ci	MUX(0, "mout_uart2", group1_p4x12, SRC_PERIL0, 8, 4),
57162306a36Sopenharmony_ci	MUX(0, "mout_uart3", group1_p4x12, SRC_PERIL0, 12, 4),
57262306a36Sopenharmony_ci	MUX(0, "mout_uart4", group1_p4x12, SRC_PERIL0, 16, 4),
57362306a36Sopenharmony_ci	MUX(0, "mout_audio1", mout_audio1_p4x12, SRC_PERIL1, 0, 4),
57462306a36Sopenharmony_ci	MUX(0, "mout_audio2", mout_audio2_p4x12, SRC_PERIL1, 4, 4),
57562306a36Sopenharmony_ci	MUX(0, "mout_spi0", group1_p4x12, SRC_PERIL1, 16, 4),
57662306a36Sopenharmony_ci	MUX(0, "mout_spi1", group1_p4x12, SRC_PERIL1, 20, 4),
57762306a36Sopenharmony_ci	MUX(0, "mout_spi2", group1_p4x12, SRC_PERIL1, 24, 4),
57862306a36Sopenharmony_ci	MUX(0, "mout_pwm_isp", group1_p4x12, E4X12_SRC_ISP, 0, 4),
57962306a36Sopenharmony_ci	MUX(0, "mout_spi0_isp", group1_p4x12, E4X12_SRC_ISP, 4, 4),
58062306a36Sopenharmony_ci	MUX(0, "mout_spi1_isp", group1_p4x12, E4X12_SRC_ISP, 8, 4),
58162306a36Sopenharmony_ci	MUX(0, "mout_uart_isp", group1_p4x12, E4X12_SRC_ISP, 12, 4),
58262306a36Sopenharmony_ci	MUX(0, "mout_clkout_top", clkout_top_p4x12, CLKOUT_CMU_TOP, 0, 5),
58362306a36Sopenharmony_ci
58462306a36Sopenharmony_ci	MUX(0, "mout_c2c", sclk_ampll_p4210, SRC_DMC, 0, 1),
58562306a36Sopenharmony_ci	MUX(0, "mout_pwi", mout_pwi_p4x12, SRC_DMC, 16, 4),
58662306a36Sopenharmony_ci	MUX(0, "mout_g2d0", sclk_ampll_p4210, SRC_DMC, 20, 1),
58762306a36Sopenharmony_ci	MUX(0, "mout_g2d1", sclk_evpll_p, SRC_DMC, 24, 1),
58862306a36Sopenharmony_ci	MUX(0, "mout_g2d", mout_g2d_p, SRC_DMC, 28, 1),
58962306a36Sopenharmony_ci	MUX(0, "mout_clkout_dmc", clkout_dmc_p4x12, CLKOUT_CMU_DMC, 0, 5),
59062306a36Sopenharmony_ci};
59162306a36Sopenharmony_ci
59262306a36Sopenharmony_ci/* list of divider clocks supported in all exynos4 soc's */
59362306a36Sopenharmony_cistatic const struct samsung_div_clock exynos4_div_clks[] __initconst = {
59462306a36Sopenharmony_ci	DIV(CLK_DIV_GDL, "div_gdl", "mout_gdl", DIV_LEFTBUS, 0, 3),
59562306a36Sopenharmony_ci	DIV(0, "div_gpl", "div_gdl", DIV_LEFTBUS, 4, 3),
59662306a36Sopenharmony_ci	DIV(0, "div_clkout_leftbus", "mout_clkout_leftbus",
59762306a36Sopenharmony_ci			CLKOUT_CMU_LEFTBUS, 8, 6),
59862306a36Sopenharmony_ci
59962306a36Sopenharmony_ci	DIV(CLK_DIV_GDR, "div_gdr", "mout_gdr", DIV_RIGHTBUS, 0, 3),
60062306a36Sopenharmony_ci	DIV(0, "div_gpr", "div_gdr", DIV_RIGHTBUS, 4, 3),
60162306a36Sopenharmony_ci	DIV(0, "div_clkout_rightbus", "mout_clkout_rightbus",
60262306a36Sopenharmony_ci			CLKOUT_CMU_RIGHTBUS, 8, 6),
60362306a36Sopenharmony_ci
60462306a36Sopenharmony_ci	DIV(0, "div_core", "mout_core", DIV_CPU0, 0, 3),
60562306a36Sopenharmony_ci	DIV(0, "div_corem0", "div_core2", DIV_CPU0, 4, 3),
60662306a36Sopenharmony_ci	DIV(0, "div_corem1", "div_core2", DIV_CPU0, 8, 3),
60762306a36Sopenharmony_ci	DIV(0, "div_periph", "div_core2", DIV_CPU0, 12, 3),
60862306a36Sopenharmony_ci	DIV(0, "div_atb", "mout_core", DIV_CPU0, 16, 3),
60962306a36Sopenharmony_ci	DIV(0, "div_pclk_dbg", "div_atb", DIV_CPU0, 20, 3),
61062306a36Sopenharmony_ci	DIV(CLK_DIV_CORE2, "div_core2", "div_core", DIV_CPU0, 28, 3),
61162306a36Sopenharmony_ci	DIV(0, "div_copy", "mout_hpm", DIV_CPU1, 0, 3),
61262306a36Sopenharmony_ci	DIV(0, "div_hpm", "div_copy", DIV_CPU1, 4, 3),
61362306a36Sopenharmony_ci	DIV(0, "div_clkout_cpu", "mout_clkout_cpu", CLKOUT_CMU_CPU, 8, 6),
61462306a36Sopenharmony_ci
61562306a36Sopenharmony_ci	DIV(0, "div_fimc0", "mout_fimc0", DIV_CAM, 0, 4),
61662306a36Sopenharmony_ci	DIV(0, "div_fimc1", "mout_fimc1", DIV_CAM, 4, 4),
61762306a36Sopenharmony_ci	DIV(0, "div_fimc2", "mout_fimc2", DIV_CAM, 8, 4),
61862306a36Sopenharmony_ci	DIV(0, "div_fimc3", "mout_fimc3", DIV_CAM, 12, 4),
61962306a36Sopenharmony_ci	DIV(0, "div_cam0", "mout_cam0", DIV_CAM, 16, 4),
62062306a36Sopenharmony_ci	DIV(0, "div_cam1", "mout_cam1", DIV_CAM, 20, 4),
62162306a36Sopenharmony_ci	DIV(0, "div_csis0", "mout_csis0", DIV_CAM, 24, 4),
62262306a36Sopenharmony_ci	DIV(0, "div_csis1", "mout_csis1", DIV_CAM, 28, 4),
62362306a36Sopenharmony_ci	DIV(CLK_SCLK_MFC, "sclk_mfc", "mout_mfc", DIV_MFC, 0, 4),
62462306a36Sopenharmony_ci	DIV(CLK_SCLK_G3D, "sclk_g3d", "mout_g3d", DIV_G3D, 0, 4),
62562306a36Sopenharmony_ci	DIV(0, "div_fimd0", "mout_fimd0", DIV_LCD0, 0, 4),
62662306a36Sopenharmony_ci	DIV(0, "div_mipi0", "mout_mipi0", DIV_LCD0, 16, 4),
62762306a36Sopenharmony_ci	DIV(0, "div_audio0", "mout_audio0", DIV_MAUDIO, 0, 4),
62862306a36Sopenharmony_ci	DIV(CLK_SCLK_PCM0, "sclk_pcm0", "sclk_audio0", DIV_MAUDIO, 4, 8),
62962306a36Sopenharmony_ci	DIV(0, "div_mmc0", "mout_mmc0", DIV_FSYS1, 0, 4),
63062306a36Sopenharmony_ci	DIV(0, "div_mmc1", "mout_mmc1", DIV_FSYS1, 16, 4),
63162306a36Sopenharmony_ci	DIV(0, "div_mmc2", "mout_mmc2", DIV_FSYS2, 0, 4),
63262306a36Sopenharmony_ci	DIV(0, "div_mmc3", "mout_mmc3", DIV_FSYS2, 16, 4),
63362306a36Sopenharmony_ci	DIV(CLK_SCLK_PIXEL, "sclk_pixel", "sclk_vpll", DIV_TV, 0, 4),
63462306a36Sopenharmony_ci	DIV(CLK_ACLK100, "aclk100", "mout_aclk100", DIV_TOP, 4, 4),
63562306a36Sopenharmony_ci	DIV(CLK_ACLK160, "aclk160", "mout_aclk160", DIV_TOP, 8, 3),
63662306a36Sopenharmony_ci	DIV(CLK_ACLK133, "aclk133", "mout_aclk133", DIV_TOP, 12, 3),
63762306a36Sopenharmony_ci	DIV(0, "div_onenand", "mout_onenand1", DIV_TOP, 16, 3),
63862306a36Sopenharmony_ci	DIV(CLK_SCLK_SLIMBUS, "sclk_slimbus", "sclk_epll", DIV_PERIL3, 4, 4),
63962306a36Sopenharmony_ci	DIV(CLK_SCLK_PCM1, "sclk_pcm1", "sclk_audio1", DIV_PERIL4, 4, 8),
64062306a36Sopenharmony_ci	DIV(CLK_SCLK_PCM2, "sclk_pcm2", "sclk_audio2", DIV_PERIL4, 20, 8),
64162306a36Sopenharmony_ci	DIV(CLK_SCLK_I2S1, "sclk_i2s1", "sclk_audio1", DIV_PERIL5, 0, 6),
64262306a36Sopenharmony_ci	DIV(CLK_SCLK_I2S2, "sclk_i2s2", "sclk_audio2", DIV_PERIL5, 8, 6),
64362306a36Sopenharmony_ci	DIV(0, "div_mmc4", "mout_mmc4", DIV_FSYS3, 0, 4),
64462306a36Sopenharmony_ci	DIV_F(0, "div_mmc_pre4", "div_mmc4", DIV_FSYS3, 8, 8,
64562306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
64662306a36Sopenharmony_ci	DIV(0, "div_uart0", "mout_uart0", DIV_PERIL0, 0, 4),
64762306a36Sopenharmony_ci	DIV(0, "div_uart1", "mout_uart1", DIV_PERIL0, 4, 4),
64862306a36Sopenharmony_ci	DIV(0, "div_uart2", "mout_uart2", DIV_PERIL0, 8, 4),
64962306a36Sopenharmony_ci	DIV(0, "div_uart3", "mout_uart3", DIV_PERIL0, 12, 4),
65062306a36Sopenharmony_ci	DIV(0, "div_uart4", "mout_uart4", DIV_PERIL0, 16, 4),
65162306a36Sopenharmony_ci	DIV(0, "div_spi0", "mout_spi0", DIV_PERIL1, 0, 4),
65262306a36Sopenharmony_ci	DIV(0, "div_spi_pre0", "div_spi0", DIV_PERIL1, 8, 8),
65362306a36Sopenharmony_ci	DIV(0, "div_spi1", "mout_spi1", DIV_PERIL1, 16, 4),
65462306a36Sopenharmony_ci	DIV(0, "div_spi_pre1", "div_spi1", DIV_PERIL1, 24, 8),
65562306a36Sopenharmony_ci	DIV(0, "div_spi2", "mout_spi2", DIV_PERIL2, 0, 4),
65662306a36Sopenharmony_ci	DIV(0, "div_spi_pre2", "div_spi2", DIV_PERIL2, 8, 8),
65762306a36Sopenharmony_ci	DIV(0, "div_audio1", "mout_audio1", DIV_PERIL4, 0, 4),
65862306a36Sopenharmony_ci	DIV(0, "div_audio2", "mout_audio2", DIV_PERIL4, 16, 4),
65962306a36Sopenharmony_ci	DIV(CLK_SCLK_APLL, "sclk_apll", "mout_apll", DIV_CPU0, 24, 3),
66062306a36Sopenharmony_ci	DIV_F(0, "div_mipi_pre0", "div_mipi0", DIV_LCD0, 20, 4,
66162306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
66262306a36Sopenharmony_ci	DIV_F(0, "div_mmc_pre0", "div_mmc0", DIV_FSYS1, 8, 8,
66362306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
66462306a36Sopenharmony_ci	DIV_F(0, "div_mmc_pre1", "div_mmc1", DIV_FSYS1, 24, 8,
66562306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
66662306a36Sopenharmony_ci	DIV_F(0, "div_mmc_pre2", "div_mmc2", DIV_FSYS2, 8, 8,
66762306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
66862306a36Sopenharmony_ci	DIV_F(0, "div_mmc_pre3", "div_mmc3", DIV_FSYS2, 24, 8,
66962306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
67062306a36Sopenharmony_ci	DIV(0, "div_clkout_top", "mout_clkout_top", CLKOUT_CMU_TOP, 8, 6),
67162306a36Sopenharmony_ci
67262306a36Sopenharmony_ci	DIV(CLK_DIV_ACP, "div_acp", "mout_dmc_bus", DIV_DMC0, 0, 3),
67362306a36Sopenharmony_ci	DIV(0, "div_acp_pclk", "div_acp", DIV_DMC0, 4, 3),
67462306a36Sopenharmony_ci	DIV(0, "div_dphy", "mout_dphy", DIV_DMC0, 8, 3),
67562306a36Sopenharmony_ci	DIV(CLK_DIV_DMC, "div_dmc", "mout_dmc_bus", DIV_DMC0, 12, 3),
67662306a36Sopenharmony_ci	DIV(0, "div_dmcd", "div_dmc", DIV_DMC0, 16, 3),
67762306a36Sopenharmony_ci	DIV(0, "div_dmcp", "div_dmcd", DIV_DMC0, 20, 3),
67862306a36Sopenharmony_ci	DIV(0, "div_pwi", "mout_pwi", DIV_DMC1, 8, 4),
67962306a36Sopenharmony_ci	DIV(0, "div_clkout_dmc", "mout_clkout_dmc", CLKOUT_CMU_DMC, 8, 6),
68062306a36Sopenharmony_ci};
68162306a36Sopenharmony_ci
68262306a36Sopenharmony_ci/* list of divider clocks supported in exynos4210 soc */
68362306a36Sopenharmony_cistatic const struct samsung_div_clock exynos4210_div_clks[] __initconst = {
68462306a36Sopenharmony_ci	DIV(CLK_ACLK200, "aclk200", "mout_aclk200", DIV_TOP, 0, 3),
68562306a36Sopenharmony_ci	DIV(CLK_SCLK_FIMG2D, "sclk_fimg2d", "mout_g2d", DIV_IMAGE, 0, 4),
68662306a36Sopenharmony_ci	DIV(0, "div_fimd1", "mout_fimd1", E4210_DIV_LCD1, 0, 4),
68762306a36Sopenharmony_ci	DIV(0, "div_mipi1", "mout_mipi1", E4210_DIV_LCD1, 16, 4),
68862306a36Sopenharmony_ci	DIV(0, "div_sata", "mout_sata", DIV_FSYS0, 20, 4),
68962306a36Sopenharmony_ci	DIV_F(0, "div_mipi_pre1", "div_mipi1", E4210_DIV_LCD1, 20, 4,
69062306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
69162306a36Sopenharmony_ci};
69262306a36Sopenharmony_ci
69362306a36Sopenharmony_ci/* list of divider clocks supported in exynos4x12 soc */
69462306a36Sopenharmony_cistatic const struct samsung_div_clock exynos4x12_div_clks[] __initconst = {
69562306a36Sopenharmony_ci	DIV(0, "div_mdnie0", "mout_mdnie0", DIV_LCD0, 4, 4),
69662306a36Sopenharmony_ci	DIV(0, "div_mdnie_pwm0", "mout_mdnie_pwm0", DIV_LCD0, 8, 4),
69762306a36Sopenharmony_ci	DIV(0, "div_mdnie_pwm_pre0", "div_mdnie_pwm0", DIV_LCD0, 12, 4),
69862306a36Sopenharmony_ci	DIV(0, "div_mipihsi", "mout_mipihsi", DIV_FSYS0, 20, 4),
69962306a36Sopenharmony_ci	DIV(0, "div_jpeg", "mout_jpeg", E4X12_DIV_CAM1, 0, 4),
70062306a36Sopenharmony_ci	DIV(CLK_DIV_ACLK200, "div_aclk200", "mout_aclk200", DIV_TOP, 0, 3),
70162306a36Sopenharmony_ci	DIV(0, "div_aclk266_gps", "mout_aclk266_gps", DIV_TOP, 20, 3),
70262306a36Sopenharmony_ci	DIV(CLK_DIV_ACLK400_MCUISP, "div_aclk400_mcuisp", "mout_aclk400_mcuisp",
70362306a36Sopenharmony_ci						DIV_TOP, 24, 3),
70462306a36Sopenharmony_ci	DIV(0, "div_pwm_isp", "mout_pwm_isp", E4X12_DIV_ISP, 0, 4),
70562306a36Sopenharmony_ci	DIV(0, "div_spi0_isp", "mout_spi0_isp", E4X12_DIV_ISP, 4, 4),
70662306a36Sopenharmony_ci	DIV(0, "div_spi0_isp_pre", "div_spi0_isp", E4X12_DIV_ISP, 8, 8),
70762306a36Sopenharmony_ci	DIV(0, "div_spi1_isp", "mout_spi1_isp", E4X12_DIV_ISP, 16, 4),
70862306a36Sopenharmony_ci	DIV(0, "div_spi1_isp_pre", "div_spi1_isp", E4X12_DIV_ISP, 20, 8),
70962306a36Sopenharmony_ci	DIV(0, "div_uart_isp", "mout_uart_isp", E4X12_DIV_ISP, 28, 4),
71062306a36Sopenharmony_ci	DIV(CLK_SCLK_FIMG2D, "sclk_fimg2d", "mout_g2d", DIV_DMC1, 0, 4),
71162306a36Sopenharmony_ci	DIV(CLK_DIV_C2C, "div_c2c", "mout_c2c", DIV_DMC1, 4, 3),
71262306a36Sopenharmony_ci	DIV(0, "div_c2c_aclk", "div_c2c", DIV_DMC1, 12, 3),
71362306a36Sopenharmony_ci};
71462306a36Sopenharmony_ci
71562306a36Sopenharmony_ci/* list of gate clocks supported in all exynos4 soc's */
71662306a36Sopenharmony_cistatic const struct samsung_gate_clock exynos4_gate_clks[] __initconst = {
71762306a36Sopenharmony_ci	GATE(CLK_PPMULEFT, "ppmuleft", "aclk200", GATE_IP_LEFTBUS, 1, 0, 0),
71862306a36Sopenharmony_ci	GATE(CLK_PPMURIGHT, "ppmuright", "aclk200", GATE_IP_RIGHTBUS, 1, 0, 0),
71962306a36Sopenharmony_ci	GATE(CLK_SCLK_HDMI, "sclk_hdmi", "mout_hdmi", SRC_MASK_TV, 0, 0, 0),
72062306a36Sopenharmony_ci	GATE(CLK_SCLK_SPDIF, "sclk_spdif", "mout_spdif", SRC_MASK_PERIL1, 8, 0,
72162306a36Sopenharmony_ci		0),
72262306a36Sopenharmony_ci	GATE(CLK_JPEG, "jpeg", "aclk160", GATE_IP_CAM, 6, 0, 0),
72362306a36Sopenharmony_ci	GATE(CLK_MIE0, "mie0", "aclk160", GATE_IP_LCD0, 1, 0, 0),
72462306a36Sopenharmony_ci	GATE(CLK_DSIM0, "dsim0", "aclk160", GATE_IP_LCD0, 3, 0, 0),
72562306a36Sopenharmony_ci	GATE(CLK_FIMD1, "fimd1", "aclk160", E4210_GATE_IP_LCD1, 0, 0, 0),
72662306a36Sopenharmony_ci	GATE(CLK_MIE1, "mie1", "aclk160", E4210_GATE_IP_LCD1, 1, 0, 0),
72762306a36Sopenharmony_ci	GATE(CLK_DSIM1, "dsim1", "aclk160", E4210_GATE_IP_LCD1, 3, 0, 0),
72862306a36Sopenharmony_ci	GATE(CLK_SMMU_FIMD1, "smmu_fimd1", "aclk160", E4210_GATE_IP_LCD1, 4, 0,
72962306a36Sopenharmony_ci		0),
73062306a36Sopenharmony_ci	GATE(CLK_TSI, "tsi", "aclk133", GATE_IP_FSYS, 4, 0, 0),
73162306a36Sopenharmony_ci	GATE(CLK_SROMC, "sromc", "aclk133", GATE_IP_FSYS, 11, 0, 0),
73262306a36Sopenharmony_ci	GATE(CLK_G3D, "g3d", "aclk200", GATE_IP_G3D, 0, 0, 0),
73362306a36Sopenharmony_ci	GATE(CLK_PPMUG3D, "ppmug3d", "aclk200", GATE_IP_G3D, 1, 0, 0),
73462306a36Sopenharmony_ci	GATE(CLK_USB_DEVICE, "usb_device", "aclk133", GATE_IP_FSYS, 13, 0, 0),
73562306a36Sopenharmony_ci	GATE(CLK_ONENAND, "onenand", "aclk133", GATE_IP_FSYS, 15, 0, 0),
73662306a36Sopenharmony_ci	GATE(CLK_NFCON, "nfcon", "aclk133", GATE_IP_FSYS, 16, 0, 0),
73762306a36Sopenharmony_ci	GATE(CLK_GPS, "gps", "aclk133", GATE_IP_GPS, 0, 0, 0),
73862306a36Sopenharmony_ci	GATE(CLK_SMMU_GPS, "smmu_gps", "aclk133", GATE_IP_GPS, 1, 0, 0),
73962306a36Sopenharmony_ci	GATE(CLK_PPMUGPS, "ppmugps", "aclk200", GATE_IP_GPS, 2, 0, 0),
74062306a36Sopenharmony_ci	GATE(CLK_SLIMBUS, "slimbus", "aclk100", GATE_IP_PERIL, 25, 0, 0),
74162306a36Sopenharmony_ci	GATE(CLK_SCLK_CAM0, "sclk_cam0", "div_cam0", GATE_SCLK_CAM, 4,
74262306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
74362306a36Sopenharmony_ci	GATE(CLK_SCLK_CAM1, "sclk_cam1", "div_cam1", GATE_SCLK_CAM, 5,
74462306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
74562306a36Sopenharmony_ci	GATE(CLK_SCLK_MIPI0, "sclk_mipi0", "div_mipi_pre0",
74662306a36Sopenharmony_ci			SRC_MASK_LCD0, 12, CLK_SET_RATE_PARENT, 0),
74762306a36Sopenharmony_ci	GATE(CLK_SCLK_AUDIO0, "sclk_audio0", "div_audio0", SRC_MASK_MAUDIO, 0,
74862306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
74962306a36Sopenharmony_ci	GATE(CLK_SCLK_AUDIO1, "sclk_audio1", "div_audio1", SRC_MASK_PERIL1, 0,
75062306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
75162306a36Sopenharmony_ci	GATE(CLK_VP, "vp", "aclk160", GATE_IP_TV, 0, 0, 0),
75262306a36Sopenharmony_ci	GATE(CLK_MIXER, "mixer", "aclk160", GATE_IP_TV, 1, 0, 0),
75362306a36Sopenharmony_ci	GATE(CLK_HDMI, "hdmi", "aclk160", GATE_IP_TV, 3, 0, 0),
75462306a36Sopenharmony_ci	GATE(CLK_PWM, "pwm", "aclk100", GATE_IP_PERIL, 24, 0, 0),
75562306a36Sopenharmony_ci	GATE(CLK_SDMMC4, "sdmmc4", "aclk133", GATE_IP_FSYS, 9, 0, 0),
75662306a36Sopenharmony_ci	GATE(CLK_USB_HOST, "usb_host", "aclk133", GATE_IP_FSYS, 12, 0, 0),
75762306a36Sopenharmony_ci	GATE(CLK_SCLK_FIMC0, "sclk_fimc0", "div_fimc0", SRC_MASK_CAM, 0,
75862306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
75962306a36Sopenharmony_ci	GATE(CLK_SCLK_FIMC1, "sclk_fimc1", "div_fimc1", SRC_MASK_CAM, 4,
76062306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
76162306a36Sopenharmony_ci	GATE(CLK_SCLK_FIMC2, "sclk_fimc2", "div_fimc2", SRC_MASK_CAM, 8,
76262306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
76362306a36Sopenharmony_ci	GATE(CLK_SCLK_FIMC3, "sclk_fimc3", "div_fimc3", SRC_MASK_CAM, 12,
76462306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
76562306a36Sopenharmony_ci	GATE(CLK_SCLK_CSIS0, "sclk_csis0", "div_csis0", SRC_MASK_CAM, 24,
76662306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
76762306a36Sopenharmony_ci	GATE(CLK_SCLK_CSIS1, "sclk_csis1", "div_csis1", SRC_MASK_CAM, 28,
76862306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
76962306a36Sopenharmony_ci	GATE(CLK_SCLK_FIMD0, "sclk_fimd0", "div_fimd0", SRC_MASK_LCD0, 0,
77062306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
77162306a36Sopenharmony_ci	GATE(CLK_SCLK_MMC0, "sclk_mmc0", "div_mmc_pre0", SRC_MASK_FSYS, 0,
77262306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
77362306a36Sopenharmony_ci	GATE(CLK_SCLK_MMC1, "sclk_mmc1", "div_mmc_pre1", SRC_MASK_FSYS, 4,
77462306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
77562306a36Sopenharmony_ci	GATE(CLK_SCLK_MMC2, "sclk_mmc2", "div_mmc_pre2", SRC_MASK_FSYS, 8,
77662306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
77762306a36Sopenharmony_ci	GATE(CLK_SCLK_MMC3, "sclk_mmc3", "div_mmc_pre3", SRC_MASK_FSYS, 12,
77862306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
77962306a36Sopenharmony_ci	GATE(CLK_SCLK_MMC4, "sclk_mmc4", "div_mmc_pre4", SRC_MASK_FSYS, 16,
78062306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
78162306a36Sopenharmony_ci	GATE(CLK_SCLK_UART0, "uclk0", "div_uart0", SRC_MASK_PERIL0, 0,
78262306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
78362306a36Sopenharmony_ci	GATE(CLK_SCLK_UART1, "uclk1", "div_uart1", SRC_MASK_PERIL0, 4,
78462306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
78562306a36Sopenharmony_ci	GATE(CLK_SCLK_UART2, "uclk2", "div_uart2", SRC_MASK_PERIL0, 8,
78662306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
78762306a36Sopenharmony_ci	GATE(CLK_SCLK_UART3, "uclk3", "div_uart3", SRC_MASK_PERIL0, 12,
78862306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
78962306a36Sopenharmony_ci	GATE(CLK_SCLK_UART4, "uclk4", "div_uart4", SRC_MASK_PERIL0, 16,
79062306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
79162306a36Sopenharmony_ci	GATE(CLK_SCLK_AUDIO2, "sclk_audio2", "div_audio2", SRC_MASK_PERIL1, 4,
79262306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
79362306a36Sopenharmony_ci	GATE(CLK_SCLK_SPI0, "sclk_spi0", "div_spi_pre0", SRC_MASK_PERIL1, 16,
79462306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
79562306a36Sopenharmony_ci	GATE(CLK_SCLK_SPI1, "sclk_spi1", "div_spi_pre1", SRC_MASK_PERIL1, 20,
79662306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
79762306a36Sopenharmony_ci	GATE(CLK_SCLK_SPI2, "sclk_spi2", "div_spi_pre2", SRC_MASK_PERIL1, 24,
79862306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
79962306a36Sopenharmony_ci	GATE(CLK_FIMC0, "fimc0", "aclk160", GATE_IP_CAM, 0,
80062306a36Sopenharmony_ci			0, 0),
80162306a36Sopenharmony_ci	GATE(CLK_FIMC1, "fimc1", "aclk160", GATE_IP_CAM, 1,
80262306a36Sopenharmony_ci			0, 0),
80362306a36Sopenharmony_ci	GATE(CLK_FIMC2, "fimc2", "aclk160", GATE_IP_CAM, 2,
80462306a36Sopenharmony_ci			0, 0),
80562306a36Sopenharmony_ci	GATE(CLK_FIMC3, "fimc3", "aclk160", GATE_IP_CAM, 3,
80662306a36Sopenharmony_ci			0, 0),
80762306a36Sopenharmony_ci	GATE(CLK_CSIS0, "csis0", "aclk160", GATE_IP_CAM, 4,
80862306a36Sopenharmony_ci			0, 0),
80962306a36Sopenharmony_ci	GATE(CLK_CSIS1, "csis1", "aclk160", GATE_IP_CAM, 5,
81062306a36Sopenharmony_ci			0, 0),
81162306a36Sopenharmony_ci	GATE(CLK_SMMU_FIMC0, "smmu_fimc0", "aclk160", GATE_IP_CAM, 7,
81262306a36Sopenharmony_ci			0, 0),
81362306a36Sopenharmony_ci	GATE(CLK_SMMU_FIMC1, "smmu_fimc1", "aclk160", GATE_IP_CAM, 8,
81462306a36Sopenharmony_ci			0, 0),
81562306a36Sopenharmony_ci	GATE(CLK_SMMU_FIMC2, "smmu_fimc2", "aclk160", GATE_IP_CAM, 9,
81662306a36Sopenharmony_ci			0, 0),
81762306a36Sopenharmony_ci	GATE(CLK_SMMU_FIMC3, "smmu_fimc3", "aclk160", GATE_IP_CAM, 10,
81862306a36Sopenharmony_ci			0, 0),
81962306a36Sopenharmony_ci	GATE(CLK_SMMU_JPEG, "smmu_jpeg", "aclk160", GATE_IP_CAM, 11,
82062306a36Sopenharmony_ci			0, 0),
82162306a36Sopenharmony_ci	GATE(CLK_PPMUCAMIF, "ppmucamif", "aclk160", GATE_IP_CAM, 16, 0, 0),
82262306a36Sopenharmony_ci	GATE(CLK_PIXELASYNCM0, "pxl_async0", "aclk160", GATE_IP_CAM, 17, 0, 0),
82362306a36Sopenharmony_ci	GATE(CLK_PIXELASYNCM1, "pxl_async1", "aclk160", GATE_IP_CAM, 18, 0, 0),
82462306a36Sopenharmony_ci	GATE(CLK_SMMU_TV, "smmu_tv", "aclk160", GATE_IP_TV, 4,
82562306a36Sopenharmony_ci			0, 0),
82662306a36Sopenharmony_ci	GATE(CLK_PPMUTV, "ppmutv", "aclk160", GATE_IP_TV, 5, 0, 0),
82762306a36Sopenharmony_ci	GATE(CLK_MFC, "mfc", "aclk100", GATE_IP_MFC, 0, 0, 0),
82862306a36Sopenharmony_ci	GATE(CLK_SMMU_MFCL, "smmu_mfcl", "aclk100", GATE_IP_MFC, 1,
82962306a36Sopenharmony_ci			0, 0),
83062306a36Sopenharmony_ci	GATE(CLK_SMMU_MFCR, "smmu_mfcr", "aclk100", GATE_IP_MFC, 2,
83162306a36Sopenharmony_ci			0, 0),
83262306a36Sopenharmony_ci	GATE(CLK_PPMUMFC_L, "ppmumfc_l", "aclk100", GATE_IP_MFC, 3, 0, 0),
83362306a36Sopenharmony_ci	GATE(CLK_PPMUMFC_R, "ppmumfc_r", "aclk100", GATE_IP_MFC, 4, 0, 0),
83462306a36Sopenharmony_ci	GATE(CLK_FIMD0, "fimd0", "aclk160", GATE_IP_LCD0, 0,
83562306a36Sopenharmony_ci			0, 0),
83662306a36Sopenharmony_ci	GATE(CLK_SMMU_FIMD0, "smmu_fimd0", "aclk160", GATE_IP_LCD0, 4,
83762306a36Sopenharmony_ci			0, 0),
83862306a36Sopenharmony_ci	GATE(CLK_PPMULCD0, "ppmulcd0", "aclk160", GATE_IP_LCD0, 5, 0, 0),
83962306a36Sopenharmony_ci	GATE(CLK_PDMA0, "pdma0", "aclk133", GATE_IP_FSYS, 0,
84062306a36Sopenharmony_ci			0, 0),
84162306a36Sopenharmony_ci	GATE(CLK_PDMA1, "pdma1", "aclk133", GATE_IP_FSYS, 1,
84262306a36Sopenharmony_ci			0, 0),
84362306a36Sopenharmony_ci	GATE(CLK_SDMMC0, "sdmmc0", "aclk133", GATE_IP_FSYS, 5,
84462306a36Sopenharmony_ci			0, 0),
84562306a36Sopenharmony_ci	GATE(CLK_SDMMC1, "sdmmc1", "aclk133", GATE_IP_FSYS, 6,
84662306a36Sopenharmony_ci			0, 0),
84762306a36Sopenharmony_ci	GATE(CLK_SDMMC2, "sdmmc2", "aclk133", GATE_IP_FSYS, 7,
84862306a36Sopenharmony_ci			0, 0),
84962306a36Sopenharmony_ci	GATE(CLK_SDMMC3, "sdmmc3", "aclk133", GATE_IP_FSYS, 8,
85062306a36Sopenharmony_ci			0, 0),
85162306a36Sopenharmony_ci	GATE(CLK_PPMUFILE, "ppmufile", "aclk133", GATE_IP_FSYS, 17, 0, 0),
85262306a36Sopenharmony_ci	GATE(CLK_UART0, "uart0", "aclk100", GATE_IP_PERIL, 0,
85362306a36Sopenharmony_ci			0, 0),
85462306a36Sopenharmony_ci	GATE(CLK_UART1, "uart1", "aclk100", GATE_IP_PERIL, 1,
85562306a36Sopenharmony_ci			0, 0),
85662306a36Sopenharmony_ci	GATE(CLK_UART2, "uart2", "aclk100", GATE_IP_PERIL, 2,
85762306a36Sopenharmony_ci			0, 0),
85862306a36Sopenharmony_ci	GATE(CLK_UART3, "uart3", "aclk100", GATE_IP_PERIL, 3,
85962306a36Sopenharmony_ci			0, 0),
86062306a36Sopenharmony_ci	GATE(CLK_UART4, "uart4", "aclk100", GATE_IP_PERIL, 4,
86162306a36Sopenharmony_ci			0, 0),
86262306a36Sopenharmony_ci	GATE(CLK_I2C0, "i2c0", "aclk100", GATE_IP_PERIL, 6,
86362306a36Sopenharmony_ci			0, 0),
86462306a36Sopenharmony_ci	GATE(CLK_I2C1, "i2c1", "aclk100", GATE_IP_PERIL, 7,
86562306a36Sopenharmony_ci			0, 0),
86662306a36Sopenharmony_ci	GATE(CLK_I2C2, "i2c2", "aclk100", GATE_IP_PERIL, 8,
86762306a36Sopenharmony_ci			0, 0),
86862306a36Sopenharmony_ci	GATE(CLK_I2C3, "i2c3", "aclk100", GATE_IP_PERIL, 9,
86962306a36Sopenharmony_ci			0, 0),
87062306a36Sopenharmony_ci	GATE(CLK_I2C4, "i2c4", "aclk100", GATE_IP_PERIL, 10,
87162306a36Sopenharmony_ci			0, 0),
87262306a36Sopenharmony_ci	GATE(CLK_I2C5, "i2c5", "aclk100", GATE_IP_PERIL, 11,
87362306a36Sopenharmony_ci			0, 0),
87462306a36Sopenharmony_ci	GATE(CLK_I2C6, "i2c6", "aclk100", GATE_IP_PERIL, 12,
87562306a36Sopenharmony_ci			0, 0),
87662306a36Sopenharmony_ci	GATE(CLK_I2C7, "i2c7", "aclk100", GATE_IP_PERIL, 13,
87762306a36Sopenharmony_ci			0, 0),
87862306a36Sopenharmony_ci	GATE(CLK_I2C_HDMI, "i2c-hdmi", "aclk100", GATE_IP_PERIL, 14,
87962306a36Sopenharmony_ci			0, 0),
88062306a36Sopenharmony_ci	GATE(CLK_SPI0, "spi0", "aclk100", GATE_IP_PERIL, 16,
88162306a36Sopenharmony_ci			0, 0),
88262306a36Sopenharmony_ci	GATE(CLK_SPI1, "spi1", "aclk100", GATE_IP_PERIL, 17,
88362306a36Sopenharmony_ci			0, 0),
88462306a36Sopenharmony_ci	GATE(CLK_SPI2, "spi2", "aclk100", GATE_IP_PERIL, 18,
88562306a36Sopenharmony_ci			0, 0),
88662306a36Sopenharmony_ci	GATE(CLK_I2S1, "i2s1", "aclk100", GATE_IP_PERIL, 20,
88762306a36Sopenharmony_ci			0, 0),
88862306a36Sopenharmony_ci	GATE(CLK_I2S2, "i2s2", "aclk100", GATE_IP_PERIL, 21,
88962306a36Sopenharmony_ci			0, 0),
89062306a36Sopenharmony_ci	GATE(CLK_PCM1, "pcm1", "aclk100", GATE_IP_PERIL, 22,
89162306a36Sopenharmony_ci			0, 0),
89262306a36Sopenharmony_ci	GATE(CLK_PCM2, "pcm2", "aclk100", GATE_IP_PERIL, 23,
89362306a36Sopenharmony_ci			0, 0),
89462306a36Sopenharmony_ci	GATE(CLK_SPDIF, "spdif", "aclk100", GATE_IP_PERIL, 26,
89562306a36Sopenharmony_ci			0, 0),
89662306a36Sopenharmony_ci	GATE(CLK_AC97, "ac97", "aclk100", GATE_IP_PERIL, 27,
89762306a36Sopenharmony_ci			0, 0),
89862306a36Sopenharmony_ci	GATE(CLK_SSS, "sss", "aclk133", GATE_IP_DMC, 4, 0, 0),
89962306a36Sopenharmony_ci	GATE(CLK_PPMUDMC0, "ppmudmc0", "aclk133", GATE_IP_DMC, 8, 0, 0),
90062306a36Sopenharmony_ci	GATE(CLK_PPMUDMC1, "ppmudmc1", "aclk133", GATE_IP_DMC, 9, 0, 0),
90162306a36Sopenharmony_ci	GATE(CLK_PPMUCPU, "ppmucpu", "aclk133", GATE_IP_DMC, 10, 0, 0),
90262306a36Sopenharmony_ci	GATE(CLK_PPMUACP, "ppmuacp", "aclk133", GATE_IP_DMC, 16, 0, 0),
90362306a36Sopenharmony_ci
90462306a36Sopenharmony_ci	GATE(CLK_OUT_LEFTBUS, "clkout_leftbus", "div_clkout_leftbus",
90562306a36Sopenharmony_ci			CLKOUT_CMU_LEFTBUS, 16, CLK_SET_RATE_PARENT, 0),
90662306a36Sopenharmony_ci	GATE(CLK_OUT_RIGHTBUS, "clkout_rightbus", "div_clkout_rightbus",
90762306a36Sopenharmony_ci			CLKOUT_CMU_RIGHTBUS, 16, CLK_SET_RATE_PARENT, 0),
90862306a36Sopenharmony_ci	GATE(CLK_OUT_TOP, "clkout_top", "div_clkout_top",
90962306a36Sopenharmony_ci			CLKOUT_CMU_TOP, 16, CLK_SET_RATE_PARENT, 0),
91062306a36Sopenharmony_ci	GATE(CLK_OUT_DMC, "clkout_dmc", "div_clkout_dmc",
91162306a36Sopenharmony_ci			CLKOUT_CMU_DMC, 16, CLK_SET_RATE_PARENT, 0),
91262306a36Sopenharmony_ci	GATE(CLK_OUT_CPU, "clkout_cpu", "div_clkout_cpu",
91362306a36Sopenharmony_ci			CLKOUT_CMU_CPU, 16, CLK_SET_RATE_PARENT, 0),
91462306a36Sopenharmony_ci};
91562306a36Sopenharmony_ci
91662306a36Sopenharmony_ci/* list of gate clocks supported in exynos4210 soc */
91762306a36Sopenharmony_cistatic const struct samsung_gate_clock exynos4210_gate_clks[] __initconst = {
91862306a36Sopenharmony_ci	GATE(CLK_TVENC, "tvenc", "aclk160", GATE_IP_TV, 2, 0, 0),
91962306a36Sopenharmony_ci	GATE(CLK_G2D, "g2d", "aclk200", E4210_GATE_IP_IMAGE, 0, 0, 0),
92062306a36Sopenharmony_ci	GATE(CLK_ROTATOR, "rotator", "aclk200", E4210_GATE_IP_IMAGE, 1, 0, 0),
92162306a36Sopenharmony_ci	GATE(CLK_MDMA, "mdma", "aclk200", E4210_GATE_IP_IMAGE, 2, 0, 0),
92262306a36Sopenharmony_ci	GATE(CLK_SMMU_G2D, "smmu_g2d", "aclk200", E4210_GATE_IP_IMAGE, 3, 0, 0),
92362306a36Sopenharmony_ci	GATE(CLK_SMMU_MDMA, "smmu_mdma", "aclk200", E4210_GATE_IP_IMAGE, 5, 0,
92462306a36Sopenharmony_ci		0),
92562306a36Sopenharmony_ci	GATE(CLK_PPMUIMAGE, "ppmuimage", "aclk200", E4210_GATE_IP_IMAGE, 9, 0,
92662306a36Sopenharmony_ci		0),
92762306a36Sopenharmony_ci	GATE(CLK_PPMULCD1, "ppmulcd1", "aclk160", E4210_GATE_IP_LCD1, 5, 0, 0),
92862306a36Sopenharmony_ci	GATE(CLK_PCIE_PHY, "pcie_phy", "aclk133", GATE_IP_FSYS, 2, 0, 0),
92962306a36Sopenharmony_ci	GATE(CLK_SATA_PHY, "sata_phy", "aclk133", GATE_IP_FSYS, 3, 0, 0),
93062306a36Sopenharmony_ci	GATE(CLK_SATA, "sata", "aclk133", GATE_IP_FSYS, 10, 0, 0),
93162306a36Sopenharmony_ci	GATE(CLK_PCIE, "pcie", "aclk133", GATE_IP_FSYS, 14, 0, 0),
93262306a36Sopenharmony_ci	GATE(CLK_SMMU_PCIE, "smmu_pcie", "aclk133", GATE_IP_FSYS, 18, 0, 0),
93362306a36Sopenharmony_ci	GATE(CLK_MODEMIF, "modemif", "aclk100", GATE_IP_PERIL, 28, 0, 0),
93462306a36Sopenharmony_ci	GATE(CLK_CHIPID, "chipid", "aclk100", E4210_GATE_IP_PERIR, 0, CLK_IGNORE_UNUSED, 0),
93562306a36Sopenharmony_ci	GATE(CLK_SYSREG, "sysreg", "aclk100", E4210_GATE_IP_PERIR, 0,
93662306a36Sopenharmony_ci			CLK_IGNORE_UNUSED, 0),
93762306a36Sopenharmony_ci	GATE(CLK_HDMI_CEC, "hdmi_cec", "aclk100", E4210_GATE_IP_PERIR, 11, 0,
93862306a36Sopenharmony_ci		0),
93962306a36Sopenharmony_ci	GATE(CLK_SMMU_ROTATOR, "smmu_rotator", "aclk200",
94062306a36Sopenharmony_ci			E4210_GATE_IP_IMAGE, 4, 0, 0),
94162306a36Sopenharmony_ci	GATE(CLK_SCLK_MIPI1, "sclk_mipi1", "div_mipi_pre1",
94262306a36Sopenharmony_ci			E4210_SRC_MASK_LCD1, 12, CLK_SET_RATE_PARENT, 0),
94362306a36Sopenharmony_ci	GATE(CLK_SCLK_SATA, "sclk_sata", "div_sata",
94462306a36Sopenharmony_ci			SRC_MASK_FSYS, 24, CLK_SET_RATE_PARENT, 0),
94562306a36Sopenharmony_ci	GATE(CLK_SCLK_MIXER, "sclk_mixer", "mout_mixer", SRC_MASK_TV, 4, 0, 0),
94662306a36Sopenharmony_ci	GATE(CLK_SCLK_DAC, "sclk_dac", "mout_dac", SRC_MASK_TV, 8, 0, 0),
94762306a36Sopenharmony_ci	GATE(CLK_TSADC, "tsadc", "aclk100", GATE_IP_PERIL, 15,
94862306a36Sopenharmony_ci			0, 0),
94962306a36Sopenharmony_ci	GATE(CLK_MCT, "mct", "aclk100", E4210_GATE_IP_PERIR, 13,
95062306a36Sopenharmony_ci			0, 0),
95162306a36Sopenharmony_ci	GATE(CLK_WDT, "watchdog", "aclk100", E4210_GATE_IP_PERIR, 14,
95262306a36Sopenharmony_ci			0, 0),
95362306a36Sopenharmony_ci	GATE(CLK_RTC, "rtc", "aclk100", E4210_GATE_IP_PERIR, 15,
95462306a36Sopenharmony_ci			0, 0),
95562306a36Sopenharmony_ci	GATE(CLK_KEYIF, "keyif", "aclk100", E4210_GATE_IP_PERIR, 16,
95662306a36Sopenharmony_ci			0, 0),
95762306a36Sopenharmony_ci	GATE(CLK_SCLK_FIMD1, "sclk_fimd1", "div_fimd1", E4210_SRC_MASK_LCD1, 0,
95862306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
95962306a36Sopenharmony_ci	GATE(CLK_TMU_APBIF, "tmu_apbif", "aclk100", E4210_GATE_IP_PERIR, 17, 0,
96062306a36Sopenharmony_ci		0),
96162306a36Sopenharmony_ci};
96262306a36Sopenharmony_ci
96362306a36Sopenharmony_ci/* list of gate clocks supported in exynos4x12 soc */
96462306a36Sopenharmony_cistatic const struct samsung_gate_clock exynos4x12_gate_clks[] __initconst = {
96562306a36Sopenharmony_ci	GATE(CLK_ASYNC_G3D, "async_g3d", "aclk200", GATE_IP_LEFTBUS, 6, 0, 0),
96662306a36Sopenharmony_ci	GATE(CLK_AUDSS, "audss", "sclk_epll", E4X12_GATE_IP_MAUDIO, 0, 0, 0),
96762306a36Sopenharmony_ci	GATE(CLK_MDNIE0, "mdnie0", "aclk160", GATE_IP_LCD0, 2, 0, 0),
96862306a36Sopenharmony_ci	GATE(CLK_ROTATOR, "rotator", "aclk200", E4X12_GATE_IP_IMAGE, 1, 0, 0),
96962306a36Sopenharmony_ci	GATE(CLK_MDMA, "mdma", "aclk200", E4X12_GATE_IP_IMAGE, 2, 0, 0),
97062306a36Sopenharmony_ci	GATE(CLK_SMMU_MDMA, "smmu_mdma", "aclk200", E4X12_GATE_IP_IMAGE, 5, 0,
97162306a36Sopenharmony_ci		0),
97262306a36Sopenharmony_ci	GATE(CLK_PPMUIMAGE, "ppmuimage", "aclk200", E4X12_GATE_IP_IMAGE, 9, 0,
97362306a36Sopenharmony_ci		0),
97462306a36Sopenharmony_ci	GATE(CLK_TSADC, "tsadc", "aclk133", E4X12_GATE_BUS_FSYS1, 16, 0, 0),
97562306a36Sopenharmony_ci	GATE(CLK_MIPI_HSI, "mipi_hsi", "aclk133", GATE_IP_FSYS, 10, 0, 0),
97662306a36Sopenharmony_ci	GATE(CLK_CHIPID, "chipid", "aclk100", E4X12_GATE_IP_PERIR, 0, CLK_IGNORE_UNUSED, 0),
97762306a36Sopenharmony_ci	GATE(CLK_SYSREG, "sysreg", "aclk100", E4X12_GATE_IP_PERIR, 1,
97862306a36Sopenharmony_ci			CLK_IGNORE_UNUSED, 0),
97962306a36Sopenharmony_ci	GATE(CLK_HDMI_CEC, "hdmi_cec", "aclk100", E4X12_GATE_IP_PERIR, 11, 0,
98062306a36Sopenharmony_ci		0),
98162306a36Sopenharmony_ci	GATE(CLK_SCLK_MDNIE0, "sclk_mdnie0", "div_mdnie0",
98262306a36Sopenharmony_ci			SRC_MASK_LCD0, 4, CLK_SET_RATE_PARENT, 0),
98362306a36Sopenharmony_ci	GATE(CLK_SCLK_MDNIE_PWM0, "sclk_mdnie_pwm0", "div_mdnie_pwm_pre0",
98462306a36Sopenharmony_ci			SRC_MASK_LCD0, 8, CLK_SET_RATE_PARENT, 0),
98562306a36Sopenharmony_ci	GATE(CLK_SCLK_MIPIHSI, "sclk_mipihsi", "div_mipihsi",
98662306a36Sopenharmony_ci			SRC_MASK_FSYS, 24, CLK_SET_RATE_PARENT, 0),
98762306a36Sopenharmony_ci	GATE(CLK_SMMU_ROTATOR, "smmu_rotator", "aclk200",
98862306a36Sopenharmony_ci			E4X12_GATE_IP_IMAGE, 4, 0, 0),
98962306a36Sopenharmony_ci	GATE(CLK_MCT, "mct", "aclk100", E4X12_GATE_IP_PERIR, 13,
99062306a36Sopenharmony_ci			0, 0),
99162306a36Sopenharmony_ci	GATE(CLK_RTC, "rtc", "aclk100", E4X12_GATE_IP_PERIR, 15,
99262306a36Sopenharmony_ci			0, 0),
99362306a36Sopenharmony_ci	GATE(CLK_KEYIF, "keyif", "aclk100", E4X12_GATE_IP_PERIR, 16, 0, 0),
99462306a36Sopenharmony_ci	GATE(CLK_PWM_ISP_SCLK, "pwm_isp_sclk", "div_pwm_isp",
99562306a36Sopenharmony_ci			E4X12_GATE_IP_ISP, 0, 0, 0),
99662306a36Sopenharmony_ci	GATE(CLK_SPI0_ISP_SCLK, "spi0_isp_sclk", "div_spi0_isp_pre",
99762306a36Sopenharmony_ci			E4X12_GATE_IP_ISP, 1, 0, 0),
99862306a36Sopenharmony_ci	GATE(CLK_SPI1_ISP_SCLK, "spi1_isp_sclk", "div_spi1_isp_pre",
99962306a36Sopenharmony_ci			E4X12_GATE_IP_ISP, 2, 0, 0),
100062306a36Sopenharmony_ci	GATE(CLK_UART_ISP_SCLK, "uart_isp_sclk", "div_uart_isp",
100162306a36Sopenharmony_ci			E4X12_GATE_IP_ISP, 3, 0, 0),
100262306a36Sopenharmony_ci	GATE(CLK_WDT, "watchdog", "aclk100", E4X12_GATE_IP_PERIR, 14, 0, 0),
100362306a36Sopenharmony_ci	GATE(CLK_PCM0, "pcm0", "aclk100", E4X12_GATE_IP_MAUDIO, 2,
100462306a36Sopenharmony_ci			0, 0),
100562306a36Sopenharmony_ci	GATE(CLK_I2S0, "i2s0", "aclk100", E4X12_GATE_IP_MAUDIO, 3,
100662306a36Sopenharmony_ci			0, 0),
100762306a36Sopenharmony_ci	GATE(CLK_G2D, "g2d", "aclk200", GATE_IP_DMC, 23, 0, 0),
100862306a36Sopenharmony_ci	GATE(CLK_SMMU_G2D, "smmu_g2d", "aclk200", GATE_IP_DMC, 24, 0, 0),
100962306a36Sopenharmony_ci	GATE(CLK_TMU_APBIF, "tmu_apbif", "aclk100", E4X12_GATE_IP_PERIR, 17, 0,
101062306a36Sopenharmony_ci		0),
101162306a36Sopenharmony_ci};
101262306a36Sopenharmony_ci
101362306a36Sopenharmony_ci/*
101462306a36Sopenharmony_ci * The parent of the fin_pll clock is selected by the XOM[0] bit. This bit
101562306a36Sopenharmony_ci * resides in chipid register space, outside of the clock controller memory
101662306a36Sopenharmony_ci * mapped space. So to determine the parent of fin_pll clock, the chipid
101762306a36Sopenharmony_ci * controller is first remapped and the value of XOM[0] bit is read to
101862306a36Sopenharmony_ci * determine the parent clock.
101962306a36Sopenharmony_ci */
102062306a36Sopenharmony_cistatic unsigned long __init exynos4_get_xom(void)
102162306a36Sopenharmony_ci{
102262306a36Sopenharmony_ci	unsigned long xom = 0;
102362306a36Sopenharmony_ci	void __iomem *chipid_base;
102462306a36Sopenharmony_ci	struct device_node *np;
102562306a36Sopenharmony_ci
102662306a36Sopenharmony_ci	np = of_find_compatible_node(NULL, NULL, "samsung,exynos4210-chipid");
102762306a36Sopenharmony_ci	if (np) {
102862306a36Sopenharmony_ci		chipid_base = of_iomap(np, 0);
102962306a36Sopenharmony_ci
103062306a36Sopenharmony_ci		if (chipid_base)
103162306a36Sopenharmony_ci			xom = readl(chipid_base + 8);
103262306a36Sopenharmony_ci
103362306a36Sopenharmony_ci		iounmap(chipid_base);
103462306a36Sopenharmony_ci		of_node_put(np);
103562306a36Sopenharmony_ci	}
103662306a36Sopenharmony_ci
103762306a36Sopenharmony_ci	return xom;
103862306a36Sopenharmony_ci}
103962306a36Sopenharmony_ci
104062306a36Sopenharmony_cistatic void __init exynos4_clk_register_finpll(struct samsung_clk_provider *ctx)
104162306a36Sopenharmony_ci{
104262306a36Sopenharmony_ci	struct samsung_fixed_rate_clock fclk;
104362306a36Sopenharmony_ci	struct clk *clk;
104462306a36Sopenharmony_ci	unsigned long finpll_f = 24000000;
104562306a36Sopenharmony_ci	char *parent_name;
104662306a36Sopenharmony_ci	unsigned int xom = exynos4_get_xom();
104762306a36Sopenharmony_ci
104862306a36Sopenharmony_ci	parent_name = xom & 1 ? "xusbxti" : "xxti";
104962306a36Sopenharmony_ci	clk = clk_get(NULL, parent_name);
105062306a36Sopenharmony_ci	if (IS_ERR(clk)) {
105162306a36Sopenharmony_ci		pr_err("%s: failed to lookup parent clock %s, assuming "
105262306a36Sopenharmony_ci			"fin_pll clock frequency is 24MHz\n", __func__,
105362306a36Sopenharmony_ci			parent_name);
105462306a36Sopenharmony_ci	} else {
105562306a36Sopenharmony_ci		finpll_f = clk_get_rate(clk);
105662306a36Sopenharmony_ci	}
105762306a36Sopenharmony_ci
105862306a36Sopenharmony_ci	fclk.id = CLK_FIN_PLL;
105962306a36Sopenharmony_ci	fclk.name = "fin_pll";
106062306a36Sopenharmony_ci	fclk.parent_name = NULL;
106162306a36Sopenharmony_ci	fclk.flags = 0;
106262306a36Sopenharmony_ci	fclk.fixed_rate = finpll_f;
106362306a36Sopenharmony_ci	samsung_clk_register_fixed_rate(ctx, &fclk, 1);
106462306a36Sopenharmony_ci
106562306a36Sopenharmony_ci}
106662306a36Sopenharmony_ci
106762306a36Sopenharmony_cistatic const struct of_device_id ext_clk_match[] __initconst = {
106862306a36Sopenharmony_ci	{ .compatible = "samsung,clock-xxti", .data = (void *)0, },
106962306a36Sopenharmony_ci	{ .compatible = "samsung,clock-xusbxti", .data = (void *)1, },
107062306a36Sopenharmony_ci	{},
107162306a36Sopenharmony_ci};
107262306a36Sopenharmony_ci
107362306a36Sopenharmony_ci/* PLLs PMS values */
107462306a36Sopenharmony_cistatic const struct samsung_pll_rate_table exynos4210_apll_rates[] __initconst = {
107562306a36Sopenharmony_ci	PLL_4508_RATE(24 * MHZ, 1200000000, 150,  3, 1, 28),
107662306a36Sopenharmony_ci	PLL_4508_RATE(24 * MHZ, 1000000000, 250,  6, 1, 28),
107762306a36Sopenharmony_ci	PLL_4508_RATE(24 * MHZ,  800000000, 200,  6, 1, 28),
107862306a36Sopenharmony_ci	PLL_4508_RATE(24 * MHZ,  666857142, 389, 14, 1, 13),
107962306a36Sopenharmony_ci	PLL_4508_RATE(24 * MHZ,  600000000, 100,  4, 1, 13),
108062306a36Sopenharmony_ci	PLL_4508_RATE(24 * MHZ,  533000000, 533, 24, 1,  5),
108162306a36Sopenharmony_ci	PLL_4508_RATE(24 * MHZ,  500000000, 250,  6, 2, 28),
108262306a36Sopenharmony_ci	PLL_4508_RATE(24 * MHZ,  400000000, 200,  6, 2, 28),
108362306a36Sopenharmony_ci	PLL_4508_RATE(24 * MHZ,  200000000, 200,  6, 3, 28),
108462306a36Sopenharmony_ci	{ /* sentinel */ }
108562306a36Sopenharmony_ci};
108662306a36Sopenharmony_ci
108762306a36Sopenharmony_cistatic const struct samsung_pll_rate_table exynos4210_epll_rates[] __initconst = {
108862306a36Sopenharmony_ci	PLL_4600_RATE(24 * MHZ, 192000000, 48, 3, 1,     0, 0),
108962306a36Sopenharmony_ci	PLL_4600_RATE(24 * MHZ, 180633605, 45, 3, 1, 10381, 0),
109062306a36Sopenharmony_ci	PLL_4600_RATE(24 * MHZ, 180000000, 45, 3, 1,     0, 0),
109162306a36Sopenharmony_ci	PLL_4600_RATE(24 * MHZ,  73727996, 73, 3, 3, 47710, 1),
109262306a36Sopenharmony_ci	PLL_4600_RATE(24 * MHZ,  67737602, 90, 4, 3, 20762, 1),
109362306a36Sopenharmony_ci	PLL_4600_RATE(24 * MHZ,  49151992, 49, 3, 3,  9961, 0),
109462306a36Sopenharmony_ci	PLL_4600_RATE(24 * MHZ,  45158401, 45, 3, 3, 10381, 0),
109562306a36Sopenharmony_ci	{ /* sentinel */ }
109662306a36Sopenharmony_ci};
109762306a36Sopenharmony_ci
109862306a36Sopenharmony_cistatic const struct samsung_pll_rate_table exynos4210_vpll_rates[] __initconst = {
109962306a36Sopenharmony_ci	PLL_4650_RATE(24 * MHZ, 360000000, 44, 3, 0, 1024, 0, 14, 0),
110062306a36Sopenharmony_ci	PLL_4650_RATE(24 * MHZ, 324000000, 53, 2, 1, 1024, 1,  1, 1),
110162306a36Sopenharmony_ci	PLL_4650_RATE(24 * MHZ, 259617187, 63, 3, 1, 1950, 0, 20, 1),
110262306a36Sopenharmony_ci	PLL_4650_RATE(24 * MHZ, 110000000, 53, 3, 2, 2048, 0, 17, 0),
110362306a36Sopenharmony_ci	PLL_4650_RATE(24 * MHZ,  55360351, 53, 3, 3, 2417, 0, 17, 0),
110462306a36Sopenharmony_ci	{ /* sentinel */ }
110562306a36Sopenharmony_ci};
110662306a36Sopenharmony_ci
110762306a36Sopenharmony_cistatic const struct samsung_pll_rate_table exynos4x12_apll_rates[] __initconst = {
110862306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1704000000, 213, 3, 0),
110962306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1600000000, 200, 3, 0),
111062306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1500000000, 250, 4, 0),
111162306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1400000000, 175, 3, 0),
111262306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1300000000, 325, 6, 0),
111362306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1200000000, 200, 4, 0),
111462306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1100000000, 275, 6, 0),
111562306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1000000000, 125, 3, 0),
111662306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ,  900000000, 150, 4, 0),
111762306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ,  800000000, 100, 3, 0),
111862306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ,  700000000, 175, 3, 1),
111962306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ,  600000000, 200, 4, 1),
112062306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ,  500000000, 125, 3, 1),
112162306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ,  400000000, 100, 3, 1),
112262306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ,  300000000, 200, 4, 2),
112362306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ,  200000000, 100, 3, 2),
112462306a36Sopenharmony_ci	{ /* sentinel */ }
112562306a36Sopenharmony_ci};
112662306a36Sopenharmony_ci
112762306a36Sopenharmony_cistatic const struct samsung_pll_rate_table exynos4x12_epll_rates[] __initconst = {
112862306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 196608001, 197, 3, 3, -25690),
112962306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 192000000, 48, 3, 1,     0),
113062306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 180633605, 45, 3, 1, 10381),
113162306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 180000000, 45, 3, 1,     0),
113262306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ,  73727996, 73, 3, 3, 47710),
113362306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ,  67737602, 90, 4, 3, 20762),
113462306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ,  49151992, 49, 3, 3,  9961),
113562306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ,  45158401, 45, 3, 3, 10381),
113662306a36Sopenharmony_ci	{ /* sentinel */ }
113762306a36Sopenharmony_ci};
113862306a36Sopenharmony_ci
113962306a36Sopenharmony_cistatic const struct samsung_pll_rate_table exynos4x12_vpll_rates[] __initconst = {
114062306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 533000000, 133, 3, 1, 16384),
114162306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 440000000, 110, 3, 1,     0),
114262306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 350000000, 175, 3, 2,     0),
114362306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 266000000, 133, 3, 2,     0),
114462306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 160000000, 160, 3, 3,     0),
114562306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 106031250,  53, 3, 2,  1024),
114662306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ,  53015625,  53, 3, 3,  1024),
114762306a36Sopenharmony_ci	{ /* sentinel */ }
114862306a36Sopenharmony_ci};
114962306a36Sopenharmony_ci
115062306a36Sopenharmony_cistatic struct samsung_pll_clock exynos4210_plls[nr_plls] __initdata = {
115162306a36Sopenharmony_ci	[apll] = PLL(pll_4508, CLK_FOUT_APLL, "fout_apll", "fin_pll",
115262306a36Sopenharmony_ci		APLL_LOCK, APLL_CON0, NULL),
115362306a36Sopenharmony_ci	[mpll] = PLL(pll_4508, CLK_FOUT_MPLL, "fout_mpll", "fin_pll",
115462306a36Sopenharmony_ci		E4210_MPLL_LOCK, E4210_MPLL_CON0, NULL),
115562306a36Sopenharmony_ci	[epll] = PLL(pll_4600, CLK_FOUT_EPLL, "fout_epll", "fin_pll",
115662306a36Sopenharmony_ci		EPLL_LOCK, EPLL_CON0, NULL),
115762306a36Sopenharmony_ci	[vpll] = PLL(pll_4650c, CLK_FOUT_VPLL, "fout_vpll", "mout_vpllsrc",
115862306a36Sopenharmony_ci		VPLL_LOCK, VPLL_CON0, NULL),
115962306a36Sopenharmony_ci};
116062306a36Sopenharmony_ci
116162306a36Sopenharmony_cistatic struct samsung_pll_clock exynos4x12_plls[nr_plls] __initdata = {
116262306a36Sopenharmony_ci	[apll] = PLL(pll_35xx, CLK_FOUT_APLL, "fout_apll", "fin_pll",
116362306a36Sopenharmony_ci			APLL_LOCK, APLL_CON0, NULL),
116462306a36Sopenharmony_ci	[mpll] = PLL(pll_35xx, CLK_FOUT_MPLL, "fout_mpll", "fin_pll",
116562306a36Sopenharmony_ci			E4X12_MPLL_LOCK, E4X12_MPLL_CON0, NULL),
116662306a36Sopenharmony_ci	[epll] = PLL(pll_36xx, CLK_FOUT_EPLL, "fout_epll", "fin_pll",
116762306a36Sopenharmony_ci			EPLL_LOCK, EPLL_CON0, NULL),
116862306a36Sopenharmony_ci	[vpll] = PLL(pll_36xx, CLK_FOUT_VPLL, "fout_vpll", "fin_pll",
116962306a36Sopenharmony_ci			VPLL_LOCK, VPLL_CON0, NULL),
117062306a36Sopenharmony_ci};
117162306a36Sopenharmony_ci
117262306a36Sopenharmony_cistatic void __init exynos4x12_core_down_clock(void)
117362306a36Sopenharmony_ci{
117462306a36Sopenharmony_ci	unsigned int tmp;
117562306a36Sopenharmony_ci
117662306a36Sopenharmony_ci	/*
117762306a36Sopenharmony_ci	 * Enable arm clock down (in idle) and set arm divider
117862306a36Sopenharmony_ci	 * ratios in WFI/WFE state.
117962306a36Sopenharmony_ci	 */
118062306a36Sopenharmony_ci	tmp = (PWR_CTRL1_CORE2_DOWN_RATIO(7) | PWR_CTRL1_CORE1_DOWN_RATIO(7) |
118162306a36Sopenharmony_ci		PWR_CTRL1_DIV2_DOWN_EN | PWR_CTRL1_DIV1_DOWN_EN |
118262306a36Sopenharmony_ci		PWR_CTRL1_USE_CORE1_WFE | PWR_CTRL1_USE_CORE0_WFE |
118362306a36Sopenharmony_ci		PWR_CTRL1_USE_CORE1_WFI | PWR_CTRL1_USE_CORE0_WFI);
118462306a36Sopenharmony_ci	/* On Exynos4412 enable it also on core 2 and 3 */
118562306a36Sopenharmony_ci	if (num_possible_cpus() == 4)
118662306a36Sopenharmony_ci		tmp |= PWR_CTRL1_USE_CORE3_WFE | PWR_CTRL1_USE_CORE2_WFE |
118762306a36Sopenharmony_ci		       PWR_CTRL1_USE_CORE3_WFI | PWR_CTRL1_USE_CORE2_WFI;
118862306a36Sopenharmony_ci	writel_relaxed(tmp, reg_base + PWR_CTRL1);
118962306a36Sopenharmony_ci
119062306a36Sopenharmony_ci	/*
119162306a36Sopenharmony_ci	 * Disable the clock up feature in case it was enabled by bootloader.
119262306a36Sopenharmony_ci	 */
119362306a36Sopenharmony_ci	writel_relaxed(0x0, reg_base + E4X12_PWR_CTRL2);
119462306a36Sopenharmony_ci}
119562306a36Sopenharmony_ci
119662306a36Sopenharmony_ci#define E4210_CPU_DIV0(apll, pclk_dbg, atb, periph, corem1, corem0)	\
119762306a36Sopenharmony_ci		(((apll) << 24) | ((pclk_dbg) << 20) | ((atb) << 16) |	\
119862306a36Sopenharmony_ci		((periph) << 12) | ((corem1) << 8) | ((corem0) <<  4))
119962306a36Sopenharmony_ci#define E4210_CPU_DIV1(hpm, copy)					\
120062306a36Sopenharmony_ci		(((hpm) << 4) | ((copy) << 0))
120162306a36Sopenharmony_ci
120262306a36Sopenharmony_cistatic const struct exynos_cpuclk_cfg_data e4210_armclk_d[] __initconst = {
120362306a36Sopenharmony_ci	{ 1200000, E4210_CPU_DIV0(7, 1, 4, 3, 7, 3), E4210_CPU_DIV1(0, 5), },
120462306a36Sopenharmony_ci	{ 1000000, E4210_CPU_DIV0(7, 1, 4, 3, 7, 3), E4210_CPU_DIV1(0, 4), },
120562306a36Sopenharmony_ci	{  800000, E4210_CPU_DIV0(7, 1, 3, 3, 7, 3), E4210_CPU_DIV1(0, 3), },
120662306a36Sopenharmony_ci	{  500000, E4210_CPU_DIV0(7, 1, 3, 3, 7, 3), E4210_CPU_DIV1(0, 3), },
120762306a36Sopenharmony_ci	{  400000, E4210_CPU_DIV0(7, 1, 3, 3, 7, 3), E4210_CPU_DIV1(0, 3), },
120862306a36Sopenharmony_ci	{  200000, E4210_CPU_DIV0(0, 1, 1, 1, 3, 1), E4210_CPU_DIV1(0, 3), },
120962306a36Sopenharmony_ci	{  0 },
121062306a36Sopenharmony_ci};
121162306a36Sopenharmony_ci
121262306a36Sopenharmony_cistatic const struct exynos_cpuclk_cfg_data e4212_armclk_d[] __initconst = {
121362306a36Sopenharmony_ci	{ 1500000, E4210_CPU_DIV0(2, 1, 6, 0, 7, 3), E4210_CPU_DIV1(2, 6), },
121462306a36Sopenharmony_ci	{ 1400000, E4210_CPU_DIV0(2, 1, 6, 0, 7, 3), E4210_CPU_DIV1(2, 6), },
121562306a36Sopenharmony_ci	{ 1300000, E4210_CPU_DIV0(2, 1, 5, 0, 7, 3), E4210_CPU_DIV1(2, 5), },
121662306a36Sopenharmony_ci	{ 1200000, E4210_CPU_DIV0(2, 1, 5, 0, 7, 3), E4210_CPU_DIV1(2, 5), },
121762306a36Sopenharmony_ci	{ 1100000, E4210_CPU_DIV0(2, 1, 4, 0, 6, 3), E4210_CPU_DIV1(2, 4), },
121862306a36Sopenharmony_ci	{ 1000000, E4210_CPU_DIV0(1, 1, 4, 0, 5, 2), E4210_CPU_DIV1(2, 4), },
121962306a36Sopenharmony_ci	{  900000, E4210_CPU_DIV0(1, 1, 3, 0, 5, 2), E4210_CPU_DIV1(2, 3), },
122062306a36Sopenharmony_ci	{  800000, E4210_CPU_DIV0(1, 1, 3, 0, 5, 2), E4210_CPU_DIV1(2, 3), },
122162306a36Sopenharmony_ci	{  700000, E4210_CPU_DIV0(1, 1, 3, 0, 4, 2), E4210_CPU_DIV1(2, 3), },
122262306a36Sopenharmony_ci	{  600000, E4210_CPU_DIV0(1, 1, 3, 0, 4, 2), E4210_CPU_DIV1(2, 3), },
122362306a36Sopenharmony_ci	{  500000, E4210_CPU_DIV0(1, 1, 3, 0, 4, 2), E4210_CPU_DIV1(2, 3), },
122462306a36Sopenharmony_ci	{  400000, E4210_CPU_DIV0(1, 1, 3, 0, 4, 2), E4210_CPU_DIV1(2, 3), },
122562306a36Sopenharmony_ci	{  300000, E4210_CPU_DIV0(1, 1, 2, 0, 4, 2), E4210_CPU_DIV1(2, 3), },
122662306a36Sopenharmony_ci	{  200000, E4210_CPU_DIV0(1, 1, 1, 0, 3, 1), E4210_CPU_DIV1(2, 3), },
122762306a36Sopenharmony_ci	{  0 },
122862306a36Sopenharmony_ci};
122962306a36Sopenharmony_ci
123062306a36Sopenharmony_ci#define E4412_CPU_DIV1(cores, hpm, copy)				\
123162306a36Sopenharmony_ci		(((cores) << 8) | ((hpm) << 4) | ((copy) << 0))
123262306a36Sopenharmony_ci
123362306a36Sopenharmony_cistatic const struct exynos_cpuclk_cfg_data e4412_armclk_d[] __initconst = {
123462306a36Sopenharmony_ci	{ 1704000, E4210_CPU_DIV0(2, 1, 6, 0, 7, 3), E4412_CPU_DIV1(7, 0, 7), },
123562306a36Sopenharmony_ci	{ 1600000, E4210_CPU_DIV0(2, 1, 6, 0, 7, 3), E4412_CPU_DIV1(7, 0, 6), },
123662306a36Sopenharmony_ci	{ 1500000, E4210_CPU_DIV0(2, 1, 6, 0, 7, 3), E4412_CPU_DIV1(7, 0, 6), },
123762306a36Sopenharmony_ci	{ 1400000, E4210_CPU_DIV0(2, 1, 6, 0, 7, 3), E4412_CPU_DIV1(6, 0, 6), },
123862306a36Sopenharmony_ci	{ 1300000, E4210_CPU_DIV0(2, 1, 5, 0, 7, 3), E4412_CPU_DIV1(6, 0, 5), },
123962306a36Sopenharmony_ci	{ 1200000, E4210_CPU_DIV0(2, 1, 5, 0, 7, 3), E4412_CPU_DIV1(5, 0, 5), },
124062306a36Sopenharmony_ci	{ 1100000, E4210_CPU_DIV0(2, 1, 4, 0, 6, 3), E4412_CPU_DIV1(5, 0, 4), },
124162306a36Sopenharmony_ci	{ 1000000, E4210_CPU_DIV0(1, 1, 4, 0, 5, 2), E4412_CPU_DIV1(4, 0, 4), },
124262306a36Sopenharmony_ci	{  900000, E4210_CPU_DIV0(1, 1, 3, 0, 5, 2), E4412_CPU_DIV1(4, 0, 3), },
124362306a36Sopenharmony_ci	{  800000, E4210_CPU_DIV0(1, 1, 3, 0, 5, 2), E4412_CPU_DIV1(3, 0, 3), },
124462306a36Sopenharmony_ci	{  700000, E4210_CPU_DIV0(1, 1, 3, 0, 4, 2), E4412_CPU_DIV1(3, 0, 3), },
124562306a36Sopenharmony_ci	{  600000, E4210_CPU_DIV0(1, 1, 3, 0, 4, 2), E4412_CPU_DIV1(2, 0, 3), },
124662306a36Sopenharmony_ci	{  500000, E4210_CPU_DIV0(1, 1, 3, 0, 4, 2), E4412_CPU_DIV1(2, 0, 3), },
124762306a36Sopenharmony_ci	{  400000, E4210_CPU_DIV0(1, 1, 3, 0, 4, 2), E4412_CPU_DIV1(1, 0, 3), },
124862306a36Sopenharmony_ci	{  300000, E4210_CPU_DIV0(1, 1, 2, 0, 4, 2), E4412_CPU_DIV1(1, 0, 3), },
124962306a36Sopenharmony_ci	{  200000, E4210_CPU_DIV0(1, 1, 1, 0, 3, 1), E4412_CPU_DIV1(0, 0, 3), },
125062306a36Sopenharmony_ci	{  0 },
125162306a36Sopenharmony_ci};
125262306a36Sopenharmony_ci
125362306a36Sopenharmony_cistatic const struct samsung_cpu_clock exynos4210_cpu_clks[] __initconst = {
125462306a36Sopenharmony_ci	CPU_CLK(CLK_ARM_CLK, "armclk", CLK_MOUT_APLL, CLK_SCLK_MPLL,
125562306a36Sopenharmony_ci			CLK_CPU_NEEDS_DEBUG_ALT_DIV | CLK_CPU_HAS_DIV1, 0x14200, e4210_armclk_d),
125662306a36Sopenharmony_ci};
125762306a36Sopenharmony_ci
125862306a36Sopenharmony_cistatic const struct samsung_cpu_clock exynos4212_cpu_clks[] __initconst = {
125962306a36Sopenharmony_ci	CPU_CLK(CLK_ARM_CLK, "armclk", CLK_MOUT_APLL, CLK_MOUT_MPLL_USER_C,
126062306a36Sopenharmony_ci		CLK_CPU_NEEDS_DEBUG_ALT_DIV | CLK_CPU_HAS_DIV1, 0x14200, e4212_armclk_d),
126162306a36Sopenharmony_ci};
126262306a36Sopenharmony_ci
126362306a36Sopenharmony_cistatic const struct samsung_cpu_clock exynos4412_cpu_clks[] __initconst = {
126462306a36Sopenharmony_ci	CPU_CLK(CLK_ARM_CLK, "armclk", CLK_MOUT_APLL, CLK_MOUT_MPLL_USER_C,
126562306a36Sopenharmony_ci			CLK_CPU_NEEDS_DEBUG_ALT_DIV | CLK_CPU_HAS_DIV1, 0x14200, e4412_armclk_d),
126662306a36Sopenharmony_ci};
126762306a36Sopenharmony_ci
126862306a36Sopenharmony_ci/* register exynos4 clocks */
126962306a36Sopenharmony_cistatic void __init exynos4_clk_init(struct device_node *np,
127062306a36Sopenharmony_ci				    enum exynos4_soc soc)
127162306a36Sopenharmony_ci{
127262306a36Sopenharmony_ci	struct samsung_clk_provider *ctx;
127362306a36Sopenharmony_ci	struct clk_hw **hws;
127462306a36Sopenharmony_ci
127562306a36Sopenharmony_ci	exynos4_soc = soc;
127662306a36Sopenharmony_ci
127762306a36Sopenharmony_ci	reg_base = of_iomap(np, 0);
127862306a36Sopenharmony_ci	if (!reg_base)
127962306a36Sopenharmony_ci		panic("%s: failed to map registers\n", __func__);
128062306a36Sopenharmony_ci
128162306a36Sopenharmony_ci	ctx = samsung_clk_init(NULL, reg_base, CLKS_NR);
128262306a36Sopenharmony_ci	hws = ctx->clk_data.hws;
128362306a36Sopenharmony_ci
128462306a36Sopenharmony_ci	samsung_clk_of_register_fixed_ext(ctx, exynos4_fixed_rate_ext_clks,
128562306a36Sopenharmony_ci			ARRAY_SIZE(exynos4_fixed_rate_ext_clks),
128662306a36Sopenharmony_ci			ext_clk_match);
128762306a36Sopenharmony_ci
128862306a36Sopenharmony_ci	exynos4_clk_register_finpll(ctx);
128962306a36Sopenharmony_ci
129062306a36Sopenharmony_ci	if (exynos4_soc == EXYNOS4210) {
129162306a36Sopenharmony_ci		samsung_clk_register_mux(ctx, exynos4210_mux_early,
129262306a36Sopenharmony_ci					ARRAY_SIZE(exynos4210_mux_early));
129362306a36Sopenharmony_ci
129462306a36Sopenharmony_ci		if (clk_hw_get_rate(hws[CLK_FIN_PLL]) == 24000000) {
129562306a36Sopenharmony_ci			exynos4210_plls[apll].rate_table =
129662306a36Sopenharmony_ci							exynos4210_apll_rates;
129762306a36Sopenharmony_ci			exynos4210_plls[epll].rate_table =
129862306a36Sopenharmony_ci							exynos4210_epll_rates;
129962306a36Sopenharmony_ci		}
130062306a36Sopenharmony_ci
130162306a36Sopenharmony_ci		if (clk_hw_get_rate(hws[CLK_MOUT_VPLLSRC]) == 24000000)
130262306a36Sopenharmony_ci			exynos4210_plls[vpll].rate_table =
130362306a36Sopenharmony_ci							exynos4210_vpll_rates;
130462306a36Sopenharmony_ci
130562306a36Sopenharmony_ci		samsung_clk_register_pll(ctx, exynos4210_plls,
130662306a36Sopenharmony_ci					ARRAY_SIZE(exynos4210_plls));
130762306a36Sopenharmony_ci	} else {
130862306a36Sopenharmony_ci		if (clk_hw_get_rate(hws[CLK_FIN_PLL]) == 24000000) {
130962306a36Sopenharmony_ci			exynos4x12_plls[apll].rate_table =
131062306a36Sopenharmony_ci							exynos4x12_apll_rates;
131162306a36Sopenharmony_ci			exynos4x12_plls[epll].rate_table =
131262306a36Sopenharmony_ci							exynos4x12_epll_rates;
131362306a36Sopenharmony_ci			exynos4x12_plls[vpll].rate_table =
131462306a36Sopenharmony_ci							exynos4x12_vpll_rates;
131562306a36Sopenharmony_ci		}
131662306a36Sopenharmony_ci
131762306a36Sopenharmony_ci		samsung_clk_register_pll(ctx, exynos4x12_plls,
131862306a36Sopenharmony_ci					ARRAY_SIZE(exynos4x12_plls));
131962306a36Sopenharmony_ci	}
132062306a36Sopenharmony_ci
132162306a36Sopenharmony_ci	samsung_clk_register_fixed_rate(ctx, exynos4_fixed_rate_clks,
132262306a36Sopenharmony_ci			ARRAY_SIZE(exynos4_fixed_rate_clks));
132362306a36Sopenharmony_ci	samsung_clk_register_mux(ctx, exynos4_mux_clks,
132462306a36Sopenharmony_ci			ARRAY_SIZE(exynos4_mux_clks));
132562306a36Sopenharmony_ci	samsung_clk_register_div(ctx, exynos4_div_clks,
132662306a36Sopenharmony_ci			ARRAY_SIZE(exynos4_div_clks));
132762306a36Sopenharmony_ci	samsung_clk_register_gate(ctx, exynos4_gate_clks,
132862306a36Sopenharmony_ci			ARRAY_SIZE(exynos4_gate_clks));
132962306a36Sopenharmony_ci	samsung_clk_register_fixed_factor(ctx, exynos4_fixed_factor_clks,
133062306a36Sopenharmony_ci			ARRAY_SIZE(exynos4_fixed_factor_clks));
133162306a36Sopenharmony_ci
133262306a36Sopenharmony_ci	if (exynos4_soc == EXYNOS4210) {
133362306a36Sopenharmony_ci		samsung_clk_register_fixed_rate(ctx, exynos4210_fixed_rate_clks,
133462306a36Sopenharmony_ci			ARRAY_SIZE(exynos4210_fixed_rate_clks));
133562306a36Sopenharmony_ci		samsung_clk_register_mux(ctx, exynos4210_mux_clks,
133662306a36Sopenharmony_ci			ARRAY_SIZE(exynos4210_mux_clks));
133762306a36Sopenharmony_ci		samsung_clk_register_div(ctx, exynos4210_div_clks,
133862306a36Sopenharmony_ci			ARRAY_SIZE(exynos4210_div_clks));
133962306a36Sopenharmony_ci		samsung_clk_register_gate(ctx, exynos4210_gate_clks,
134062306a36Sopenharmony_ci			ARRAY_SIZE(exynos4210_gate_clks));
134162306a36Sopenharmony_ci		samsung_clk_register_fixed_factor(ctx,
134262306a36Sopenharmony_ci			exynos4210_fixed_factor_clks,
134362306a36Sopenharmony_ci			ARRAY_SIZE(exynos4210_fixed_factor_clks));
134462306a36Sopenharmony_ci		samsung_clk_register_cpu(ctx, exynos4210_cpu_clks,
134562306a36Sopenharmony_ci				ARRAY_SIZE(exynos4210_cpu_clks));
134662306a36Sopenharmony_ci	} else {
134762306a36Sopenharmony_ci		samsung_clk_register_mux(ctx, exynos4x12_mux_clks,
134862306a36Sopenharmony_ci			ARRAY_SIZE(exynos4x12_mux_clks));
134962306a36Sopenharmony_ci		samsung_clk_register_div(ctx, exynos4x12_div_clks,
135062306a36Sopenharmony_ci			ARRAY_SIZE(exynos4x12_div_clks));
135162306a36Sopenharmony_ci		samsung_clk_register_gate(ctx, exynos4x12_gate_clks,
135262306a36Sopenharmony_ci			ARRAY_SIZE(exynos4x12_gate_clks));
135362306a36Sopenharmony_ci		samsung_clk_register_fixed_factor(ctx,
135462306a36Sopenharmony_ci			exynos4x12_fixed_factor_clks,
135562306a36Sopenharmony_ci			ARRAY_SIZE(exynos4x12_fixed_factor_clks));
135662306a36Sopenharmony_ci		if (soc == EXYNOS4412)
135762306a36Sopenharmony_ci			samsung_clk_register_cpu(ctx, exynos4412_cpu_clks,
135862306a36Sopenharmony_ci					ARRAY_SIZE(exynos4412_cpu_clks));
135962306a36Sopenharmony_ci		else
136062306a36Sopenharmony_ci			samsung_clk_register_cpu(ctx, exynos4212_cpu_clks,
136162306a36Sopenharmony_ci					ARRAY_SIZE(exynos4212_cpu_clks));
136262306a36Sopenharmony_ci	}
136362306a36Sopenharmony_ci
136462306a36Sopenharmony_ci	if (soc == EXYNOS4212 || soc == EXYNOS4412)
136562306a36Sopenharmony_ci		exynos4x12_core_down_clock();
136662306a36Sopenharmony_ci
136762306a36Sopenharmony_ci	samsung_clk_extended_sleep_init(reg_base,
136862306a36Sopenharmony_ci			exynos4_clk_regs, ARRAY_SIZE(exynos4_clk_regs),
136962306a36Sopenharmony_ci			src_mask_suspend, ARRAY_SIZE(src_mask_suspend));
137062306a36Sopenharmony_ci	if (exynos4_soc == EXYNOS4210)
137162306a36Sopenharmony_ci		samsung_clk_extended_sleep_init(reg_base,
137262306a36Sopenharmony_ci		    exynos4210_clk_save, ARRAY_SIZE(exynos4210_clk_save),
137362306a36Sopenharmony_ci		    src_mask_suspend_e4210, ARRAY_SIZE(src_mask_suspend_e4210));
137462306a36Sopenharmony_ci	else
137562306a36Sopenharmony_ci		samsung_clk_sleep_init(reg_base, exynos4x12_clk_save,
137662306a36Sopenharmony_ci				       ARRAY_SIZE(exynos4x12_clk_save));
137762306a36Sopenharmony_ci
137862306a36Sopenharmony_ci	samsung_clk_of_add_provider(np, ctx);
137962306a36Sopenharmony_ci
138062306a36Sopenharmony_ci	pr_info("%s clocks: sclk_apll = %ld, sclk_mpll = %ld\n"
138162306a36Sopenharmony_ci		"\tsclk_epll = %ld, sclk_vpll = %ld, arm_clk = %ld\n",
138262306a36Sopenharmony_ci		exynos4_soc == EXYNOS4210 ? "Exynos4210" : "Exynos4x12",
138362306a36Sopenharmony_ci		clk_hw_get_rate(hws[CLK_SCLK_APLL]),
138462306a36Sopenharmony_ci		clk_hw_get_rate(hws[CLK_SCLK_MPLL]),
138562306a36Sopenharmony_ci		clk_hw_get_rate(hws[CLK_SCLK_EPLL]),
138662306a36Sopenharmony_ci		clk_hw_get_rate(hws[CLK_SCLK_VPLL]),
138762306a36Sopenharmony_ci		clk_hw_get_rate(hws[CLK_DIV_CORE2]));
138862306a36Sopenharmony_ci}
138962306a36Sopenharmony_ci
139062306a36Sopenharmony_ci
139162306a36Sopenharmony_cistatic void __init exynos4210_clk_init(struct device_node *np)
139262306a36Sopenharmony_ci{
139362306a36Sopenharmony_ci	exynos4_clk_init(np, EXYNOS4210);
139462306a36Sopenharmony_ci}
139562306a36Sopenharmony_ciCLK_OF_DECLARE(exynos4210_clk, "samsung,exynos4210-clock", exynos4210_clk_init);
139662306a36Sopenharmony_ci
139762306a36Sopenharmony_cistatic void __init exynos4212_clk_init(struct device_node *np)
139862306a36Sopenharmony_ci{
139962306a36Sopenharmony_ci	exynos4_clk_init(np, EXYNOS4212);
140062306a36Sopenharmony_ci}
140162306a36Sopenharmony_ciCLK_OF_DECLARE(exynos4212_clk, "samsung,exynos4212-clock", exynos4212_clk_init);
140262306a36Sopenharmony_ci
140362306a36Sopenharmony_cistatic void __init exynos4412_clk_init(struct device_node *np)
140462306a36Sopenharmony_ci{
140562306a36Sopenharmony_ci	exynos4_clk_init(np, EXYNOS4412);
140662306a36Sopenharmony_ci}
140762306a36Sopenharmony_ciCLK_OF_DECLARE(exynos4412_clk, "samsung,exynos4412-clock", exynos4412_clk_init);
1408