162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2013 Samsung Electronics Co., Ltd.
462306a36Sopenharmony_ci * Authors: Thomas Abraham <thomas.ab@samsung.com>
562306a36Sopenharmony_ci *	    Chander Kashyap <k.chander@samsung.com>
662306a36Sopenharmony_ci *
762306a36Sopenharmony_ci * Common Clock Framework support for Exynos5420 SoC.
862306a36Sopenharmony_ci*/
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#include <dt-bindings/clock/exynos5420.h>
1162306a36Sopenharmony_ci#include <linux/slab.h>
1262306a36Sopenharmony_ci#include <linux/clk-provider.h>
1362306a36Sopenharmony_ci#include <linux/of.h>
1462306a36Sopenharmony_ci#include <linux/of_address.h>
1562306a36Sopenharmony_ci#include <linux/clk.h>
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#include "clk.h"
1862306a36Sopenharmony_ci#include "clk-cpu.h"
1962306a36Sopenharmony_ci#include "clk-exynos5-subcmu.h"
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci#define APLL_LOCK		0x0
2262306a36Sopenharmony_ci#define APLL_CON0		0x100
2362306a36Sopenharmony_ci#define SRC_CPU			0x200
2462306a36Sopenharmony_ci#define DIV_CPU0		0x500
2562306a36Sopenharmony_ci#define DIV_CPU1		0x504
2662306a36Sopenharmony_ci#define GATE_BUS_CPU		0x700
2762306a36Sopenharmony_ci#define GATE_SCLK_CPU		0x800
2862306a36Sopenharmony_ci#define CLKOUT_CMU_CPU		0xa00
2962306a36Sopenharmony_ci#define SRC_MASK_CPERI		0x4300
3062306a36Sopenharmony_ci#define GATE_IP_G2D		0x8800
3162306a36Sopenharmony_ci#define CPLL_LOCK		0x10020
3262306a36Sopenharmony_ci#define DPLL_LOCK		0x10030
3362306a36Sopenharmony_ci#define EPLL_LOCK		0x10040
3462306a36Sopenharmony_ci#define RPLL_LOCK		0x10050
3562306a36Sopenharmony_ci#define IPLL_LOCK		0x10060
3662306a36Sopenharmony_ci#define SPLL_LOCK		0x10070
3762306a36Sopenharmony_ci#define VPLL_LOCK		0x10080
3862306a36Sopenharmony_ci#define MPLL_LOCK		0x10090
3962306a36Sopenharmony_ci#define CPLL_CON0		0x10120
4062306a36Sopenharmony_ci#define DPLL_CON0		0x10128
4162306a36Sopenharmony_ci#define EPLL_CON0		0x10130
4262306a36Sopenharmony_ci#define EPLL_CON1		0x10134
4362306a36Sopenharmony_ci#define EPLL_CON2		0x10138
4462306a36Sopenharmony_ci#define RPLL_CON0		0x10140
4562306a36Sopenharmony_ci#define RPLL_CON1		0x10144
4662306a36Sopenharmony_ci#define RPLL_CON2		0x10148
4762306a36Sopenharmony_ci#define IPLL_CON0		0x10150
4862306a36Sopenharmony_ci#define SPLL_CON0		0x10160
4962306a36Sopenharmony_ci#define VPLL_CON0		0x10170
5062306a36Sopenharmony_ci#define MPLL_CON0		0x10180
5162306a36Sopenharmony_ci#define SRC_TOP0		0x10200
5262306a36Sopenharmony_ci#define SRC_TOP1		0x10204
5362306a36Sopenharmony_ci#define SRC_TOP2		0x10208
5462306a36Sopenharmony_ci#define SRC_TOP3		0x1020c
5562306a36Sopenharmony_ci#define SRC_TOP4		0x10210
5662306a36Sopenharmony_ci#define SRC_TOP5		0x10214
5762306a36Sopenharmony_ci#define SRC_TOP6		0x10218
5862306a36Sopenharmony_ci#define SRC_TOP7		0x1021c
5962306a36Sopenharmony_ci#define SRC_TOP8		0x10220 /* 5800 specific */
6062306a36Sopenharmony_ci#define SRC_TOP9		0x10224 /* 5800 specific */
6162306a36Sopenharmony_ci#define SRC_DISP10		0x1022c
6262306a36Sopenharmony_ci#define SRC_MAU			0x10240
6362306a36Sopenharmony_ci#define SRC_FSYS		0x10244
6462306a36Sopenharmony_ci#define SRC_PERIC0		0x10250
6562306a36Sopenharmony_ci#define SRC_PERIC1		0x10254
6662306a36Sopenharmony_ci#define SRC_ISP			0x10270
6762306a36Sopenharmony_ci#define SRC_CAM			0x10274 /* 5800 specific */
6862306a36Sopenharmony_ci#define SRC_TOP10		0x10280
6962306a36Sopenharmony_ci#define SRC_TOP11		0x10284
7062306a36Sopenharmony_ci#define SRC_TOP12		0x10288
7162306a36Sopenharmony_ci#define SRC_TOP13		0x1028c /* 5800 specific */
7262306a36Sopenharmony_ci#define SRC_MASK_TOP0		0x10300
7362306a36Sopenharmony_ci#define SRC_MASK_TOP1		0x10304
7462306a36Sopenharmony_ci#define SRC_MASK_TOP2		0x10308
7562306a36Sopenharmony_ci#define SRC_MASK_TOP7		0x1031c
7662306a36Sopenharmony_ci#define SRC_MASK_DISP10		0x1032c
7762306a36Sopenharmony_ci#define SRC_MASK_MAU		0x10334
7862306a36Sopenharmony_ci#define SRC_MASK_FSYS		0x10340
7962306a36Sopenharmony_ci#define SRC_MASK_PERIC0		0x10350
8062306a36Sopenharmony_ci#define SRC_MASK_PERIC1		0x10354
8162306a36Sopenharmony_ci#define SRC_MASK_ISP		0x10370
8262306a36Sopenharmony_ci#define DIV_TOP0		0x10500
8362306a36Sopenharmony_ci#define DIV_TOP1		0x10504
8462306a36Sopenharmony_ci#define DIV_TOP2		0x10508
8562306a36Sopenharmony_ci#define DIV_TOP8		0x10520 /* 5800 specific */
8662306a36Sopenharmony_ci#define DIV_TOP9		0x10524 /* 5800 specific */
8762306a36Sopenharmony_ci#define DIV_DISP10		0x1052c
8862306a36Sopenharmony_ci#define DIV_MAU			0x10544
8962306a36Sopenharmony_ci#define DIV_FSYS0		0x10548
9062306a36Sopenharmony_ci#define DIV_FSYS1		0x1054c
9162306a36Sopenharmony_ci#define DIV_FSYS2		0x10550
9262306a36Sopenharmony_ci#define DIV_PERIC0		0x10558
9362306a36Sopenharmony_ci#define DIV_PERIC1		0x1055c
9462306a36Sopenharmony_ci#define DIV_PERIC2		0x10560
9562306a36Sopenharmony_ci#define DIV_PERIC3		0x10564
9662306a36Sopenharmony_ci#define DIV_PERIC4		0x10568
9762306a36Sopenharmony_ci#define DIV_CAM			0x10574 /* 5800 specific */
9862306a36Sopenharmony_ci#define SCLK_DIV_ISP0		0x10580
9962306a36Sopenharmony_ci#define SCLK_DIV_ISP1		0x10584
10062306a36Sopenharmony_ci#define DIV2_RATIO0		0x10590
10162306a36Sopenharmony_ci#define DIV4_RATIO		0x105a0
10262306a36Sopenharmony_ci#define GATE_BUS_TOP		0x10700
10362306a36Sopenharmony_ci#define GATE_BUS_DISP1		0x10728
10462306a36Sopenharmony_ci#define GATE_BUS_GEN		0x1073c
10562306a36Sopenharmony_ci#define GATE_BUS_FSYS0		0x10740
10662306a36Sopenharmony_ci#define GATE_BUS_FSYS2		0x10748
10762306a36Sopenharmony_ci#define GATE_BUS_PERIC		0x10750
10862306a36Sopenharmony_ci#define GATE_BUS_PERIC1		0x10754
10962306a36Sopenharmony_ci#define GATE_BUS_PERIS0		0x10760
11062306a36Sopenharmony_ci#define GATE_BUS_PERIS1		0x10764
11162306a36Sopenharmony_ci#define GATE_BUS_NOC		0x10770
11262306a36Sopenharmony_ci#define GATE_TOP_SCLK_ISP	0x10870
11362306a36Sopenharmony_ci#define GATE_IP_GSCL0		0x10910
11462306a36Sopenharmony_ci#define GATE_IP_GSCL1		0x10920
11562306a36Sopenharmony_ci#define GATE_IP_CAM		0x10924 /* 5800 specific */
11662306a36Sopenharmony_ci#define GATE_IP_MFC		0x1092c
11762306a36Sopenharmony_ci#define GATE_IP_DISP1		0x10928
11862306a36Sopenharmony_ci#define GATE_IP_G3D		0x10930
11962306a36Sopenharmony_ci#define GATE_IP_GEN		0x10934
12062306a36Sopenharmony_ci#define GATE_IP_FSYS		0x10944
12162306a36Sopenharmony_ci#define GATE_IP_PERIC		0x10950
12262306a36Sopenharmony_ci#define GATE_IP_PERIS		0x10960
12362306a36Sopenharmony_ci#define GATE_IP_MSCL		0x10970
12462306a36Sopenharmony_ci#define GATE_TOP_SCLK_GSCL	0x10820
12562306a36Sopenharmony_ci#define GATE_TOP_SCLK_DISP1	0x10828
12662306a36Sopenharmony_ci#define GATE_TOP_SCLK_MAU	0x1083c
12762306a36Sopenharmony_ci#define GATE_TOP_SCLK_FSYS	0x10840
12862306a36Sopenharmony_ci#define GATE_TOP_SCLK_PERIC	0x10850
12962306a36Sopenharmony_ci#define TOP_SPARE2		0x10b08
13062306a36Sopenharmony_ci#define BPLL_LOCK		0x20010
13162306a36Sopenharmony_ci#define BPLL_CON0		0x20110
13262306a36Sopenharmony_ci#define SRC_CDREX		0x20200
13362306a36Sopenharmony_ci#define DIV_CDREX0		0x20500
13462306a36Sopenharmony_ci#define DIV_CDREX1		0x20504
13562306a36Sopenharmony_ci#define GATE_BUS_CDREX0		0x20700
13662306a36Sopenharmony_ci#define GATE_BUS_CDREX1		0x20704
13762306a36Sopenharmony_ci#define KPLL_LOCK		0x28000
13862306a36Sopenharmony_ci#define KPLL_CON0		0x28100
13962306a36Sopenharmony_ci#define SRC_KFC			0x28200
14062306a36Sopenharmony_ci#define DIV_KFC0		0x28500
14162306a36Sopenharmony_ci
14262306a36Sopenharmony_ci/* NOTE: Must be equal to the last clock ID increased by one */
14362306a36Sopenharmony_ci#define CLKS_NR			(CLK_DOUT_PCLK_DREX1 + 1)
14462306a36Sopenharmony_ci
14562306a36Sopenharmony_ci/* Exynos5x SoC type */
14662306a36Sopenharmony_cienum exynos5x_soc {
14762306a36Sopenharmony_ci	EXYNOS5420,
14862306a36Sopenharmony_ci	EXYNOS5800,
14962306a36Sopenharmony_ci};
15062306a36Sopenharmony_ci
15162306a36Sopenharmony_ci/* list of PLLs */
15262306a36Sopenharmony_cienum exynos5x_plls {
15362306a36Sopenharmony_ci	apll, cpll, dpll, epll, rpll, ipll, spll, vpll, mpll,
15462306a36Sopenharmony_ci	bpll, kpll,
15562306a36Sopenharmony_ci	nr_plls			/* number of PLLs */
15662306a36Sopenharmony_ci};
15762306a36Sopenharmony_ci
15862306a36Sopenharmony_cistatic void __iomem *reg_base;
15962306a36Sopenharmony_cistatic enum exynos5x_soc exynos5x_soc;
16062306a36Sopenharmony_ci
16162306a36Sopenharmony_ci/*
16262306a36Sopenharmony_ci * list of controller registers to be saved and restored during a
16362306a36Sopenharmony_ci * suspend/resume cycle.
16462306a36Sopenharmony_ci */
16562306a36Sopenharmony_cistatic const unsigned long exynos5x_clk_regs[] __initconst = {
16662306a36Sopenharmony_ci	SRC_CPU,
16762306a36Sopenharmony_ci	DIV_CPU0,
16862306a36Sopenharmony_ci	DIV_CPU1,
16962306a36Sopenharmony_ci	GATE_BUS_CPU,
17062306a36Sopenharmony_ci	GATE_SCLK_CPU,
17162306a36Sopenharmony_ci	CLKOUT_CMU_CPU,
17262306a36Sopenharmony_ci	APLL_CON0,
17362306a36Sopenharmony_ci	KPLL_CON0,
17462306a36Sopenharmony_ci	CPLL_CON0,
17562306a36Sopenharmony_ci	DPLL_CON0,
17662306a36Sopenharmony_ci	EPLL_CON0,
17762306a36Sopenharmony_ci	EPLL_CON1,
17862306a36Sopenharmony_ci	EPLL_CON2,
17962306a36Sopenharmony_ci	RPLL_CON0,
18062306a36Sopenharmony_ci	RPLL_CON1,
18162306a36Sopenharmony_ci	RPLL_CON2,
18262306a36Sopenharmony_ci	IPLL_CON0,
18362306a36Sopenharmony_ci	SPLL_CON0,
18462306a36Sopenharmony_ci	VPLL_CON0,
18562306a36Sopenharmony_ci	MPLL_CON0,
18662306a36Sopenharmony_ci	SRC_TOP0,
18762306a36Sopenharmony_ci	SRC_TOP1,
18862306a36Sopenharmony_ci	SRC_TOP2,
18962306a36Sopenharmony_ci	SRC_TOP3,
19062306a36Sopenharmony_ci	SRC_TOP4,
19162306a36Sopenharmony_ci	SRC_TOP5,
19262306a36Sopenharmony_ci	SRC_TOP6,
19362306a36Sopenharmony_ci	SRC_TOP7,
19462306a36Sopenharmony_ci	SRC_DISP10,
19562306a36Sopenharmony_ci	SRC_MAU,
19662306a36Sopenharmony_ci	SRC_FSYS,
19762306a36Sopenharmony_ci	SRC_PERIC0,
19862306a36Sopenharmony_ci	SRC_PERIC1,
19962306a36Sopenharmony_ci	SRC_TOP10,
20062306a36Sopenharmony_ci	SRC_TOP11,
20162306a36Sopenharmony_ci	SRC_TOP12,
20262306a36Sopenharmony_ci	SRC_MASK_TOP2,
20362306a36Sopenharmony_ci	SRC_MASK_TOP7,
20462306a36Sopenharmony_ci	SRC_MASK_DISP10,
20562306a36Sopenharmony_ci	SRC_MASK_FSYS,
20662306a36Sopenharmony_ci	SRC_MASK_PERIC0,
20762306a36Sopenharmony_ci	SRC_MASK_PERIC1,
20862306a36Sopenharmony_ci	SRC_MASK_TOP0,
20962306a36Sopenharmony_ci	SRC_MASK_TOP1,
21062306a36Sopenharmony_ci	SRC_MASK_MAU,
21162306a36Sopenharmony_ci	SRC_MASK_ISP,
21262306a36Sopenharmony_ci	SRC_ISP,
21362306a36Sopenharmony_ci	DIV_TOP0,
21462306a36Sopenharmony_ci	DIV_TOP1,
21562306a36Sopenharmony_ci	DIV_TOP2,
21662306a36Sopenharmony_ci	DIV_DISP10,
21762306a36Sopenharmony_ci	DIV_MAU,
21862306a36Sopenharmony_ci	DIV_FSYS0,
21962306a36Sopenharmony_ci	DIV_FSYS1,
22062306a36Sopenharmony_ci	DIV_FSYS2,
22162306a36Sopenharmony_ci	DIV_PERIC0,
22262306a36Sopenharmony_ci	DIV_PERIC1,
22362306a36Sopenharmony_ci	DIV_PERIC2,
22462306a36Sopenharmony_ci	DIV_PERIC3,
22562306a36Sopenharmony_ci	DIV_PERIC4,
22662306a36Sopenharmony_ci	SCLK_DIV_ISP0,
22762306a36Sopenharmony_ci	SCLK_DIV_ISP1,
22862306a36Sopenharmony_ci	DIV2_RATIO0,
22962306a36Sopenharmony_ci	DIV4_RATIO,
23062306a36Sopenharmony_ci	GATE_BUS_DISP1,
23162306a36Sopenharmony_ci	GATE_BUS_TOP,
23262306a36Sopenharmony_ci	GATE_BUS_GEN,
23362306a36Sopenharmony_ci	GATE_BUS_FSYS0,
23462306a36Sopenharmony_ci	GATE_BUS_FSYS2,
23562306a36Sopenharmony_ci	GATE_BUS_PERIC,
23662306a36Sopenharmony_ci	GATE_BUS_PERIC1,
23762306a36Sopenharmony_ci	GATE_BUS_PERIS0,
23862306a36Sopenharmony_ci	GATE_BUS_PERIS1,
23962306a36Sopenharmony_ci	GATE_BUS_NOC,
24062306a36Sopenharmony_ci	GATE_TOP_SCLK_ISP,
24162306a36Sopenharmony_ci	GATE_IP_GSCL0,
24262306a36Sopenharmony_ci	GATE_IP_GSCL1,
24362306a36Sopenharmony_ci	GATE_IP_MFC,
24462306a36Sopenharmony_ci	GATE_IP_DISP1,
24562306a36Sopenharmony_ci	GATE_IP_G3D,
24662306a36Sopenharmony_ci	GATE_IP_GEN,
24762306a36Sopenharmony_ci	GATE_IP_FSYS,
24862306a36Sopenharmony_ci	GATE_IP_PERIC,
24962306a36Sopenharmony_ci	GATE_IP_PERIS,
25062306a36Sopenharmony_ci	GATE_IP_MSCL,
25162306a36Sopenharmony_ci	GATE_TOP_SCLK_GSCL,
25262306a36Sopenharmony_ci	GATE_TOP_SCLK_DISP1,
25362306a36Sopenharmony_ci	GATE_TOP_SCLK_MAU,
25462306a36Sopenharmony_ci	GATE_TOP_SCLK_FSYS,
25562306a36Sopenharmony_ci	GATE_TOP_SCLK_PERIC,
25662306a36Sopenharmony_ci	TOP_SPARE2,
25762306a36Sopenharmony_ci	SRC_CDREX,
25862306a36Sopenharmony_ci	DIV_CDREX0,
25962306a36Sopenharmony_ci	DIV_CDREX1,
26062306a36Sopenharmony_ci	SRC_KFC,
26162306a36Sopenharmony_ci	DIV_KFC0,
26262306a36Sopenharmony_ci	GATE_BUS_CDREX0,
26362306a36Sopenharmony_ci	GATE_BUS_CDREX1,
26462306a36Sopenharmony_ci};
26562306a36Sopenharmony_ci
26662306a36Sopenharmony_cistatic const unsigned long exynos5800_clk_regs[] __initconst = {
26762306a36Sopenharmony_ci	SRC_TOP8,
26862306a36Sopenharmony_ci	SRC_TOP9,
26962306a36Sopenharmony_ci	SRC_CAM,
27062306a36Sopenharmony_ci	SRC_TOP1,
27162306a36Sopenharmony_ci	DIV_TOP8,
27262306a36Sopenharmony_ci	DIV_TOP9,
27362306a36Sopenharmony_ci	DIV_CAM,
27462306a36Sopenharmony_ci	GATE_IP_CAM,
27562306a36Sopenharmony_ci};
27662306a36Sopenharmony_ci
27762306a36Sopenharmony_cistatic const struct samsung_clk_reg_dump exynos5420_set_clksrc[] = {
27862306a36Sopenharmony_ci	{ .offset = SRC_MASK_CPERI,		.value = 0xffffffff, },
27962306a36Sopenharmony_ci	{ .offset = SRC_MASK_TOP0,		.value = 0x11111111, },
28062306a36Sopenharmony_ci	{ .offset = SRC_MASK_TOP1,		.value = 0x11101111, },
28162306a36Sopenharmony_ci	{ .offset = SRC_MASK_TOP2,		.value = 0x11111110, },
28262306a36Sopenharmony_ci	{ .offset = SRC_MASK_TOP7,		.value = 0x00111100, },
28362306a36Sopenharmony_ci	{ .offset = SRC_MASK_DISP10,		.value = 0x11111110, },
28462306a36Sopenharmony_ci	{ .offset = SRC_MASK_MAU,		.value = 0x10000000, },
28562306a36Sopenharmony_ci	{ .offset = SRC_MASK_FSYS,		.value = 0x11111110, },
28662306a36Sopenharmony_ci	{ .offset = SRC_MASK_PERIC0,		.value = 0x11111110, },
28762306a36Sopenharmony_ci	{ .offset = SRC_MASK_PERIC1,		.value = 0x11111100, },
28862306a36Sopenharmony_ci	{ .offset = SRC_MASK_ISP,		.value = 0x11111000, },
28962306a36Sopenharmony_ci	{ .offset = GATE_BUS_TOP,		.value = 0xffffffff, },
29062306a36Sopenharmony_ci	{ .offset = GATE_BUS_DISP1,		.value = 0xffffffff, },
29162306a36Sopenharmony_ci	{ .offset = GATE_IP_PERIC,		.value = 0xffffffff, },
29262306a36Sopenharmony_ci	{ .offset = GATE_IP_PERIS,		.value = 0xffffffff, },
29362306a36Sopenharmony_ci};
29462306a36Sopenharmony_ci
29562306a36Sopenharmony_ci/* list of all parent clocks */
29662306a36Sopenharmony_ciPNAME(mout_mspll_cpu_p) = {"mout_sclk_cpll", "mout_sclk_dpll",
29762306a36Sopenharmony_ci				"mout_sclk_mpll", "mout_sclk_spll"};
29862306a36Sopenharmony_ciPNAME(mout_cpu_p) = {"mout_apll" , "mout_mspll_cpu"};
29962306a36Sopenharmony_ciPNAME(mout_kfc_p) = {"mout_kpll" , "mout_mspll_kfc"};
30062306a36Sopenharmony_ciPNAME(mout_apll_p) = {"fin_pll", "fout_apll"};
30162306a36Sopenharmony_ciPNAME(mout_bpll_p) = {"fin_pll", "fout_bpll"};
30262306a36Sopenharmony_ciPNAME(mout_cpll_p) = {"fin_pll", "fout_cpll"};
30362306a36Sopenharmony_ciPNAME(mout_dpll_p) = {"fin_pll", "fout_dpll"};
30462306a36Sopenharmony_ciPNAME(mout_epll_p) = {"fin_pll", "fout_epll"};
30562306a36Sopenharmony_ciPNAME(mout_ipll_p) = {"fin_pll", "fout_ipll"};
30662306a36Sopenharmony_ciPNAME(mout_kpll_p) = {"fin_pll", "fout_kpll"};
30762306a36Sopenharmony_ciPNAME(mout_mpll_p) = {"fin_pll", "fout_mpll"};
30862306a36Sopenharmony_ciPNAME(mout_rpll_p) = {"fin_pll", "fout_rpll"};
30962306a36Sopenharmony_ciPNAME(mout_spll_p) = {"fin_pll", "fout_spll"};
31062306a36Sopenharmony_ciPNAME(mout_vpll_p) = {"fin_pll", "fout_vpll"};
31162306a36Sopenharmony_ci
31262306a36Sopenharmony_ciPNAME(mout_group1_p) = {"mout_sclk_cpll", "mout_sclk_dpll",
31362306a36Sopenharmony_ci					"mout_sclk_mpll"};
31462306a36Sopenharmony_ciPNAME(mout_group2_p) = {"fin_pll", "mout_sclk_cpll",
31562306a36Sopenharmony_ci			"mout_sclk_dpll", "mout_sclk_mpll", "mout_sclk_spll",
31662306a36Sopenharmony_ci			"mout_sclk_ipll", "mout_sclk_epll", "mout_sclk_rpll"};
31762306a36Sopenharmony_ciPNAME(mout_group3_p) = {"mout_sclk_rpll", "mout_sclk_spll"};
31862306a36Sopenharmony_ciPNAME(mout_group4_p) = {"mout_sclk_ipll", "mout_sclk_dpll", "mout_sclk_mpll"};
31962306a36Sopenharmony_ciPNAME(mout_group5_p) = {"mout_sclk_vpll", "mout_sclk_dpll"};
32062306a36Sopenharmony_ci
32162306a36Sopenharmony_ciPNAME(mout_fimd1_final_p) = {"mout_fimd1", "mout_fimd1_opt"};
32262306a36Sopenharmony_ciPNAME(mout_sw_aclk66_p)	= {"dout_aclk66", "mout_sclk_spll"};
32362306a36Sopenharmony_ciPNAME(mout_user_aclk66_peric_p)	= { "fin_pll", "mout_sw_aclk66"};
32462306a36Sopenharmony_ciPNAME(mout_user_pclk66_gpio_p) = {"mout_sw_aclk66", "ff_sw_aclk66"};
32562306a36Sopenharmony_ci
32662306a36Sopenharmony_ciPNAME(mout_sw_aclk200_fsys_p) = {"dout_aclk200_fsys", "mout_sclk_spll"};
32762306a36Sopenharmony_ciPNAME(mout_sw_pclk200_fsys_p) = {"dout_pclk200_fsys", "mout_sclk_spll"};
32862306a36Sopenharmony_ciPNAME(mout_user_pclk200_fsys_p)	= {"fin_pll", "mout_sw_pclk200_fsys"};
32962306a36Sopenharmony_ciPNAME(mout_user_aclk200_fsys_p)	= {"fin_pll", "mout_sw_aclk200_fsys"};
33062306a36Sopenharmony_ci
33162306a36Sopenharmony_ciPNAME(mout_sw_aclk200_fsys2_p) = {"dout_aclk200_fsys2", "mout_sclk_spll"};
33262306a36Sopenharmony_ciPNAME(mout_user_aclk200_fsys2_p) = {"fin_pll", "mout_sw_aclk200_fsys2"};
33362306a36Sopenharmony_ciPNAME(mout_sw_aclk100_noc_p) = {"dout_aclk100_noc", "mout_sclk_spll"};
33462306a36Sopenharmony_ciPNAME(mout_user_aclk100_noc_p) = {"fin_pll", "mout_sw_aclk100_noc"};
33562306a36Sopenharmony_ci
33662306a36Sopenharmony_ciPNAME(mout_sw_aclk400_wcore_p) = {"dout_aclk400_wcore", "mout_sclk_spll"};
33762306a36Sopenharmony_ciPNAME(mout_aclk400_wcore_bpll_p) = {"mout_aclk400_wcore", "sclk_bpll"};
33862306a36Sopenharmony_ciPNAME(mout_user_aclk400_wcore_p) = {"fin_pll", "mout_sw_aclk400_wcore"};
33962306a36Sopenharmony_ci
34062306a36Sopenharmony_ciPNAME(mout_sw_aclk400_isp_p) = {"dout_aclk400_isp", "mout_sclk_spll"};
34162306a36Sopenharmony_ciPNAME(mout_user_aclk400_isp_p) = {"fin_pll", "mout_sw_aclk400_isp"};
34262306a36Sopenharmony_ci
34362306a36Sopenharmony_ciPNAME(mout_sw_aclk333_432_isp0_p) = {"dout_aclk333_432_isp0",
34462306a36Sopenharmony_ci					"mout_sclk_spll"};
34562306a36Sopenharmony_ciPNAME(mout_user_aclk333_432_isp0_p) = {"fin_pll", "mout_sw_aclk333_432_isp0"};
34662306a36Sopenharmony_ci
34762306a36Sopenharmony_ciPNAME(mout_sw_aclk333_432_isp_p) = {"dout_aclk333_432_isp", "mout_sclk_spll"};
34862306a36Sopenharmony_ciPNAME(mout_user_aclk333_432_isp_p) = {"fin_pll", "mout_sw_aclk333_432_isp"};
34962306a36Sopenharmony_ci
35062306a36Sopenharmony_ciPNAME(mout_sw_aclk200_p) = {"dout_aclk200", "mout_sclk_spll"};
35162306a36Sopenharmony_ciPNAME(mout_user_aclk200_disp1_p) = {"fin_pll", "mout_sw_aclk200"};
35262306a36Sopenharmony_ci
35362306a36Sopenharmony_ciPNAME(mout_sw_aclk400_mscl_p) = {"dout_aclk400_mscl", "mout_sclk_spll"};
35462306a36Sopenharmony_ciPNAME(mout_user_aclk400_mscl_p)	= {"fin_pll", "mout_sw_aclk400_mscl"};
35562306a36Sopenharmony_ci
35662306a36Sopenharmony_ciPNAME(mout_sw_aclk333_p) = {"dout_aclk333", "mout_sclk_spll"};
35762306a36Sopenharmony_ciPNAME(mout_user_aclk333_p) = {"fin_pll", "mout_sw_aclk333"};
35862306a36Sopenharmony_ci
35962306a36Sopenharmony_ciPNAME(mout_sw_aclk166_p) = {"dout_aclk166", "mout_sclk_spll"};
36062306a36Sopenharmony_ciPNAME(mout_user_aclk166_p) = {"fin_pll", "mout_sw_aclk166"};
36162306a36Sopenharmony_ci
36262306a36Sopenharmony_ciPNAME(mout_sw_aclk266_p) = {"dout_aclk266", "mout_sclk_spll"};
36362306a36Sopenharmony_ciPNAME(mout_user_aclk266_p) = {"fin_pll", "mout_sw_aclk266"};
36462306a36Sopenharmony_ciPNAME(mout_user_aclk266_isp_p) = {"fin_pll", "mout_sw_aclk266"};
36562306a36Sopenharmony_ci
36662306a36Sopenharmony_ciPNAME(mout_sw_aclk333_432_gscl_p) = {"dout_aclk333_432_gscl", "mout_sclk_spll"};
36762306a36Sopenharmony_ciPNAME(mout_user_aclk333_432_gscl_p) = {"fin_pll", "mout_sw_aclk333_432_gscl"};
36862306a36Sopenharmony_ci
36962306a36Sopenharmony_ciPNAME(mout_sw_aclk300_gscl_p) = {"dout_aclk300_gscl", "mout_sclk_spll"};
37062306a36Sopenharmony_ciPNAME(mout_user_aclk300_gscl_p)	= {"fin_pll", "mout_sw_aclk300_gscl"};
37162306a36Sopenharmony_ci
37262306a36Sopenharmony_ciPNAME(mout_sw_aclk300_disp1_p) = {"dout_aclk300_disp1", "mout_sclk_spll"};
37362306a36Sopenharmony_ciPNAME(mout_sw_aclk400_disp1_p) = {"dout_aclk400_disp1", "mout_sclk_spll"};
37462306a36Sopenharmony_ciPNAME(mout_user_aclk300_disp1_p) = {"fin_pll", "mout_sw_aclk300_disp1"};
37562306a36Sopenharmony_ciPNAME(mout_user_aclk400_disp1_p) = {"fin_pll", "mout_sw_aclk400_disp1"};
37662306a36Sopenharmony_ci
37762306a36Sopenharmony_ciPNAME(mout_sw_aclk300_jpeg_p) = {"dout_aclk300_jpeg", "mout_sclk_spll"};
37862306a36Sopenharmony_ciPNAME(mout_user_aclk300_jpeg_p) = {"fin_pll", "mout_sw_aclk300_jpeg"};
37962306a36Sopenharmony_ci
38062306a36Sopenharmony_ciPNAME(mout_sw_aclk_g3d_p) = {"dout_aclk_g3d", "mout_sclk_spll"};
38162306a36Sopenharmony_ciPNAME(mout_user_aclk_g3d_p) = {"fin_pll", "mout_sw_aclk_g3d"};
38262306a36Sopenharmony_ci
38362306a36Sopenharmony_ciPNAME(mout_sw_aclk266_g2d_p) = {"dout_aclk266_g2d", "mout_sclk_spll"};
38462306a36Sopenharmony_ciPNAME(mout_user_aclk266_g2d_p) = {"fin_pll", "mout_sw_aclk266_g2d"};
38562306a36Sopenharmony_ci
38662306a36Sopenharmony_ciPNAME(mout_sw_aclk333_g2d_p) = {"dout_aclk333_g2d", "mout_sclk_spll"};
38762306a36Sopenharmony_ciPNAME(mout_user_aclk333_g2d_p) = {"fin_pll", "mout_sw_aclk333_g2d"};
38862306a36Sopenharmony_ci
38962306a36Sopenharmony_ciPNAME(mout_audio0_p) = {"fin_pll", "cdclk0", "mout_sclk_dpll",
39062306a36Sopenharmony_ci			"mout_sclk_mpll", "mout_sclk_spll", "mout_sclk_ipll",
39162306a36Sopenharmony_ci			"mout_sclk_epll", "mout_sclk_rpll"};
39262306a36Sopenharmony_ciPNAME(mout_audio1_p) = {"fin_pll", "cdclk1", "mout_sclk_dpll",
39362306a36Sopenharmony_ci			"mout_sclk_mpll", "mout_sclk_spll", "mout_sclk_ipll",
39462306a36Sopenharmony_ci			"mout_sclk_epll", "mout_sclk_rpll"};
39562306a36Sopenharmony_ciPNAME(mout_audio2_p) = {"fin_pll", "cdclk2", "mout_sclk_dpll",
39662306a36Sopenharmony_ci			"mout_sclk_mpll", "mout_sclk_spll", "mout_sclk_ipll",
39762306a36Sopenharmony_ci			"mout_sclk_epll", "mout_sclk_rpll"};
39862306a36Sopenharmony_ciPNAME(mout_spdif_p) = {"fin_pll", "dout_audio0", "dout_audio1",
39962306a36Sopenharmony_ci			"dout_audio2", "spdif_extclk", "mout_sclk_ipll",
40062306a36Sopenharmony_ci			"mout_sclk_epll", "mout_sclk_rpll"};
40162306a36Sopenharmony_ciPNAME(mout_hdmi_p) = {"dout_hdmi_pixel", "sclk_hdmiphy"};
40262306a36Sopenharmony_ciPNAME(mout_maudio0_p) = {"fin_pll", "maudio_clk", "mout_sclk_dpll",
40362306a36Sopenharmony_ci			 "mout_sclk_mpll", "mout_sclk_spll", "mout_sclk_ipll",
40462306a36Sopenharmony_ci			 "mout_sclk_epll", "mout_sclk_rpll"};
40562306a36Sopenharmony_ciPNAME(mout_mau_epll_clk_p) = {"mout_sclk_epll", "mout_sclk_dpll",
40662306a36Sopenharmony_ci				"mout_sclk_mpll", "mout_sclk_spll"};
40762306a36Sopenharmony_ciPNAME(mout_mclk_cdrex_p) = {"mout_bpll", "mout_mx_mspll_ccore"};
40862306a36Sopenharmony_ci
40962306a36Sopenharmony_ci/* List of parents specific to exynos5800 */
41062306a36Sopenharmony_ciPNAME(mout_epll2_5800_p)	= { "mout_sclk_epll", "ff_dout_epll2" };
41162306a36Sopenharmony_ciPNAME(mout_group1_5800_p)	= { "mout_sclk_cpll", "mout_sclk_dpll",
41262306a36Sopenharmony_ci				"mout_sclk_mpll", "ff_dout_spll2" };
41362306a36Sopenharmony_ciPNAME(mout_group2_5800_p)	= { "mout_sclk_cpll", "mout_sclk_dpll",
41462306a36Sopenharmony_ci					"mout_sclk_mpll", "ff_dout_spll2",
41562306a36Sopenharmony_ci					"mout_epll2", "mout_sclk_ipll" };
41662306a36Sopenharmony_ciPNAME(mout_group3_5800_p)	= { "mout_sclk_cpll", "mout_sclk_dpll",
41762306a36Sopenharmony_ci					"mout_sclk_mpll", "ff_dout_spll2",
41862306a36Sopenharmony_ci					"mout_epll2" };
41962306a36Sopenharmony_ciPNAME(mout_group5_5800_p)	= { "mout_sclk_cpll", "mout_sclk_dpll",
42062306a36Sopenharmony_ci					"mout_sclk_mpll", "mout_sclk_spll" };
42162306a36Sopenharmony_ciPNAME(mout_group6_5800_p)	= { "mout_sclk_ipll", "mout_sclk_dpll",
42262306a36Sopenharmony_ci				"mout_sclk_mpll", "ff_dout_spll2" };
42362306a36Sopenharmony_ciPNAME(mout_group7_5800_p)	= { "mout_sclk_cpll", "mout_sclk_dpll",
42462306a36Sopenharmony_ci					"mout_sclk_mpll", "mout_sclk_spll",
42562306a36Sopenharmony_ci					"mout_epll2", "mout_sclk_ipll" };
42662306a36Sopenharmony_ciPNAME(mout_mx_mspll_ccore_p)	= {"sclk_bpll", "mout_sclk_dpll",
42762306a36Sopenharmony_ci					"mout_sclk_mpll", "ff_dout_spll2",
42862306a36Sopenharmony_ci					"mout_sclk_spll", "mout_sclk_epll"};
42962306a36Sopenharmony_ciPNAME(mout_mau_epll_clk_5800_p)	= { "mout_sclk_epll", "mout_sclk_dpll",
43062306a36Sopenharmony_ci					"mout_sclk_mpll",
43162306a36Sopenharmony_ci					"ff_dout_spll2" };
43262306a36Sopenharmony_ciPNAME(mout_group8_5800_p)	= { "dout_aclk432_scaler", "dout_sclk_sw" };
43362306a36Sopenharmony_ciPNAME(mout_group9_5800_p)	= { "dout_osc_div", "mout_sw_aclk432_scaler" };
43462306a36Sopenharmony_ciPNAME(mout_group10_5800_p)	= { "dout_aclk432_cam", "dout_sclk_sw" };
43562306a36Sopenharmony_ciPNAME(mout_group11_5800_p)	= { "dout_osc_div", "mout_sw_aclk432_cam" };
43662306a36Sopenharmony_ciPNAME(mout_group12_5800_p)	= { "dout_aclkfl1_550_cam", "dout_sclk_sw" };
43762306a36Sopenharmony_ciPNAME(mout_group13_5800_p)	= { "dout_osc_div", "mout_sw_aclkfl1_550_cam" };
43862306a36Sopenharmony_ciPNAME(mout_group14_5800_p)	= { "dout_aclk550_cam", "dout_sclk_sw" };
43962306a36Sopenharmony_ciPNAME(mout_group15_5800_p)	= { "dout_osc_div", "mout_sw_aclk550_cam" };
44062306a36Sopenharmony_ciPNAME(mout_group16_5800_p)	= { "dout_osc_div", "mout_mau_epll_clk" };
44162306a36Sopenharmony_ciPNAME(mout_mx_mspll_ccore_phy_p) = { "sclk_bpll", "mout_sclk_dpll",
44262306a36Sopenharmony_ci					"mout_sclk_mpll", "ff_dout_spll2",
44362306a36Sopenharmony_ci					"mout_sclk_spll", "mout_sclk_epll"};
44462306a36Sopenharmony_ci
44562306a36Sopenharmony_ci/* fixed rate clocks generated outside the soc */
44662306a36Sopenharmony_cistatic struct samsung_fixed_rate_clock
44762306a36Sopenharmony_ci		exynos5x_fixed_rate_ext_clks[] __initdata = {
44862306a36Sopenharmony_ci	FRATE(CLK_FIN_PLL, "fin_pll", NULL, 0, 0),
44962306a36Sopenharmony_ci};
45062306a36Sopenharmony_ci
45162306a36Sopenharmony_ci/* fixed rate clocks generated inside the soc */
45262306a36Sopenharmony_cistatic const struct samsung_fixed_rate_clock exynos5x_fixed_rate_clks[] __initconst = {
45362306a36Sopenharmony_ci	FRATE(CLK_SCLK_HDMIPHY, "sclk_hdmiphy", NULL, 0, 24000000),
45462306a36Sopenharmony_ci	FRATE(0, "sclk_pwi", NULL, 0, 24000000),
45562306a36Sopenharmony_ci	FRATE(0, "sclk_usbh20", NULL, 0, 48000000),
45662306a36Sopenharmony_ci	FRATE(0, "mphy_refclk_ixtal24", NULL, 0, 48000000),
45762306a36Sopenharmony_ci	FRATE(0, "sclk_usbh20_scan_clk", NULL, 0, 480000000),
45862306a36Sopenharmony_ci};
45962306a36Sopenharmony_ci
46062306a36Sopenharmony_cistatic const struct samsung_fixed_factor_clock
46162306a36Sopenharmony_ci		exynos5x_fixed_factor_clks[] __initconst = {
46262306a36Sopenharmony_ci	FFACTOR(0, "ff_hsic_12m", "fin_pll", 1, 2, 0),
46362306a36Sopenharmony_ci	FFACTOR(0, "ff_sw_aclk66", "mout_sw_aclk66", 1, 2, 0),
46462306a36Sopenharmony_ci};
46562306a36Sopenharmony_ci
46662306a36Sopenharmony_cistatic const struct samsung_fixed_factor_clock
46762306a36Sopenharmony_ci		exynos5800_fixed_factor_clks[] __initconst = {
46862306a36Sopenharmony_ci	FFACTOR(0, "ff_dout_epll2", "mout_sclk_epll", 1, 2, 0),
46962306a36Sopenharmony_ci	FFACTOR(CLK_FF_DOUT_SPLL2, "ff_dout_spll2", "mout_sclk_spll", 1, 2, 0),
47062306a36Sopenharmony_ci};
47162306a36Sopenharmony_ci
47262306a36Sopenharmony_cistatic const struct samsung_mux_clock exynos5800_mux_clks[] __initconst = {
47362306a36Sopenharmony_ci	MUX(0, "mout_aclk400_isp", mout_group3_5800_p, SRC_TOP0, 0, 3),
47462306a36Sopenharmony_ci	MUX(0, "mout_aclk400_mscl", mout_group3_5800_p, SRC_TOP0, 4, 3),
47562306a36Sopenharmony_ci	MUX(0, "mout_aclk400_wcore", mout_group2_5800_p, SRC_TOP0, 16, 3),
47662306a36Sopenharmony_ci	MUX(0, "mout_aclk100_noc", mout_group1_5800_p, SRC_TOP0, 20, 2),
47762306a36Sopenharmony_ci
47862306a36Sopenharmony_ci	MUX(0, "mout_aclk333_432_gscl", mout_group6_5800_p, SRC_TOP1, 0, 2),
47962306a36Sopenharmony_ci	MUX(0, "mout_aclk333_432_isp", mout_group6_5800_p, SRC_TOP1, 4, 2),
48062306a36Sopenharmony_ci	MUX(0, "mout_aclk333_432_isp0", mout_group6_5800_p, SRC_TOP1, 12, 2),
48162306a36Sopenharmony_ci	MUX(0, "mout_aclk266", mout_group5_5800_p, SRC_TOP1, 20, 2),
48262306a36Sopenharmony_ci	MUX(0, "mout_aclk333", mout_group1_5800_p, SRC_TOP1, 28, 2),
48362306a36Sopenharmony_ci
48462306a36Sopenharmony_ci	MUX(0, "mout_aclk400_disp1", mout_group7_5800_p, SRC_TOP2, 4, 3),
48562306a36Sopenharmony_ci	MUX(0, "mout_aclk333_g2d", mout_group5_5800_p, SRC_TOP2, 8, 2),
48662306a36Sopenharmony_ci	MUX(0, "mout_aclk266_g2d", mout_group5_5800_p, SRC_TOP2, 12, 2),
48762306a36Sopenharmony_ci	MUX(0, "mout_aclk300_jpeg", mout_group5_5800_p, SRC_TOP2, 20, 2),
48862306a36Sopenharmony_ci	MUX(0, "mout_aclk300_disp1", mout_group5_5800_p, SRC_TOP2, 24, 2),
48962306a36Sopenharmony_ci	MUX(0, "mout_aclk300_gscl", mout_group5_5800_p, SRC_TOP2, 28, 2),
49062306a36Sopenharmony_ci
49162306a36Sopenharmony_ci	MUX(CLK_MOUT_MX_MSPLL_CCORE_PHY, "mout_mx_mspll_ccore_phy",
49262306a36Sopenharmony_ci		mout_mx_mspll_ccore_phy_p, SRC_TOP7, 0, 3),
49362306a36Sopenharmony_ci
49462306a36Sopenharmony_ci	MUX(CLK_MOUT_MX_MSPLL_CCORE, "mout_mx_mspll_ccore",
49562306a36Sopenharmony_ci			mout_mx_mspll_ccore_p, SRC_TOP7, 16, 3),
49662306a36Sopenharmony_ci	MUX_F(CLK_MOUT_MAU_EPLL, "mout_mau_epll_clk", mout_mau_epll_clk_5800_p,
49762306a36Sopenharmony_ci			SRC_TOP7, 20, 2, CLK_SET_RATE_PARENT, 0),
49862306a36Sopenharmony_ci	MUX(CLK_SCLK_BPLL, "sclk_bpll", mout_bpll_p, SRC_TOP7, 24, 1),
49962306a36Sopenharmony_ci	MUX(0, "mout_epll2", mout_epll2_5800_p, SRC_TOP7, 28, 1),
50062306a36Sopenharmony_ci
50162306a36Sopenharmony_ci	MUX(0, "mout_aclk550_cam", mout_group3_5800_p, SRC_TOP8, 16, 3),
50262306a36Sopenharmony_ci	MUX(0, "mout_aclkfl1_550_cam", mout_group3_5800_p, SRC_TOP8, 20, 3),
50362306a36Sopenharmony_ci	MUX(0, "mout_aclk432_cam", mout_group6_5800_p, SRC_TOP8, 24, 2),
50462306a36Sopenharmony_ci	MUX(0, "mout_aclk432_scaler", mout_group6_5800_p, SRC_TOP8, 28, 2),
50562306a36Sopenharmony_ci
50662306a36Sopenharmony_ci	MUX_F(CLK_MOUT_USER_MAU_EPLL, "mout_user_mau_epll", mout_group16_5800_p,
50762306a36Sopenharmony_ci			SRC_TOP9, 8, 1, CLK_SET_RATE_PARENT, 0),
50862306a36Sopenharmony_ci	MUX(0, "mout_user_aclk550_cam", mout_group15_5800_p,
50962306a36Sopenharmony_ci							SRC_TOP9, 16, 1),
51062306a36Sopenharmony_ci	MUX(0, "mout_user_aclkfl1_550_cam", mout_group13_5800_p,
51162306a36Sopenharmony_ci							SRC_TOP9, 20, 1),
51262306a36Sopenharmony_ci	MUX(0, "mout_user_aclk432_cam", mout_group11_5800_p,
51362306a36Sopenharmony_ci							SRC_TOP9, 24, 1),
51462306a36Sopenharmony_ci	MUX(0, "mout_user_aclk432_scaler", mout_group9_5800_p,
51562306a36Sopenharmony_ci							SRC_TOP9, 28, 1),
51662306a36Sopenharmony_ci
51762306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk550_cam", mout_group14_5800_p, SRC_TOP13, 16, 1),
51862306a36Sopenharmony_ci	MUX(0, "mout_sw_aclkfl1_550_cam", mout_group12_5800_p,
51962306a36Sopenharmony_ci							SRC_TOP13, 20, 1),
52062306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk432_cam", mout_group10_5800_p,
52162306a36Sopenharmony_ci							SRC_TOP13, 24, 1),
52262306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk432_scaler", mout_group8_5800_p,
52362306a36Sopenharmony_ci							SRC_TOP13, 28, 1),
52462306a36Sopenharmony_ci
52562306a36Sopenharmony_ci	MUX(0, "mout_fimd1", mout_group2_p, SRC_DISP10, 4, 3),
52662306a36Sopenharmony_ci};
52762306a36Sopenharmony_ci
52862306a36Sopenharmony_cistatic const struct samsung_div_clock exynos5800_div_clks[] __initconst = {
52962306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK400_WCORE, "dout_aclk400_wcore",
53062306a36Sopenharmony_ci			"mout_aclk400_wcore", DIV_TOP0, 16, 3),
53162306a36Sopenharmony_ci	DIV(0, "dout_aclk550_cam", "mout_aclk550_cam",
53262306a36Sopenharmony_ci				DIV_TOP8, 16, 3),
53362306a36Sopenharmony_ci	DIV(0, "dout_aclkfl1_550_cam", "mout_aclkfl1_550_cam",
53462306a36Sopenharmony_ci				DIV_TOP8, 20, 3),
53562306a36Sopenharmony_ci	DIV(0, "dout_aclk432_cam", "mout_aclk432_cam",
53662306a36Sopenharmony_ci				DIV_TOP8, 24, 3),
53762306a36Sopenharmony_ci	DIV(0, "dout_aclk432_scaler", "mout_aclk432_scaler",
53862306a36Sopenharmony_ci				DIV_TOP8, 28, 3),
53962306a36Sopenharmony_ci
54062306a36Sopenharmony_ci	DIV(0, "dout_osc_div", "fin_pll", DIV_TOP9, 20, 3),
54162306a36Sopenharmony_ci	DIV(0, "dout_sclk_sw", "sclk_spll", DIV_TOP9, 24, 6),
54262306a36Sopenharmony_ci};
54362306a36Sopenharmony_ci
54462306a36Sopenharmony_cistatic const struct samsung_gate_clock exynos5800_gate_clks[] __initconst = {
54562306a36Sopenharmony_ci	GATE(CLK_ACLK550_CAM, "aclk550_cam", "mout_user_aclk550_cam",
54662306a36Sopenharmony_ci				GATE_BUS_TOP, 24, CLK_IS_CRITICAL, 0),
54762306a36Sopenharmony_ci	GATE(CLK_ACLK432_SCALER, "aclk432_scaler", "mout_user_aclk432_scaler",
54862306a36Sopenharmony_ci				GATE_BUS_TOP, 27, CLK_IS_CRITICAL, 0),
54962306a36Sopenharmony_ci};
55062306a36Sopenharmony_ci
55162306a36Sopenharmony_cistatic const struct samsung_mux_clock exynos5420_mux_clks[] __initconst = {
55262306a36Sopenharmony_ci	MUX(0, "sclk_bpll", mout_bpll_p, TOP_SPARE2, 0, 1),
55362306a36Sopenharmony_ci	MUX(0, "mout_aclk400_wcore_bpll", mout_aclk400_wcore_bpll_p,
55462306a36Sopenharmony_ci				TOP_SPARE2, 4, 1),
55562306a36Sopenharmony_ci
55662306a36Sopenharmony_ci	MUX(0, "mout_aclk400_isp", mout_group1_p, SRC_TOP0, 0, 2),
55762306a36Sopenharmony_ci	MUX(0, "mout_aclk400_mscl", mout_group1_p, SRC_TOP0, 4, 2),
55862306a36Sopenharmony_ci	MUX(0, "mout_aclk400_wcore", mout_group1_p, SRC_TOP0, 16, 2),
55962306a36Sopenharmony_ci	MUX(0, "mout_aclk100_noc", mout_group1_p, SRC_TOP0, 20, 2),
56062306a36Sopenharmony_ci
56162306a36Sopenharmony_ci	MUX(0, "mout_aclk333_432_gscl", mout_group4_p, SRC_TOP1, 0, 2),
56262306a36Sopenharmony_ci	MUX(0, "mout_aclk333_432_isp", mout_group4_p,
56362306a36Sopenharmony_ci				SRC_TOP1, 4, 2),
56462306a36Sopenharmony_ci	MUX(0, "mout_aclk333_432_isp0", mout_group4_p, SRC_TOP1, 12, 2),
56562306a36Sopenharmony_ci	MUX(0, "mout_aclk266", mout_group1_p, SRC_TOP1, 20, 2),
56662306a36Sopenharmony_ci	MUX(0, "mout_aclk333", mout_group1_p, SRC_TOP1, 28, 2),
56762306a36Sopenharmony_ci
56862306a36Sopenharmony_ci	MUX(0, "mout_aclk400_disp1", mout_group1_p, SRC_TOP2, 4, 2),
56962306a36Sopenharmony_ci	MUX(0, "mout_aclk333_g2d", mout_group1_p, SRC_TOP2, 8, 2),
57062306a36Sopenharmony_ci	MUX(0, "mout_aclk266_g2d", mout_group1_p, SRC_TOP2, 12, 2),
57162306a36Sopenharmony_ci	MUX(0, "mout_aclk300_jpeg", mout_group1_p, SRC_TOP2, 20, 2),
57262306a36Sopenharmony_ci	MUX(0, "mout_aclk300_disp1", mout_group1_p, SRC_TOP2, 24, 2),
57362306a36Sopenharmony_ci	MUX(0, "mout_aclk300_gscl", mout_group1_p, SRC_TOP2, 28, 2),
57462306a36Sopenharmony_ci
57562306a36Sopenharmony_ci	MUX(CLK_MOUT_MX_MSPLL_CCORE, "mout_mx_mspll_ccore",
57662306a36Sopenharmony_ci			mout_group5_5800_p, SRC_TOP7, 16, 2),
57762306a36Sopenharmony_ci	MUX_F(0, "mout_mau_epll_clk", mout_mau_epll_clk_p, SRC_TOP7, 20, 2,
57862306a36Sopenharmony_ci	      CLK_SET_RATE_PARENT, 0),
57962306a36Sopenharmony_ci
58062306a36Sopenharmony_ci	MUX(0, "mout_fimd1", mout_group3_p, SRC_DISP10, 4, 1),
58162306a36Sopenharmony_ci};
58262306a36Sopenharmony_ci
58362306a36Sopenharmony_cistatic const struct samsung_div_clock exynos5420_div_clks[] __initconst = {
58462306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK400_WCORE, "dout_aclk400_wcore",
58562306a36Sopenharmony_ci			"mout_aclk400_wcore_bpll", DIV_TOP0, 16, 3),
58662306a36Sopenharmony_ci};
58762306a36Sopenharmony_ci
58862306a36Sopenharmony_cistatic const struct samsung_gate_clock exynos5420_gate_clks[] __initconst = {
58962306a36Sopenharmony_ci	GATE(CLK_SECKEY, "seckey", "aclk66_psgen", GATE_BUS_PERIS1, 1, 0, 0),
59062306a36Sopenharmony_ci	/* Maudio Block */
59162306a36Sopenharmony_ci	GATE(CLK_MAU_EPLL, "mau_epll", "mout_mau_epll_clk",
59262306a36Sopenharmony_ci			SRC_MASK_TOP7, 20, CLK_SET_RATE_PARENT, 0),
59362306a36Sopenharmony_ci	GATE(CLK_SCLK_MAUDIO0, "sclk_maudio0", "dout_maudio0",
59462306a36Sopenharmony_ci		GATE_TOP_SCLK_MAU, 0, CLK_SET_RATE_PARENT, 0),
59562306a36Sopenharmony_ci	GATE(CLK_SCLK_MAUPCM0, "sclk_maupcm0", "dout_maupcm0",
59662306a36Sopenharmony_ci		GATE_TOP_SCLK_MAU, 1, CLK_SET_RATE_PARENT, 0),
59762306a36Sopenharmony_ci};
59862306a36Sopenharmony_ci
59962306a36Sopenharmony_cistatic const struct samsung_mux_clock exynos5x_mux_clks[] __initconst = {
60062306a36Sopenharmony_ci	MUX(0, "mout_user_pclk66_gpio", mout_user_pclk66_gpio_p,
60162306a36Sopenharmony_ci			SRC_TOP7, 4, 1),
60262306a36Sopenharmony_ci	MUX(CLK_MOUT_MSPLL_KFC, "mout_mspll_kfc", mout_mspll_cpu_p,
60362306a36Sopenharmony_ci	    SRC_TOP7, 8, 2),
60462306a36Sopenharmony_ci	MUX(CLK_MOUT_MSPLL_CPU, "mout_mspll_cpu", mout_mspll_cpu_p,
60562306a36Sopenharmony_ci	    SRC_TOP7, 12, 2),
60662306a36Sopenharmony_ci	MUX_F(CLK_MOUT_APLL, "mout_apll", mout_apll_p, SRC_CPU, 0, 1,
60762306a36Sopenharmony_ci	      CLK_SET_RATE_PARENT | CLK_RECALC_NEW_RATES, 0),
60862306a36Sopenharmony_ci	MUX(0, "mout_cpu", mout_cpu_p, SRC_CPU, 16, 1),
60962306a36Sopenharmony_ci	MUX_F(CLK_MOUT_KPLL, "mout_kpll", mout_kpll_p, SRC_KFC, 0, 1,
61062306a36Sopenharmony_ci	      CLK_SET_RATE_PARENT | CLK_RECALC_NEW_RATES, 0),
61162306a36Sopenharmony_ci	MUX(0, "mout_kfc", mout_kfc_p, SRC_KFC, 16, 1),
61262306a36Sopenharmony_ci
61362306a36Sopenharmony_ci	MUX(0, "mout_aclk200", mout_group1_p, SRC_TOP0, 8, 2),
61462306a36Sopenharmony_ci	MUX(0, "mout_aclk200_fsys2", mout_group1_p, SRC_TOP0, 12, 2),
61562306a36Sopenharmony_ci	MUX(0, "mout_pclk200_fsys", mout_group1_p, SRC_TOP0, 24, 2),
61662306a36Sopenharmony_ci	MUX(0, "mout_aclk200_fsys", mout_group1_p, SRC_TOP0, 28, 2),
61762306a36Sopenharmony_ci
61862306a36Sopenharmony_ci	MUX(0, "mout_aclk66", mout_group1_p, SRC_TOP1, 8, 2),
61962306a36Sopenharmony_ci	MUX(0, "mout_aclk166", mout_group1_p, SRC_TOP1, 24, 2),
62062306a36Sopenharmony_ci
62162306a36Sopenharmony_ci	MUX_F(0, "mout_aclk_g3d", mout_group5_p, SRC_TOP2, 16, 1,
62262306a36Sopenharmony_ci	      CLK_SET_RATE_PARENT, 0),
62362306a36Sopenharmony_ci
62462306a36Sopenharmony_ci	MUX(0, "mout_user_aclk400_isp", mout_user_aclk400_isp_p,
62562306a36Sopenharmony_ci			SRC_TOP3, 0, 1),
62662306a36Sopenharmony_ci	MUX(0, "mout_user_aclk400_mscl", mout_user_aclk400_mscl_p,
62762306a36Sopenharmony_ci			SRC_TOP3, 4, 1),
62862306a36Sopenharmony_ci	MUX(CLK_MOUT_USER_ACLK200_DISP1, "mout_user_aclk200_disp1",
62962306a36Sopenharmony_ci			mout_user_aclk200_disp1_p, SRC_TOP3, 8, 1),
63062306a36Sopenharmony_ci	MUX(0, "mout_user_aclk200_fsys2", mout_user_aclk200_fsys2_p,
63162306a36Sopenharmony_ci			SRC_TOP3, 12, 1),
63262306a36Sopenharmony_ci	MUX(0, "mout_user_aclk400_wcore", mout_user_aclk400_wcore_p,
63362306a36Sopenharmony_ci			SRC_TOP3, 16, 1),
63462306a36Sopenharmony_ci	MUX(0, "mout_user_aclk100_noc", mout_user_aclk100_noc_p,
63562306a36Sopenharmony_ci			SRC_TOP3, 20, 1),
63662306a36Sopenharmony_ci	MUX(0, "mout_user_pclk200_fsys", mout_user_pclk200_fsys_p,
63762306a36Sopenharmony_ci			SRC_TOP3, 24, 1),
63862306a36Sopenharmony_ci	MUX(0, "mout_user_aclk200_fsys", mout_user_aclk200_fsys_p,
63962306a36Sopenharmony_ci			SRC_TOP3, 28, 1),
64062306a36Sopenharmony_ci
64162306a36Sopenharmony_ci	MUX(0, "mout_user_aclk333_432_gscl", mout_user_aclk333_432_gscl_p,
64262306a36Sopenharmony_ci			SRC_TOP4, 0, 1),
64362306a36Sopenharmony_ci	MUX(0, "mout_user_aclk333_432_isp", mout_user_aclk333_432_isp_p,
64462306a36Sopenharmony_ci			SRC_TOP4, 4, 1),
64562306a36Sopenharmony_ci	MUX(0, "mout_user_aclk66_peric", mout_user_aclk66_peric_p,
64662306a36Sopenharmony_ci			SRC_TOP4, 8, 1),
64762306a36Sopenharmony_ci	MUX(0, "mout_user_aclk333_432_isp0", mout_user_aclk333_432_isp0_p,
64862306a36Sopenharmony_ci			SRC_TOP4, 12, 1),
64962306a36Sopenharmony_ci	MUX(0, "mout_user_aclk266_isp", mout_user_aclk266_isp_p,
65062306a36Sopenharmony_ci			SRC_TOP4, 16, 1),
65162306a36Sopenharmony_ci	MUX(0, "mout_user_aclk266", mout_user_aclk266_p, SRC_TOP4, 20, 1),
65262306a36Sopenharmony_ci	MUX(0, "mout_user_aclk166", mout_user_aclk166_p, SRC_TOP4, 24, 1),
65362306a36Sopenharmony_ci	MUX(CLK_MOUT_USER_ACLK333, "mout_user_aclk333", mout_user_aclk333_p,
65462306a36Sopenharmony_ci			SRC_TOP4, 28, 1),
65562306a36Sopenharmony_ci
65662306a36Sopenharmony_ci	MUX(CLK_MOUT_USER_ACLK400_DISP1, "mout_user_aclk400_disp1",
65762306a36Sopenharmony_ci			mout_user_aclk400_disp1_p, SRC_TOP5, 0, 1),
65862306a36Sopenharmony_ci	MUX(0, "mout_user_aclk66_psgen", mout_user_aclk66_peric_p,
65962306a36Sopenharmony_ci			SRC_TOP5, 4, 1),
66062306a36Sopenharmony_ci	MUX(0, "mout_user_aclk333_g2d", mout_user_aclk333_g2d_p,
66162306a36Sopenharmony_ci			SRC_TOP5, 8, 1),
66262306a36Sopenharmony_ci	MUX(0, "mout_user_aclk266_g2d", mout_user_aclk266_g2d_p,
66362306a36Sopenharmony_ci			SRC_TOP5, 12, 1),
66462306a36Sopenharmony_ci	MUX_F(CLK_MOUT_G3D, "mout_user_aclk_g3d", mout_user_aclk_g3d_p,
66562306a36Sopenharmony_ci			SRC_TOP5, 16, 1, CLK_SET_RATE_PARENT, 0),
66662306a36Sopenharmony_ci	MUX(0, "mout_user_aclk300_jpeg", mout_user_aclk300_jpeg_p,
66762306a36Sopenharmony_ci			SRC_TOP5, 20, 1),
66862306a36Sopenharmony_ci	MUX(CLK_MOUT_USER_ACLK300_DISP1, "mout_user_aclk300_disp1",
66962306a36Sopenharmony_ci			mout_user_aclk300_disp1_p, SRC_TOP5, 24, 1),
67062306a36Sopenharmony_ci	MUX(CLK_MOUT_USER_ACLK300_GSCL, "mout_user_aclk300_gscl",
67162306a36Sopenharmony_ci			mout_user_aclk300_gscl_p, SRC_TOP5, 28, 1),
67262306a36Sopenharmony_ci
67362306a36Sopenharmony_ci	MUX(0, "mout_sclk_mpll", mout_mpll_p, SRC_TOP6, 0, 1),
67462306a36Sopenharmony_ci	MUX_F(CLK_MOUT_VPLL, "mout_sclk_vpll", mout_vpll_p, SRC_TOP6, 4, 1,
67562306a36Sopenharmony_ci	      CLK_SET_RATE_PARENT, 0),
67662306a36Sopenharmony_ci	MUX(CLK_MOUT_SCLK_SPLL, "mout_sclk_spll", mout_spll_p, SRC_TOP6, 8, 1),
67762306a36Sopenharmony_ci	MUX(0, "mout_sclk_ipll", mout_ipll_p, SRC_TOP6, 12, 1),
67862306a36Sopenharmony_ci	MUX(0, "mout_sclk_rpll", mout_rpll_p, SRC_TOP6, 16, 1),
67962306a36Sopenharmony_ci	MUX_F(CLK_MOUT_EPLL, "mout_sclk_epll", mout_epll_p, SRC_TOP6, 20, 1,
68062306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
68162306a36Sopenharmony_ci	MUX(0, "mout_sclk_dpll", mout_dpll_p, SRC_TOP6, 24, 1),
68262306a36Sopenharmony_ci	MUX(0, "mout_sclk_cpll", mout_cpll_p, SRC_TOP6, 28, 1),
68362306a36Sopenharmony_ci
68462306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk400_isp", mout_sw_aclk400_isp_p,
68562306a36Sopenharmony_ci			SRC_TOP10, 0, 1),
68662306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk400_mscl", mout_sw_aclk400_mscl_p,
68762306a36Sopenharmony_ci			SRC_TOP10, 4, 1),
68862306a36Sopenharmony_ci	MUX(CLK_MOUT_SW_ACLK200, "mout_sw_aclk200", mout_sw_aclk200_p,
68962306a36Sopenharmony_ci			SRC_TOP10, 8, 1),
69062306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk200_fsys2", mout_sw_aclk200_fsys2_p,
69162306a36Sopenharmony_ci			SRC_TOP10, 12, 1),
69262306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk400_wcore", mout_sw_aclk400_wcore_p,
69362306a36Sopenharmony_ci			SRC_TOP10, 16, 1),
69462306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk100_noc", mout_sw_aclk100_noc_p,
69562306a36Sopenharmony_ci			SRC_TOP10, 20, 1),
69662306a36Sopenharmony_ci	MUX(0, "mout_sw_pclk200_fsys", mout_sw_pclk200_fsys_p,
69762306a36Sopenharmony_ci			SRC_TOP10, 24, 1),
69862306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk200_fsys", mout_sw_aclk200_fsys_p,
69962306a36Sopenharmony_ci			SRC_TOP10, 28, 1),
70062306a36Sopenharmony_ci
70162306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk333_432_gscl", mout_sw_aclk333_432_gscl_p,
70262306a36Sopenharmony_ci			SRC_TOP11, 0, 1),
70362306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk333_432_isp", mout_sw_aclk333_432_isp_p,
70462306a36Sopenharmony_ci			SRC_TOP11, 4, 1),
70562306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk66", mout_sw_aclk66_p, SRC_TOP11, 8, 1),
70662306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk333_432_isp0", mout_sw_aclk333_432_isp0_p,
70762306a36Sopenharmony_ci			SRC_TOP11, 12, 1),
70862306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk266", mout_sw_aclk266_p, SRC_TOP11, 20, 1),
70962306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk166", mout_sw_aclk166_p, SRC_TOP11, 24, 1),
71062306a36Sopenharmony_ci	MUX(CLK_MOUT_SW_ACLK333, "mout_sw_aclk333", mout_sw_aclk333_p,
71162306a36Sopenharmony_ci			SRC_TOP11, 28, 1),
71262306a36Sopenharmony_ci
71362306a36Sopenharmony_ci	MUX(CLK_MOUT_SW_ACLK400, "mout_sw_aclk400_disp1",
71462306a36Sopenharmony_ci			mout_sw_aclk400_disp1_p, SRC_TOP12, 4, 1),
71562306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk333_g2d", mout_sw_aclk333_g2d_p,
71662306a36Sopenharmony_ci			SRC_TOP12, 8, 1),
71762306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk266_g2d", mout_sw_aclk266_g2d_p,
71862306a36Sopenharmony_ci			SRC_TOP12, 12, 1),
71962306a36Sopenharmony_ci	MUX_F(CLK_MOUT_SW_ACLK_G3D, "mout_sw_aclk_g3d", mout_sw_aclk_g3d_p,
72062306a36Sopenharmony_ci			SRC_TOP12, 16, 1, CLK_SET_RATE_PARENT, 0),
72162306a36Sopenharmony_ci	MUX(0, "mout_sw_aclk300_jpeg", mout_sw_aclk300_jpeg_p,
72262306a36Sopenharmony_ci			SRC_TOP12, 20, 1),
72362306a36Sopenharmony_ci	MUX(CLK_MOUT_SW_ACLK300, "mout_sw_aclk300_disp1",
72462306a36Sopenharmony_ci			mout_sw_aclk300_disp1_p, SRC_TOP12, 24, 1),
72562306a36Sopenharmony_ci	MUX(CLK_MOUT_SW_ACLK300_GSCL, "mout_sw_aclk300_gscl",
72662306a36Sopenharmony_ci			mout_sw_aclk300_gscl_p, SRC_TOP12, 28, 1),
72762306a36Sopenharmony_ci
72862306a36Sopenharmony_ci	/* DISP1 Block */
72962306a36Sopenharmony_ci	MUX(0, "mout_mipi1", mout_group2_p, SRC_DISP10, 16, 3),
73062306a36Sopenharmony_ci	MUX(0, "mout_dp1", mout_group2_p, SRC_DISP10, 20, 3),
73162306a36Sopenharmony_ci	MUX(0, "mout_pixel", mout_group2_p, SRC_DISP10, 24, 3),
73262306a36Sopenharmony_ci	MUX(CLK_MOUT_HDMI, "mout_hdmi", mout_hdmi_p, SRC_DISP10, 28, 1),
73362306a36Sopenharmony_ci	MUX(0, "mout_fimd1_opt", mout_group2_p, SRC_DISP10, 8, 3),
73462306a36Sopenharmony_ci
73562306a36Sopenharmony_ci	MUX(0, "mout_fimd1_final", mout_fimd1_final_p, TOP_SPARE2, 8, 1),
73662306a36Sopenharmony_ci
73762306a36Sopenharmony_ci	/* CDREX block */
73862306a36Sopenharmony_ci	MUX_F(CLK_MOUT_MCLK_CDREX, "mout_mclk_cdrex", mout_mclk_cdrex_p,
73962306a36Sopenharmony_ci			SRC_CDREX, 4, 1, CLK_SET_RATE_PARENT, 0),
74062306a36Sopenharmony_ci	MUX_F(CLK_MOUT_BPLL, "mout_bpll", mout_bpll_p, SRC_CDREX, 0, 1,
74162306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
74262306a36Sopenharmony_ci
74362306a36Sopenharmony_ci	/* MAU Block */
74462306a36Sopenharmony_ci	MUX(CLK_MOUT_MAUDIO0, "mout_maudio0", mout_maudio0_p, SRC_MAU, 28, 3),
74562306a36Sopenharmony_ci
74662306a36Sopenharmony_ci	/* FSYS Block */
74762306a36Sopenharmony_ci	MUX(0, "mout_usbd301", mout_group2_p, SRC_FSYS, 4, 3),
74862306a36Sopenharmony_ci	MUX(0, "mout_mmc0", mout_group2_p, SRC_FSYS, 8, 3),
74962306a36Sopenharmony_ci	MUX(0, "mout_mmc1", mout_group2_p, SRC_FSYS, 12, 3),
75062306a36Sopenharmony_ci	MUX(0, "mout_mmc2", mout_group2_p, SRC_FSYS, 16, 3),
75162306a36Sopenharmony_ci	MUX(0, "mout_usbd300", mout_group2_p, SRC_FSYS, 20, 3),
75262306a36Sopenharmony_ci	MUX(0, "mout_unipro", mout_group2_p, SRC_FSYS, 24, 3),
75362306a36Sopenharmony_ci	MUX(0, "mout_mphy_refclk", mout_group2_p, SRC_FSYS, 28, 3),
75462306a36Sopenharmony_ci
75562306a36Sopenharmony_ci	/* PERIC Block */
75662306a36Sopenharmony_ci	MUX(0, "mout_uart0", mout_group2_p, SRC_PERIC0, 4, 3),
75762306a36Sopenharmony_ci	MUX(0, "mout_uart1", mout_group2_p, SRC_PERIC0, 8, 3),
75862306a36Sopenharmony_ci	MUX(0, "mout_uart2", mout_group2_p, SRC_PERIC0, 12, 3),
75962306a36Sopenharmony_ci	MUX(0, "mout_uart3", mout_group2_p, SRC_PERIC0, 16, 3),
76062306a36Sopenharmony_ci	MUX(0, "mout_pwm", mout_group2_p, SRC_PERIC0, 24, 3),
76162306a36Sopenharmony_ci	MUX(0, "mout_spdif", mout_spdif_p, SRC_PERIC0, 28, 3),
76262306a36Sopenharmony_ci	MUX(0, "mout_audio0", mout_audio0_p, SRC_PERIC1, 8, 3),
76362306a36Sopenharmony_ci	MUX(0, "mout_audio1", mout_audio1_p, SRC_PERIC1, 12, 3),
76462306a36Sopenharmony_ci	MUX(0, "mout_audio2", mout_audio2_p, SRC_PERIC1, 16, 3),
76562306a36Sopenharmony_ci	MUX(0, "mout_spi0", mout_group2_p, SRC_PERIC1, 20, 3),
76662306a36Sopenharmony_ci	MUX(0, "mout_spi1", mout_group2_p, SRC_PERIC1, 24, 3),
76762306a36Sopenharmony_ci	MUX(0, "mout_spi2", mout_group2_p, SRC_PERIC1, 28, 3),
76862306a36Sopenharmony_ci
76962306a36Sopenharmony_ci	/* ISP Block */
77062306a36Sopenharmony_ci	MUX(0, "mout_pwm_isp", mout_group2_p, SRC_ISP, 24, 3),
77162306a36Sopenharmony_ci	MUX(0, "mout_uart_isp", mout_group2_p, SRC_ISP, 20, 3),
77262306a36Sopenharmony_ci	MUX(0, "mout_spi0_isp", mout_group2_p, SRC_ISP, 12, 3),
77362306a36Sopenharmony_ci	MUX(0, "mout_spi1_isp", mout_group2_p, SRC_ISP, 16, 3),
77462306a36Sopenharmony_ci	MUX(0, "mout_isp_sensor", mout_group2_p, SRC_ISP, 28, 3),
77562306a36Sopenharmony_ci};
77662306a36Sopenharmony_ci
77762306a36Sopenharmony_cistatic const struct samsung_div_clock exynos5x_div_clks[] __initconst = {
77862306a36Sopenharmony_ci	DIV(0, "div_arm", "mout_cpu", DIV_CPU0, 0, 3),
77962306a36Sopenharmony_ci	DIV(0, "sclk_apll", "mout_apll", DIV_CPU0, 24, 3),
78062306a36Sopenharmony_ci	DIV(0, "armclk2", "div_arm", DIV_CPU0, 28, 3),
78162306a36Sopenharmony_ci	DIV(0, "div_kfc", "mout_kfc", DIV_KFC0, 0, 3),
78262306a36Sopenharmony_ci	DIV(0, "sclk_kpll", "mout_kpll", DIV_KFC0, 24, 3),
78362306a36Sopenharmony_ci
78462306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK400_ISP, "dout_aclk400_isp", "mout_aclk400_isp",
78562306a36Sopenharmony_ci			DIV_TOP0, 0, 3),
78662306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK400_MSCL, "dout_aclk400_mscl", "mout_aclk400_mscl",
78762306a36Sopenharmony_ci			DIV_TOP0, 4, 3),
78862306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK200, "dout_aclk200", "mout_aclk200",
78962306a36Sopenharmony_ci			DIV_TOP0, 8, 3),
79062306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK200_FSYS2, "dout_aclk200_fsys2", "mout_aclk200_fsys2",
79162306a36Sopenharmony_ci			DIV_TOP0, 12, 3),
79262306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK100_NOC, "dout_aclk100_noc", "mout_aclk100_noc",
79362306a36Sopenharmony_ci			DIV_TOP0, 20, 3),
79462306a36Sopenharmony_ci	DIV(CLK_DOUT_PCLK200_FSYS, "dout_pclk200_fsys", "mout_pclk200_fsys",
79562306a36Sopenharmony_ci			DIV_TOP0, 24, 3),
79662306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK200_FSYS, "dout_aclk200_fsys", "mout_aclk200_fsys",
79762306a36Sopenharmony_ci			DIV_TOP0, 28, 3),
79862306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK333_432_GSCL, "dout_aclk333_432_gscl",
79962306a36Sopenharmony_ci			"mout_aclk333_432_gscl", DIV_TOP1, 0, 3),
80062306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK333_432_ISP, "dout_aclk333_432_isp",
80162306a36Sopenharmony_ci			"mout_aclk333_432_isp", DIV_TOP1, 4, 3),
80262306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK66, "dout_aclk66", "mout_aclk66",
80362306a36Sopenharmony_ci			DIV_TOP1, 8, 6),
80462306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK333_432_ISP0, "dout_aclk333_432_isp0",
80562306a36Sopenharmony_ci			"mout_aclk333_432_isp0", DIV_TOP1, 16, 3),
80662306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK266, "dout_aclk266", "mout_aclk266",
80762306a36Sopenharmony_ci			DIV_TOP1, 20, 3),
80862306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK166, "dout_aclk166", "mout_aclk166",
80962306a36Sopenharmony_ci			DIV_TOP1, 24, 3),
81062306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK333, "dout_aclk333", "mout_aclk333",
81162306a36Sopenharmony_ci			DIV_TOP1, 28, 3),
81262306a36Sopenharmony_ci
81362306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK333_G2D, "dout_aclk333_g2d", "mout_aclk333_g2d",
81462306a36Sopenharmony_ci			DIV_TOP2, 8, 3),
81562306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK266_G2D, "dout_aclk266_g2d", "mout_aclk266_g2d",
81662306a36Sopenharmony_ci			DIV_TOP2, 12, 3),
81762306a36Sopenharmony_ci	DIV_F(CLK_DOUT_ACLK_G3D, "dout_aclk_g3d", "mout_aclk_g3d", DIV_TOP2,
81862306a36Sopenharmony_ci			16, 3, CLK_SET_RATE_PARENT, 0),
81962306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK300_JPEG, "dout_aclk300_jpeg", "mout_aclk300_jpeg",
82062306a36Sopenharmony_ci			DIV_TOP2, 20, 3),
82162306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK300_DISP1, "dout_aclk300_disp1",
82262306a36Sopenharmony_ci			"mout_aclk300_disp1", DIV_TOP2, 24, 3),
82362306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK300_GSCL, "dout_aclk300_gscl", "mout_aclk300_gscl",
82462306a36Sopenharmony_ci			DIV_TOP2, 28, 3),
82562306a36Sopenharmony_ci
82662306a36Sopenharmony_ci	/* DISP1 Block */
82762306a36Sopenharmony_ci	DIV(0, "dout_fimd1", "mout_fimd1_final", DIV_DISP10, 0, 4),
82862306a36Sopenharmony_ci	DIV(0, "dout_mipi1", "mout_mipi1", DIV_DISP10, 16, 8),
82962306a36Sopenharmony_ci	DIV(0, "dout_dp1", "mout_dp1", DIV_DISP10, 24, 4),
83062306a36Sopenharmony_ci	DIV(CLK_DOUT_PIXEL, "dout_hdmi_pixel", "mout_pixel", DIV_DISP10, 28, 4),
83162306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK400_DISP1, "dout_aclk400_disp1",
83262306a36Sopenharmony_ci			"mout_aclk400_disp1", DIV_TOP2, 4, 3),
83362306a36Sopenharmony_ci
83462306a36Sopenharmony_ci	/* CDREX Block */
83562306a36Sopenharmony_ci	/*
83662306a36Sopenharmony_ci	 * The three clocks below are controlled using the same register and
83762306a36Sopenharmony_ci	 * bits. They are put into one because there is a need of
83862306a36Sopenharmony_ci	 * synchronization between the BUS and DREXs (two external memory
83962306a36Sopenharmony_ci	 * interfaces).
84062306a36Sopenharmony_ci	 * They are put here to show this HW assumption and for clock
84162306a36Sopenharmony_ci	 * information summary completeness.
84262306a36Sopenharmony_ci	 */
84362306a36Sopenharmony_ci	DIV_F(CLK_DOUT_PCLK_CDREX, "dout_pclk_cdrex", "dout_aclk_cdrex1",
84462306a36Sopenharmony_ci			DIV_CDREX0, 28, 3, CLK_GET_RATE_NOCACHE, 0),
84562306a36Sopenharmony_ci	DIV_F(CLK_DOUT_PCLK_DREX0, "dout_pclk_drex0", "dout_cclk_drex0",
84662306a36Sopenharmony_ci			DIV_CDREX0, 28, 3, CLK_GET_RATE_NOCACHE, 0),
84762306a36Sopenharmony_ci	DIV_F(CLK_DOUT_PCLK_DREX1, "dout_pclk_drex1", "dout_cclk_drex0",
84862306a36Sopenharmony_ci			DIV_CDREX0, 28, 3, CLK_GET_RATE_NOCACHE, 0),
84962306a36Sopenharmony_ci
85062306a36Sopenharmony_ci	DIV_F(CLK_DOUT_SCLK_CDREX, "dout_sclk_cdrex", "mout_mclk_cdrex",
85162306a36Sopenharmony_ci			DIV_CDREX0, 24, 3, CLK_SET_RATE_PARENT, 0),
85262306a36Sopenharmony_ci	DIV(CLK_DOUT_ACLK_CDREX1, "dout_aclk_cdrex1", "dout_clk2x_phy0",
85362306a36Sopenharmony_ci			DIV_CDREX0, 16, 3),
85462306a36Sopenharmony_ci	DIV(CLK_DOUT_CCLK_DREX0, "dout_cclk_drex0", "dout_clk2x_phy0",
85562306a36Sopenharmony_ci			DIV_CDREX0, 8, 3),
85662306a36Sopenharmony_ci	DIV(CLK_DOUT_CLK2X_PHY0, "dout_clk2x_phy0", "dout_sclk_cdrex",
85762306a36Sopenharmony_ci			DIV_CDREX0, 3, 5),
85862306a36Sopenharmony_ci
85962306a36Sopenharmony_ci	DIV(CLK_DOUT_PCLK_CORE_MEM, "dout_pclk_core_mem", "mout_mclk_cdrex",
86062306a36Sopenharmony_ci			DIV_CDREX1, 8, 3),
86162306a36Sopenharmony_ci
86262306a36Sopenharmony_ci	/* Audio Block */
86362306a36Sopenharmony_ci	DIV(0, "dout_maudio0", "mout_maudio0", DIV_MAU, 20, 4),
86462306a36Sopenharmony_ci	DIV(0, "dout_maupcm0", "dout_maudio0", DIV_MAU, 24, 8),
86562306a36Sopenharmony_ci
86662306a36Sopenharmony_ci	/* USB3.0 */
86762306a36Sopenharmony_ci	DIV(0, "dout_usbphy301", "mout_usbd301", DIV_FSYS0, 12, 4),
86862306a36Sopenharmony_ci	DIV(0, "dout_usbphy300", "mout_usbd300", DIV_FSYS0, 16, 4),
86962306a36Sopenharmony_ci	DIV(0, "dout_usbd301", "mout_usbd301", DIV_FSYS0, 20, 4),
87062306a36Sopenharmony_ci	DIV(0, "dout_usbd300", "mout_usbd300", DIV_FSYS0, 24, 4),
87162306a36Sopenharmony_ci
87262306a36Sopenharmony_ci	/* MMC */
87362306a36Sopenharmony_ci	DIV(0, "dout_mmc0", "mout_mmc0", DIV_FSYS1, 0, 10),
87462306a36Sopenharmony_ci	DIV(0, "dout_mmc1", "mout_mmc1", DIV_FSYS1, 10, 10),
87562306a36Sopenharmony_ci	DIV(0, "dout_mmc2", "mout_mmc2", DIV_FSYS1, 20, 10),
87662306a36Sopenharmony_ci
87762306a36Sopenharmony_ci	DIV(0, "dout_unipro", "mout_unipro", DIV_FSYS2, 24, 8),
87862306a36Sopenharmony_ci	DIV(0, "dout_mphy_refclk", "mout_mphy_refclk", DIV_FSYS2, 16, 8),
87962306a36Sopenharmony_ci
88062306a36Sopenharmony_ci	/* UART and PWM */
88162306a36Sopenharmony_ci	DIV(0, "dout_uart0", "mout_uart0", DIV_PERIC0, 8, 4),
88262306a36Sopenharmony_ci	DIV(0, "dout_uart1", "mout_uart1", DIV_PERIC0, 12, 4),
88362306a36Sopenharmony_ci	DIV(0, "dout_uart2", "mout_uart2", DIV_PERIC0, 16, 4),
88462306a36Sopenharmony_ci	DIV(0, "dout_uart3", "mout_uart3", DIV_PERIC0, 20, 4),
88562306a36Sopenharmony_ci	DIV(0, "dout_pwm", "mout_pwm", DIV_PERIC0, 28, 4),
88662306a36Sopenharmony_ci
88762306a36Sopenharmony_ci	/* SPI */
88862306a36Sopenharmony_ci	DIV(0, "dout_spi0", "mout_spi0", DIV_PERIC1, 20, 4),
88962306a36Sopenharmony_ci	DIV(0, "dout_spi1", "mout_spi1", DIV_PERIC1, 24, 4),
89062306a36Sopenharmony_ci	DIV(0, "dout_spi2", "mout_spi2", DIV_PERIC1, 28, 4),
89162306a36Sopenharmony_ci
89262306a36Sopenharmony_ci
89362306a36Sopenharmony_ci	/* PCM */
89462306a36Sopenharmony_ci	DIV(0, "dout_pcm1", "dout_audio1", DIV_PERIC2, 16, 8),
89562306a36Sopenharmony_ci	DIV(0, "dout_pcm2", "dout_audio2", DIV_PERIC2, 24, 8),
89662306a36Sopenharmony_ci
89762306a36Sopenharmony_ci	/* Audio - I2S */
89862306a36Sopenharmony_ci	DIV(0, "dout_i2s1", "dout_audio1", DIV_PERIC3, 6, 6),
89962306a36Sopenharmony_ci	DIV(0, "dout_i2s2", "dout_audio2", DIV_PERIC3, 12, 6),
90062306a36Sopenharmony_ci	DIV(0, "dout_audio0", "mout_audio0", DIV_PERIC3, 20, 4),
90162306a36Sopenharmony_ci	DIV(0, "dout_audio1", "mout_audio1", DIV_PERIC3, 24, 4),
90262306a36Sopenharmony_ci	DIV(0, "dout_audio2", "mout_audio2", DIV_PERIC3, 28, 4),
90362306a36Sopenharmony_ci
90462306a36Sopenharmony_ci	/* SPI Pre-Ratio */
90562306a36Sopenharmony_ci	DIV(0, "dout_spi0_pre", "dout_spi0", DIV_PERIC4, 8, 8),
90662306a36Sopenharmony_ci	DIV(0, "dout_spi1_pre", "dout_spi1", DIV_PERIC4, 16, 8),
90762306a36Sopenharmony_ci	DIV(0, "dout_spi2_pre", "dout_spi2", DIV_PERIC4, 24, 8),
90862306a36Sopenharmony_ci
90962306a36Sopenharmony_ci	/* GSCL Block */
91062306a36Sopenharmony_ci	DIV(0, "dout_gscl_blk_333", "aclk333_432_gscl", DIV2_RATIO0, 6, 2),
91162306a36Sopenharmony_ci
91262306a36Sopenharmony_ci	/* PSGEN */
91362306a36Sopenharmony_ci	DIV(0, "dout_gen_blk", "mout_user_aclk266", DIV2_RATIO0, 8, 1),
91462306a36Sopenharmony_ci	DIV(0, "dout_jpg_blk", "aclk166", DIV2_RATIO0, 20, 1),
91562306a36Sopenharmony_ci
91662306a36Sopenharmony_ci	/* ISP Block */
91762306a36Sopenharmony_ci	DIV(0, "dout_isp_sensor0", "mout_isp_sensor", SCLK_DIV_ISP0, 8, 8),
91862306a36Sopenharmony_ci	DIV(0, "dout_isp_sensor1", "mout_isp_sensor", SCLK_DIV_ISP0, 16, 8),
91962306a36Sopenharmony_ci	DIV(0, "dout_isp_sensor2", "mout_isp_sensor", SCLK_DIV_ISP0, 24, 8),
92062306a36Sopenharmony_ci	DIV(0, "dout_pwm_isp", "mout_pwm_isp", SCLK_DIV_ISP1, 28, 4),
92162306a36Sopenharmony_ci	DIV(0, "dout_uart_isp", "mout_uart_isp", SCLK_DIV_ISP1, 24, 4),
92262306a36Sopenharmony_ci	DIV(0, "dout_spi0_isp", "mout_spi0_isp", SCLK_DIV_ISP1, 16, 4),
92362306a36Sopenharmony_ci	DIV(0, "dout_spi1_isp", "mout_spi1_isp", SCLK_DIV_ISP1, 20, 4),
92462306a36Sopenharmony_ci	DIV_F(0, "dout_spi0_isp_pre", "dout_spi0_isp", SCLK_DIV_ISP1, 0, 8,
92562306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
92662306a36Sopenharmony_ci	DIV_F(0, "dout_spi1_isp_pre", "dout_spi1_isp", SCLK_DIV_ISP1, 8, 8,
92762306a36Sopenharmony_ci			CLK_SET_RATE_PARENT, 0),
92862306a36Sopenharmony_ci};
92962306a36Sopenharmony_ci
93062306a36Sopenharmony_cistatic const struct samsung_gate_clock exynos5x_gate_clks[] __initconst = {
93162306a36Sopenharmony_ci	/* G2D */
93262306a36Sopenharmony_ci	GATE(CLK_MDMA0, "mdma0", "aclk266_g2d", GATE_IP_G2D, 1, 0, 0),
93362306a36Sopenharmony_ci	GATE(CLK_SSS, "sss", "aclk266_g2d", GATE_IP_G2D, 2, 0, 0),
93462306a36Sopenharmony_ci	GATE(CLK_G2D, "g2d", "aclk333_g2d", GATE_IP_G2D, 3, 0, 0),
93562306a36Sopenharmony_ci	GATE(CLK_SMMU_MDMA0, "smmu_mdma0", "aclk266_g2d", GATE_IP_G2D, 5, 0, 0),
93662306a36Sopenharmony_ci	GATE(CLK_SMMU_G2D, "smmu_g2d", "aclk333_g2d", GATE_IP_G2D, 7, 0, 0),
93762306a36Sopenharmony_ci
93862306a36Sopenharmony_ci	GATE(0, "aclk200_fsys", "mout_user_aclk200_fsys",
93962306a36Sopenharmony_ci			GATE_BUS_FSYS0, 9, CLK_IS_CRITICAL, 0),
94062306a36Sopenharmony_ci	GATE(0, "aclk200_fsys2", "mout_user_aclk200_fsys2",
94162306a36Sopenharmony_ci			GATE_BUS_FSYS0, 10, CLK_IGNORE_UNUSED, 0),
94262306a36Sopenharmony_ci
94362306a36Sopenharmony_ci	GATE(0, "aclk333_g2d", "mout_user_aclk333_g2d",
94462306a36Sopenharmony_ci			GATE_BUS_TOP, 0, CLK_IGNORE_UNUSED, 0),
94562306a36Sopenharmony_ci	GATE(0, "aclk266_g2d", "mout_user_aclk266_g2d",
94662306a36Sopenharmony_ci			GATE_BUS_TOP, 1, CLK_IS_CRITICAL, 0),
94762306a36Sopenharmony_ci	GATE(0, "aclk300_jpeg", "mout_user_aclk300_jpeg",
94862306a36Sopenharmony_ci			GATE_BUS_TOP, 4, CLK_IGNORE_UNUSED, 0),
94962306a36Sopenharmony_ci	GATE(0, "aclk333_432_isp0", "mout_user_aclk333_432_isp0",
95062306a36Sopenharmony_ci			GATE_BUS_TOP, 5, CLK_IS_CRITICAL, 0),
95162306a36Sopenharmony_ci	GATE(0, "aclk300_gscl", "mout_user_aclk300_gscl",
95262306a36Sopenharmony_ci			GATE_BUS_TOP, 6, CLK_IS_CRITICAL, 0),
95362306a36Sopenharmony_ci	GATE(0, "aclk333_432_gscl", "mout_user_aclk333_432_gscl",
95462306a36Sopenharmony_ci			GATE_BUS_TOP, 7, CLK_IGNORE_UNUSED, 0),
95562306a36Sopenharmony_ci	GATE(0, "aclk333_432_isp", "mout_user_aclk333_432_isp",
95662306a36Sopenharmony_ci			GATE_BUS_TOP, 8, CLK_IS_CRITICAL, 0),
95762306a36Sopenharmony_ci	GATE(CLK_PCLK66_GPIO, "pclk66_gpio", "mout_user_pclk66_gpio",
95862306a36Sopenharmony_ci			GATE_BUS_TOP, 9, CLK_IGNORE_UNUSED, 0),
95962306a36Sopenharmony_ci	GATE(0, "aclk66_psgen", "mout_user_aclk66_psgen",
96062306a36Sopenharmony_ci			GATE_BUS_TOP, 10, CLK_IGNORE_UNUSED, 0),
96162306a36Sopenharmony_ci	GATE(0, "aclk266_isp", "mout_user_aclk266_isp",
96262306a36Sopenharmony_ci			GATE_BUS_TOP, 13, CLK_IS_CRITICAL, 0),
96362306a36Sopenharmony_ci	GATE(0, "aclk166", "mout_user_aclk166",
96462306a36Sopenharmony_ci			GATE_BUS_TOP, 14, CLK_IGNORE_UNUSED, 0),
96562306a36Sopenharmony_ci	GATE(CLK_ACLK333, "aclk333", "mout_user_aclk333",
96662306a36Sopenharmony_ci			GATE_BUS_TOP, 15, CLK_IS_CRITICAL, 0),
96762306a36Sopenharmony_ci	GATE(0, "aclk400_isp", "mout_user_aclk400_isp",
96862306a36Sopenharmony_ci			GATE_BUS_TOP, 16, CLK_IS_CRITICAL, 0),
96962306a36Sopenharmony_ci	GATE(0, "aclk400_mscl", "mout_user_aclk400_mscl",
97062306a36Sopenharmony_ci			GATE_BUS_TOP, 17, CLK_IS_CRITICAL, 0),
97162306a36Sopenharmony_ci	GATE(0, "aclk200_disp1", "mout_user_aclk200_disp1",
97262306a36Sopenharmony_ci			GATE_BUS_TOP, 18, CLK_IS_CRITICAL, 0),
97362306a36Sopenharmony_ci	GATE(CLK_SCLK_MPHY_IXTAL24, "sclk_mphy_ixtal24", "mphy_refclk_ixtal24",
97462306a36Sopenharmony_ci			GATE_BUS_TOP, 28, 0, 0),
97562306a36Sopenharmony_ci	GATE(CLK_SCLK_HSIC_12M, "sclk_hsic_12m", "ff_hsic_12m",
97662306a36Sopenharmony_ci			GATE_BUS_TOP, 29, 0, 0),
97762306a36Sopenharmony_ci
97862306a36Sopenharmony_ci	GATE(0, "aclk300_disp1", "mout_user_aclk300_disp1",
97962306a36Sopenharmony_ci			SRC_MASK_TOP2, 24, CLK_IS_CRITICAL, 0),
98062306a36Sopenharmony_ci
98162306a36Sopenharmony_ci	/* sclk */
98262306a36Sopenharmony_ci	GATE(CLK_SCLK_UART0, "sclk_uart0", "dout_uart0",
98362306a36Sopenharmony_ci		GATE_TOP_SCLK_PERIC, 0, CLK_SET_RATE_PARENT, 0),
98462306a36Sopenharmony_ci	GATE(CLK_SCLK_UART1, "sclk_uart1", "dout_uart1",
98562306a36Sopenharmony_ci		GATE_TOP_SCLK_PERIC, 1, CLK_SET_RATE_PARENT, 0),
98662306a36Sopenharmony_ci	GATE(CLK_SCLK_UART2, "sclk_uart2", "dout_uart2",
98762306a36Sopenharmony_ci		GATE_TOP_SCLK_PERIC, 2, CLK_SET_RATE_PARENT, 0),
98862306a36Sopenharmony_ci	GATE(CLK_SCLK_UART3, "sclk_uart3", "dout_uart3",
98962306a36Sopenharmony_ci		GATE_TOP_SCLK_PERIC, 3, CLK_SET_RATE_PARENT, 0),
99062306a36Sopenharmony_ci	GATE(CLK_SCLK_SPI0, "sclk_spi0", "dout_spi0_pre",
99162306a36Sopenharmony_ci		GATE_TOP_SCLK_PERIC, 6, CLK_SET_RATE_PARENT, 0),
99262306a36Sopenharmony_ci	GATE(CLK_SCLK_SPI1, "sclk_spi1", "dout_spi1_pre",
99362306a36Sopenharmony_ci		GATE_TOP_SCLK_PERIC, 7, CLK_SET_RATE_PARENT, 0),
99462306a36Sopenharmony_ci	GATE(CLK_SCLK_SPI2, "sclk_spi2", "dout_spi2_pre",
99562306a36Sopenharmony_ci		GATE_TOP_SCLK_PERIC, 8, CLK_SET_RATE_PARENT, 0),
99662306a36Sopenharmony_ci	GATE(CLK_SCLK_SPDIF, "sclk_spdif", "mout_spdif",
99762306a36Sopenharmony_ci		GATE_TOP_SCLK_PERIC, 9, CLK_SET_RATE_PARENT, 0),
99862306a36Sopenharmony_ci	GATE(CLK_SCLK_PWM, "sclk_pwm", "dout_pwm",
99962306a36Sopenharmony_ci		GATE_TOP_SCLK_PERIC, 11, CLK_SET_RATE_PARENT, 0),
100062306a36Sopenharmony_ci	GATE(CLK_SCLK_PCM1, "sclk_pcm1", "dout_pcm1",
100162306a36Sopenharmony_ci		GATE_TOP_SCLK_PERIC, 15, CLK_SET_RATE_PARENT, 0),
100262306a36Sopenharmony_ci	GATE(CLK_SCLK_PCM2, "sclk_pcm2", "dout_pcm2",
100362306a36Sopenharmony_ci		GATE_TOP_SCLK_PERIC, 16, CLK_SET_RATE_PARENT, 0),
100462306a36Sopenharmony_ci	GATE(CLK_SCLK_I2S1, "sclk_i2s1", "dout_i2s1",
100562306a36Sopenharmony_ci		GATE_TOP_SCLK_PERIC, 17, CLK_SET_RATE_PARENT, 0),
100662306a36Sopenharmony_ci	GATE(CLK_SCLK_I2S2, "sclk_i2s2", "dout_i2s2",
100762306a36Sopenharmony_ci		GATE_TOP_SCLK_PERIC, 18, CLK_SET_RATE_PARENT, 0),
100862306a36Sopenharmony_ci
100962306a36Sopenharmony_ci	GATE(CLK_SCLK_MMC0, "sclk_mmc0", "dout_mmc0",
101062306a36Sopenharmony_ci		GATE_TOP_SCLK_FSYS, 0, CLK_SET_RATE_PARENT, 0),
101162306a36Sopenharmony_ci	GATE(CLK_SCLK_MMC1, "sclk_mmc1", "dout_mmc1",
101262306a36Sopenharmony_ci		GATE_TOP_SCLK_FSYS, 1, CLK_SET_RATE_PARENT, 0),
101362306a36Sopenharmony_ci	GATE(CLK_SCLK_MMC2, "sclk_mmc2", "dout_mmc2",
101462306a36Sopenharmony_ci		GATE_TOP_SCLK_FSYS, 2, CLK_SET_RATE_PARENT, 0),
101562306a36Sopenharmony_ci	GATE(CLK_SCLK_USBPHY301, "sclk_usbphy301", "dout_usbphy301",
101662306a36Sopenharmony_ci		GATE_TOP_SCLK_FSYS, 7, CLK_SET_RATE_PARENT, 0),
101762306a36Sopenharmony_ci	GATE(CLK_SCLK_USBPHY300, "sclk_usbphy300", "dout_usbphy300",
101862306a36Sopenharmony_ci		GATE_TOP_SCLK_FSYS, 8, CLK_SET_RATE_PARENT, 0),
101962306a36Sopenharmony_ci	GATE(CLK_SCLK_USBD300, "sclk_usbd300", "dout_usbd300",
102062306a36Sopenharmony_ci		GATE_TOP_SCLK_FSYS, 9, CLK_SET_RATE_PARENT, 0),
102162306a36Sopenharmony_ci	GATE(CLK_SCLK_USBD301, "sclk_usbd301", "dout_usbd301",
102262306a36Sopenharmony_ci		GATE_TOP_SCLK_FSYS, 10, CLK_SET_RATE_PARENT, 0),
102362306a36Sopenharmony_ci
102462306a36Sopenharmony_ci	/* Display */
102562306a36Sopenharmony_ci	GATE(CLK_SCLK_FIMD1, "sclk_fimd1", "dout_fimd1",
102662306a36Sopenharmony_ci			GATE_TOP_SCLK_DISP1, 0, CLK_SET_RATE_PARENT, 0),
102762306a36Sopenharmony_ci	GATE(CLK_SCLK_MIPI1, "sclk_mipi1", "dout_mipi1",
102862306a36Sopenharmony_ci			GATE_TOP_SCLK_DISP1, 3, CLK_SET_RATE_PARENT, 0),
102962306a36Sopenharmony_ci	GATE(CLK_SCLK_HDMI, "sclk_hdmi", "mout_hdmi",
103062306a36Sopenharmony_ci			GATE_TOP_SCLK_DISP1, 9, 0, 0),
103162306a36Sopenharmony_ci	GATE(CLK_SCLK_PIXEL, "sclk_pixel", "dout_hdmi_pixel",
103262306a36Sopenharmony_ci			GATE_TOP_SCLK_DISP1, 10, CLK_SET_RATE_PARENT, 0),
103362306a36Sopenharmony_ci	GATE(CLK_SCLK_DP1, "sclk_dp1", "dout_dp1",
103462306a36Sopenharmony_ci			GATE_TOP_SCLK_DISP1, 20, CLK_SET_RATE_PARENT, 0),
103562306a36Sopenharmony_ci
103662306a36Sopenharmony_ci	/* FSYS Block */
103762306a36Sopenharmony_ci	GATE(CLK_TSI, "tsi", "aclk200_fsys", GATE_BUS_FSYS0, 0, 0, 0),
103862306a36Sopenharmony_ci	GATE(CLK_PDMA0, "pdma0", "aclk200_fsys", GATE_BUS_FSYS0, 1, 0, 0),
103962306a36Sopenharmony_ci	GATE(CLK_PDMA1, "pdma1", "aclk200_fsys", GATE_BUS_FSYS0, 2, 0, 0),
104062306a36Sopenharmony_ci	GATE(CLK_UFS, "ufs", "aclk200_fsys2", GATE_BUS_FSYS0, 3, 0, 0),
104162306a36Sopenharmony_ci	GATE(CLK_RTIC, "rtic", "aclk200_fsys", GATE_IP_FSYS, 9, 0, 0),
104262306a36Sopenharmony_ci	GATE(CLK_MMC0, "mmc0", "aclk200_fsys2", GATE_IP_FSYS, 12, 0, 0),
104362306a36Sopenharmony_ci	GATE(CLK_MMC1, "mmc1", "aclk200_fsys2", GATE_IP_FSYS, 13, 0, 0),
104462306a36Sopenharmony_ci	GATE(CLK_MMC2, "mmc2", "aclk200_fsys2", GATE_IP_FSYS, 14, 0, 0),
104562306a36Sopenharmony_ci	GATE(CLK_SROMC, "sromc", "aclk200_fsys2",
104662306a36Sopenharmony_ci			GATE_IP_FSYS, 17, CLK_IGNORE_UNUSED, 0),
104762306a36Sopenharmony_ci	GATE(CLK_USBH20, "usbh20", "aclk200_fsys", GATE_IP_FSYS, 18, 0, 0),
104862306a36Sopenharmony_ci	GATE(CLK_USBD300, "usbd300", "aclk200_fsys", GATE_IP_FSYS, 19, 0, 0),
104962306a36Sopenharmony_ci	GATE(CLK_USBD301, "usbd301", "aclk200_fsys", GATE_IP_FSYS, 20, 0, 0),
105062306a36Sopenharmony_ci	GATE(CLK_SCLK_UNIPRO, "sclk_unipro", "dout_unipro",
105162306a36Sopenharmony_ci			SRC_MASK_FSYS, 24, CLK_SET_RATE_PARENT, 0),
105262306a36Sopenharmony_ci
105362306a36Sopenharmony_ci	/* PERIC Block */
105462306a36Sopenharmony_ci	GATE(CLK_UART0, "uart0", "mout_user_aclk66_peric",
105562306a36Sopenharmony_ci			GATE_IP_PERIC, 0, 0, 0),
105662306a36Sopenharmony_ci	GATE(CLK_UART1, "uart1", "mout_user_aclk66_peric",
105762306a36Sopenharmony_ci			GATE_IP_PERIC, 1, 0, 0),
105862306a36Sopenharmony_ci	GATE(CLK_UART2, "uart2", "mout_user_aclk66_peric",
105962306a36Sopenharmony_ci			GATE_IP_PERIC, 2, 0, 0),
106062306a36Sopenharmony_ci	GATE(CLK_UART3, "uart3", "mout_user_aclk66_peric",
106162306a36Sopenharmony_ci			GATE_IP_PERIC, 3, 0, 0),
106262306a36Sopenharmony_ci	GATE(CLK_I2C0, "i2c0", "mout_user_aclk66_peric",
106362306a36Sopenharmony_ci			GATE_IP_PERIC, 6, 0, 0),
106462306a36Sopenharmony_ci	GATE(CLK_I2C1, "i2c1", "mout_user_aclk66_peric",
106562306a36Sopenharmony_ci			GATE_IP_PERIC, 7, 0, 0),
106662306a36Sopenharmony_ci	GATE(CLK_I2C2, "i2c2", "mout_user_aclk66_peric",
106762306a36Sopenharmony_ci			GATE_IP_PERIC, 8, 0, 0),
106862306a36Sopenharmony_ci	GATE(CLK_I2C3, "i2c3", "mout_user_aclk66_peric",
106962306a36Sopenharmony_ci			GATE_IP_PERIC, 9, 0, 0),
107062306a36Sopenharmony_ci	GATE(CLK_USI0, "usi0", "mout_user_aclk66_peric",
107162306a36Sopenharmony_ci			GATE_IP_PERIC, 10, 0, 0),
107262306a36Sopenharmony_ci	GATE(CLK_USI1, "usi1", "mout_user_aclk66_peric",
107362306a36Sopenharmony_ci			GATE_IP_PERIC, 11, 0, 0),
107462306a36Sopenharmony_ci	GATE(CLK_USI2, "usi2", "mout_user_aclk66_peric",
107562306a36Sopenharmony_ci			GATE_IP_PERIC, 12, 0, 0),
107662306a36Sopenharmony_ci	GATE(CLK_USI3, "usi3", "mout_user_aclk66_peric",
107762306a36Sopenharmony_ci			GATE_IP_PERIC, 13, 0, 0),
107862306a36Sopenharmony_ci	GATE(CLK_I2C_HDMI, "i2c_hdmi", "mout_user_aclk66_peric",
107962306a36Sopenharmony_ci			GATE_IP_PERIC, 14, 0, 0),
108062306a36Sopenharmony_ci	GATE(CLK_TSADC, "tsadc", "mout_user_aclk66_peric",
108162306a36Sopenharmony_ci			GATE_IP_PERIC, 15, 0, 0),
108262306a36Sopenharmony_ci	GATE(CLK_SPI0, "spi0", "mout_user_aclk66_peric",
108362306a36Sopenharmony_ci			GATE_IP_PERIC, 16, 0, 0),
108462306a36Sopenharmony_ci	GATE(CLK_SPI1, "spi1", "mout_user_aclk66_peric",
108562306a36Sopenharmony_ci			GATE_IP_PERIC, 17, 0, 0),
108662306a36Sopenharmony_ci	GATE(CLK_SPI2, "spi2", "mout_user_aclk66_peric",
108762306a36Sopenharmony_ci			GATE_IP_PERIC, 18, 0, 0),
108862306a36Sopenharmony_ci	GATE(CLK_I2S1, "i2s1", "mout_user_aclk66_peric",
108962306a36Sopenharmony_ci			GATE_IP_PERIC, 20, 0, 0),
109062306a36Sopenharmony_ci	GATE(CLK_I2S2, "i2s2", "mout_user_aclk66_peric",
109162306a36Sopenharmony_ci			GATE_IP_PERIC, 21, 0, 0),
109262306a36Sopenharmony_ci	GATE(CLK_PCM1, "pcm1", "mout_user_aclk66_peric",
109362306a36Sopenharmony_ci			GATE_IP_PERIC, 22, 0, 0),
109462306a36Sopenharmony_ci	GATE(CLK_PCM2, "pcm2", "mout_user_aclk66_peric",
109562306a36Sopenharmony_ci			GATE_IP_PERIC, 23, 0, 0),
109662306a36Sopenharmony_ci	GATE(CLK_PWM, "pwm", "mout_user_aclk66_peric",
109762306a36Sopenharmony_ci			GATE_IP_PERIC, 24, 0, 0),
109862306a36Sopenharmony_ci	GATE(CLK_SPDIF, "spdif", "mout_user_aclk66_peric",
109962306a36Sopenharmony_ci			GATE_IP_PERIC, 26, 0, 0),
110062306a36Sopenharmony_ci	GATE(CLK_USI4, "usi4", "mout_user_aclk66_peric",
110162306a36Sopenharmony_ci			GATE_IP_PERIC, 28, 0, 0),
110262306a36Sopenharmony_ci	GATE(CLK_USI5, "usi5", "mout_user_aclk66_peric",
110362306a36Sopenharmony_ci			GATE_IP_PERIC, 30, 0, 0),
110462306a36Sopenharmony_ci	GATE(CLK_USI6, "usi6", "mout_user_aclk66_peric",
110562306a36Sopenharmony_ci			GATE_IP_PERIC, 31, 0, 0),
110662306a36Sopenharmony_ci
110762306a36Sopenharmony_ci	GATE(CLK_KEYIF, "keyif", "mout_user_aclk66_peric",
110862306a36Sopenharmony_ci			GATE_BUS_PERIC, 22, 0, 0),
110962306a36Sopenharmony_ci
111062306a36Sopenharmony_ci	/* PERIS Block */
111162306a36Sopenharmony_ci	GATE(CLK_CHIPID, "chipid", "aclk66_psgen",
111262306a36Sopenharmony_ci			GATE_IP_PERIS, 0, CLK_IGNORE_UNUSED, 0),
111362306a36Sopenharmony_ci	GATE(CLK_SYSREG, "sysreg", "aclk66_psgen",
111462306a36Sopenharmony_ci			GATE_IP_PERIS, 1, CLK_IGNORE_UNUSED, 0),
111562306a36Sopenharmony_ci	GATE(CLK_TZPC0, "tzpc0", "aclk66_psgen", GATE_IP_PERIS, 6, 0, 0),
111662306a36Sopenharmony_ci	GATE(CLK_TZPC1, "tzpc1", "aclk66_psgen", GATE_IP_PERIS, 7, 0, 0),
111762306a36Sopenharmony_ci	GATE(CLK_TZPC2, "tzpc2", "aclk66_psgen", GATE_IP_PERIS, 8, 0, 0),
111862306a36Sopenharmony_ci	GATE(CLK_TZPC3, "tzpc3", "aclk66_psgen", GATE_IP_PERIS, 9, 0, 0),
111962306a36Sopenharmony_ci	GATE(CLK_TZPC4, "tzpc4", "aclk66_psgen", GATE_IP_PERIS, 10, 0, 0),
112062306a36Sopenharmony_ci	GATE(CLK_TZPC5, "tzpc5", "aclk66_psgen", GATE_IP_PERIS, 11, 0, 0),
112162306a36Sopenharmony_ci	GATE(CLK_TZPC6, "tzpc6", "aclk66_psgen", GATE_IP_PERIS, 12, 0, 0),
112262306a36Sopenharmony_ci	GATE(CLK_TZPC7, "tzpc7", "aclk66_psgen", GATE_IP_PERIS, 13, 0, 0),
112362306a36Sopenharmony_ci	GATE(CLK_TZPC8, "tzpc8", "aclk66_psgen", GATE_IP_PERIS, 14, 0, 0),
112462306a36Sopenharmony_ci	GATE(CLK_TZPC9, "tzpc9", "aclk66_psgen", GATE_IP_PERIS, 15, 0, 0),
112562306a36Sopenharmony_ci	GATE(CLK_HDMI_CEC, "hdmi_cec", "aclk66_psgen", GATE_IP_PERIS, 16, 0, 0),
112662306a36Sopenharmony_ci	GATE(CLK_MCT, "mct", "aclk66_psgen", GATE_IP_PERIS, 18, 0, 0),
112762306a36Sopenharmony_ci	GATE(CLK_WDT, "wdt", "aclk66_psgen", GATE_IP_PERIS, 19, 0, 0),
112862306a36Sopenharmony_ci	GATE(CLK_RTC, "rtc", "aclk66_psgen", GATE_IP_PERIS, 20, 0, 0),
112962306a36Sopenharmony_ci	GATE(CLK_TMU, "tmu", "aclk66_psgen", GATE_IP_PERIS, 21, 0, 0),
113062306a36Sopenharmony_ci	GATE(CLK_TMU_GPU, "tmu_gpu", "aclk66_psgen", GATE_IP_PERIS, 22, 0, 0),
113162306a36Sopenharmony_ci
113262306a36Sopenharmony_ci	/* GEN Block */
113362306a36Sopenharmony_ci	GATE(CLK_ROTATOR, "rotator", "mout_user_aclk266", GATE_IP_GEN, 1, 0, 0),
113462306a36Sopenharmony_ci	GATE(CLK_JPEG, "jpeg", "aclk300_jpeg", GATE_IP_GEN, 2, 0, 0),
113562306a36Sopenharmony_ci	GATE(CLK_JPEG2, "jpeg2", "aclk300_jpeg", GATE_IP_GEN, 3, 0, 0),
113662306a36Sopenharmony_ci	GATE(CLK_MDMA1, "mdma1", "mout_user_aclk266", GATE_IP_GEN, 4, 0, 0),
113762306a36Sopenharmony_ci	GATE(CLK_TOP_RTC, "top_rtc", "aclk66_psgen", GATE_IP_GEN, 5, 0, 0),
113862306a36Sopenharmony_ci	GATE(CLK_SMMU_ROTATOR, "smmu_rotator", "dout_gen_blk",
113962306a36Sopenharmony_ci			GATE_IP_GEN, 6, 0, 0),
114062306a36Sopenharmony_ci	GATE(CLK_SMMU_JPEG, "smmu_jpeg", "dout_jpg_blk", GATE_IP_GEN, 7, 0, 0),
114162306a36Sopenharmony_ci	GATE(CLK_SMMU_MDMA1, "smmu_mdma1", "dout_gen_blk",
114262306a36Sopenharmony_ci			GATE_IP_GEN, 9, 0, 0),
114362306a36Sopenharmony_ci
114462306a36Sopenharmony_ci	/* GATE_IP_GEN doesn't list gates for smmu_jpeg2 and mc */
114562306a36Sopenharmony_ci	GATE(CLK_SMMU_JPEG2, "smmu_jpeg2", "dout_jpg_blk",
114662306a36Sopenharmony_ci			GATE_BUS_GEN, 28, 0, 0),
114762306a36Sopenharmony_ci	GATE(CLK_MC, "mc", "aclk66_psgen", GATE_BUS_GEN, 12, 0, 0),
114862306a36Sopenharmony_ci
114962306a36Sopenharmony_ci	/* GSCL Block */
115062306a36Sopenharmony_ci	GATE(CLK_SCLK_GSCL_WA, "sclk_gscl_wa", "mout_user_aclk333_432_gscl",
115162306a36Sopenharmony_ci			GATE_TOP_SCLK_GSCL, 6, 0, 0),
115262306a36Sopenharmony_ci	GATE(CLK_SCLK_GSCL_WB, "sclk_gscl_wb", "mout_user_aclk333_432_gscl",
115362306a36Sopenharmony_ci			GATE_TOP_SCLK_GSCL, 7, 0, 0),
115462306a36Sopenharmony_ci
115562306a36Sopenharmony_ci	GATE(CLK_FIMC_3AA, "fimc_3aa", "aclk333_432_gscl",
115662306a36Sopenharmony_ci			GATE_IP_GSCL0, 4, 0, 0),
115762306a36Sopenharmony_ci	GATE(CLK_FIMC_LITE0, "fimc_lite0", "aclk333_432_gscl",
115862306a36Sopenharmony_ci			GATE_IP_GSCL0, 5, 0, 0),
115962306a36Sopenharmony_ci	GATE(CLK_FIMC_LITE1, "fimc_lite1", "aclk333_432_gscl",
116062306a36Sopenharmony_ci			GATE_IP_GSCL0, 6, 0, 0),
116162306a36Sopenharmony_ci
116262306a36Sopenharmony_ci	GATE(CLK_SMMU_3AA, "smmu_3aa", "dout_gscl_blk_333",
116362306a36Sopenharmony_ci			GATE_IP_GSCL1, 2, 0, 0),
116462306a36Sopenharmony_ci	GATE(CLK_SMMU_FIMCL0, "smmu_fimcl0", "dout_gscl_blk_333",
116562306a36Sopenharmony_ci			GATE_IP_GSCL1, 3, 0, 0),
116662306a36Sopenharmony_ci	GATE(CLK_SMMU_FIMCL1, "smmu_fimcl1", "dout_gscl_blk_333",
116762306a36Sopenharmony_ci			GATE_IP_GSCL1, 4, 0, 0),
116862306a36Sopenharmony_ci	GATE(CLK_GSCL_WA, "gscl_wa", "sclk_gscl_wa", GATE_IP_GSCL1, 12,
116962306a36Sopenharmony_ci			CLK_IS_CRITICAL, 0),
117062306a36Sopenharmony_ci	GATE(CLK_GSCL_WB, "gscl_wb", "sclk_gscl_wb", GATE_IP_GSCL1, 13,
117162306a36Sopenharmony_ci			CLK_IS_CRITICAL, 0),
117262306a36Sopenharmony_ci	GATE(CLK_SMMU_FIMCL3, "smmu_fimcl3", "dout_gscl_blk_333",
117362306a36Sopenharmony_ci			GATE_IP_GSCL1, 16, 0, 0),
117462306a36Sopenharmony_ci	GATE(CLK_FIMC_LITE3, "fimc_lite3", "aclk333_432_gscl",
117562306a36Sopenharmony_ci			GATE_IP_GSCL1, 17, 0, 0),
117662306a36Sopenharmony_ci
117762306a36Sopenharmony_ci	/* ISP */
117862306a36Sopenharmony_ci	GATE(CLK_SCLK_UART_ISP, "sclk_uart_isp", "dout_uart_isp",
117962306a36Sopenharmony_ci			GATE_TOP_SCLK_ISP, 0, CLK_SET_RATE_PARENT, 0),
118062306a36Sopenharmony_ci	GATE(CLK_SCLK_SPI0_ISP, "sclk_spi0_isp", "dout_spi0_isp_pre",
118162306a36Sopenharmony_ci			GATE_TOP_SCLK_ISP, 1, CLK_SET_RATE_PARENT, 0),
118262306a36Sopenharmony_ci	GATE(CLK_SCLK_SPI1_ISP, "sclk_spi1_isp", "dout_spi1_isp_pre",
118362306a36Sopenharmony_ci			GATE_TOP_SCLK_ISP, 2, CLK_SET_RATE_PARENT, 0),
118462306a36Sopenharmony_ci	GATE(CLK_SCLK_PWM_ISP, "sclk_pwm_isp", "dout_pwm_isp",
118562306a36Sopenharmony_ci			GATE_TOP_SCLK_ISP, 3, CLK_SET_RATE_PARENT, 0),
118662306a36Sopenharmony_ci	GATE(CLK_SCLK_ISP_SENSOR0, "sclk_isp_sensor0", "dout_isp_sensor0",
118762306a36Sopenharmony_ci			GATE_TOP_SCLK_ISP, 4, CLK_SET_RATE_PARENT, 0),
118862306a36Sopenharmony_ci	GATE(CLK_SCLK_ISP_SENSOR1, "sclk_isp_sensor1", "dout_isp_sensor1",
118962306a36Sopenharmony_ci			GATE_TOP_SCLK_ISP, 8, CLK_SET_RATE_PARENT, 0),
119062306a36Sopenharmony_ci	GATE(CLK_SCLK_ISP_SENSOR2, "sclk_isp_sensor2", "dout_isp_sensor2",
119162306a36Sopenharmony_ci			GATE_TOP_SCLK_ISP, 12, CLK_SET_RATE_PARENT, 0),
119262306a36Sopenharmony_ci
119362306a36Sopenharmony_ci	/* CDREX */
119462306a36Sopenharmony_ci	GATE(CLK_CLKM_PHY0, "clkm_phy0", "dout_sclk_cdrex",
119562306a36Sopenharmony_ci			GATE_BUS_CDREX0, 0, 0, 0),
119662306a36Sopenharmony_ci	GATE(CLK_CLKM_PHY1, "clkm_phy1", "dout_sclk_cdrex",
119762306a36Sopenharmony_ci			GATE_BUS_CDREX0, 1, 0, 0),
119862306a36Sopenharmony_ci	GATE(0, "mx_mspll_ccore_phy", "mout_mx_mspll_ccore_phy",
119962306a36Sopenharmony_ci			SRC_MASK_TOP7, 0, CLK_IGNORE_UNUSED, 0),
120062306a36Sopenharmony_ci
120162306a36Sopenharmony_ci	GATE(CLK_ACLK_PPMU_DREX1_1, "aclk_ppmu_drex1_1", "dout_aclk_cdrex1",
120262306a36Sopenharmony_ci			GATE_BUS_CDREX1, 12, CLK_IGNORE_UNUSED, 0),
120362306a36Sopenharmony_ci	GATE(CLK_ACLK_PPMU_DREX1_0, "aclk_ppmu_drex1_0", "dout_aclk_cdrex1",
120462306a36Sopenharmony_ci			GATE_BUS_CDREX1, 13, CLK_IGNORE_UNUSED, 0),
120562306a36Sopenharmony_ci	GATE(CLK_ACLK_PPMU_DREX0_1, "aclk_ppmu_drex0_1", "dout_aclk_cdrex1",
120662306a36Sopenharmony_ci			GATE_BUS_CDREX1, 14, CLK_IGNORE_UNUSED, 0),
120762306a36Sopenharmony_ci	GATE(CLK_ACLK_PPMU_DREX0_0, "aclk_ppmu_drex0_0", "dout_aclk_cdrex1",
120862306a36Sopenharmony_ci			GATE_BUS_CDREX1, 15, CLK_IGNORE_UNUSED, 0),
120962306a36Sopenharmony_ci
121062306a36Sopenharmony_ci	GATE(CLK_PCLK_PPMU_DREX1_1, "pclk_ppmu_drex1_1", "dout_pclk_cdrex",
121162306a36Sopenharmony_ci			GATE_BUS_CDREX1, 26, CLK_IGNORE_UNUSED, 0),
121262306a36Sopenharmony_ci	GATE(CLK_PCLK_PPMU_DREX1_0, "pclk_ppmu_drex1_0", "dout_pclk_cdrex",
121362306a36Sopenharmony_ci			GATE_BUS_CDREX1, 27, CLK_IGNORE_UNUSED, 0),
121462306a36Sopenharmony_ci	GATE(CLK_PCLK_PPMU_DREX0_1, "pclk_ppmu_drex0_1", "dout_pclk_cdrex",
121562306a36Sopenharmony_ci			GATE_BUS_CDREX1, 28, CLK_IGNORE_UNUSED, 0),
121662306a36Sopenharmony_ci	GATE(CLK_PCLK_PPMU_DREX0_0, "pclk_ppmu_drex0_0", "dout_pclk_cdrex",
121762306a36Sopenharmony_ci			GATE_BUS_CDREX1, 29, CLK_IGNORE_UNUSED, 0),
121862306a36Sopenharmony_ci};
121962306a36Sopenharmony_ci
122062306a36Sopenharmony_cistatic const struct samsung_div_clock exynos5x_disp_div_clks[] __initconst = {
122162306a36Sopenharmony_ci	DIV(0, "dout_disp1_blk", "aclk200_disp1", DIV2_RATIO0, 16, 2),
122262306a36Sopenharmony_ci};
122362306a36Sopenharmony_ci
122462306a36Sopenharmony_cistatic const struct samsung_gate_clock exynos5x_disp_gate_clks[] __initconst = {
122562306a36Sopenharmony_ci	GATE(CLK_FIMD1, "fimd1", "aclk300_disp1", GATE_IP_DISP1, 0, 0, 0),
122662306a36Sopenharmony_ci	GATE(CLK_DSIM1, "dsim1", "aclk200_disp1", GATE_IP_DISP1, 3, 0, 0),
122762306a36Sopenharmony_ci	GATE(CLK_DP1, "dp1", "aclk200_disp1", GATE_IP_DISP1, 4, 0, 0),
122862306a36Sopenharmony_ci	GATE(CLK_MIXER, "mixer", "aclk200_disp1", GATE_IP_DISP1, 5, 0, 0),
122962306a36Sopenharmony_ci	GATE(CLK_HDMI, "hdmi", "aclk200_disp1", GATE_IP_DISP1, 6, 0, 0),
123062306a36Sopenharmony_ci	GATE(CLK_SMMU_FIMD1M0, "smmu_fimd1m0", "dout_disp1_blk",
123162306a36Sopenharmony_ci			GATE_IP_DISP1, 7, 0, 0),
123262306a36Sopenharmony_ci	GATE(CLK_SMMU_FIMD1M1, "smmu_fimd1m1", "dout_disp1_blk",
123362306a36Sopenharmony_ci			GATE_IP_DISP1, 8, 0, 0),
123462306a36Sopenharmony_ci	GATE(CLK_SMMU_MIXER, "smmu_mixer", "aclk200_disp1",
123562306a36Sopenharmony_ci			GATE_IP_DISP1, 9, 0, 0),
123662306a36Sopenharmony_ci};
123762306a36Sopenharmony_ci
123862306a36Sopenharmony_cistatic struct exynos5_subcmu_reg_dump exynos5x_disp_suspend_regs[] = {
123962306a36Sopenharmony_ci	{ GATE_IP_DISP1, 0xffffffff, 0xffffffff }, /* DISP1 gates */
124062306a36Sopenharmony_ci	{ SRC_TOP5, 0, BIT(0) },	/* MUX mout_user_aclk400_disp1 */
124162306a36Sopenharmony_ci	{ SRC_TOP5, 0, BIT(24) },	/* MUX mout_user_aclk300_disp1 */
124262306a36Sopenharmony_ci	{ SRC_TOP3, 0, BIT(8) },	/* MUX mout_user_aclk200_disp1 */
124362306a36Sopenharmony_ci	{ DIV2_RATIO0, 0, 0x30000 },		/* DIV dout_disp1_blk */
124462306a36Sopenharmony_ci};
124562306a36Sopenharmony_ci
124662306a36Sopenharmony_cistatic const struct samsung_div_clock exynos5x_gsc_div_clks[] __initconst = {
124762306a36Sopenharmony_ci	DIV(0, "dout_gscl_blk_300", "mout_user_aclk300_gscl",
124862306a36Sopenharmony_ci			DIV2_RATIO0, 4, 2),
124962306a36Sopenharmony_ci};
125062306a36Sopenharmony_ci
125162306a36Sopenharmony_cistatic const struct samsung_gate_clock exynos5x_gsc_gate_clks[] __initconst = {
125262306a36Sopenharmony_ci	GATE(CLK_GSCL0, "gscl0", "aclk300_gscl", GATE_IP_GSCL0, 0, 0, 0),
125362306a36Sopenharmony_ci	GATE(CLK_GSCL1, "gscl1", "aclk300_gscl", GATE_IP_GSCL0, 1, 0, 0),
125462306a36Sopenharmony_ci	GATE(CLK_SMMU_GSCL0, "smmu_gscl0", "dout_gscl_blk_300",
125562306a36Sopenharmony_ci			GATE_IP_GSCL1, 6, 0, 0),
125662306a36Sopenharmony_ci	GATE(CLK_SMMU_GSCL1, "smmu_gscl1", "dout_gscl_blk_300",
125762306a36Sopenharmony_ci			GATE_IP_GSCL1, 7, 0, 0),
125862306a36Sopenharmony_ci};
125962306a36Sopenharmony_ci
126062306a36Sopenharmony_cistatic struct exynos5_subcmu_reg_dump exynos5x_gsc_suspend_regs[] = {
126162306a36Sopenharmony_ci	{ GATE_IP_GSCL0, 0x3, 0x3 },	/* GSC gates */
126262306a36Sopenharmony_ci	{ GATE_IP_GSCL1, 0xc0, 0xc0 },	/* GSC gates */
126362306a36Sopenharmony_ci	{ SRC_TOP5, 0, BIT(28) },	/* MUX mout_user_aclk300_gscl */
126462306a36Sopenharmony_ci	{ DIV2_RATIO0, 0, 0x30 },	/* DIV dout_gscl_blk_300 */
126562306a36Sopenharmony_ci};
126662306a36Sopenharmony_ci
126762306a36Sopenharmony_cistatic const struct samsung_gate_clock exynos5x_g3d_gate_clks[] __initconst = {
126862306a36Sopenharmony_ci	GATE(CLK_G3D, "g3d", "mout_user_aclk_g3d", GATE_IP_G3D, 9,
126962306a36Sopenharmony_ci	     CLK_SET_RATE_PARENT, 0),
127062306a36Sopenharmony_ci};
127162306a36Sopenharmony_ci
127262306a36Sopenharmony_cistatic struct exynos5_subcmu_reg_dump exynos5x_g3d_suspend_regs[] = {
127362306a36Sopenharmony_ci	{ GATE_IP_G3D, 0x3ff, 0x3ff },	/* G3D gates */
127462306a36Sopenharmony_ci	{ SRC_TOP5, 0, BIT(16) },	/* MUX mout_user_aclk_g3d */
127562306a36Sopenharmony_ci};
127662306a36Sopenharmony_ci
127762306a36Sopenharmony_cistatic const struct samsung_div_clock exynos5x_mfc_div_clks[] __initconst = {
127862306a36Sopenharmony_ci	DIV(0, "dout_mfc_blk", "mout_user_aclk333", DIV4_RATIO, 0, 2),
127962306a36Sopenharmony_ci};
128062306a36Sopenharmony_ci
128162306a36Sopenharmony_cistatic const struct samsung_gate_clock exynos5x_mfc_gate_clks[] __initconst = {
128262306a36Sopenharmony_ci	GATE(CLK_MFC, "mfc", "aclk333", GATE_IP_MFC, 0, 0, 0),
128362306a36Sopenharmony_ci	GATE(CLK_SMMU_MFCL, "smmu_mfcl", "dout_mfc_blk", GATE_IP_MFC, 1, 0, 0),
128462306a36Sopenharmony_ci	GATE(CLK_SMMU_MFCR, "smmu_mfcr", "dout_mfc_blk", GATE_IP_MFC, 2, 0, 0),
128562306a36Sopenharmony_ci};
128662306a36Sopenharmony_ci
128762306a36Sopenharmony_cistatic struct exynos5_subcmu_reg_dump exynos5x_mfc_suspend_regs[] = {
128862306a36Sopenharmony_ci	{ GATE_IP_MFC, 0xffffffff, 0xffffffff }, /* MFC gates */
128962306a36Sopenharmony_ci	{ SRC_TOP4, 0, BIT(28) },		/* MUX mout_user_aclk333 */
129062306a36Sopenharmony_ci	{ DIV4_RATIO, 0, 0x3 },			/* DIV dout_mfc_blk */
129162306a36Sopenharmony_ci};
129262306a36Sopenharmony_ci
129362306a36Sopenharmony_cistatic const struct samsung_gate_clock exynos5x_mscl_gate_clks[] __initconst = {
129462306a36Sopenharmony_ci	/* MSCL Block */
129562306a36Sopenharmony_ci	GATE(CLK_MSCL0, "mscl0", "aclk400_mscl", GATE_IP_MSCL, 0, 0, 0),
129662306a36Sopenharmony_ci	GATE(CLK_MSCL1, "mscl1", "aclk400_mscl", GATE_IP_MSCL, 1, 0, 0),
129762306a36Sopenharmony_ci	GATE(CLK_MSCL2, "mscl2", "aclk400_mscl", GATE_IP_MSCL, 2, 0, 0),
129862306a36Sopenharmony_ci	GATE(CLK_SMMU_MSCL0, "smmu_mscl0", "dout_mscl_blk",
129962306a36Sopenharmony_ci			GATE_IP_MSCL, 8, 0, 0),
130062306a36Sopenharmony_ci	GATE(CLK_SMMU_MSCL1, "smmu_mscl1", "dout_mscl_blk",
130162306a36Sopenharmony_ci			GATE_IP_MSCL, 9, 0, 0),
130262306a36Sopenharmony_ci	GATE(CLK_SMMU_MSCL2, "smmu_mscl2", "dout_mscl_blk",
130362306a36Sopenharmony_ci			GATE_IP_MSCL, 10, 0, 0),
130462306a36Sopenharmony_ci};
130562306a36Sopenharmony_ci
130662306a36Sopenharmony_cistatic const struct samsung_div_clock exynos5x_mscl_div_clks[] __initconst = {
130762306a36Sopenharmony_ci	DIV(0, "dout_mscl_blk", "aclk400_mscl", DIV2_RATIO0, 28, 2),
130862306a36Sopenharmony_ci};
130962306a36Sopenharmony_ci
131062306a36Sopenharmony_cistatic struct exynos5_subcmu_reg_dump exynos5x_mscl_suspend_regs[] = {
131162306a36Sopenharmony_ci	{ GATE_IP_MSCL, 0xffffffff, 0xffffffff }, /* MSCL gates */
131262306a36Sopenharmony_ci	{ SRC_TOP3, 0, BIT(4) },		/* MUX mout_user_aclk400_mscl */
131362306a36Sopenharmony_ci	{ DIV2_RATIO0, 0, 0x30000000 },		/* DIV dout_mscl_blk */
131462306a36Sopenharmony_ci};
131562306a36Sopenharmony_ci
131662306a36Sopenharmony_cistatic const struct samsung_gate_clock exynos5800_mau_gate_clks[] __initconst = {
131762306a36Sopenharmony_ci	GATE(CLK_MAU_EPLL, "mau_epll", "mout_user_mau_epll",
131862306a36Sopenharmony_ci			SRC_MASK_TOP7, 20, CLK_SET_RATE_PARENT, 0),
131962306a36Sopenharmony_ci	GATE(CLK_SCLK_MAUDIO0, "sclk_maudio0", "dout_maudio0",
132062306a36Sopenharmony_ci		GATE_TOP_SCLK_MAU, 0, CLK_SET_RATE_PARENT, 0),
132162306a36Sopenharmony_ci	GATE(CLK_SCLK_MAUPCM0, "sclk_maupcm0", "dout_maupcm0",
132262306a36Sopenharmony_ci		GATE_TOP_SCLK_MAU, 1, CLK_SET_RATE_PARENT, 0),
132362306a36Sopenharmony_ci};
132462306a36Sopenharmony_ci
132562306a36Sopenharmony_cistatic struct exynos5_subcmu_reg_dump exynos5800_mau_suspend_regs[] = {
132662306a36Sopenharmony_ci	{ SRC_TOP9, 0, BIT(8) },	/* MUX mout_user_mau_epll */
132762306a36Sopenharmony_ci};
132862306a36Sopenharmony_ci
132962306a36Sopenharmony_cistatic const struct exynos5_subcmu_info exynos5x_disp_subcmu = {
133062306a36Sopenharmony_ci	.div_clks	= exynos5x_disp_div_clks,
133162306a36Sopenharmony_ci	.nr_div_clks	= ARRAY_SIZE(exynos5x_disp_div_clks),
133262306a36Sopenharmony_ci	.gate_clks	= exynos5x_disp_gate_clks,
133362306a36Sopenharmony_ci	.nr_gate_clks	= ARRAY_SIZE(exynos5x_disp_gate_clks),
133462306a36Sopenharmony_ci	.suspend_regs	= exynos5x_disp_suspend_regs,
133562306a36Sopenharmony_ci	.nr_suspend_regs = ARRAY_SIZE(exynos5x_disp_suspend_regs),
133662306a36Sopenharmony_ci	.pd_name	= "DISP",
133762306a36Sopenharmony_ci};
133862306a36Sopenharmony_ci
133962306a36Sopenharmony_cistatic const struct exynos5_subcmu_info exynos5x_gsc_subcmu = {
134062306a36Sopenharmony_ci	.div_clks	= exynos5x_gsc_div_clks,
134162306a36Sopenharmony_ci	.nr_div_clks	= ARRAY_SIZE(exynos5x_gsc_div_clks),
134262306a36Sopenharmony_ci	.gate_clks	= exynos5x_gsc_gate_clks,
134362306a36Sopenharmony_ci	.nr_gate_clks	= ARRAY_SIZE(exynos5x_gsc_gate_clks),
134462306a36Sopenharmony_ci	.suspend_regs	= exynos5x_gsc_suspend_regs,
134562306a36Sopenharmony_ci	.nr_suspend_regs = ARRAY_SIZE(exynos5x_gsc_suspend_regs),
134662306a36Sopenharmony_ci	.pd_name	= "GSC",
134762306a36Sopenharmony_ci};
134862306a36Sopenharmony_ci
134962306a36Sopenharmony_cistatic const struct exynos5_subcmu_info exynos5x_g3d_subcmu = {
135062306a36Sopenharmony_ci	.gate_clks	= exynos5x_g3d_gate_clks,
135162306a36Sopenharmony_ci	.nr_gate_clks	= ARRAY_SIZE(exynos5x_g3d_gate_clks),
135262306a36Sopenharmony_ci	.suspend_regs	= exynos5x_g3d_suspend_regs,
135362306a36Sopenharmony_ci	.nr_suspend_regs = ARRAY_SIZE(exynos5x_g3d_suspend_regs),
135462306a36Sopenharmony_ci	.pd_name	= "G3D",
135562306a36Sopenharmony_ci};
135662306a36Sopenharmony_ci
135762306a36Sopenharmony_cistatic const struct exynos5_subcmu_info exynos5x_mfc_subcmu = {
135862306a36Sopenharmony_ci	.div_clks	= exynos5x_mfc_div_clks,
135962306a36Sopenharmony_ci	.nr_div_clks	= ARRAY_SIZE(exynos5x_mfc_div_clks),
136062306a36Sopenharmony_ci	.gate_clks	= exynos5x_mfc_gate_clks,
136162306a36Sopenharmony_ci	.nr_gate_clks	= ARRAY_SIZE(exynos5x_mfc_gate_clks),
136262306a36Sopenharmony_ci	.suspend_regs	= exynos5x_mfc_suspend_regs,
136362306a36Sopenharmony_ci	.nr_suspend_regs = ARRAY_SIZE(exynos5x_mfc_suspend_regs),
136462306a36Sopenharmony_ci	.pd_name	= "MFC",
136562306a36Sopenharmony_ci};
136662306a36Sopenharmony_ci
136762306a36Sopenharmony_cistatic const struct exynos5_subcmu_info exynos5x_mscl_subcmu = {
136862306a36Sopenharmony_ci	.div_clks	= exynos5x_mscl_div_clks,
136962306a36Sopenharmony_ci	.nr_div_clks	= ARRAY_SIZE(exynos5x_mscl_div_clks),
137062306a36Sopenharmony_ci	.gate_clks	= exynos5x_mscl_gate_clks,
137162306a36Sopenharmony_ci	.nr_gate_clks	= ARRAY_SIZE(exynos5x_mscl_gate_clks),
137262306a36Sopenharmony_ci	.suspend_regs	= exynos5x_mscl_suspend_regs,
137362306a36Sopenharmony_ci	.nr_suspend_regs = ARRAY_SIZE(exynos5x_mscl_suspend_regs),
137462306a36Sopenharmony_ci	.pd_name	= "MSC",
137562306a36Sopenharmony_ci};
137662306a36Sopenharmony_ci
137762306a36Sopenharmony_cistatic const struct exynos5_subcmu_info exynos5800_mau_subcmu = {
137862306a36Sopenharmony_ci	.gate_clks	= exynos5800_mau_gate_clks,
137962306a36Sopenharmony_ci	.nr_gate_clks	= ARRAY_SIZE(exynos5800_mau_gate_clks),
138062306a36Sopenharmony_ci	.suspend_regs	= exynos5800_mau_suspend_regs,
138162306a36Sopenharmony_ci	.nr_suspend_regs = ARRAY_SIZE(exynos5800_mau_suspend_regs),
138262306a36Sopenharmony_ci	.pd_name	= "MAU",
138362306a36Sopenharmony_ci};
138462306a36Sopenharmony_ci
138562306a36Sopenharmony_cistatic const struct exynos5_subcmu_info *exynos5x_subcmus[] = {
138662306a36Sopenharmony_ci	&exynos5x_disp_subcmu,
138762306a36Sopenharmony_ci	&exynos5x_gsc_subcmu,
138862306a36Sopenharmony_ci	&exynos5x_g3d_subcmu,
138962306a36Sopenharmony_ci	&exynos5x_mfc_subcmu,
139062306a36Sopenharmony_ci	&exynos5x_mscl_subcmu,
139162306a36Sopenharmony_ci};
139262306a36Sopenharmony_ci
139362306a36Sopenharmony_cistatic const struct exynos5_subcmu_info *exynos5800_subcmus[] = {
139462306a36Sopenharmony_ci	&exynos5x_disp_subcmu,
139562306a36Sopenharmony_ci	&exynos5x_gsc_subcmu,
139662306a36Sopenharmony_ci	&exynos5x_g3d_subcmu,
139762306a36Sopenharmony_ci	&exynos5x_mfc_subcmu,
139862306a36Sopenharmony_ci	&exynos5x_mscl_subcmu,
139962306a36Sopenharmony_ci	&exynos5800_mau_subcmu,
140062306a36Sopenharmony_ci};
140162306a36Sopenharmony_ci
140262306a36Sopenharmony_cistatic const struct samsung_pll_rate_table exynos5420_pll2550x_24mhz_tbl[] __initconst = {
140362306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 2000000000, 250, 3, 0),
140462306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1900000000, 475, 6, 0),
140562306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1800000000, 225, 3, 0),
140662306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1700000000, 425, 6, 0),
140762306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1600000000, 200, 3, 0),
140862306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1500000000, 250, 4, 0),
140962306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1400000000, 175, 3, 0),
141062306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1300000000, 325, 6, 0),
141162306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1200000000, 200, 2, 1),
141262306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1100000000, 275, 3, 1),
141362306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 1000000000, 250, 3, 1),
141462306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 900000000,  150, 2, 1),
141562306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 800000000,  200, 3, 1),
141662306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 700000000,  175, 3, 1),
141762306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 600000000,  200, 2, 2),
141862306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 500000000,  250, 3, 2),
141962306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 400000000,  200, 3, 2),
142062306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 300000000,  200, 2, 3),
142162306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 200000000,  200, 3, 3),
142262306a36Sopenharmony_ci};
142362306a36Sopenharmony_ci
142462306a36Sopenharmony_cistatic const struct samsung_pll_rate_table exynos5422_bpll_rate_table[] = {
142562306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 825000000, 275, 4, 1),
142662306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 728000000, 182, 3, 1),
142762306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 633000000, 211, 4, 1),
142862306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 543000000, 181, 2, 2),
142962306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 413000000, 413, 6, 2),
143062306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 275000000, 275, 3, 3),
143162306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 206000000, 206, 3, 3),
143262306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 165000000, 110, 2, 3),
143362306a36Sopenharmony_ci};
143462306a36Sopenharmony_ci
143562306a36Sopenharmony_cistatic const struct samsung_pll_rate_table exynos5420_epll_24mhz_tbl[] = {
143662306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 600000000U, 100, 2, 1, 0),
143762306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 400000000U, 200, 3, 2, 0),
143862306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 393216003U, 197, 3, 2, -25690),
143962306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 361267218U, 301, 5, 2, 3671),
144062306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 200000000U, 200, 3, 3, 0),
144162306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 196608001U, 197, 3, 3, -25690),
144262306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 180633609U, 301, 5, 3, 3671),
144362306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 131072006U, 131, 3, 3, 4719),
144462306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ, 100000000U, 200, 3, 4, 0),
144562306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ,  73728000U, 98, 2, 4, 19923),
144662306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ,  67737602U, 90, 2, 4, 20762),
144762306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ,  65536003U, 131, 3, 4, 4719),
144862306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ,  49152000U, 197, 3, 5, -25690),
144962306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ,  45158401U, 90, 3, 4, 20762),
145062306a36Sopenharmony_ci	PLL_36XX_RATE(24 * MHZ,  32768001U, 131, 3, 5, 4719),
145162306a36Sopenharmony_ci};
145262306a36Sopenharmony_ci
145362306a36Sopenharmony_cistatic const struct samsung_pll_rate_table exynos5420_vpll_24mhz_tbl[] = {
145462306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 600000000U,  200, 2, 2),
145562306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 543000000U,  181, 2, 2),
145662306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 480000000U,  160, 2, 2),
145762306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 420000000U,  140, 2, 2),
145862306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 350000000U,  175, 3, 2),
145962306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 266000000U,  266, 3, 3),
146062306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 177000000U,  118, 2, 3),
146162306a36Sopenharmony_ci	PLL_35XX_RATE(24 * MHZ, 100000000U,  200, 3, 4),
146262306a36Sopenharmony_ci};
146362306a36Sopenharmony_ci
146462306a36Sopenharmony_cistatic struct samsung_pll_clock exynos5x_plls[nr_plls] __initdata = {
146562306a36Sopenharmony_ci	[apll] = PLL(pll_2550, CLK_FOUT_APLL, "fout_apll", "fin_pll", APLL_LOCK,
146662306a36Sopenharmony_ci		APLL_CON0, NULL),
146762306a36Sopenharmony_ci	[cpll] = PLL(pll_2550, CLK_FOUT_CPLL, "fout_cpll", "fin_pll", CPLL_LOCK,
146862306a36Sopenharmony_ci		CPLL_CON0, NULL),
146962306a36Sopenharmony_ci	[dpll] = PLL(pll_2550, CLK_FOUT_DPLL, "fout_dpll", "fin_pll", DPLL_LOCK,
147062306a36Sopenharmony_ci		DPLL_CON0, NULL),
147162306a36Sopenharmony_ci	[epll] = PLL(pll_36xx, CLK_FOUT_EPLL, "fout_epll", "fin_pll", EPLL_LOCK,
147262306a36Sopenharmony_ci		EPLL_CON0, NULL),
147362306a36Sopenharmony_ci	[rpll] = PLL(pll_2650, CLK_FOUT_RPLL, "fout_rpll", "fin_pll", RPLL_LOCK,
147462306a36Sopenharmony_ci		RPLL_CON0, NULL),
147562306a36Sopenharmony_ci	[ipll] = PLL(pll_2550, CLK_FOUT_IPLL, "fout_ipll", "fin_pll", IPLL_LOCK,
147662306a36Sopenharmony_ci		IPLL_CON0, NULL),
147762306a36Sopenharmony_ci	[spll] = PLL(pll_2550, CLK_FOUT_SPLL, "fout_spll", "fin_pll", SPLL_LOCK,
147862306a36Sopenharmony_ci		SPLL_CON0, NULL),
147962306a36Sopenharmony_ci	[vpll] = PLL(pll_2550, CLK_FOUT_VPLL, "fout_vpll", "fin_pll", VPLL_LOCK,
148062306a36Sopenharmony_ci		VPLL_CON0, NULL),
148162306a36Sopenharmony_ci	[mpll] = PLL(pll_2550, CLK_FOUT_MPLL, "fout_mpll", "fin_pll", MPLL_LOCK,
148262306a36Sopenharmony_ci		MPLL_CON0, NULL),
148362306a36Sopenharmony_ci	[bpll] = PLL(pll_2550, CLK_FOUT_BPLL, "fout_bpll", "fin_pll", BPLL_LOCK,
148462306a36Sopenharmony_ci		BPLL_CON0, NULL),
148562306a36Sopenharmony_ci	[kpll] = PLL(pll_2550, CLK_FOUT_KPLL, "fout_kpll", "fin_pll", KPLL_LOCK,
148662306a36Sopenharmony_ci		KPLL_CON0, NULL),
148762306a36Sopenharmony_ci};
148862306a36Sopenharmony_ci
148962306a36Sopenharmony_ci#define E5420_EGL_DIV0(apll, pclk_dbg, atb, cpud)			\
149062306a36Sopenharmony_ci		((((apll) << 24) | ((pclk_dbg) << 20) | ((atb) << 16) |	\
149162306a36Sopenharmony_ci		 ((cpud) << 4)))
149262306a36Sopenharmony_ci
149362306a36Sopenharmony_cistatic const struct exynos_cpuclk_cfg_data exynos5420_eglclk_d[] __initconst = {
149462306a36Sopenharmony_ci	{ 1800000, E5420_EGL_DIV0(3, 7, 7, 4), },
149562306a36Sopenharmony_ci	{ 1700000, E5420_EGL_DIV0(3, 7, 7, 3), },
149662306a36Sopenharmony_ci	{ 1600000, E5420_EGL_DIV0(3, 7, 7, 3), },
149762306a36Sopenharmony_ci	{ 1500000, E5420_EGL_DIV0(3, 7, 7, 3), },
149862306a36Sopenharmony_ci	{ 1400000, E5420_EGL_DIV0(3, 7, 7, 3), },
149962306a36Sopenharmony_ci	{ 1300000, E5420_EGL_DIV0(3, 7, 7, 2), },
150062306a36Sopenharmony_ci	{ 1200000, E5420_EGL_DIV0(3, 7, 7, 2), },
150162306a36Sopenharmony_ci	{ 1100000, E5420_EGL_DIV0(3, 7, 7, 2), },
150262306a36Sopenharmony_ci	{ 1000000, E5420_EGL_DIV0(3, 6, 6, 2), },
150362306a36Sopenharmony_ci	{  900000, E5420_EGL_DIV0(3, 6, 6, 2), },
150462306a36Sopenharmony_ci	{  800000, E5420_EGL_DIV0(3, 5, 5, 2), },
150562306a36Sopenharmony_ci	{  700000, E5420_EGL_DIV0(3, 5, 5, 2), },
150662306a36Sopenharmony_ci	{  600000, E5420_EGL_DIV0(3, 4, 4, 2), },
150762306a36Sopenharmony_ci	{  500000, E5420_EGL_DIV0(3, 3, 3, 2), },
150862306a36Sopenharmony_ci	{  400000, E5420_EGL_DIV0(3, 3, 3, 2), },
150962306a36Sopenharmony_ci	{  300000, E5420_EGL_DIV0(3, 3, 3, 2), },
151062306a36Sopenharmony_ci	{  200000, E5420_EGL_DIV0(3, 3, 3, 2), },
151162306a36Sopenharmony_ci	{  0 },
151262306a36Sopenharmony_ci};
151362306a36Sopenharmony_ci
151462306a36Sopenharmony_cistatic const struct exynos_cpuclk_cfg_data exynos5800_eglclk_d[] __initconst = {
151562306a36Sopenharmony_ci	{ 2000000, E5420_EGL_DIV0(3, 7, 7, 4), },
151662306a36Sopenharmony_ci	{ 1900000, E5420_EGL_DIV0(3, 7, 7, 4), },
151762306a36Sopenharmony_ci	{ 1800000, E5420_EGL_DIV0(3, 7, 7, 4), },
151862306a36Sopenharmony_ci	{ 1700000, E5420_EGL_DIV0(3, 7, 7, 3), },
151962306a36Sopenharmony_ci	{ 1600000, E5420_EGL_DIV0(3, 7, 7, 3), },
152062306a36Sopenharmony_ci	{ 1500000, E5420_EGL_DIV0(3, 7, 7, 3), },
152162306a36Sopenharmony_ci	{ 1400000, E5420_EGL_DIV0(3, 7, 7, 3), },
152262306a36Sopenharmony_ci	{ 1300000, E5420_EGL_DIV0(3, 7, 7, 2), },
152362306a36Sopenharmony_ci	{ 1200000, E5420_EGL_DIV0(3, 7, 7, 2), },
152462306a36Sopenharmony_ci	{ 1100000, E5420_EGL_DIV0(3, 7, 7, 2), },
152562306a36Sopenharmony_ci	{ 1000000, E5420_EGL_DIV0(3, 7, 6, 2), },
152662306a36Sopenharmony_ci	{  900000, E5420_EGL_DIV0(3, 7, 6, 2), },
152762306a36Sopenharmony_ci	{  800000, E5420_EGL_DIV0(3, 7, 5, 2), },
152862306a36Sopenharmony_ci	{  700000, E5420_EGL_DIV0(3, 7, 5, 2), },
152962306a36Sopenharmony_ci	{  600000, E5420_EGL_DIV0(3, 7, 4, 2), },
153062306a36Sopenharmony_ci	{  500000, E5420_EGL_DIV0(3, 7, 3, 2), },
153162306a36Sopenharmony_ci	{  400000, E5420_EGL_DIV0(3, 7, 3, 2), },
153262306a36Sopenharmony_ci	{  300000, E5420_EGL_DIV0(3, 7, 3, 2), },
153362306a36Sopenharmony_ci	{  200000, E5420_EGL_DIV0(3, 7, 3, 2), },
153462306a36Sopenharmony_ci	{  0 },
153562306a36Sopenharmony_ci};
153662306a36Sopenharmony_ci
153762306a36Sopenharmony_ci#define E5420_KFC_DIV(kpll, pclk, aclk)					\
153862306a36Sopenharmony_ci		((((kpll) << 24) | ((pclk) << 20) | ((aclk) << 4)))
153962306a36Sopenharmony_ci
154062306a36Sopenharmony_cistatic const struct exynos_cpuclk_cfg_data exynos5420_kfcclk_d[] __initconst = {
154162306a36Sopenharmony_ci	{ 1400000, E5420_KFC_DIV(3, 5, 3), }, /* for Exynos5800 */
154262306a36Sopenharmony_ci	{ 1300000, E5420_KFC_DIV(3, 5, 2), },
154362306a36Sopenharmony_ci	{ 1200000, E5420_KFC_DIV(3, 5, 2), },
154462306a36Sopenharmony_ci	{ 1100000, E5420_KFC_DIV(3, 5, 2), },
154562306a36Sopenharmony_ci	{ 1000000, E5420_KFC_DIV(3, 5, 2), },
154662306a36Sopenharmony_ci	{  900000, E5420_KFC_DIV(3, 5, 2), },
154762306a36Sopenharmony_ci	{  800000, E5420_KFC_DIV(3, 5, 2), },
154862306a36Sopenharmony_ci	{  700000, E5420_KFC_DIV(3, 4, 2), },
154962306a36Sopenharmony_ci	{  600000, E5420_KFC_DIV(3, 4, 2), },
155062306a36Sopenharmony_ci	{  500000, E5420_KFC_DIV(3, 4, 2), },
155162306a36Sopenharmony_ci	{  400000, E5420_KFC_DIV(3, 3, 2), },
155262306a36Sopenharmony_ci	{  300000, E5420_KFC_DIV(3, 3, 2), },
155362306a36Sopenharmony_ci	{  200000, E5420_KFC_DIV(3, 3, 2), },
155462306a36Sopenharmony_ci	{  0 },
155562306a36Sopenharmony_ci};
155662306a36Sopenharmony_ci
155762306a36Sopenharmony_cistatic const struct samsung_cpu_clock exynos5420_cpu_clks[] __initconst = {
155862306a36Sopenharmony_ci	CPU_CLK(CLK_ARM_CLK, "armclk", CLK_MOUT_APLL, CLK_MOUT_MSPLL_CPU, 0, 0x200,
155962306a36Sopenharmony_ci			exynos5420_eglclk_d),
156062306a36Sopenharmony_ci	CPU_CLK(CLK_KFC_CLK, "kfcclk", CLK_MOUT_KPLL, CLK_MOUT_MSPLL_KFC, 0, 0x28200,
156162306a36Sopenharmony_ci			exynos5420_kfcclk_d),
156262306a36Sopenharmony_ci};
156362306a36Sopenharmony_ci
156462306a36Sopenharmony_cistatic const struct samsung_cpu_clock exynos5800_cpu_clks[] __initconst = {
156562306a36Sopenharmony_ci	CPU_CLK(CLK_ARM_CLK, "armclk", CLK_MOUT_APLL, CLK_MOUT_MSPLL_CPU, 0, 0x200,
156662306a36Sopenharmony_ci			exynos5800_eglclk_d),
156762306a36Sopenharmony_ci	CPU_CLK(CLK_KFC_CLK, "kfcclk", CLK_MOUT_KPLL, CLK_MOUT_MSPLL_KFC, 0, 0x28200,
156862306a36Sopenharmony_ci			exynos5420_kfcclk_d),
156962306a36Sopenharmony_ci};
157062306a36Sopenharmony_ci
157162306a36Sopenharmony_cistatic const struct of_device_id ext_clk_match[] __initconst = {
157262306a36Sopenharmony_ci	{ .compatible = "samsung,exynos5420-oscclk", .data = (void *)0, },
157362306a36Sopenharmony_ci	{ },
157462306a36Sopenharmony_ci};
157562306a36Sopenharmony_ci
157662306a36Sopenharmony_ci/* register exynos5420 clocks */
157762306a36Sopenharmony_cistatic void __init exynos5x_clk_init(struct device_node *np,
157862306a36Sopenharmony_ci		enum exynos5x_soc soc)
157962306a36Sopenharmony_ci{
158062306a36Sopenharmony_ci	struct samsung_clk_provider *ctx;
158162306a36Sopenharmony_ci	struct clk_hw **hws;
158262306a36Sopenharmony_ci
158362306a36Sopenharmony_ci	if (np) {
158462306a36Sopenharmony_ci		reg_base = of_iomap(np, 0);
158562306a36Sopenharmony_ci		if (!reg_base)
158662306a36Sopenharmony_ci			panic("%s: failed to map registers\n", __func__);
158762306a36Sopenharmony_ci	} else {
158862306a36Sopenharmony_ci		panic("%s: unable to determine soc\n", __func__);
158962306a36Sopenharmony_ci	}
159062306a36Sopenharmony_ci
159162306a36Sopenharmony_ci	exynos5x_soc = soc;
159262306a36Sopenharmony_ci
159362306a36Sopenharmony_ci	ctx = samsung_clk_init(NULL, reg_base, CLKS_NR);
159462306a36Sopenharmony_ci	hws = ctx->clk_data.hws;
159562306a36Sopenharmony_ci
159662306a36Sopenharmony_ci	samsung_clk_of_register_fixed_ext(ctx, exynos5x_fixed_rate_ext_clks,
159762306a36Sopenharmony_ci			ARRAY_SIZE(exynos5x_fixed_rate_ext_clks),
159862306a36Sopenharmony_ci			ext_clk_match);
159962306a36Sopenharmony_ci
160062306a36Sopenharmony_ci	if (clk_hw_get_rate(hws[CLK_FIN_PLL]) == 24 * MHZ) {
160162306a36Sopenharmony_ci		exynos5x_plls[apll].rate_table = exynos5420_pll2550x_24mhz_tbl;
160262306a36Sopenharmony_ci		exynos5x_plls[epll].rate_table = exynos5420_epll_24mhz_tbl;
160362306a36Sopenharmony_ci		exynos5x_plls[kpll].rate_table = exynos5420_pll2550x_24mhz_tbl;
160462306a36Sopenharmony_ci		exynos5x_plls[vpll].rate_table = exynos5420_vpll_24mhz_tbl;
160562306a36Sopenharmony_ci	}
160662306a36Sopenharmony_ci
160762306a36Sopenharmony_ci	if (soc == EXYNOS5420)
160862306a36Sopenharmony_ci		exynos5x_plls[bpll].rate_table = exynos5420_pll2550x_24mhz_tbl;
160962306a36Sopenharmony_ci	else
161062306a36Sopenharmony_ci		exynos5x_plls[bpll].rate_table = exynos5422_bpll_rate_table;
161162306a36Sopenharmony_ci
161262306a36Sopenharmony_ci	samsung_clk_register_pll(ctx, exynos5x_plls, ARRAY_SIZE(exynos5x_plls));
161362306a36Sopenharmony_ci	samsung_clk_register_fixed_rate(ctx, exynos5x_fixed_rate_clks,
161462306a36Sopenharmony_ci			ARRAY_SIZE(exynos5x_fixed_rate_clks));
161562306a36Sopenharmony_ci	samsung_clk_register_fixed_factor(ctx, exynos5x_fixed_factor_clks,
161662306a36Sopenharmony_ci			ARRAY_SIZE(exynos5x_fixed_factor_clks));
161762306a36Sopenharmony_ci	samsung_clk_register_mux(ctx, exynos5x_mux_clks,
161862306a36Sopenharmony_ci			ARRAY_SIZE(exynos5x_mux_clks));
161962306a36Sopenharmony_ci	samsung_clk_register_div(ctx, exynos5x_div_clks,
162062306a36Sopenharmony_ci			ARRAY_SIZE(exynos5x_div_clks));
162162306a36Sopenharmony_ci	samsung_clk_register_gate(ctx, exynos5x_gate_clks,
162262306a36Sopenharmony_ci			ARRAY_SIZE(exynos5x_gate_clks));
162362306a36Sopenharmony_ci
162462306a36Sopenharmony_ci	if (soc == EXYNOS5420) {
162562306a36Sopenharmony_ci		samsung_clk_register_mux(ctx, exynos5420_mux_clks,
162662306a36Sopenharmony_ci				ARRAY_SIZE(exynos5420_mux_clks));
162762306a36Sopenharmony_ci		samsung_clk_register_div(ctx, exynos5420_div_clks,
162862306a36Sopenharmony_ci				ARRAY_SIZE(exynos5420_div_clks));
162962306a36Sopenharmony_ci		samsung_clk_register_gate(ctx, exynos5420_gate_clks,
163062306a36Sopenharmony_ci				ARRAY_SIZE(exynos5420_gate_clks));
163162306a36Sopenharmony_ci	} else {
163262306a36Sopenharmony_ci		samsung_clk_register_fixed_factor(
163362306a36Sopenharmony_ci				ctx, exynos5800_fixed_factor_clks,
163462306a36Sopenharmony_ci				ARRAY_SIZE(exynos5800_fixed_factor_clks));
163562306a36Sopenharmony_ci		samsung_clk_register_mux(ctx, exynos5800_mux_clks,
163662306a36Sopenharmony_ci				ARRAY_SIZE(exynos5800_mux_clks));
163762306a36Sopenharmony_ci		samsung_clk_register_div(ctx, exynos5800_div_clks,
163862306a36Sopenharmony_ci				ARRAY_SIZE(exynos5800_div_clks));
163962306a36Sopenharmony_ci		samsung_clk_register_gate(ctx, exynos5800_gate_clks,
164062306a36Sopenharmony_ci				ARRAY_SIZE(exynos5800_gate_clks));
164162306a36Sopenharmony_ci	}
164262306a36Sopenharmony_ci
164362306a36Sopenharmony_ci	if (soc == EXYNOS5420) {
164462306a36Sopenharmony_ci		samsung_clk_register_cpu(ctx, exynos5420_cpu_clks,
164562306a36Sopenharmony_ci				ARRAY_SIZE(exynos5420_cpu_clks));
164662306a36Sopenharmony_ci	} else {
164762306a36Sopenharmony_ci		samsung_clk_register_cpu(ctx, exynos5800_cpu_clks,
164862306a36Sopenharmony_ci				ARRAY_SIZE(exynos5800_cpu_clks));
164962306a36Sopenharmony_ci	}
165062306a36Sopenharmony_ci
165162306a36Sopenharmony_ci	samsung_clk_extended_sleep_init(reg_base,
165262306a36Sopenharmony_ci		exynos5x_clk_regs, ARRAY_SIZE(exynos5x_clk_regs),
165362306a36Sopenharmony_ci		exynos5420_set_clksrc, ARRAY_SIZE(exynos5420_set_clksrc));
165462306a36Sopenharmony_ci
165562306a36Sopenharmony_ci	if (soc == EXYNOS5800) {
165662306a36Sopenharmony_ci		samsung_clk_sleep_init(reg_base, exynos5800_clk_regs,
165762306a36Sopenharmony_ci				       ARRAY_SIZE(exynos5800_clk_regs));
165862306a36Sopenharmony_ci
165962306a36Sopenharmony_ci		exynos5_subcmus_init(ctx, ARRAY_SIZE(exynos5800_subcmus),
166062306a36Sopenharmony_ci				     exynos5800_subcmus);
166162306a36Sopenharmony_ci	} else {
166262306a36Sopenharmony_ci		exynos5_subcmus_init(ctx, ARRAY_SIZE(exynos5x_subcmus),
166362306a36Sopenharmony_ci				     exynos5x_subcmus);
166462306a36Sopenharmony_ci	}
166562306a36Sopenharmony_ci
166662306a36Sopenharmony_ci	/*
166762306a36Sopenharmony_ci	 * Keep top part of G3D clock path enabled permanently to ensure
166862306a36Sopenharmony_ci	 * that the internal busses get their clock regardless of the
166962306a36Sopenharmony_ci	 * main G3D clock enablement status.
167062306a36Sopenharmony_ci	 */
167162306a36Sopenharmony_ci	clk_prepare_enable(hws[CLK_MOUT_SW_ACLK_G3D]->clk);
167262306a36Sopenharmony_ci	/*
167362306a36Sopenharmony_ci	 * Keep top BPLL mux enabled permanently to ensure that DRAM operates
167462306a36Sopenharmony_ci	 * properly.
167562306a36Sopenharmony_ci	 */
167662306a36Sopenharmony_ci	clk_prepare_enable(hws[CLK_MOUT_BPLL]->clk);
167762306a36Sopenharmony_ci
167862306a36Sopenharmony_ci	samsung_clk_of_add_provider(np, ctx);
167962306a36Sopenharmony_ci}
168062306a36Sopenharmony_ci
168162306a36Sopenharmony_cistatic void __init exynos5420_clk_init(struct device_node *np)
168262306a36Sopenharmony_ci{
168362306a36Sopenharmony_ci	exynos5x_clk_init(np, EXYNOS5420);
168462306a36Sopenharmony_ci}
168562306a36Sopenharmony_ciCLK_OF_DECLARE_DRIVER(exynos5420_clk, "samsung,exynos5420-clock",
168662306a36Sopenharmony_ci		      exynos5420_clk_init);
168762306a36Sopenharmony_ci
168862306a36Sopenharmony_cistatic void __init exynos5800_clk_init(struct device_node *np)
168962306a36Sopenharmony_ci{
169062306a36Sopenharmony_ci	exynos5x_clk_init(np, EXYNOS5800);
169162306a36Sopenharmony_ci}
169262306a36Sopenharmony_ciCLK_OF_DECLARE_DRIVER(exynos5800_clk, "samsung,exynos5800-clock",
169362306a36Sopenharmony_ci		      exynos5800_clk_init);
1694