xref: /openbmc/linux/drivers/clk/qcom/gcc-ipq806x.c (revision c99e515a92e9d594a1d4b8915820fc30e21af23f)
124d8fba4SKumar Gala /*
224d8fba4SKumar Gala  * Copyright (c) 2014, The Linux Foundation. All rights reserved.
324d8fba4SKumar Gala  *
424d8fba4SKumar Gala  * This software is licensed under the terms of the GNU General Public
524d8fba4SKumar Gala  * License version 2, as published by the Free Software Foundation, and
624d8fba4SKumar Gala  * may be copied, distributed, and modified under those terms.
724d8fba4SKumar Gala  *
824d8fba4SKumar Gala  * This program is distributed in the hope that it will be useful,
924d8fba4SKumar Gala  * but WITHOUT ANY WARRANTY; without even the implied warranty of
1024d8fba4SKumar Gala  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1124d8fba4SKumar Gala  * GNU General Public License for more details.
1224d8fba4SKumar Gala  */
1324d8fba4SKumar Gala 
1424d8fba4SKumar Gala #include <linux/kernel.h>
1524d8fba4SKumar Gala #include <linux/bitops.h>
1624d8fba4SKumar Gala #include <linux/err.h>
1724d8fba4SKumar Gala #include <linux/platform_device.h>
1824d8fba4SKumar Gala #include <linux/module.h>
1924d8fba4SKumar Gala #include <linux/of.h>
2024d8fba4SKumar Gala #include <linux/of_device.h>
2124d8fba4SKumar Gala #include <linux/clk-provider.h>
2224d8fba4SKumar Gala #include <linux/regmap.h>
2324d8fba4SKumar Gala #include <linux/reset-controller.h>
2424d8fba4SKumar Gala 
2524d8fba4SKumar Gala #include <dt-bindings/clock/qcom,gcc-ipq806x.h>
2624d8fba4SKumar Gala #include <dt-bindings/reset/qcom,gcc-ipq806x.h>
2724d8fba4SKumar Gala 
2824d8fba4SKumar Gala #include "common.h"
2924d8fba4SKumar Gala #include "clk-regmap.h"
3024d8fba4SKumar Gala #include "clk-pll.h"
3124d8fba4SKumar Gala #include "clk-rcg.h"
3224d8fba4SKumar Gala #include "clk-branch.h"
3324d8fba4SKumar Gala #include "reset.h"
3424d8fba4SKumar Gala 
35dc1b3f65SAndy Gross static struct clk_pll pll0 = {
36dc1b3f65SAndy Gross 	.l_reg = 0x30c4,
37dc1b3f65SAndy Gross 	.m_reg = 0x30c8,
38dc1b3f65SAndy Gross 	.n_reg = 0x30cc,
39dc1b3f65SAndy Gross 	.config_reg = 0x30d4,
40dc1b3f65SAndy Gross 	.mode_reg = 0x30c0,
41dc1b3f65SAndy Gross 	.status_reg = 0x30d8,
42dc1b3f65SAndy Gross 	.status_bit = 16,
43dc1b3f65SAndy Gross 	.clkr.hw.init = &(struct clk_init_data){
44dc1b3f65SAndy Gross 		.name = "pll0",
45dc1b3f65SAndy Gross 		.parent_names = (const char *[]){ "pxo" },
46dc1b3f65SAndy Gross 		.num_parents = 1,
47dc1b3f65SAndy Gross 		.ops = &clk_pll_ops,
48dc1b3f65SAndy Gross 	},
49dc1b3f65SAndy Gross };
50dc1b3f65SAndy Gross 
51dc1b3f65SAndy Gross static struct clk_regmap pll0_vote = {
52dc1b3f65SAndy Gross 	.enable_reg = 0x34c0,
53dc1b3f65SAndy Gross 	.enable_mask = BIT(0),
54dc1b3f65SAndy Gross 	.hw.init = &(struct clk_init_data){
55dc1b3f65SAndy Gross 		.name = "pll0_vote",
56dc1b3f65SAndy Gross 		.parent_names = (const char *[]){ "pll0" },
57dc1b3f65SAndy Gross 		.num_parents = 1,
58dc1b3f65SAndy Gross 		.ops = &clk_pll_vote_ops,
59dc1b3f65SAndy Gross 	},
60dc1b3f65SAndy Gross };
61dc1b3f65SAndy Gross 
6224d8fba4SKumar Gala static struct clk_pll pll3 = {
6324d8fba4SKumar Gala 	.l_reg = 0x3164,
6424d8fba4SKumar Gala 	.m_reg = 0x3168,
6524d8fba4SKumar Gala 	.n_reg = 0x316c,
6624d8fba4SKumar Gala 	.config_reg = 0x3174,
6724d8fba4SKumar Gala 	.mode_reg = 0x3160,
6824d8fba4SKumar Gala 	.status_reg = 0x3178,
6924d8fba4SKumar Gala 	.status_bit = 16,
7024d8fba4SKumar Gala 	.clkr.hw.init = &(struct clk_init_data){
7124d8fba4SKumar Gala 		.name = "pll3",
7224d8fba4SKumar Gala 		.parent_names = (const char *[]){ "pxo" },
7324d8fba4SKumar Gala 		.num_parents = 1,
7424d8fba4SKumar Gala 		.ops = &clk_pll_ops,
7524d8fba4SKumar Gala 	},
7624d8fba4SKumar Gala };
7724d8fba4SKumar Gala 
78*c99e515aSRajendra Nayak static struct clk_regmap pll4_vote = {
79*c99e515aSRajendra Nayak 	.enable_reg = 0x34c0,
80*c99e515aSRajendra Nayak 	.enable_mask = BIT(4),
81*c99e515aSRajendra Nayak 	.hw.init = &(struct clk_init_data){
82*c99e515aSRajendra Nayak 		.name = "pll4_vote",
83*c99e515aSRajendra Nayak 		.parent_names = (const char *[]){ "pll4" },
84*c99e515aSRajendra Nayak 		.num_parents = 1,
85*c99e515aSRajendra Nayak 		.ops = &clk_pll_vote_ops,
86*c99e515aSRajendra Nayak 	},
87*c99e515aSRajendra Nayak };
88*c99e515aSRajendra Nayak 
8924d8fba4SKumar Gala static struct clk_pll pll8 = {
9024d8fba4SKumar Gala 	.l_reg = 0x3144,
9124d8fba4SKumar Gala 	.m_reg = 0x3148,
9224d8fba4SKumar Gala 	.n_reg = 0x314c,
9324d8fba4SKumar Gala 	.config_reg = 0x3154,
9424d8fba4SKumar Gala 	.mode_reg = 0x3140,
9524d8fba4SKumar Gala 	.status_reg = 0x3158,
9624d8fba4SKumar Gala 	.status_bit = 16,
9724d8fba4SKumar Gala 	.clkr.hw.init = &(struct clk_init_data){
9824d8fba4SKumar Gala 		.name = "pll8",
9924d8fba4SKumar Gala 		.parent_names = (const char *[]){ "pxo" },
10024d8fba4SKumar Gala 		.num_parents = 1,
10124d8fba4SKumar Gala 		.ops = &clk_pll_ops,
10224d8fba4SKumar Gala 	},
10324d8fba4SKumar Gala };
10424d8fba4SKumar Gala 
10524d8fba4SKumar Gala static struct clk_regmap pll8_vote = {
10624d8fba4SKumar Gala 	.enable_reg = 0x34c0,
10724d8fba4SKumar Gala 	.enable_mask = BIT(8),
10824d8fba4SKumar Gala 	.hw.init = &(struct clk_init_data){
10924d8fba4SKumar Gala 		.name = "pll8_vote",
11024d8fba4SKumar Gala 		.parent_names = (const char *[]){ "pll8" },
11124d8fba4SKumar Gala 		.num_parents = 1,
11224d8fba4SKumar Gala 		.ops = &clk_pll_vote_ops,
11324d8fba4SKumar Gala 	},
11424d8fba4SKumar Gala };
11524d8fba4SKumar Gala 
11624d8fba4SKumar Gala static struct clk_pll pll14 = {
11724d8fba4SKumar Gala 	.l_reg = 0x31c4,
11824d8fba4SKumar Gala 	.m_reg = 0x31c8,
11924d8fba4SKumar Gala 	.n_reg = 0x31cc,
12024d8fba4SKumar Gala 	.config_reg = 0x31d4,
12124d8fba4SKumar Gala 	.mode_reg = 0x31c0,
12224d8fba4SKumar Gala 	.status_reg = 0x31d8,
12324d8fba4SKumar Gala 	.status_bit = 16,
12424d8fba4SKumar Gala 	.clkr.hw.init = &(struct clk_init_data){
12524d8fba4SKumar Gala 		.name = "pll14",
12624d8fba4SKumar Gala 		.parent_names = (const char *[]){ "pxo" },
12724d8fba4SKumar Gala 		.num_parents = 1,
12824d8fba4SKumar Gala 		.ops = &clk_pll_ops,
12924d8fba4SKumar Gala 	},
13024d8fba4SKumar Gala };
13124d8fba4SKumar Gala 
13224d8fba4SKumar Gala static struct clk_regmap pll14_vote = {
13324d8fba4SKumar Gala 	.enable_reg = 0x34c0,
13424d8fba4SKumar Gala 	.enable_mask = BIT(14),
13524d8fba4SKumar Gala 	.hw.init = &(struct clk_init_data){
13624d8fba4SKumar Gala 		.name = "pll14_vote",
13724d8fba4SKumar Gala 		.parent_names = (const char *[]){ "pll14" },
13824d8fba4SKumar Gala 		.num_parents = 1,
13924d8fba4SKumar Gala 		.ops = &clk_pll_vote_ops,
14024d8fba4SKumar Gala 	},
14124d8fba4SKumar Gala };
14224d8fba4SKumar Gala 
14324d8fba4SKumar Gala #define P_PXO	0
14424d8fba4SKumar Gala #define P_PLL8	1
14524d8fba4SKumar Gala #define P_PLL3	1
14624d8fba4SKumar Gala #define P_PLL0	2
14724d8fba4SKumar Gala #define P_CXO	2
14824d8fba4SKumar Gala 
14924d8fba4SKumar Gala static const u8 gcc_pxo_pll8_map[] = {
15024d8fba4SKumar Gala 	[P_PXO]		= 0,
15124d8fba4SKumar Gala 	[P_PLL8]	= 3,
15224d8fba4SKumar Gala };
15324d8fba4SKumar Gala 
15424d8fba4SKumar Gala static const char *gcc_pxo_pll8[] = {
15524d8fba4SKumar Gala 	"pxo",
15624d8fba4SKumar Gala 	"pll8_vote",
15724d8fba4SKumar Gala };
15824d8fba4SKumar Gala 
15924d8fba4SKumar Gala static const u8 gcc_pxo_pll8_cxo_map[] = {
16024d8fba4SKumar Gala 	[P_PXO]		= 0,
16124d8fba4SKumar Gala 	[P_PLL8]	= 3,
16224d8fba4SKumar Gala 	[P_CXO]		= 5,
16324d8fba4SKumar Gala };
16424d8fba4SKumar Gala 
16524d8fba4SKumar Gala static const char *gcc_pxo_pll8_cxo[] = {
16624d8fba4SKumar Gala 	"pxo",
16724d8fba4SKumar Gala 	"pll8_vote",
16824d8fba4SKumar Gala 	"cxo",
16924d8fba4SKumar Gala };
17024d8fba4SKumar Gala 
17124d8fba4SKumar Gala static const u8 gcc_pxo_pll3_map[] = {
17224d8fba4SKumar Gala 	[P_PXO]		= 0,
17324d8fba4SKumar Gala 	[P_PLL3]	= 1,
17424d8fba4SKumar Gala };
17524d8fba4SKumar Gala 
17624d8fba4SKumar Gala static const u8 gcc_pxo_pll3_sata_map[] = {
17724d8fba4SKumar Gala 	[P_PXO]		= 0,
17824d8fba4SKumar Gala 	[P_PLL3]	= 6,
17924d8fba4SKumar Gala };
18024d8fba4SKumar Gala 
18124d8fba4SKumar Gala static const char *gcc_pxo_pll3[] = {
18224d8fba4SKumar Gala 	"pxo",
18324d8fba4SKumar Gala 	"pll3",
18424d8fba4SKumar Gala };
18524d8fba4SKumar Gala 
18624d8fba4SKumar Gala static const u8 gcc_pxo_pll8_pll0[] = {
18724d8fba4SKumar Gala 	[P_PXO]		= 0,
18824d8fba4SKumar Gala 	[P_PLL8]	= 3,
18924d8fba4SKumar Gala 	[P_PLL0]	= 2,
19024d8fba4SKumar Gala };
19124d8fba4SKumar Gala 
19224d8fba4SKumar Gala static const char *gcc_pxo_pll8_pll0_map[] = {
19324d8fba4SKumar Gala 	"pxo",
19424d8fba4SKumar Gala 	"pll8_vote",
195dc1b3f65SAndy Gross 	"pll0_vote",
19624d8fba4SKumar Gala };
19724d8fba4SKumar Gala 
19824d8fba4SKumar Gala static struct freq_tbl clk_tbl_gsbi_uart[] = {
19924d8fba4SKumar Gala 	{  1843200, P_PLL8, 2,  6, 625 },
20024d8fba4SKumar Gala 	{  3686400, P_PLL8, 2, 12, 625 },
20124d8fba4SKumar Gala 	{  7372800, P_PLL8, 2, 24, 625 },
20224d8fba4SKumar Gala 	{ 14745600, P_PLL8, 2, 48, 625 },
20324d8fba4SKumar Gala 	{ 16000000, P_PLL8, 4,  1,   6 },
20424d8fba4SKumar Gala 	{ 24000000, P_PLL8, 4,  1,   4 },
20524d8fba4SKumar Gala 	{ 32000000, P_PLL8, 4,  1,   3 },
20624d8fba4SKumar Gala 	{ 40000000, P_PLL8, 1,  5,  48 },
20724d8fba4SKumar Gala 	{ 46400000, P_PLL8, 1, 29, 240 },
20824d8fba4SKumar Gala 	{ 48000000, P_PLL8, 4,  1,   2 },
20924d8fba4SKumar Gala 	{ 51200000, P_PLL8, 1,  2,  15 },
21024d8fba4SKumar Gala 	{ 56000000, P_PLL8, 1,  7,  48 },
21124d8fba4SKumar Gala 	{ 58982400, P_PLL8, 1, 96, 625 },
21224d8fba4SKumar Gala 	{ 64000000, P_PLL8, 2,  1,   3 },
21324d8fba4SKumar Gala 	{ }
21424d8fba4SKumar Gala };
21524d8fba4SKumar Gala 
21624d8fba4SKumar Gala static struct clk_rcg gsbi1_uart_src = {
21724d8fba4SKumar Gala 	.ns_reg = 0x29d4,
21824d8fba4SKumar Gala 	.md_reg = 0x29d0,
21924d8fba4SKumar Gala 	.mn = {
22024d8fba4SKumar Gala 		.mnctr_en_bit = 8,
22124d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
22224d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
22324d8fba4SKumar Gala 		.n_val_shift = 16,
22424d8fba4SKumar Gala 		.m_val_shift = 16,
22524d8fba4SKumar Gala 		.width = 16,
22624d8fba4SKumar Gala 	},
22724d8fba4SKumar Gala 	.p = {
22824d8fba4SKumar Gala 		.pre_div_shift = 3,
22924d8fba4SKumar Gala 		.pre_div_width = 2,
23024d8fba4SKumar Gala 	},
23124d8fba4SKumar Gala 	.s = {
23224d8fba4SKumar Gala 		.src_sel_shift = 0,
23324d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
23424d8fba4SKumar Gala 	},
23524d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gsbi_uart,
23624d8fba4SKumar Gala 	.clkr = {
23724d8fba4SKumar Gala 		.enable_reg = 0x29d4,
23824d8fba4SKumar Gala 		.enable_mask = BIT(11),
23924d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
24024d8fba4SKumar Gala 			.name = "gsbi1_uart_src",
24124d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
24224d8fba4SKumar Gala 			.num_parents = 2,
24324d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
24424d8fba4SKumar Gala 			.flags = CLK_SET_PARENT_GATE,
24524d8fba4SKumar Gala 		},
24624d8fba4SKumar Gala 	},
24724d8fba4SKumar Gala };
24824d8fba4SKumar Gala 
24924d8fba4SKumar Gala static struct clk_branch gsbi1_uart_clk = {
25024d8fba4SKumar Gala 	.halt_reg = 0x2fcc,
25124d8fba4SKumar Gala 	.halt_bit = 12,
25224d8fba4SKumar Gala 	.clkr = {
25324d8fba4SKumar Gala 		.enable_reg = 0x29d4,
25424d8fba4SKumar Gala 		.enable_mask = BIT(9),
25524d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
25624d8fba4SKumar Gala 			.name = "gsbi1_uart_clk",
25724d8fba4SKumar Gala 			.parent_names = (const char *[]){
25824d8fba4SKumar Gala 				"gsbi1_uart_src",
25924d8fba4SKumar Gala 			},
26024d8fba4SKumar Gala 			.num_parents = 1,
26124d8fba4SKumar Gala 			.ops = &clk_branch_ops,
26224d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
26324d8fba4SKumar Gala 		},
26424d8fba4SKumar Gala 	},
26524d8fba4SKumar Gala };
26624d8fba4SKumar Gala 
26724d8fba4SKumar Gala static struct clk_rcg gsbi2_uart_src = {
26824d8fba4SKumar Gala 	.ns_reg = 0x29f4,
26924d8fba4SKumar Gala 	.md_reg = 0x29f0,
27024d8fba4SKumar Gala 	.mn = {
27124d8fba4SKumar Gala 		.mnctr_en_bit = 8,
27224d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
27324d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
27424d8fba4SKumar Gala 		.n_val_shift = 16,
27524d8fba4SKumar Gala 		.m_val_shift = 16,
27624d8fba4SKumar Gala 		.width = 16,
27724d8fba4SKumar Gala 	},
27824d8fba4SKumar Gala 	.p = {
27924d8fba4SKumar Gala 		.pre_div_shift = 3,
28024d8fba4SKumar Gala 		.pre_div_width = 2,
28124d8fba4SKumar Gala 	},
28224d8fba4SKumar Gala 	.s = {
28324d8fba4SKumar Gala 		.src_sel_shift = 0,
28424d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
28524d8fba4SKumar Gala 	},
28624d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gsbi_uart,
28724d8fba4SKumar Gala 	.clkr = {
28824d8fba4SKumar Gala 		.enable_reg = 0x29f4,
28924d8fba4SKumar Gala 		.enable_mask = BIT(11),
29024d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
29124d8fba4SKumar Gala 			.name = "gsbi2_uart_src",
29224d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
29324d8fba4SKumar Gala 			.num_parents = 2,
29424d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
29524d8fba4SKumar Gala 			.flags = CLK_SET_PARENT_GATE,
29624d8fba4SKumar Gala 		},
29724d8fba4SKumar Gala 	},
29824d8fba4SKumar Gala };
29924d8fba4SKumar Gala 
30024d8fba4SKumar Gala static struct clk_branch gsbi2_uart_clk = {
30124d8fba4SKumar Gala 	.halt_reg = 0x2fcc,
30224d8fba4SKumar Gala 	.halt_bit = 8,
30324d8fba4SKumar Gala 	.clkr = {
30424d8fba4SKumar Gala 		.enable_reg = 0x29f4,
30524d8fba4SKumar Gala 		.enable_mask = BIT(9),
30624d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
30724d8fba4SKumar Gala 			.name = "gsbi2_uart_clk",
30824d8fba4SKumar Gala 			.parent_names = (const char *[]){
30924d8fba4SKumar Gala 				"gsbi2_uart_src",
31024d8fba4SKumar Gala 			},
31124d8fba4SKumar Gala 			.num_parents = 1,
31224d8fba4SKumar Gala 			.ops = &clk_branch_ops,
31324d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
31424d8fba4SKumar Gala 		},
31524d8fba4SKumar Gala 	},
31624d8fba4SKumar Gala };
31724d8fba4SKumar Gala 
31824d8fba4SKumar Gala static struct clk_rcg gsbi4_uart_src = {
31924d8fba4SKumar Gala 	.ns_reg = 0x2a34,
32024d8fba4SKumar Gala 	.md_reg = 0x2a30,
32124d8fba4SKumar Gala 	.mn = {
32224d8fba4SKumar Gala 		.mnctr_en_bit = 8,
32324d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
32424d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
32524d8fba4SKumar Gala 		.n_val_shift = 16,
32624d8fba4SKumar Gala 		.m_val_shift = 16,
32724d8fba4SKumar Gala 		.width = 16,
32824d8fba4SKumar Gala 	},
32924d8fba4SKumar Gala 	.p = {
33024d8fba4SKumar Gala 		.pre_div_shift = 3,
33124d8fba4SKumar Gala 		.pre_div_width = 2,
33224d8fba4SKumar Gala 	},
33324d8fba4SKumar Gala 	.s = {
33424d8fba4SKumar Gala 		.src_sel_shift = 0,
33524d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
33624d8fba4SKumar Gala 	},
33724d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gsbi_uart,
33824d8fba4SKumar Gala 	.clkr = {
33924d8fba4SKumar Gala 		.enable_reg = 0x2a34,
34024d8fba4SKumar Gala 		.enable_mask = BIT(11),
34124d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
34224d8fba4SKumar Gala 			.name = "gsbi4_uart_src",
34324d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
34424d8fba4SKumar Gala 			.num_parents = 2,
34524d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
34624d8fba4SKumar Gala 			.flags = CLK_SET_PARENT_GATE,
34724d8fba4SKumar Gala 		},
34824d8fba4SKumar Gala 	},
34924d8fba4SKumar Gala };
35024d8fba4SKumar Gala 
35124d8fba4SKumar Gala static struct clk_branch gsbi4_uart_clk = {
35224d8fba4SKumar Gala 	.halt_reg = 0x2fd0,
35324d8fba4SKumar Gala 	.halt_bit = 26,
35424d8fba4SKumar Gala 	.clkr = {
35524d8fba4SKumar Gala 		.enable_reg = 0x2a34,
35624d8fba4SKumar Gala 		.enable_mask = BIT(9),
35724d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
35824d8fba4SKumar Gala 			.name = "gsbi4_uart_clk",
35924d8fba4SKumar Gala 			.parent_names = (const char *[]){
36024d8fba4SKumar Gala 				"gsbi4_uart_src",
36124d8fba4SKumar Gala 			},
36224d8fba4SKumar Gala 			.num_parents = 1,
36324d8fba4SKumar Gala 			.ops = &clk_branch_ops,
36424d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
36524d8fba4SKumar Gala 		},
36624d8fba4SKumar Gala 	},
36724d8fba4SKumar Gala };
36824d8fba4SKumar Gala 
36924d8fba4SKumar Gala static struct clk_rcg gsbi5_uart_src = {
37024d8fba4SKumar Gala 	.ns_reg = 0x2a54,
37124d8fba4SKumar Gala 	.md_reg = 0x2a50,
37224d8fba4SKumar Gala 	.mn = {
37324d8fba4SKumar Gala 		.mnctr_en_bit = 8,
37424d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
37524d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
37624d8fba4SKumar Gala 		.n_val_shift = 16,
37724d8fba4SKumar Gala 		.m_val_shift = 16,
37824d8fba4SKumar Gala 		.width = 16,
37924d8fba4SKumar Gala 	},
38024d8fba4SKumar Gala 	.p = {
38124d8fba4SKumar Gala 		.pre_div_shift = 3,
38224d8fba4SKumar Gala 		.pre_div_width = 2,
38324d8fba4SKumar Gala 	},
38424d8fba4SKumar Gala 	.s = {
38524d8fba4SKumar Gala 		.src_sel_shift = 0,
38624d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
38724d8fba4SKumar Gala 	},
38824d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gsbi_uart,
38924d8fba4SKumar Gala 	.clkr = {
39024d8fba4SKumar Gala 		.enable_reg = 0x2a54,
39124d8fba4SKumar Gala 		.enable_mask = BIT(11),
39224d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
39324d8fba4SKumar Gala 			.name = "gsbi5_uart_src",
39424d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
39524d8fba4SKumar Gala 			.num_parents = 2,
39624d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
39724d8fba4SKumar Gala 			.flags = CLK_SET_PARENT_GATE,
39824d8fba4SKumar Gala 		},
39924d8fba4SKumar Gala 	},
40024d8fba4SKumar Gala };
40124d8fba4SKumar Gala 
40224d8fba4SKumar Gala static struct clk_branch gsbi5_uart_clk = {
40324d8fba4SKumar Gala 	.halt_reg = 0x2fd0,
40424d8fba4SKumar Gala 	.halt_bit = 22,
40524d8fba4SKumar Gala 	.clkr = {
40624d8fba4SKumar Gala 		.enable_reg = 0x2a54,
40724d8fba4SKumar Gala 		.enable_mask = BIT(9),
40824d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
40924d8fba4SKumar Gala 			.name = "gsbi5_uart_clk",
41024d8fba4SKumar Gala 			.parent_names = (const char *[]){
41124d8fba4SKumar Gala 				"gsbi5_uart_src",
41224d8fba4SKumar Gala 			},
41324d8fba4SKumar Gala 			.num_parents = 1,
41424d8fba4SKumar Gala 			.ops = &clk_branch_ops,
41524d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
41624d8fba4SKumar Gala 		},
41724d8fba4SKumar Gala 	},
41824d8fba4SKumar Gala };
41924d8fba4SKumar Gala 
42024d8fba4SKumar Gala static struct clk_rcg gsbi6_uart_src = {
42124d8fba4SKumar Gala 	.ns_reg = 0x2a74,
42224d8fba4SKumar Gala 	.md_reg = 0x2a70,
42324d8fba4SKumar Gala 	.mn = {
42424d8fba4SKumar Gala 		.mnctr_en_bit = 8,
42524d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
42624d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
42724d8fba4SKumar Gala 		.n_val_shift = 16,
42824d8fba4SKumar Gala 		.m_val_shift = 16,
42924d8fba4SKumar Gala 		.width = 16,
43024d8fba4SKumar Gala 	},
43124d8fba4SKumar Gala 	.p = {
43224d8fba4SKumar Gala 		.pre_div_shift = 3,
43324d8fba4SKumar Gala 		.pre_div_width = 2,
43424d8fba4SKumar Gala 	},
43524d8fba4SKumar Gala 	.s = {
43624d8fba4SKumar Gala 		.src_sel_shift = 0,
43724d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
43824d8fba4SKumar Gala 	},
43924d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gsbi_uart,
44024d8fba4SKumar Gala 	.clkr = {
44124d8fba4SKumar Gala 		.enable_reg = 0x2a74,
44224d8fba4SKumar Gala 		.enable_mask = BIT(11),
44324d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
44424d8fba4SKumar Gala 			.name = "gsbi6_uart_src",
44524d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
44624d8fba4SKumar Gala 			.num_parents = 2,
44724d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
44824d8fba4SKumar Gala 			.flags = CLK_SET_PARENT_GATE,
44924d8fba4SKumar Gala 		},
45024d8fba4SKumar Gala 	},
45124d8fba4SKumar Gala };
45224d8fba4SKumar Gala 
45324d8fba4SKumar Gala static struct clk_branch gsbi6_uart_clk = {
45424d8fba4SKumar Gala 	.halt_reg = 0x2fd0,
45524d8fba4SKumar Gala 	.halt_bit = 18,
45624d8fba4SKumar Gala 	.clkr = {
45724d8fba4SKumar Gala 		.enable_reg = 0x2a74,
45824d8fba4SKumar Gala 		.enable_mask = BIT(9),
45924d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
46024d8fba4SKumar Gala 			.name = "gsbi6_uart_clk",
46124d8fba4SKumar Gala 			.parent_names = (const char *[]){
46224d8fba4SKumar Gala 				"gsbi6_uart_src",
46324d8fba4SKumar Gala 			},
46424d8fba4SKumar Gala 			.num_parents = 1,
46524d8fba4SKumar Gala 			.ops = &clk_branch_ops,
46624d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
46724d8fba4SKumar Gala 		},
46824d8fba4SKumar Gala 	},
46924d8fba4SKumar Gala };
47024d8fba4SKumar Gala 
47124d8fba4SKumar Gala static struct clk_rcg gsbi7_uart_src = {
47224d8fba4SKumar Gala 	.ns_reg = 0x2a94,
47324d8fba4SKumar Gala 	.md_reg = 0x2a90,
47424d8fba4SKumar Gala 	.mn = {
47524d8fba4SKumar Gala 		.mnctr_en_bit = 8,
47624d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
47724d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
47824d8fba4SKumar Gala 		.n_val_shift = 16,
47924d8fba4SKumar Gala 		.m_val_shift = 16,
48024d8fba4SKumar Gala 		.width = 16,
48124d8fba4SKumar Gala 	},
48224d8fba4SKumar Gala 	.p = {
48324d8fba4SKumar Gala 		.pre_div_shift = 3,
48424d8fba4SKumar Gala 		.pre_div_width = 2,
48524d8fba4SKumar Gala 	},
48624d8fba4SKumar Gala 	.s = {
48724d8fba4SKumar Gala 		.src_sel_shift = 0,
48824d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
48924d8fba4SKumar Gala 	},
49024d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gsbi_uart,
49124d8fba4SKumar Gala 	.clkr = {
49224d8fba4SKumar Gala 		.enable_reg = 0x2a94,
49324d8fba4SKumar Gala 		.enable_mask = BIT(11),
49424d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
49524d8fba4SKumar Gala 			.name = "gsbi7_uart_src",
49624d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
49724d8fba4SKumar Gala 			.num_parents = 2,
49824d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
49924d8fba4SKumar Gala 			.flags = CLK_SET_PARENT_GATE,
50024d8fba4SKumar Gala 		},
50124d8fba4SKumar Gala 	},
50224d8fba4SKumar Gala };
50324d8fba4SKumar Gala 
50424d8fba4SKumar Gala static struct clk_branch gsbi7_uart_clk = {
50524d8fba4SKumar Gala 	.halt_reg = 0x2fd0,
50624d8fba4SKumar Gala 	.halt_bit = 14,
50724d8fba4SKumar Gala 	.clkr = {
50824d8fba4SKumar Gala 		.enable_reg = 0x2a94,
50924d8fba4SKumar Gala 		.enable_mask = BIT(9),
51024d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
51124d8fba4SKumar Gala 			.name = "gsbi7_uart_clk",
51224d8fba4SKumar Gala 			.parent_names = (const char *[]){
51324d8fba4SKumar Gala 				"gsbi7_uart_src",
51424d8fba4SKumar Gala 			},
51524d8fba4SKumar Gala 			.num_parents = 1,
51624d8fba4SKumar Gala 			.ops = &clk_branch_ops,
51724d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
51824d8fba4SKumar Gala 		},
51924d8fba4SKumar Gala 	},
52024d8fba4SKumar Gala };
52124d8fba4SKumar Gala 
52224d8fba4SKumar Gala static struct freq_tbl clk_tbl_gsbi_qup[] = {
52324d8fba4SKumar Gala 	{  1100000, P_PXO,  1, 2, 49 },
52424d8fba4SKumar Gala 	{  5400000, P_PXO,  1, 1,  5 },
52524d8fba4SKumar Gala 	{ 10800000, P_PXO,  1, 2,  5 },
52624d8fba4SKumar Gala 	{ 15060000, P_PLL8, 1, 2, 51 },
52724d8fba4SKumar Gala 	{ 24000000, P_PLL8, 4, 1,  4 },
52824d8fba4SKumar Gala 	{ 25600000, P_PLL8, 1, 1, 15 },
52924d8fba4SKumar Gala 	{ 27000000, P_PXO,  1, 0,  0 },
53024d8fba4SKumar Gala 	{ 48000000, P_PLL8, 4, 1,  2 },
53124d8fba4SKumar Gala 	{ 51200000, P_PLL8, 1, 2, 15 },
53224d8fba4SKumar Gala 	{ }
53324d8fba4SKumar Gala };
53424d8fba4SKumar Gala 
53524d8fba4SKumar Gala static struct clk_rcg gsbi1_qup_src = {
53624d8fba4SKumar Gala 	.ns_reg = 0x29cc,
53724d8fba4SKumar Gala 	.md_reg = 0x29c8,
53824d8fba4SKumar Gala 	.mn = {
53924d8fba4SKumar Gala 		.mnctr_en_bit = 8,
54024d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
54124d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
54224d8fba4SKumar Gala 		.n_val_shift = 16,
54324d8fba4SKumar Gala 		.m_val_shift = 16,
54424d8fba4SKumar Gala 		.width = 8,
54524d8fba4SKumar Gala 	},
54624d8fba4SKumar Gala 	.p = {
54724d8fba4SKumar Gala 		.pre_div_shift = 3,
54824d8fba4SKumar Gala 		.pre_div_width = 2,
54924d8fba4SKumar Gala 	},
55024d8fba4SKumar Gala 	.s = {
55124d8fba4SKumar Gala 		.src_sel_shift = 0,
55224d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
55324d8fba4SKumar Gala 	},
55424d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gsbi_qup,
55524d8fba4SKumar Gala 	.clkr = {
55624d8fba4SKumar Gala 		.enable_reg = 0x29cc,
55724d8fba4SKumar Gala 		.enable_mask = BIT(11),
55824d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
55924d8fba4SKumar Gala 			.name = "gsbi1_qup_src",
56024d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
56124d8fba4SKumar Gala 			.num_parents = 2,
56224d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
56324d8fba4SKumar Gala 			.flags = CLK_SET_PARENT_GATE,
56424d8fba4SKumar Gala 		},
56524d8fba4SKumar Gala 	},
56624d8fba4SKumar Gala };
56724d8fba4SKumar Gala 
56824d8fba4SKumar Gala static struct clk_branch gsbi1_qup_clk = {
56924d8fba4SKumar Gala 	.halt_reg = 0x2fcc,
57024d8fba4SKumar Gala 	.halt_bit = 11,
57124d8fba4SKumar Gala 	.clkr = {
57224d8fba4SKumar Gala 		.enable_reg = 0x29cc,
57324d8fba4SKumar Gala 		.enable_mask = BIT(9),
57424d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
57524d8fba4SKumar Gala 			.name = "gsbi1_qup_clk",
57624d8fba4SKumar Gala 			.parent_names = (const char *[]){ "gsbi1_qup_src" },
57724d8fba4SKumar Gala 			.num_parents = 1,
57824d8fba4SKumar Gala 			.ops = &clk_branch_ops,
57924d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
58024d8fba4SKumar Gala 		},
58124d8fba4SKumar Gala 	},
58224d8fba4SKumar Gala };
58324d8fba4SKumar Gala 
58424d8fba4SKumar Gala static struct clk_rcg gsbi2_qup_src = {
58524d8fba4SKumar Gala 	.ns_reg = 0x29ec,
58624d8fba4SKumar Gala 	.md_reg = 0x29e8,
58724d8fba4SKumar Gala 	.mn = {
58824d8fba4SKumar Gala 		.mnctr_en_bit = 8,
58924d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
59024d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
59124d8fba4SKumar Gala 		.n_val_shift = 16,
59224d8fba4SKumar Gala 		.m_val_shift = 16,
59324d8fba4SKumar Gala 		.width = 8,
59424d8fba4SKumar Gala 	},
59524d8fba4SKumar Gala 	.p = {
59624d8fba4SKumar Gala 		.pre_div_shift = 3,
59724d8fba4SKumar Gala 		.pre_div_width = 2,
59824d8fba4SKumar Gala 	},
59924d8fba4SKumar Gala 	.s = {
60024d8fba4SKumar Gala 		.src_sel_shift = 0,
60124d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
60224d8fba4SKumar Gala 	},
60324d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gsbi_qup,
60424d8fba4SKumar Gala 	.clkr = {
60524d8fba4SKumar Gala 		.enable_reg = 0x29ec,
60624d8fba4SKumar Gala 		.enable_mask = BIT(11),
60724d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
60824d8fba4SKumar Gala 			.name = "gsbi2_qup_src",
60924d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
61024d8fba4SKumar Gala 			.num_parents = 2,
61124d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
61224d8fba4SKumar Gala 			.flags = CLK_SET_PARENT_GATE,
61324d8fba4SKumar Gala 		},
61424d8fba4SKumar Gala 	},
61524d8fba4SKumar Gala };
61624d8fba4SKumar Gala 
61724d8fba4SKumar Gala static struct clk_branch gsbi2_qup_clk = {
61824d8fba4SKumar Gala 	.halt_reg = 0x2fcc,
61924d8fba4SKumar Gala 	.halt_bit = 6,
62024d8fba4SKumar Gala 	.clkr = {
62124d8fba4SKumar Gala 		.enable_reg = 0x29ec,
62224d8fba4SKumar Gala 		.enable_mask = BIT(9),
62324d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
62424d8fba4SKumar Gala 			.name = "gsbi2_qup_clk",
62524d8fba4SKumar Gala 			.parent_names = (const char *[]){ "gsbi2_qup_src" },
62624d8fba4SKumar Gala 			.num_parents = 1,
62724d8fba4SKumar Gala 			.ops = &clk_branch_ops,
62824d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
62924d8fba4SKumar Gala 		},
63024d8fba4SKumar Gala 	},
63124d8fba4SKumar Gala };
63224d8fba4SKumar Gala 
63324d8fba4SKumar Gala static struct clk_rcg gsbi4_qup_src = {
63424d8fba4SKumar Gala 	.ns_reg = 0x2a2c,
63524d8fba4SKumar Gala 	.md_reg = 0x2a28,
63624d8fba4SKumar Gala 	.mn = {
63724d8fba4SKumar Gala 		.mnctr_en_bit = 8,
63824d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
63924d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
64024d8fba4SKumar Gala 		.n_val_shift = 16,
64124d8fba4SKumar Gala 		.m_val_shift = 16,
64224d8fba4SKumar Gala 		.width = 8,
64324d8fba4SKumar Gala 	},
64424d8fba4SKumar Gala 	.p = {
64524d8fba4SKumar Gala 		.pre_div_shift = 3,
64624d8fba4SKumar Gala 		.pre_div_width = 2,
64724d8fba4SKumar Gala 	},
64824d8fba4SKumar Gala 	.s = {
64924d8fba4SKumar Gala 		.src_sel_shift = 0,
65024d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
65124d8fba4SKumar Gala 	},
65224d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gsbi_qup,
65324d8fba4SKumar Gala 	.clkr = {
65424d8fba4SKumar Gala 		.enable_reg = 0x2a2c,
65524d8fba4SKumar Gala 		.enable_mask = BIT(11),
65624d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
65724d8fba4SKumar Gala 			.name = "gsbi4_qup_src",
65824d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
65924d8fba4SKumar Gala 			.num_parents = 2,
66024d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
66124d8fba4SKumar Gala 			.flags = CLK_SET_PARENT_GATE,
66224d8fba4SKumar Gala 		},
66324d8fba4SKumar Gala 	},
66424d8fba4SKumar Gala };
66524d8fba4SKumar Gala 
66624d8fba4SKumar Gala static struct clk_branch gsbi4_qup_clk = {
66724d8fba4SKumar Gala 	.halt_reg = 0x2fd0,
66824d8fba4SKumar Gala 	.halt_bit = 24,
66924d8fba4SKumar Gala 	.clkr = {
67024d8fba4SKumar Gala 		.enable_reg = 0x2a2c,
67124d8fba4SKumar Gala 		.enable_mask = BIT(9),
67224d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
67324d8fba4SKumar Gala 			.name = "gsbi4_qup_clk",
67424d8fba4SKumar Gala 			.parent_names = (const char *[]){ "gsbi4_qup_src" },
67524d8fba4SKumar Gala 			.num_parents = 1,
67624d8fba4SKumar Gala 			.ops = &clk_branch_ops,
67724d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
67824d8fba4SKumar Gala 		},
67924d8fba4SKumar Gala 	},
68024d8fba4SKumar Gala };
68124d8fba4SKumar Gala 
68224d8fba4SKumar Gala static struct clk_rcg gsbi5_qup_src = {
68324d8fba4SKumar Gala 	.ns_reg = 0x2a4c,
68424d8fba4SKumar Gala 	.md_reg = 0x2a48,
68524d8fba4SKumar Gala 	.mn = {
68624d8fba4SKumar Gala 		.mnctr_en_bit = 8,
68724d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
68824d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
68924d8fba4SKumar Gala 		.n_val_shift = 16,
69024d8fba4SKumar Gala 		.m_val_shift = 16,
69124d8fba4SKumar Gala 		.width = 8,
69224d8fba4SKumar Gala 	},
69324d8fba4SKumar Gala 	.p = {
69424d8fba4SKumar Gala 		.pre_div_shift = 3,
69524d8fba4SKumar Gala 		.pre_div_width = 2,
69624d8fba4SKumar Gala 	},
69724d8fba4SKumar Gala 	.s = {
69824d8fba4SKumar Gala 		.src_sel_shift = 0,
69924d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
70024d8fba4SKumar Gala 	},
70124d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gsbi_qup,
70224d8fba4SKumar Gala 	.clkr = {
70324d8fba4SKumar Gala 		.enable_reg = 0x2a4c,
70424d8fba4SKumar Gala 		.enable_mask = BIT(11),
70524d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
70624d8fba4SKumar Gala 			.name = "gsbi5_qup_src",
70724d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
70824d8fba4SKumar Gala 			.num_parents = 2,
70924d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
71024d8fba4SKumar Gala 			.flags = CLK_SET_PARENT_GATE,
71124d8fba4SKumar Gala 		},
71224d8fba4SKumar Gala 	},
71324d8fba4SKumar Gala };
71424d8fba4SKumar Gala 
71524d8fba4SKumar Gala static struct clk_branch gsbi5_qup_clk = {
71624d8fba4SKumar Gala 	.halt_reg = 0x2fd0,
71724d8fba4SKumar Gala 	.halt_bit = 20,
71824d8fba4SKumar Gala 	.clkr = {
71924d8fba4SKumar Gala 		.enable_reg = 0x2a4c,
72024d8fba4SKumar Gala 		.enable_mask = BIT(9),
72124d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
72224d8fba4SKumar Gala 			.name = "gsbi5_qup_clk",
72324d8fba4SKumar Gala 			.parent_names = (const char *[]){ "gsbi5_qup_src" },
72424d8fba4SKumar Gala 			.num_parents = 1,
72524d8fba4SKumar Gala 			.ops = &clk_branch_ops,
72624d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
72724d8fba4SKumar Gala 		},
72824d8fba4SKumar Gala 	},
72924d8fba4SKumar Gala };
73024d8fba4SKumar Gala 
73124d8fba4SKumar Gala static struct clk_rcg gsbi6_qup_src = {
73224d8fba4SKumar Gala 	.ns_reg = 0x2a6c,
73324d8fba4SKumar Gala 	.md_reg = 0x2a68,
73424d8fba4SKumar Gala 	.mn = {
73524d8fba4SKumar Gala 		.mnctr_en_bit = 8,
73624d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
73724d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
73824d8fba4SKumar Gala 		.n_val_shift = 16,
73924d8fba4SKumar Gala 		.m_val_shift = 16,
74024d8fba4SKumar Gala 		.width = 8,
74124d8fba4SKumar Gala 	},
74224d8fba4SKumar Gala 	.p = {
74324d8fba4SKumar Gala 		.pre_div_shift = 3,
74424d8fba4SKumar Gala 		.pre_div_width = 2,
74524d8fba4SKumar Gala 	},
74624d8fba4SKumar Gala 	.s = {
74724d8fba4SKumar Gala 		.src_sel_shift = 0,
74824d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
74924d8fba4SKumar Gala 	},
75024d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gsbi_qup,
75124d8fba4SKumar Gala 	.clkr = {
75224d8fba4SKumar Gala 		.enable_reg = 0x2a6c,
75324d8fba4SKumar Gala 		.enable_mask = BIT(11),
75424d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
75524d8fba4SKumar Gala 			.name = "gsbi6_qup_src",
75624d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
75724d8fba4SKumar Gala 			.num_parents = 2,
75824d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
75924d8fba4SKumar Gala 			.flags = CLK_SET_PARENT_GATE,
76024d8fba4SKumar Gala 		},
76124d8fba4SKumar Gala 	},
76224d8fba4SKumar Gala };
76324d8fba4SKumar Gala 
76424d8fba4SKumar Gala static struct clk_branch gsbi6_qup_clk = {
76524d8fba4SKumar Gala 	.halt_reg = 0x2fd0,
76624d8fba4SKumar Gala 	.halt_bit = 16,
76724d8fba4SKumar Gala 	.clkr = {
76824d8fba4SKumar Gala 		.enable_reg = 0x2a6c,
76924d8fba4SKumar Gala 		.enable_mask = BIT(9),
77024d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
77124d8fba4SKumar Gala 			.name = "gsbi6_qup_clk",
77224d8fba4SKumar Gala 			.parent_names = (const char *[]){ "gsbi6_qup_src" },
77324d8fba4SKumar Gala 			.num_parents = 1,
77424d8fba4SKumar Gala 			.ops = &clk_branch_ops,
77524d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
77624d8fba4SKumar Gala 		},
77724d8fba4SKumar Gala 	},
77824d8fba4SKumar Gala };
77924d8fba4SKumar Gala 
78024d8fba4SKumar Gala static struct clk_rcg gsbi7_qup_src = {
78124d8fba4SKumar Gala 	.ns_reg = 0x2a8c,
78224d8fba4SKumar Gala 	.md_reg = 0x2a88,
78324d8fba4SKumar Gala 	.mn = {
78424d8fba4SKumar Gala 		.mnctr_en_bit = 8,
78524d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
78624d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
78724d8fba4SKumar Gala 		.n_val_shift = 16,
78824d8fba4SKumar Gala 		.m_val_shift = 16,
78924d8fba4SKumar Gala 		.width = 8,
79024d8fba4SKumar Gala 	},
79124d8fba4SKumar Gala 	.p = {
79224d8fba4SKumar Gala 		.pre_div_shift = 3,
79324d8fba4SKumar Gala 		.pre_div_width = 2,
79424d8fba4SKumar Gala 	},
79524d8fba4SKumar Gala 	.s = {
79624d8fba4SKumar Gala 		.src_sel_shift = 0,
79724d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
79824d8fba4SKumar Gala 	},
79924d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gsbi_qup,
80024d8fba4SKumar Gala 	.clkr = {
80124d8fba4SKumar Gala 		.enable_reg = 0x2a8c,
80224d8fba4SKumar Gala 		.enable_mask = BIT(11),
80324d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
80424d8fba4SKumar Gala 			.name = "gsbi7_qup_src",
80524d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
80624d8fba4SKumar Gala 			.num_parents = 2,
80724d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
80824d8fba4SKumar Gala 			.flags = CLK_SET_PARENT_GATE,
80924d8fba4SKumar Gala 		},
81024d8fba4SKumar Gala 	},
81124d8fba4SKumar Gala };
81224d8fba4SKumar Gala 
81324d8fba4SKumar Gala static struct clk_branch gsbi7_qup_clk = {
81424d8fba4SKumar Gala 	.halt_reg = 0x2fd0,
81524d8fba4SKumar Gala 	.halt_bit = 12,
81624d8fba4SKumar Gala 	.clkr = {
81724d8fba4SKumar Gala 		.enable_reg = 0x2a8c,
81824d8fba4SKumar Gala 		.enable_mask = BIT(9),
81924d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
82024d8fba4SKumar Gala 			.name = "gsbi7_qup_clk",
82124d8fba4SKumar Gala 			.parent_names = (const char *[]){ "gsbi7_qup_src" },
82224d8fba4SKumar Gala 			.num_parents = 1,
82324d8fba4SKumar Gala 			.ops = &clk_branch_ops,
82424d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
82524d8fba4SKumar Gala 		},
82624d8fba4SKumar Gala 	},
82724d8fba4SKumar Gala };
82824d8fba4SKumar Gala 
82924d8fba4SKumar Gala static struct clk_branch gsbi1_h_clk = {
83024d8fba4SKumar Gala 	.hwcg_reg = 0x29c0,
83124d8fba4SKumar Gala 	.hwcg_bit = 6,
83224d8fba4SKumar Gala 	.halt_reg = 0x2fcc,
83324d8fba4SKumar Gala 	.halt_bit = 13,
83424d8fba4SKumar Gala 	.clkr = {
83524d8fba4SKumar Gala 		.enable_reg = 0x29c0,
83624d8fba4SKumar Gala 		.enable_mask = BIT(4),
83724d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
83824d8fba4SKumar Gala 			.name = "gsbi1_h_clk",
83924d8fba4SKumar Gala 			.ops = &clk_branch_ops,
84024d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
84124d8fba4SKumar Gala 		},
84224d8fba4SKumar Gala 	},
84324d8fba4SKumar Gala };
84424d8fba4SKumar Gala 
84524d8fba4SKumar Gala static struct clk_branch gsbi2_h_clk = {
84624d8fba4SKumar Gala 	.hwcg_reg = 0x29e0,
84724d8fba4SKumar Gala 	.hwcg_bit = 6,
84824d8fba4SKumar Gala 	.halt_reg = 0x2fcc,
84924d8fba4SKumar Gala 	.halt_bit = 9,
85024d8fba4SKumar Gala 	.clkr = {
85124d8fba4SKumar Gala 		.enable_reg = 0x29e0,
85224d8fba4SKumar Gala 		.enable_mask = BIT(4),
85324d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
85424d8fba4SKumar Gala 			.name = "gsbi2_h_clk",
85524d8fba4SKumar Gala 			.ops = &clk_branch_ops,
85624d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
85724d8fba4SKumar Gala 		},
85824d8fba4SKumar Gala 	},
85924d8fba4SKumar Gala };
86024d8fba4SKumar Gala 
86124d8fba4SKumar Gala static struct clk_branch gsbi4_h_clk = {
86224d8fba4SKumar Gala 	.hwcg_reg = 0x2a20,
86324d8fba4SKumar Gala 	.hwcg_bit = 6,
86424d8fba4SKumar Gala 	.halt_reg = 0x2fd0,
86524d8fba4SKumar Gala 	.halt_bit = 27,
86624d8fba4SKumar Gala 	.clkr = {
86724d8fba4SKumar Gala 		.enable_reg = 0x2a20,
86824d8fba4SKumar Gala 		.enable_mask = BIT(4),
86924d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
87024d8fba4SKumar Gala 			.name = "gsbi4_h_clk",
87124d8fba4SKumar Gala 			.ops = &clk_branch_ops,
87224d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
87324d8fba4SKumar Gala 		},
87424d8fba4SKumar Gala 	},
87524d8fba4SKumar Gala };
87624d8fba4SKumar Gala 
87724d8fba4SKumar Gala static struct clk_branch gsbi5_h_clk = {
87824d8fba4SKumar Gala 	.hwcg_reg = 0x2a40,
87924d8fba4SKumar Gala 	.hwcg_bit = 6,
88024d8fba4SKumar Gala 	.halt_reg = 0x2fd0,
88124d8fba4SKumar Gala 	.halt_bit = 23,
88224d8fba4SKumar Gala 	.clkr = {
88324d8fba4SKumar Gala 		.enable_reg = 0x2a40,
88424d8fba4SKumar Gala 		.enable_mask = BIT(4),
88524d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
88624d8fba4SKumar Gala 			.name = "gsbi5_h_clk",
88724d8fba4SKumar Gala 			.ops = &clk_branch_ops,
88824d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
88924d8fba4SKumar Gala 		},
89024d8fba4SKumar Gala 	},
89124d8fba4SKumar Gala };
89224d8fba4SKumar Gala 
89324d8fba4SKumar Gala static struct clk_branch gsbi6_h_clk = {
89424d8fba4SKumar Gala 	.hwcg_reg = 0x2a60,
89524d8fba4SKumar Gala 	.hwcg_bit = 6,
89624d8fba4SKumar Gala 	.halt_reg = 0x2fd0,
89724d8fba4SKumar Gala 	.halt_bit = 19,
89824d8fba4SKumar Gala 	.clkr = {
89924d8fba4SKumar Gala 		.enable_reg = 0x2a60,
90024d8fba4SKumar Gala 		.enable_mask = BIT(4),
90124d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
90224d8fba4SKumar Gala 			.name = "gsbi6_h_clk",
90324d8fba4SKumar Gala 			.ops = &clk_branch_ops,
90424d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
90524d8fba4SKumar Gala 		},
90624d8fba4SKumar Gala 	},
90724d8fba4SKumar Gala };
90824d8fba4SKumar Gala 
90924d8fba4SKumar Gala static struct clk_branch gsbi7_h_clk = {
91024d8fba4SKumar Gala 	.hwcg_reg = 0x2a80,
91124d8fba4SKumar Gala 	.hwcg_bit = 6,
91224d8fba4SKumar Gala 	.halt_reg = 0x2fd0,
91324d8fba4SKumar Gala 	.halt_bit = 15,
91424d8fba4SKumar Gala 	.clkr = {
91524d8fba4SKumar Gala 		.enable_reg = 0x2a80,
91624d8fba4SKumar Gala 		.enable_mask = BIT(4),
91724d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
91824d8fba4SKumar Gala 			.name = "gsbi7_h_clk",
91924d8fba4SKumar Gala 			.ops = &clk_branch_ops,
92024d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
92124d8fba4SKumar Gala 		},
92224d8fba4SKumar Gala 	},
92324d8fba4SKumar Gala };
92424d8fba4SKumar Gala 
92524d8fba4SKumar Gala static const struct freq_tbl clk_tbl_gp[] = {
92624d8fba4SKumar Gala 	{ 12500000, P_PXO,  2, 0, 0 },
92724d8fba4SKumar Gala 	{ 25000000, P_PXO,  1, 0, 0 },
92824d8fba4SKumar Gala 	{ 64000000, P_PLL8, 2, 1, 3 },
92924d8fba4SKumar Gala 	{ 76800000, P_PLL8, 1, 1, 5 },
93024d8fba4SKumar Gala 	{ 96000000, P_PLL8, 4, 0, 0 },
93124d8fba4SKumar Gala 	{ 128000000, P_PLL8, 3, 0, 0 },
93224d8fba4SKumar Gala 	{ 192000000, P_PLL8, 2, 0, 0 },
93324d8fba4SKumar Gala 	{ }
93424d8fba4SKumar Gala };
93524d8fba4SKumar Gala 
93624d8fba4SKumar Gala static struct clk_rcg gp0_src = {
93724d8fba4SKumar Gala 	.ns_reg = 0x2d24,
93824d8fba4SKumar Gala 	.md_reg = 0x2d00,
93924d8fba4SKumar Gala 	.mn = {
94024d8fba4SKumar Gala 		.mnctr_en_bit = 8,
94124d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
94224d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
94324d8fba4SKumar Gala 		.n_val_shift = 16,
94424d8fba4SKumar Gala 		.m_val_shift = 16,
94524d8fba4SKumar Gala 		.width = 8,
94624d8fba4SKumar Gala 	},
94724d8fba4SKumar Gala 	.p = {
94824d8fba4SKumar Gala 		.pre_div_shift = 3,
94924d8fba4SKumar Gala 		.pre_div_width = 2,
95024d8fba4SKumar Gala 	},
95124d8fba4SKumar Gala 	.s = {
95224d8fba4SKumar Gala 		.src_sel_shift = 0,
95324d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_cxo_map,
95424d8fba4SKumar Gala 	},
95524d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gp,
95624d8fba4SKumar Gala 	.clkr = {
95724d8fba4SKumar Gala 		.enable_reg = 0x2d24,
95824d8fba4SKumar Gala 		.enable_mask = BIT(11),
95924d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
96024d8fba4SKumar Gala 			.name = "gp0_src",
96124d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8_cxo,
96224d8fba4SKumar Gala 			.num_parents = 3,
96324d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
96424d8fba4SKumar Gala 			.flags = CLK_SET_PARENT_GATE,
96524d8fba4SKumar Gala 		},
96624d8fba4SKumar Gala 	}
96724d8fba4SKumar Gala };
96824d8fba4SKumar Gala 
96924d8fba4SKumar Gala static struct clk_branch gp0_clk = {
97024d8fba4SKumar Gala 	.halt_reg = 0x2fd8,
97124d8fba4SKumar Gala 	.halt_bit = 7,
97224d8fba4SKumar Gala 	.clkr = {
97324d8fba4SKumar Gala 		.enable_reg = 0x2d24,
97424d8fba4SKumar Gala 		.enable_mask = BIT(9),
97524d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
97624d8fba4SKumar Gala 			.name = "gp0_clk",
97724d8fba4SKumar Gala 			.parent_names = (const char *[]){ "gp0_src" },
97824d8fba4SKumar Gala 			.num_parents = 1,
97924d8fba4SKumar Gala 			.ops = &clk_branch_ops,
98024d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
98124d8fba4SKumar Gala 		},
98224d8fba4SKumar Gala 	},
98324d8fba4SKumar Gala };
98424d8fba4SKumar Gala 
98524d8fba4SKumar Gala static struct clk_rcg gp1_src = {
98624d8fba4SKumar Gala 	.ns_reg = 0x2d44,
98724d8fba4SKumar Gala 	.md_reg = 0x2d40,
98824d8fba4SKumar Gala 	.mn = {
98924d8fba4SKumar Gala 		.mnctr_en_bit = 8,
99024d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
99124d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
99224d8fba4SKumar Gala 		.n_val_shift = 16,
99324d8fba4SKumar Gala 		.m_val_shift = 16,
99424d8fba4SKumar Gala 		.width = 8,
99524d8fba4SKumar Gala 	},
99624d8fba4SKumar Gala 	.p = {
99724d8fba4SKumar Gala 		.pre_div_shift = 3,
99824d8fba4SKumar Gala 		.pre_div_width = 2,
99924d8fba4SKumar Gala 	},
100024d8fba4SKumar Gala 	.s = {
100124d8fba4SKumar Gala 		.src_sel_shift = 0,
100224d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_cxo_map,
100324d8fba4SKumar Gala 	},
100424d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gp,
100524d8fba4SKumar Gala 	.clkr = {
100624d8fba4SKumar Gala 		.enable_reg = 0x2d44,
100724d8fba4SKumar Gala 		.enable_mask = BIT(11),
100824d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
100924d8fba4SKumar Gala 			.name = "gp1_src",
101024d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8_cxo,
101124d8fba4SKumar Gala 			.num_parents = 3,
101224d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
101324d8fba4SKumar Gala 			.flags = CLK_SET_RATE_GATE,
101424d8fba4SKumar Gala 		},
101524d8fba4SKumar Gala 	}
101624d8fba4SKumar Gala };
101724d8fba4SKumar Gala 
101824d8fba4SKumar Gala static struct clk_branch gp1_clk = {
101924d8fba4SKumar Gala 	.halt_reg = 0x2fd8,
102024d8fba4SKumar Gala 	.halt_bit = 6,
102124d8fba4SKumar Gala 	.clkr = {
102224d8fba4SKumar Gala 		.enable_reg = 0x2d44,
102324d8fba4SKumar Gala 		.enable_mask = BIT(9),
102424d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
102524d8fba4SKumar Gala 			.name = "gp1_clk",
102624d8fba4SKumar Gala 			.parent_names = (const char *[]){ "gp1_src" },
102724d8fba4SKumar Gala 			.num_parents = 1,
102824d8fba4SKumar Gala 			.ops = &clk_branch_ops,
102924d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
103024d8fba4SKumar Gala 		},
103124d8fba4SKumar Gala 	},
103224d8fba4SKumar Gala };
103324d8fba4SKumar Gala 
103424d8fba4SKumar Gala static struct clk_rcg gp2_src = {
103524d8fba4SKumar Gala 	.ns_reg = 0x2d64,
103624d8fba4SKumar Gala 	.md_reg = 0x2d60,
103724d8fba4SKumar Gala 	.mn = {
103824d8fba4SKumar Gala 		.mnctr_en_bit = 8,
103924d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
104024d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
104124d8fba4SKumar Gala 		.n_val_shift = 16,
104224d8fba4SKumar Gala 		.m_val_shift = 16,
104324d8fba4SKumar Gala 		.width = 8,
104424d8fba4SKumar Gala 	},
104524d8fba4SKumar Gala 	.p = {
104624d8fba4SKumar Gala 		.pre_div_shift = 3,
104724d8fba4SKumar Gala 		.pre_div_width = 2,
104824d8fba4SKumar Gala 	},
104924d8fba4SKumar Gala 	.s = {
105024d8fba4SKumar Gala 		.src_sel_shift = 0,
105124d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_cxo_map,
105224d8fba4SKumar Gala 	},
105324d8fba4SKumar Gala 	.freq_tbl = clk_tbl_gp,
105424d8fba4SKumar Gala 	.clkr = {
105524d8fba4SKumar Gala 		.enable_reg = 0x2d64,
105624d8fba4SKumar Gala 		.enable_mask = BIT(11),
105724d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
105824d8fba4SKumar Gala 			.name = "gp2_src",
105924d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8_cxo,
106024d8fba4SKumar Gala 			.num_parents = 3,
106124d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
106224d8fba4SKumar Gala 			.flags = CLK_SET_RATE_GATE,
106324d8fba4SKumar Gala 		},
106424d8fba4SKumar Gala 	}
106524d8fba4SKumar Gala };
106624d8fba4SKumar Gala 
106724d8fba4SKumar Gala static struct clk_branch gp2_clk = {
106824d8fba4SKumar Gala 	.halt_reg = 0x2fd8,
106924d8fba4SKumar Gala 	.halt_bit = 5,
107024d8fba4SKumar Gala 	.clkr = {
107124d8fba4SKumar Gala 		.enable_reg = 0x2d64,
107224d8fba4SKumar Gala 		.enable_mask = BIT(9),
107324d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
107424d8fba4SKumar Gala 			.name = "gp2_clk",
107524d8fba4SKumar Gala 			.parent_names = (const char *[]){ "gp2_src" },
107624d8fba4SKumar Gala 			.num_parents = 1,
107724d8fba4SKumar Gala 			.ops = &clk_branch_ops,
107824d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
107924d8fba4SKumar Gala 		},
108024d8fba4SKumar Gala 	},
108124d8fba4SKumar Gala };
108224d8fba4SKumar Gala 
108324d8fba4SKumar Gala static struct clk_branch pmem_clk = {
108424d8fba4SKumar Gala 	.hwcg_reg = 0x25a0,
108524d8fba4SKumar Gala 	.hwcg_bit = 6,
108624d8fba4SKumar Gala 	.halt_reg = 0x2fc8,
108724d8fba4SKumar Gala 	.halt_bit = 20,
108824d8fba4SKumar Gala 	.clkr = {
108924d8fba4SKumar Gala 		.enable_reg = 0x25a0,
109024d8fba4SKumar Gala 		.enable_mask = BIT(4),
109124d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
109224d8fba4SKumar Gala 			.name = "pmem_clk",
109324d8fba4SKumar Gala 			.ops = &clk_branch_ops,
109424d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
109524d8fba4SKumar Gala 		},
109624d8fba4SKumar Gala 	},
109724d8fba4SKumar Gala };
109824d8fba4SKumar Gala 
109924d8fba4SKumar Gala static struct clk_rcg prng_src = {
110024d8fba4SKumar Gala 	.ns_reg = 0x2e80,
110124d8fba4SKumar Gala 	.p = {
110224d8fba4SKumar Gala 		.pre_div_shift = 3,
110324d8fba4SKumar Gala 		.pre_div_width = 4,
110424d8fba4SKumar Gala 	},
110524d8fba4SKumar Gala 	.s = {
110624d8fba4SKumar Gala 		.src_sel_shift = 0,
110724d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
110824d8fba4SKumar Gala 	},
110924d8fba4SKumar Gala 	.clkr = {
111024d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
111124d8fba4SKumar Gala 			.name = "prng_src",
111224d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
111324d8fba4SKumar Gala 			.num_parents = 2,
111424d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
111524d8fba4SKumar Gala 		},
111624d8fba4SKumar Gala 	},
111724d8fba4SKumar Gala };
111824d8fba4SKumar Gala 
111924d8fba4SKumar Gala static struct clk_branch prng_clk = {
112024d8fba4SKumar Gala 	.halt_reg = 0x2fd8,
112124d8fba4SKumar Gala 	.halt_check = BRANCH_HALT_VOTED,
112224d8fba4SKumar Gala 	.halt_bit = 10,
112324d8fba4SKumar Gala 	.clkr = {
112424d8fba4SKumar Gala 		.enable_reg = 0x3080,
112524d8fba4SKumar Gala 		.enable_mask = BIT(10),
112624d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
112724d8fba4SKumar Gala 			.name = "prng_clk",
112824d8fba4SKumar Gala 			.parent_names = (const char *[]){ "prng_src" },
112924d8fba4SKumar Gala 			.num_parents = 1,
113024d8fba4SKumar Gala 			.ops = &clk_branch_ops,
113124d8fba4SKumar Gala 		},
113224d8fba4SKumar Gala 	},
113324d8fba4SKumar Gala };
113424d8fba4SKumar Gala 
113524d8fba4SKumar Gala static const struct freq_tbl clk_tbl_sdc[] = {
1136d8210e28SStephen Boyd 	{    200000, P_PXO,   2, 2, 125 },
113724d8fba4SKumar Gala 	{    400000, P_PLL8,  4, 1, 240 },
113824d8fba4SKumar Gala 	{  16000000, P_PLL8,  4, 1,   6 },
113924d8fba4SKumar Gala 	{  17070000, P_PLL8,  1, 2,  45 },
114024d8fba4SKumar Gala 	{  20210000, P_PLL8,  1, 1,  19 },
114124d8fba4SKumar Gala 	{  24000000, P_PLL8,  4, 1,   4 },
114224d8fba4SKumar Gala 	{  48000000, P_PLL8,  4, 1,   2 },
114324d8fba4SKumar Gala 	{  64000000, P_PLL8,  3, 1,   2 },
114424d8fba4SKumar Gala 	{  96000000, P_PLL8,  4, 0,   0 },
114524d8fba4SKumar Gala 	{ 192000000, P_PLL8,  2, 0,   0 },
114624d8fba4SKumar Gala 	{ }
114724d8fba4SKumar Gala };
114824d8fba4SKumar Gala 
114924d8fba4SKumar Gala static struct clk_rcg sdc1_src = {
115024d8fba4SKumar Gala 	.ns_reg = 0x282c,
115124d8fba4SKumar Gala 	.md_reg = 0x2828,
115224d8fba4SKumar Gala 	.mn = {
115324d8fba4SKumar Gala 		.mnctr_en_bit = 8,
115424d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
115524d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
115624d8fba4SKumar Gala 		.n_val_shift = 16,
115724d8fba4SKumar Gala 		.m_val_shift = 16,
115824d8fba4SKumar Gala 		.width = 8,
115924d8fba4SKumar Gala 	},
116024d8fba4SKumar Gala 	.p = {
116124d8fba4SKumar Gala 		.pre_div_shift = 3,
116224d8fba4SKumar Gala 		.pre_div_width = 2,
116324d8fba4SKumar Gala 	},
116424d8fba4SKumar Gala 	.s = {
116524d8fba4SKumar Gala 		.src_sel_shift = 0,
116624d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
116724d8fba4SKumar Gala 	},
116824d8fba4SKumar Gala 	.freq_tbl = clk_tbl_sdc,
116924d8fba4SKumar Gala 	.clkr = {
117024d8fba4SKumar Gala 		.enable_reg = 0x282c,
117124d8fba4SKumar Gala 		.enable_mask = BIT(11),
117224d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
117324d8fba4SKumar Gala 			.name = "sdc1_src",
117424d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
117524d8fba4SKumar Gala 			.num_parents = 2,
117624d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
117724d8fba4SKumar Gala 			.flags = CLK_SET_RATE_GATE,
117824d8fba4SKumar Gala 		},
117924d8fba4SKumar Gala 	}
118024d8fba4SKumar Gala };
118124d8fba4SKumar Gala 
118224d8fba4SKumar Gala static struct clk_branch sdc1_clk = {
118324d8fba4SKumar Gala 	.halt_reg = 0x2fc8,
118424d8fba4SKumar Gala 	.halt_bit = 6,
118524d8fba4SKumar Gala 	.clkr = {
118624d8fba4SKumar Gala 		.enable_reg = 0x282c,
118724d8fba4SKumar Gala 		.enable_mask = BIT(9),
118824d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
118924d8fba4SKumar Gala 			.name = "sdc1_clk",
119024d8fba4SKumar Gala 			.parent_names = (const char *[]){ "sdc1_src" },
119124d8fba4SKumar Gala 			.num_parents = 1,
119224d8fba4SKumar Gala 			.ops = &clk_branch_ops,
119324d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
119424d8fba4SKumar Gala 		},
119524d8fba4SKumar Gala 	},
119624d8fba4SKumar Gala };
119724d8fba4SKumar Gala 
119824d8fba4SKumar Gala static struct clk_rcg sdc3_src = {
119924d8fba4SKumar Gala 	.ns_reg = 0x286c,
120024d8fba4SKumar Gala 	.md_reg = 0x2868,
120124d8fba4SKumar Gala 	.mn = {
120224d8fba4SKumar Gala 		.mnctr_en_bit = 8,
120324d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
120424d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
120524d8fba4SKumar Gala 		.n_val_shift = 16,
120624d8fba4SKumar Gala 		.m_val_shift = 16,
120724d8fba4SKumar Gala 		.width = 8,
120824d8fba4SKumar Gala 	},
120924d8fba4SKumar Gala 	.p = {
121024d8fba4SKumar Gala 		.pre_div_shift = 3,
121124d8fba4SKumar Gala 		.pre_div_width = 2,
121224d8fba4SKumar Gala 	},
121324d8fba4SKumar Gala 	.s = {
121424d8fba4SKumar Gala 		.src_sel_shift = 0,
121524d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
121624d8fba4SKumar Gala 	},
121724d8fba4SKumar Gala 	.freq_tbl = clk_tbl_sdc,
121824d8fba4SKumar Gala 	.clkr = {
121924d8fba4SKumar Gala 		.enable_reg = 0x286c,
122024d8fba4SKumar Gala 		.enable_mask = BIT(11),
122124d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
122224d8fba4SKumar Gala 			.name = "sdc3_src",
122324d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
122424d8fba4SKumar Gala 			.num_parents = 2,
122524d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
122624d8fba4SKumar Gala 			.flags = CLK_SET_RATE_GATE,
122724d8fba4SKumar Gala 		},
122824d8fba4SKumar Gala 	}
122924d8fba4SKumar Gala };
123024d8fba4SKumar Gala 
123124d8fba4SKumar Gala static struct clk_branch sdc3_clk = {
123224d8fba4SKumar Gala 	.halt_reg = 0x2fc8,
123324d8fba4SKumar Gala 	.halt_bit = 4,
123424d8fba4SKumar Gala 	.clkr = {
123524d8fba4SKumar Gala 		.enable_reg = 0x286c,
123624d8fba4SKumar Gala 		.enable_mask = BIT(9),
123724d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
123824d8fba4SKumar Gala 			.name = "sdc3_clk",
123924d8fba4SKumar Gala 			.parent_names = (const char *[]){ "sdc3_src" },
124024d8fba4SKumar Gala 			.num_parents = 1,
124124d8fba4SKumar Gala 			.ops = &clk_branch_ops,
124224d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
124324d8fba4SKumar Gala 		},
124424d8fba4SKumar Gala 	},
124524d8fba4SKumar Gala };
124624d8fba4SKumar Gala 
124724d8fba4SKumar Gala static struct clk_branch sdc1_h_clk = {
124824d8fba4SKumar Gala 	.hwcg_reg = 0x2820,
124924d8fba4SKumar Gala 	.hwcg_bit = 6,
125024d8fba4SKumar Gala 	.halt_reg = 0x2fc8,
125124d8fba4SKumar Gala 	.halt_bit = 11,
125224d8fba4SKumar Gala 	.clkr = {
125324d8fba4SKumar Gala 		.enable_reg = 0x2820,
125424d8fba4SKumar Gala 		.enable_mask = BIT(4),
125524d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
125624d8fba4SKumar Gala 			.name = "sdc1_h_clk",
125724d8fba4SKumar Gala 			.ops = &clk_branch_ops,
125824d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
125924d8fba4SKumar Gala 		},
126024d8fba4SKumar Gala 	},
126124d8fba4SKumar Gala };
126224d8fba4SKumar Gala 
126324d8fba4SKumar Gala static struct clk_branch sdc3_h_clk = {
126424d8fba4SKumar Gala 	.hwcg_reg = 0x2860,
126524d8fba4SKumar Gala 	.hwcg_bit = 6,
126624d8fba4SKumar Gala 	.halt_reg = 0x2fc8,
126724d8fba4SKumar Gala 	.halt_bit = 9,
126824d8fba4SKumar Gala 	.clkr = {
126924d8fba4SKumar Gala 		.enable_reg = 0x2860,
127024d8fba4SKumar Gala 		.enable_mask = BIT(4),
127124d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
127224d8fba4SKumar Gala 			.name = "sdc3_h_clk",
127324d8fba4SKumar Gala 			.ops = &clk_branch_ops,
127424d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
127524d8fba4SKumar Gala 		},
127624d8fba4SKumar Gala 	},
127724d8fba4SKumar Gala };
127824d8fba4SKumar Gala 
127924d8fba4SKumar Gala static const struct freq_tbl clk_tbl_tsif_ref[] = {
128024d8fba4SKumar Gala 	{ 105000, P_PXO,  1, 1, 256 },
128124d8fba4SKumar Gala 	{ }
128224d8fba4SKumar Gala };
128324d8fba4SKumar Gala 
128424d8fba4SKumar Gala static struct clk_rcg tsif_ref_src = {
128524d8fba4SKumar Gala 	.ns_reg = 0x2710,
128624d8fba4SKumar Gala 	.md_reg = 0x270c,
128724d8fba4SKumar Gala 	.mn = {
128824d8fba4SKumar Gala 		.mnctr_en_bit = 8,
128924d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
129024d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
129124d8fba4SKumar Gala 		.n_val_shift = 16,
129224d8fba4SKumar Gala 		.m_val_shift = 16,
129324d8fba4SKumar Gala 		.width = 16,
129424d8fba4SKumar Gala 	},
129524d8fba4SKumar Gala 	.p = {
129624d8fba4SKumar Gala 		.pre_div_shift = 3,
129724d8fba4SKumar Gala 		.pre_div_width = 2,
129824d8fba4SKumar Gala 	},
129924d8fba4SKumar Gala 	.s = {
130024d8fba4SKumar Gala 		.src_sel_shift = 0,
130124d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_map,
130224d8fba4SKumar Gala 	},
130324d8fba4SKumar Gala 	.freq_tbl = clk_tbl_tsif_ref,
130424d8fba4SKumar Gala 	.clkr = {
130524d8fba4SKumar Gala 		.enable_reg = 0x2710,
130624d8fba4SKumar Gala 		.enable_mask = BIT(11),
130724d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
130824d8fba4SKumar Gala 			.name = "tsif_ref_src",
130924d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8,
131024d8fba4SKumar Gala 			.num_parents = 2,
131124d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
131224d8fba4SKumar Gala 			.flags = CLK_SET_RATE_GATE,
131324d8fba4SKumar Gala 		},
131424d8fba4SKumar Gala 	}
131524d8fba4SKumar Gala };
131624d8fba4SKumar Gala 
131724d8fba4SKumar Gala static struct clk_branch tsif_ref_clk = {
131824d8fba4SKumar Gala 	.halt_reg = 0x2fd4,
131924d8fba4SKumar Gala 	.halt_bit = 5,
132024d8fba4SKumar Gala 	.clkr = {
132124d8fba4SKumar Gala 		.enable_reg = 0x2710,
132224d8fba4SKumar Gala 		.enable_mask = BIT(9),
132324d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
132424d8fba4SKumar Gala 			.name = "tsif_ref_clk",
132524d8fba4SKumar Gala 			.parent_names = (const char *[]){ "tsif_ref_src" },
132624d8fba4SKumar Gala 			.num_parents = 1,
132724d8fba4SKumar Gala 			.ops = &clk_branch_ops,
132824d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
132924d8fba4SKumar Gala 		},
133024d8fba4SKumar Gala 	},
133124d8fba4SKumar Gala };
133224d8fba4SKumar Gala 
133324d8fba4SKumar Gala static struct clk_branch tsif_h_clk = {
133424d8fba4SKumar Gala 	.hwcg_reg = 0x2700,
133524d8fba4SKumar Gala 	.hwcg_bit = 6,
133624d8fba4SKumar Gala 	.halt_reg = 0x2fd4,
133724d8fba4SKumar Gala 	.halt_bit = 7,
133824d8fba4SKumar Gala 	.clkr = {
133924d8fba4SKumar Gala 		.enable_reg = 0x2700,
134024d8fba4SKumar Gala 		.enable_mask = BIT(4),
134124d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
134224d8fba4SKumar Gala 			.name = "tsif_h_clk",
134324d8fba4SKumar Gala 			.ops = &clk_branch_ops,
134424d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
134524d8fba4SKumar Gala 		},
134624d8fba4SKumar Gala 	},
134724d8fba4SKumar Gala };
134824d8fba4SKumar Gala 
134924d8fba4SKumar Gala static struct clk_branch dma_bam_h_clk = {
135024d8fba4SKumar Gala 	.hwcg_reg = 0x25c0,
135124d8fba4SKumar Gala 	.hwcg_bit = 6,
135224d8fba4SKumar Gala 	.halt_reg = 0x2fc8,
135324d8fba4SKumar Gala 	.halt_bit = 12,
135424d8fba4SKumar Gala 	.clkr = {
135524d8fba4SKumar Gala 		.enable_reg = 0x25c0,
135624d8fba4SKumar Gala 		.enable_mask = BIT(4),
135724d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
135824d8fba4SKumar Gala 			.name = "dma_bam_h_clk",
135924d8fba4SKumar Gala 			.ops = &clk_branch_ops,
136024d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
136124d8fba4SKumar Gala 		},
136224d8fba4SKumar Gala 	},
136324d8fba4SKumar Gala };
136424d8fba4SKumar Gala 
136524d8fba4SKumar Gala static struct clk_branch adm0_clk = {
136624d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
136724d8fba4SKumar Gala 	.halt_check = BRANCH_HALT_VOTED,
136824d8fba4SKumar Gala 	.halt_bit = 12,
136924d8fba4SKumar Gala 	.clkr = {
137024d8fba4SKumar Gala 		.enable_reg = 0x3080,
137124d8fba4SKumar Gala 		.enable_mask = BIT(2),
137224d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
137324d8fba4SKumar Gala 			.name = "adm0_clk",
137424d8fba4SKumar Gala 			.ops = &clk_branch_ops,
137524d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
137624d8fba4SKumar Gala 		},
137724d8fba4SKumar Gala 	},
137824d8fba4SKumar Gala };
137924d8fba4SKumar Gala 
138024d8fba4SKumar Gala static struct clk_branch adm0_pbus_clk = {
138124d8fba4SKumar Gala 	.hwcg_reg = 0x2208,
138224d8fba4SKumar Gala 	.hwcg_bit = 6,
138324d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
138424d8fba4SKumar Gala 	.halt_check = BRANCH_HALT_VOTED,
138524d8fba4SKumar Gala 	.halt_bit = 11,
138624d8fba4SKumar Gala 	.clkr = {
138724d8fba4SKumar Gala 		.enable_reg = 0x3080,
138824d8fba4SKumar Gala 		.enable_mask = BIT(3),
138924d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
139024d8fba4SKumar Gala 			.name = "adm0_pbus_clk",
139124d8fba4SKumar Gala 			.ops = &clk_branch_ops,
139224d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
139324d8fba4SKumar Gala 		},
139424d8fba4SKumar Gala 	},
139524d8fba4SKumar Gala };
139624d8fba4SKumar Gala 
139724d8fba4SKumar Gala static struct clk_branch pmic_arb0_h_clk = {
139824d8fba4SKumar Gala 	.halt_reg = 0x2fd8,
139924d8fba4SKumar Gala 	.halt_check = BRANCH_HALT_VOTED,
140024d8fba4SKumar Gala 	.halt_bit = 22,
140124d8fba4SKumar Gala 	.clkr = {
140224d8fba4SKumar Gala 		.enable_reg = 0x3080,
140324d8fba4SKumar Gala 		.enable_mask = BIT(8),
140424d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
140524d8fba4SKumar Gala 			.name = "pmic_arb0_h_clk",
140624d8fba4SKumar Gala 			.ops = &clk_branch_ops,
140724d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
140824d8fba4SKumar Gala 		},
140924d8fba4SKumar Gala 	},
141024d8fba4SKumar Gala };
141124d8fba4SKumar Gala 
141224d8fba4SKumar Gala static struct clk_branch pmic_arb1_h_clk = {
141324d8fba4SKumar Gala 	.halt_reg = 0x2fd8,
141424d8fba4SKumar Gala 	.halt_check = BRANCH_HALT_VOTED,
141524d8fba4SKumar Gala 	.halt_bit = 21,
141624d8fba4SKumar Gala 	.clkr = {
141724d8fba4SKumar Gala 		.enable_reg = 0x3080,
141824d8fba4SKumar Gala 		.enable_mask = BIT(9),
141924d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
142024d8fba4SKumar Gala 			.name = "pmic_arb1_h_clk",
142124d8fba4SKumar Gala 			.ops = &clk_branch_ops,
142224d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
142324d8fba4SKumar Gala 		},
142424d8fba4SKumar Gala 	},
142524d8fba4SKumar Gala };
142624d8fba4SKumar Gala 
142724d8fba4SKumar Gala static struct clk_branch pmic_ssbi2_clk = {
142824d8fba4SKumar Gala 	.halt_reg = 0x2fd8,
142924d8fba4SKumar Gala 	.halt_check = BRANCH_HALT_VOTED,
143024d8fba4SKumar Gala 	.halt_bit = 23,
143124d8fba4SKumar Gala 	.clkr = {
143224d8fba4SKumar Gala 		.enable_reg = 0x3080,
143324d8fba4SKumar Gala 		.enable_mask = BIT(7),
143424d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
143524d8fba4SKumar Gala 			.name = "pmic_ssbi2_clk",
143624d8fba4SKumar Gala 			.ops = &clk_branch_ops,
143724d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
143824d8fba4SKumar Gala 		},
143924d8fba4SKumar Gala 	},
144024d8fba4SKumar Gala };
144124d8fba4SKumar Gala 
144224d8fba4SKumar Gala static struct clk_branch rpm_msg_ram_h_clk = {
144324d8fba4SKumar Gala 	.hwcg_reg = 0x27e0,
144424d8fba4SKumar Gala 	.hwcg_bit = 6,
144524d8fba4SKumar Gala 	.halt_reg = 0x2fd8,
144624d8fba4SKumar Gala 	.halt_check = BRANCH_HALT_VOTED,
144724d8fba4SKumar Gala 	.halt_bit = 12,
144824d8fba4SKumar Gala 	.clkr = {
144924d8fba4SKumar Gala 		.enable_reg = 0x3080,
145024d8fba4SKumar Gala 		.enable_mask = BIT(6),
145124d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
145224d8fba4SKumar Gala 			.name = "rpm_msg_ram_h_clk",
145324d8fba4SKumar Gala 			.ops = &clk_branch_ops,
145424d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
145524d8fba4SKumar Gala 		},
145624d8fba4SKumar Gala 	},
145724d8fba4SKumar Gala };
145824d8fba4SKumar Gala 
145924d8fba4SKumar Gala static const struct freq_tbl clk_tbl_pcie_ref[] = {
146024d8fba4SKumar Gala 	{ 100000000, P_PLL3,  12, 0, 0 },
146124d8fba4SKumar Gala 	{ }
146224d8fba4SKumar Gala };
146324d8fba4SKumar Gala 
146424d8fba4SKumar Gala static struct clk_rcg pcie_ref_src = {
146524d8fba4SKumar Gala 	.ns_reg = 0x3860,
146624d8fba4SKumar Gala 	.p = {
146724d8fba4SKumar Gala 		.pre_div_shift = 3,
146824d8fba4SKumar Gala 		.pre_div_width = 4,
146924d8fba4SKumar Gala 	},
147024d8fba4SKumar Gala 	.s = {
147124d8fba4SKumar Gala 		.src_sel_shift = 0,
147224d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll3_map,
147324d8fba4SKumar Gala 	},
147424d8fba4SKumar Gala 	.freq_tbl = clk_tbl_pcie_ref,
147524d8fba4SKumar Gala 	.clkr = {
147624d8fba4SKumar Gala 		.enable_reg = 0x3860,
147724d8fba4SKumar Gala 		.enable_mask = BIT(11),
147824d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
147924d8fba4SKumar Gala 			.name = "pcie_ref_src",
148024d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll3,
148124d8fba4SKumar Gala 			.num_parents = 2,
148224d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
148324d8fba4SKumar Gala 			.flags = CLK_SET_RATE_GATE,
148424d8fba4SKumar Gala 		},
148524d8fba4SKumar Gala 	},
148624d8fba4SKumar Gala };
148724d8fba4SKumar Gala 
148824d8fba4SKumar Gala static struct clk_branch pcie_ref_src_clk = {
148924d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
149024d8fba4SKumar Gala 	.halt_bit = 30,
149124d8fba4SKumar Gala 	.clkr = {
149224d8fba4SKumar Gala 		.enable_reg = 0x3860,
149324d8fba4SKumar Gala 		.enable_mask = BIT(9),
149424d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
149524d8fba4SKumar Gala 			.name = "pcie_ref_src_clk",
149624d8fba4SKumar Gala 			.parent_names = (const char *[]){ "pcie_ref_src" },
149724d8fba4SKumar Gala 			.num_parents = 1,
149824d8fba4SKumar Gala 			.ops = &clk_branch_ops,
149924d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
150024d8fba4SKumar Gala 		},
150124d8fba4SKumar Gala 	},
150224d8fba4SKumar Gala };
150324d8fba4SKumar Gala 
150424d8fba4SKumar Gala static struct clk_branch pcie_a_clk = {
150524d8fba4SKumar Gala 	.halt_reg = 0x2fc0,
150624d8fba4SKumar Gala 	.halt_bit = 13,
150724d8fba4SKumar Gala 	.clkr = {
150824d8fba4SKumar Gala 		.enable_reg = 0x22c0,
150924d8fba4SKumar Gala 		.enable_mask = BIT(4),
151024d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
151124d8fba4SKumar Gala 			.name = "pcie_a_clk",
151224d8fba4SKumar Gala 			.ops = &clk_branch_ops,
151324d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
151424d8fba4SKumar Gala 		},
151524d8fba4SKumar Gala 	},
151624d8fba4SKumar Gala };
151724d8fba4SKumar Gala 
151824d8fba4SKumar Gala static struct clk_branch pcie_aux_clk = {
151924d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
152024d8fba4SKumar Gala 	.halt_bit = 31,
152124d8fba4SKumar Gala 	.clkr = {
152224d8fba4SKumar Gala 		.enable_reg = 0x22c8,
152324d8fba4SKumar Gala 		.enable_mask = BIT(4),
152424d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
152524d8fba4SKumar Gala 			.name = "pcie_aux_clk",
152624d8fba4SKumar Gala 			.ops = &clk_branch_ops,
152724d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
152824d8fba4SKumar Gala 		},
152924d8fba4SKumar Gala 	},
153024d8fba4SKumar Gala };
153124d8fba4SKumar Gala 
153224d8fba4SKumar Gala static struct clk_branch pcie_h_clk = {
153324d8fba4SKumar Gala 	.halt_reg = 0x2fd4,
153424d8fba4SKumar Gala 	.halt_bit = 8,
153524d8fba4SKumar Gala 	.clkr = {
153624d8fba4SKumar Gala 		.enable_reg = 0x22cc,
153724d8fba4SKumar Gala 		.enable_mask = BIT(4),
153824d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
153924d8fba4SKumar Gala 			.name = "pcie_h_clk",
154024d8fba4SKumar Gala 			.ops = &clk_branch_ops,
154124d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
154224d8fba4SKumar Gala 		},
154324d8fba4SKumar Gala 	},
154424d8fba4SKumar Gala };
154524d8fba4SKumar Gala 
154624d8fba4SKumar Gala static struct clk_branch pcie_phy_clk = {
154724d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
154824d8fba4SKumar Gala 	.halt_bit = 29,
154924d8fba4SKumar Gala 	.clkr = {
155024d8fba4SKumar Gala 		.enable_reg = 0x22d0,
155124d8fba4SKumar Gala 		.enable_mask = BIT(4),
155224d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
155324d8fba4SKumar Gala 			.name = "pcie_phy_clk",
155424d8fba4SKumar Gala 			.ops = &clk_branch_ops,
155524d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
155624d8fba4SKumar Gala 		},
155724d8fba4SKumar Gala 	},
155824d8fba4SKumar Gala };
155924d8fba4SKumar Gala 
156024d8fba4SKumar Gala static struct clk_rcg pcie1_ref_src = {
156124d8fba4SKumar Gala 	.ns_reg = 0x3aa0,
156224d8fba4SKumar Gala 	.p = {
156324d8fba4SKumar Gala 		.pre_div_shift = 3,
156424d8fba4SKumar Gala 		.pre_div_width = 4,
156524d8fba4SKumar Gala 	},
156624d8fba4SKumar Gala 	.s = {
156724d8fba4SKumar Gala 		.src_sel_shift = 0,
156824d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll3_map,
156924d8fba4SKumar Gala 	},
157024d8fba4SKumar Gala 	.freq_tbl = clk_tbl_pcie_ref,
157124d8fba4SKumar Gala 	.clkr = {
157224d8fba4SKumar Gala 		.enable_reg = 0x3aa0,
157324d8fba4SKumar Gala 		.enable_mask = BIT(11),
157424d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
157524d8fba4SKumar Gala 			.name = "pcie1_ref_src",
157624d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll3,
157724d8fba4SKumar Gala 			.num_parents = 2,
157824d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
157924d8fba4SKumar Gala 			.flags = CLK_SET_RATE_GATE,
158024d8fba4SKumar Gala 		},
158124d8fba4SKumar Gala 	},
158224d8fba4SKumar Gala };
158324d8fba4SKumar Gala 
158424d8fba4SKumar Gala static struct clk_branch pcie1_ref_src_clk = {
158524d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
158624d8fba4SKumar Gala 	.halt_bit = 27,
158724d8fba4SKumar Gala 	.clkr = {
158824d8fba4SKumar Gala 		.enable_reg = 0x3aa0,
158924d8fba4SKumar Gala 		.enable_mask = BIT(9),
159024d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
159124d8fba4SKumar Gala 			.name = "pcie1_ref_src_clk",
159224d8fba4SKumar Gala 			.parent_names = (const char *[]){ "pcie1_ref_src" },
159324d8fba4SKumar Gala 			.num_parents = 1,
159424d8fba4SKumar Gala 			.ops = &clk_branch_ops,
159524d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
159624d8fba4SKumar Gala 		},
159724d8fba4SKumar Gala 	},
159824d8fba4SKumar Gala };
159924d8fba4SKumar Gala 
160024d8fba4SKumar Gala static struct clk_branch pcie1_a_clk = {
160124d8fba4SKumar Gala 	.halt_reg = 0x2fc0,
160224d8fba4SKumar Gala 	.halt_bit = 10,
160324d8fba4SKumar Gala 	.clkr = {
160424d8fba4SKumar Gala 		.enable_reg = 0x3a80,
160524d8fba4SKumar Gala 		.enable_mask = BIT(4),
160624d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
160724d8fba4SKumar Gala 			.name = "pcie1_a_clk",
160824d8fba4SKumar Gala 			.ops = &clk_branch_ops,
160924d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
161024d8fba4SKumar Gala 		},
161124d8fba4SKumar Gala 	},
161224d8fba4SKumar Gala };
161324d8fba4SKumar Gala 
161424d8fba4SKumar Gala static struct clk_branch pcie1_aux_clk = {
161524d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
161624d8fba4SKumar Gala 	.halt_bit = 28,
161724d8fba4SKumar Gala 	.clkr = {
161824d8fba4SKumar Gala 		.enable_reg = 0x3a88,
161924d8fba4SKumar Gala 		.enable_mask = BIT(4),
162024d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
162124d8fba4SKumar Gala 			.name = "pcie1_aux_clk",
162224d8fba4SKumar Gala 			.ops = &clk_branch_ops,
162324d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
162424d8fba4SKumar Gala 		},
162524d8fba4SKumar Gala 	},
162624d8fba4SKumar Gala };
162724d8fba4SKumar Gala 
162824d8fba4SKumar Gala static struct clk_branch pcie1_h_clk = {
162924d8fba4SKumar Gala 	.halt_reg = 0x2fd4,
163024d8fba4SKumar Gala 	.halt_bit = 9,
163124d8fba4SKumar Gala 	.clkr = {
163224d8fba4SKumar Gala 		.enable_reg = 0x3a8c,
163324d8fba4SKumar Gala 		.enable_mask = BIT(4),
163424d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
163524d8fba4SKumar Gala 			.name = "pcie1_h_clk",
163624d8fba4SKumar Gala 			.ops = &clk_branch_ops,
163724d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
163824d8fba4SKumar Gala 		},
163924d8fba4SKumar Gala 	},
164024d8fba4SKumar Gala };
164124d8fba4SKumar Gala 
164224d8fba4SKumar Gala static struct clk_branch pcie1_phy_clk = {
164324d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
164424d8fba4SKumar Gala 	.halt_bit = 26,
164524d8fba4SKumar Gala 	.clkr = {
164624d8fba4SKumar Gala 		.enable_reg = 0x3a90,
164724d8fba4SKumar Gala 		.enable_mask = BIT(4),
164824d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
164924d8fba4SKumar Gala 			.name = "pcie1_phy_clk",
165024d8fba4SKumar Gala 			.ops = &clk_branch_ops,
165124d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
165224d8fba4SKumar Gala 		},
165324d8fba4SKumar Gala 	},
165424d8fba4SKumar Gala };
165524d8fba4SKumar Gala 
165624d8fba4SKumar Gala static struct clk_rcg pcie2_ref_src = {
165724d8fba4SKumar Gala 	.ns_reg = 0x3ae0,
165824d8fba4SKumar Gala 	.p = {
165924d8fba4SKumar Gala 		.pre_div_shift = 3,
166024d8fba4SKumar Gala 		.pre_div_width = 4,
166124d8fba4SKumar Gala 	},
166224d8fba4SKumar Gala 	.s = {
166324d8fba4SKumar Gala 		.src_sel_shift = 0,
166424d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll3_map,
166524d8fba4SKumar Gala 	},
166624d8fba4SKumar Gala 	.freq_tbl = clk_tbl_pcie_ref,
166724d8fba4SKumar Gala 	.clkr = {
166824d8fba4SKumar Gala 		.enable_reg = 0x3ae0,
166924d8fba4SKumar Gala 		.enable_mask = BIT(11),
167024d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
167124d8fba4SKumar Gala 			.name = "pcie2_ref_src",
167224d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll3,
167324d8fba4SKumar Gala 			.num_parents = 2,
167424d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
167524d8fba4SKumar Gala 			.flags = CLK_SET_RATE_GATE,
167624d8fba4SKumar Gala 		},
167724d8fba4SKumar Gala 	},
167824d8fba4SKumar Gala };
167924d8fba4SKumar Gala 
168024d8fba4SKumar Gala static struct clk_branch pcie2_ref_src_clk = {
168124d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
168224d8fba4SKumar Gala 	.halt_bit = 24,
168324d8fba4SKumar Gala 	.clkr = {
168424d8fba4SKumar Gala 		.enable_reg = 0x3ae0,
168524d8fba4SKumar Gala 		.enable_mask = BIT(9),
168624d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
168724d8fba4SKumar Gala 			.name = "pcie2_ref_src_clk",
168824d8fba4SKumar Gala 			.parent_names = (const char *[]){ "pcie2_ref_src" },
168924d8fba4SKumar Gala 			.num_parents = 1,
169024d8fba4SKumar Gala 			.ops = &clk_branch_ops,
169124d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
169224d8fba4SKumar Gala 		},
169324d8fba4SKumar Gala 	},
169424d8fba4SKumar Gala };
169524d8fba4SKumar Gala 
169624d8fba4SKumar Gala static struct clk_branch pcie2_a_clk = {
169724d8fba4SKumar Gala 	.halt_reg = 0x2fc0,
169824d8fba4SKumar Gala 	.halt_bit = 9,
169924d8fba4SKumar Gala 	.clkr = {
170024d8fba4SKumar Gala 		.enable_reg = 0x3ac0,
170124d8fba4SKumar Gala 		.enable_mask = BIT(4),
170224d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
170324d8fba4SKumar Gala 			.name = "pcie2_a_clk",
170424d8fba4SKumar Gala 			.ops = &clk_branch_ops,
170524d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
170624d8fba4SKumar Gala 		},
170724d8fba4SKumar Gala 	},
170824d8fba4SKumar Gala };
170924d8fba4SKumar Gala 
171024d8fba4SKumar Gala static struct clk_branch pcie2_aux_clk = {
171124d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
171224d8fba4SKumar Gala 	.halt_bit = 25,
171324d8fba4SKumar Gala 	.clkr = {
171424d8fba4SKumar Gala 		.enable_reg = 0x3ac8,
171524d8fba4SKumar Gala 		.enable_mask = BIT(4),
171624d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
171724d8fba4SKumar Gala 			.name = "pcie2_aux_clk",
171824d8fba4SKumar Gala 			.ops = &clk_branch_ops,
171924d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
172024d8fba4SKumar Gala 		},
172124d8fba4SKumar Gala 	},
172224d8fba4SKumar Gala };
172324d8fba4SKumar Gala 
172424d8fba4SKumar Gala static struct clk_branch pcie2_h_clk = {
172524d8fba4SKumar Gala 	.halt_reg = 0x2fd4,
172624d8fba4SKumar Gala 	.halt_bit = 10,
172724d8fba4SKumar Gala 	.clkr = {
172824d8fba4SKumar Gala 		.enable_reg = 0x3acc,
172924d8fba4SKumar Gala 		.enable_mask = BIT(4),
173024d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
173124d8fba4SKumar Gala 			.name = "pcie2_h_clk",
173224d8fba4SKumar Gala 			.ops = &clk_branch_ops,
173324d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
173424d8fba4SKumar Gala 		},
173524d8fba4SKumar Gala 	},
173624d8fba4SKumar Gala };
173724d8fba4SKumar Gala 
173824d8fba4SKumar Gala static struct clk_branch pcie2_phy_clk = {
173924d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
174024d8fba4SKumar Gala 	.halt_bit = 23,
174124d8fba4SKumar Gala 	.clkr = {
174224d8fba4SKumar Gala 		.enable_reg = 0x3ad0,
174324d8fba4SKumar Gala 		.enable_mask = BIT(4),
174424d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
174524d8fba4SKumar Gala 			.name = "pcie2_phy_clk",
174624d8fba4SKumar Gala 			.ops = &clk_branch_ops,
174724d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
174824d8fba4SKumar Gala 		},
174924d8fba4SKumar Gala 	},
175024d8fba4SKumar Gala };
175124d8fba4SKumar Gala 
175224d8fba4SKumar Gala static const struct freq_tbl clk_tbl_sata_ref[] = {
175324d8fba4SKumar Gala 	{ 100000000, P_PLL3,  12, 0, 0 },
175424d8fba4SKumar Gala 	{ }
175524d8fba4SKumar Gala };
175624d8fba4SKumar Gala 
175724d8fba4SKumar Gala static struct clk_rcg sata_ref_src = {
175824d8fba4SKumar Gala 	.ns_reg = 0x2c08,
175924d8fba4SKumar Gala 	.p = {
176024d8fba4SKumar Gala 		.pre_div_shift = 3,
176124d8fba4SKumar Gala 		.pre_div_width = 4,
176224d8fba4SKumar Gala 	},
176324d8fba4SKumar Gala 	.s = {
176424d8fba4SKumar Gala 		.src_sel_shift = 0,
176524d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll3_sata_map,
176624d8fba4SKumar Gala 	},
176724d8fba4SKumar Gala 	.freq_tbl = clk_tbl_sata_ref,
176824d8fba4SKumar Gala 	.clkr = {
176924d8fba4SKumar Gala 		.enable_reg = 0x2c08,
177024d8fba4SKumar Gala 		.enable_mask = BIT(7),
177124d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
177224d8fba4SKumar Gala 			.name = "sata_ref_src",
177324d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll3,
177424d8fba4SKumar Gala 			.num_parents = 2,
177524d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
177624d8fba4SKumar Gala 			.flags = CLK_SET_RATE_GATE,
177724d8fba4SKumar Gala 		},
177824d8fba4SKumar Gala 	},
177924d8fba4SKumar Gala };
178024d8fba4SKumar Gala 
178124d8fba4SKumar Gala static struct clk_branch sata_rxoob_clk = {
178224d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
178324d8fba4SKumar Gala 	.halt_bit = 20,
178424d8fba4SKumar Gala 	.clkr = {
178524d8fba4SKumar Gala 		.enable_reg = 0x2c0c,
178624d8fba4SKumar Gala 		.enable_mask = BIT(4),
178724d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
178824d8fba4SKumar Gala 			.name = "sata_rxoob_clk",
178924d8fba4SKumar Gala 			.parent_names = (const char *[]){ "sata_ref_src" },
179024d8fba4SKumar Gala 			.num_parents = 1,
179124d8fba4SKumar Gala 			.ops = &clk_branch_ops,
179224d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
179324d8fba4SKumar Gala 		},
179424d8fba4SKumar Gala 	},
179524d8fba4SKumar Gala };
179624d8fba4SKumar Gala 
179724d8fba4SKumar Gala static struct clk_branch sata_pmalive_clk = {
179824d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
179924d8fba4SKumar Gala 	.halt_bit = 19,
180024d8fba4SKumar Gala 	.clkr = {
180124d8fba4SKumar Gala 		.enable_reg = 0x2c10,
180224d8fba4SKumar Gala 		.enable_mask = BIT(4),
180324d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
180424d8fba4SKumar Gala 			.name = "sata_pmalive_clk",
180524d8fba4SKumar Gala 			.parent_names = (const char *[]){ "sata_ref_src" },
180624d8fba4SKumar Gala 			.num_parents = 1,
180724d8fba4SKumar Gala 			.ops = &clk_branch_ops,
180824d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
180924d8fba4SKumar Gala 		},
181024d8fba4SKumar Gala 	},
181124d8fba4SKumar Gala };
181224d8fba4SKumar Gala 
181324d8fba4SKumar Gala static struct clk_branch sata_phy_ref_clk = {
181424d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
181524d8fba4SKumar Gala 	.halt_bit = 18,
181624d8fba4SKumar Gala 	.clkr = {
181724d8fba4SKumar Gala 		.enable_reg = 0x2c14,
181824d8fba4SKumar Gala 		.enable_mask = BIT(4),
181924d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
182024d8fba4SKumar Gala 			.name = "sata_phy_ref_clk",
182124d8fba4SKumar Gala 			.parent_names = (const char *[]){ "pxo" },
182224d8fba4SKumar Gala 			.num_parents = 1,
182324d8fba4SKumar Gala 			.ops = &clk_branch_ops,
182424d8fba4SKumar Gala 		},
182524d8fba4SKumar Gala 	},
182624d8fba4SKumar Gala };
182724d8fba4SKumar Gala 
182824d8fba4SKumar Gala static struct clk_branch sata_a_clk = {
182924d8fba4SKumar Gala 	.halt_reg = 0x2fc0,
183024d8fba4SKumar Gala 	.halt_bit = 12,
183124d8fba4SKumar Gala 	.clkr = {
183224d8fba4SKumar Gala 		.enable_reg = 0x2c20,
183324d8fba4SKumar Gala 		.enable_mask = BIT(4),
183424d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
183524d8fba4SKumar Gala 			.name = "sata_a_clk",
183624d8fba4SKumar Gala 			.ops = &clk_branch_ops,
183724d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
183824d8fba4SKumar Gala 		},
183924d8fba4SKumar Gala 	},
184024d8fba4SKumar Gala };
184124d8fba4SKumar Gala 
184224d8fba4SKumar Gala static struct clk_branch sata_h_clk = {
184324d8fba4SKumar Gala 	.halt_reg = 0x2fdc,
184424d8fba4SKumar Gala 	.halt_bit = 21,
184524d8fba4SKumar Gala 	.clkr = {
184624d8fba4SKumar Gala 		.enable_reg = 0x2c00,
184724d8fba4SKumar Gala 		.enable_mask = BIT(4),
184824d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
184924d8fba4SKumar Gala 			.name = "sata_h_clk",
185024d8fba4SKumar Gala 			.ops = &clk_branch_ops,
185124d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
185224d8fba4SKumar Gala 		},
185324d8fba4SKumar Gala 	},
185424d8fba4SKumar Gala };
185524d8fba4SKumar Gala 
185624d8fba4SKumar Gala static struct clk_branch sfab_sata_s_h_clk = {
185724d8fba4SKumar Gala 	.halt_reg = 0x2fc4,
185824d8fba4SKumar Gala 	.halt_bit = 14,
185924d8fba4SKumar Gala 	.clkr = {
186024d8fba4SKumar Gala 		.enable_reg = 0x2480,
186124d8fba4SKumar Gala 		.enable_mask = BIT(4),
186224d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
186324d8fba4SKumar Gala 			.name = "sfab_sata_s_h_clk",
186424d8fba4SKumar Gala 			.ops = &clk_branch_ops,
186524d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
186624d8fba4SKumar Gala 		},
186724d8fba4SKumar Gala 	},
186824d8fba4SKumar Gala };
186924d8fba4SKumar Gala 
187024d8fba4SKumar Gala static struct clk_branch sata_phy_cfg_clk = {
187124d8fba4SKumar Gala 	.halt_reg = 0x2fcc,
187224d8fba4SKumar Gala 	.halt_bit = 14,
187324d8fba4SKumar Gala 	.clkr = {
187424d8fba4SKumar Gala 		.enable_reg = 0x2c40,
187524d8fba4SKumar Gala 		.enable_mask = BIT(4),
187624d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
187724d8fba4SKumar Gala 			.name = "sata_phy_cfg_clk",
187824d8fba4SKumar Gala 			.ops = &clk_branch_ops,
187924d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
188024d8fba4SKumar Gala 		},
188124d8fba4SKumar Gala 	},
188224d8fba4SKumar Gala };
188324d8fba4SKumar Gala 
188424d8fba4SKumar Gala static const struct freq_tbl clk_tbl_usb30_master[] = {
188524d8fba4SKumar Gala 	{ 125000000, P_PLL0,  1, 5, 32 },
188624d8fba4SKumar Gala 	{ }
188724d8fba4SKumar Gala };
188824d8fba4SKumar Gala 
188924d8fba4SKumar Gala static struct clk_rcg usb30_master_clk_src = {
189024d8fba4SKumar Gala 	.ns_reg = 0x3b2c,
189124d8fba4SKumar Gala 	.md_reg = 0x3b28,
189224d8fba4SKumar Gala 	.mn = {
189324d8fba4SKumar Gala 		.mnctr_en_bit = 8,
189424d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
189524d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
189624d8fba4SKumar Gala 		.n_val_shift = 16,
189724d8fba4SKumar Gala 		.m_val_shift = 16,
189824d8fba4SKumar Gala 		.width = 8,
189924d8fba4SKumar Gala 	},
190024d8fba4SKumar Gala 	.p = {
190124d8fba4SKumar Gala 		.pre_div_shift = 3,
190224d8fba4SKumar Gala 		.pre_div_width = 2,
190324d8fba4SKumar Gala 	},
190424d8fba4SKumar Gala 	.s = {
190524d8fba4SKumar Gala 		.src_sel_shift = 0,
190624d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_pll0,
190724d8fba4SKumar Gala 	},
190824d8fba4SKumar Gala 	.freq_tbl = clk_tbl_usb30_master,
190924d8fba4SKumar Gala 	.clkr = {
191024d8fba4SKumar Gala 		.enable_reg = 0x3b2c,
191124d8fba4SKumar Gala 		.enable_mask = BIT(11),
191224d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
191324d8fba4SKumar Gala 			.name = "usb30_master_ref_src",
191424d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8_pll0_map,
191524d8fba4SKumar Gala 			.num_parents = 3,
191624d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
191724d8fba4SKumar Gala 			.flags = CLK_SET_RATE_GATE,
191824d8fba4SKumar Gala 		},
191924d8fba4SKumar Gala 	},
192024d8fba4SKumar Gala };
192124d8fba4SKumar Gala 
192224d8fba4SKumar Gala static struct clk_branch usb30_0_branch_clk = {
192324d8fba4SKumar Gala 	.halt_reg = 0x2fc4,
192424d8fba4SKumar Gala 	.halt_bit = 22,
192524d8fba4SKumar Gala 	.clkr = {
192624d8fba4SKumar Gala 		.enable_reg = 0x3b24,
192724d8fba4SKumar Gala 		.enable_mask = BIT(4),
192824d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
192924d8fba4SKumar Gala 			.name = "usb30_0_branch_clk",
193024d8fba4SKumar Gala 			.parent_names = (const char *[]){ "usb30_master_ref_src", },
193124d8fba4SKumar Gala 			.num_parents = 1,
193224d8fba4SKumar Gala 			.ops = &clk_branch_ops,
193324d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
193424d8fba4SKumar Gala 		},
193524d8fba4SKumar Gala 	},
193624d8fba4SKumar Gala };
193724d8fba4SKumar Gala 
193824d8fba4SKumar Gala static struct clk_branch usb30_1_branch_clk = {
193924d8fba4SKumar Gala 	.halt_reg = 0x2fc4,
194024d8fba4SKumar Gala 	.halt_bit = 17,
194124d8fba4SKumar Gala 	.clkr = {
194224d8fba4SKumar Gala 		.enable_reg = 0x3b34,
194324d8fba4SKumar Gala 		.enable_mask = BIT(4),
194424d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
194524d8fba4SKumar Gala 			.name = "usb30_1_branch_clk",
194624d8fba4SKumar Gala 			.parent_names = (const char *[]){ "usb30_master_ref_src", },
194724d8fba4SKumar Gala 			.num_parents = 1,
194824d8fba4SKumar Gala 			.ops = &clk_branch_ops,
194924d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
195024d8fba4SKumar Gala 		},
195124d8fba4SKumar Gala 	},
195224d8fba4SKumar Gala };
195324d8fba4SKumar Gala 
195424d8fba4SKumar Gala static const struct freq_tbl clk_tbl_usb30_utmi[] = {
195524d8fba4SKumar Gala 	{ 60000000, P_PLL8,  1, 5, 32 },
195624d8fba4SKumar Gala 	{ }
195724d8fba4SKumar Gala };
195824d8fba4SKumar Gala 
195924d8fba4SKumar Gala static struct clk_rcg usb30_utmi_clk = {
196024d8fba4SKumar Gala 	.ns_reg = 0x3b44,
196124d8fba4SKumar Gala 	.md_reg = 0x3b40,
196224d8fba4SKumar Gala 	.mn = {
196324d8fba4SKumar Gala 		.mnctr_en_bit = 8,
196424d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
196524d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
196624d8fba4SKumar Gala 		.n_val_shift = 16,
196724d8fba4SKumar Gala 		.m_val_shift = 16,
196824d8fba4SKumar Gala 		.width = 8,
196924d8fba4SKumar Gala 	},
197024d8fba4SKumar Gala 	.p = {
197124d8fba4SKumar Gala 		.pre_div_shift = 3,
197224d8fba4SKumar Gala 		.pre_div_width = 2,
197324d8fba4SKumar Gala 	},
197424d8fba4SKumar Gala 	.s = {
197524d8fba4SKumar Gala 		.src_sel_shift = 0,
197624d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_pll0,
197724d8fba4SKumar Gala 	},
197824d8fba4SKumar Gala 	.freq_tbl = clk_tbl_usb30_utmi,
197924d8fba4SKumar Gala 	.clkr = {
198024d8fba4SKumar Gala 		.enable_reg = 0x3b44,
198124d8fba4SKumar Gala 		.enable_mask = BIT(11),
198224d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
198324d8fba4SKumar Gala 			.name = "usb30_utmi_clk",
198424d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8_pll0_map,
198524d8fba4SKumar Gala 			.num_parents = 3,
198624d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
198724d8fba4SKumar Gala 			.flags = CLK_SET_RATE_GATE,
198824d8fba4SKumar Gala 		},
198924d8fba4SKumar Gala 	},
199024d8fba4SKumar Gala };
199124d8fba4SKumar Gala 
199224d8fba4SKumar Gala static struct clk_branch usb30_0_utmi_clk_ctl = {
199324d8fba4SKumar Gala 	.halt_reg = 0x2fc4,
199424d8fba4SKumar Gala 	.halt_bit = 21,
199524d8fba4SKumar Gala 	.clkr = {
199624d8fba4SKumar Gala 		.enable_reg = 0x3b48,
199724d8fba4SKumar Gala 		.enable_mask = BIT(4),
199824d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
199924d8fba4SKumar Gala 			.name = "usb30_0_utmi_clk_ctl",
200024d8fba4SKumar Gala 			.parent_names = (const char *[]){ "usb30_utmi_clk", },
200124d8fba4SKumar Gala 			.num_parents = 1,
200224d8fba4SKumar Gala 			.ops = &clk_branch_ops,
200324d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
200424d8fba4SKumar Gala 		},
200524d8fba4SKumar Gala 	},
200624d8fba4SKumar Gala };
200724d8fba4SKumar Gala 
200824d8fba4SKumar Gala static struct clk_branch usb30_1_utmi_clk_ctl = {
200924d8fba4SKumar Gala 	.halt_reg = 0x2fc4,
201024d8fba4SKumar Gala 	.halt_bit = 15,
201124d8fba4SKumar Gala 	.clkr = {
201224d8fba4SKumar Gala 		.enable_reg = 0x3b4c,
201324d8fba4SKumar Gala 		.enable_mask = BIT(4),
201424d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
201524d8fba4SKumar Gala 			.name = "usb30_1_utmi_clk_ctl",
201624d8fba4SKumar Gala 			.parent_names = (const char *[]){ "usb30_utmi_clk", },
201724d8fba4SKumar Gala 			.num_parents = 1,
201824d8fba4SKumar Gala 			.ops = &clk_branch_ops,
201924d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
202024d8fba4SKumar Gala 		},
202124d8fba4SKumar Gala 	},
202224d8fba4SKumar Gala };
202324d8fba4SKumar Gala 
202424d8fba4SKumar Gala static const struct freq_tbl clk_tbl_usb[] = {
202524d8fba4SKumar Gala 	{ 60000000, P_PLL8,  1, 5, 32 },
202624d8fba4SKumar Gala 	{ }
202724d8fba4SKumar Gala };
202824d8fba4SKumar Gala 
202924d8fba4SKumar Gala static struct clk_rcg usb_hs1_xcvr_clk_src = {
203024d8fba4SKumar Gala 	.ns_reg = 0x290C,
203124d8fba4SKumar Gala 	.md_reg = 0x2908,
203224d8fba4SKumar Gala 	.mn = {
203324d8fba4SKumar Gala 		.mnctr_en_bit = 8,
203424d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
203524d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
203624d8fba4SKumar Gala 		.n_val_shift = 16,
203724d8fba4SKumar Gala 		.m_val_shift = 16,
203824d8fba4SKumar Gala 		.width = 8,
203924d8fba4SKumar Gala 	},
204024d8fba4SKumar Gala 	.p = {
204124d8fba4SKumar Gala 		.pre_div_shift = 3,
204224d8fba4SKumar Gala 		.pre_div_width = 2,
204324d8fba4SKumar Gala 	},
204424d8fba4SKumar Gala 	.s = {
204524d8fba4SKumar Gala 		.src_sel_shift = 0,
204624d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_pll0,
204724d8fba4SKumar Gala 	},
204824d8fba4SKumar Gala 	.freq_tbl = clk_tbl_usb,
204924d8fba4SKumar Gala 	.clkr = {
205024d8fba4SKumar Gala 		.enable_reg = 0x2968,
205124d8fba4SKumar Gala 		.enable_mask = BIT(11),
205224d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
205324d8fba4SKumar Gala 			.name = "usb_hs1_xcvr_src",
205424d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8_pll0_map,
205524d8fba4SKumar Gala 			.num_parents = 3,
205624d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
205724d8fba4SKumar Gala 			.flags = CLK_SET_RATE_GATE,
205824d8fba4SKumar Gala 		},
205924d8fba4SKumar Gala 	},
206024d8fba4SKumar Gala };
206124d8fba4SKumar Gala 
206224d8fba4SKumar Gala static struct clk_branch usb_hs1_xcvr_clk = {
206324d8fba4SKumar Gala 	.halt_reg = 0x2fcc,
206424d8fba4SKumar Gala 	.halt_bit = 17,
206524d8fba4SKumar Gala 	.clkr = {
206624d8fba4SKumar Gala 		.enable_reg = 0x290c,
206724d8fba4SKumar Gala 		.enable_mask = BIT(9),
206824d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
206924d8fba4SKumar Gala 			.name = "usb_hs1_xcvr_clk",
207024d8fba4SKumar Gala 			.parent_names = (const char *[]){ "usb_hs1_xcvr_src" },
207124d8fba4SKumar Gala 			.num_parents = 1,
207224d8fba4SKumar Gala 			.ops = &clk_branch_ops,
207324d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
207424d8fba4SKumar Gala 		},
207524d8fba4SKumar Gala 	},
207624d8fba4SKumar Gala };
207724d8fba4SKumar Gala 
207824d8fba4SKumar Gala static struct clk_branch usb_hs1_h_clk = {
207924d8fba4SKumar Gala 	.hwcg_reg = 0x2900,
208024d8fba4SKumar Gala 	.hwcg_bit = 6,
208124d8fba4SKumar Gala 	.halt_reg = 0x2fc8,
208224d8fba4SKumar Gala 	.halt_bit = 1,
208324d8fba4SKumar Gala 	.clkr = {
208424d8fba4SKumar Gala 		.enable_reg = 0x2900,
208524d8fba4SKumar Gala 		.enable_mask = BIT(4),
208624d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
208724d8fba4SKumar Gala 			.name = "usb_hs1_h_clk",
208824d8fba4SKumar Gala 			.ops = &clk_branch_ops,
208924d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
209024d8fba4SKumar Gala 		},
209124d8fba4SKumar Gala 	},
209224d8fba4SKumar Gala };
209324d8fba4SKumar Gala 
209424d8fba4SKumar Gala static struct clk_rcg usb_fs1_xcvr_clk_src = {
209524d8fba4SKumar Gala 	.ns_reg = 0x2968,
209624d8fba4SKumar Gala 	.md_reg = 0x2964,
209724d8fba4SKumar Gala 	.mn = {
209824d8fba4SKumar Gala 		.mnctr_en_bit = 8,
209924d8fba4SKumar Gala 		.mnctr_reset_bit = 7,
210024d8fba4SKumar Gala 		.mnctr_mode_shift = 5,
210124d8fba4SKumar Gala 		.n_val_shift = 16,
210224d8fba4SKumar Gala 		.m_val_shift = 16,
210324d8fba4SKumar Gala 		.width = 8,
210424d8fba4SKumar Gala 	},
210524d8fba4SKumar Gala 	.p = {
210624d8fba4SKumar Gala 		.pre_div_shift = 3,
210724d8fba4SKumar Gala 		.pre_div_width = 2,
210824d8fba4SKumar Gala 	},
210924d8fba4SKumar Gala 	.s = {
211024d8fba4SKumar Gala 		.src_sel_shift = 0,
211124d8fba4SKumar Gala 		.parent_map = gcc_pxo_pll8_pll0,
211224d8fba4SKumar Gala 	},
211324d8fba4SKumar Gala 	.freq_tbl = clk_tbl_usb,
211424d8fba4SKumar Gala 	.clkr = {
211524d8fba4SKumar Gala 		.enable_reg = 0x2968,
211624d8fba4SKumar Gala 		.enable_mask = BIT(11),
211724d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
211824d8fba4SKumar Gala 			.name = "usb_fs1_xcvr_src",
211924d8fba4SKumar Gala 			.parent_names = gcc_pxo_pll8_pll0_map,
212024d8fba4SKumar Gala 			.num_parents = 3,
212124d8fba4SKumar Gala 			.ops = &clk_rcg_ops,
212224d8fba4SKumar Gala 			.flags = CLK_SET_RATE_GATE,
212324d8fba4SKumar Gala 		},
212424d8fba4SKumar Gala 	},
212524d8fba4SKumar Gala };
212624d8fba4SKumar Gala 
212724d8fba4SKumar Gala static struct clk_branch usb_fs1_xcvr_clk = {
212824d8fba4SKumar Gala 	.halt_reg = 0x2fcc,
212924d8fba4SKumar Gala 	.halt_bit = 17,
213024d8fba4SKumar Gala 	.clkr = {
213124d8fba4SKumar Gala 		.enable_reg = 0x2968,
213224d8fba4SKumar Gala 		.enable_mask = BIT(9),
213324d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
213424d8fba4SKumar Gala 			.name = "usb_fs1_xcvr_clk",
213524d8fba4SKumar Gala 			.parent_names = (const char *[]){ "usb_fs1_xcvr_src", },
213624d8fba4SKumar Gala 			.num_parents = 1,
213724d8fba4SKumar Gala 			.ops = &clk_branch_ops,
213824d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
213924d8fba4SKumar Gala 		},
214024d8fba4SKumar Gala 	},
214124d8fba4SKumar Gala };
214224d8fba4SKumar Gala 
214324d8fba4SKumar Gala static struct clk_branch usb_fs1_sys_clk = {
214424d8fba4SKumar Gala 	.halt_reg = 0x2fcc,
214524d8fba4SKumar Gala 	.halt_bit = 18,
214624d8fba4SKumar Gala 	.clkr = {
214724d8fba4SKumar Gala 		.enable_reg = 0x296c,
214824d8fba4SKumar Gala 		.enable_mask = BIT(4),
214924d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
215024d8fba4SKumar Gala 			.name = "usb_fs1_sys_clk",
215124d8fba4SKumar Gala 			.parent_names = (const char *[]){ "usb_fs1_xcvr_src", },
215224d8fba4SKumar Gala 			.num_parents = 1,
215324d8fba4SKumar Gala 			.ops = &clk_branch_ops,
215424d8fba4SKumar Gala 			.flags = CLK_SET_RATE_PARENT,
215524d8fba4SKumar Gala 		},
215624d8fba4SKumar Gala 	},
215724d8fba4SKumar Gala };
215824d8fba4SKumar Gala 
215924d8fba4SKumar Gala static struct clk_branch usb_fs1_h_clk = {
216024d8fba4SKumar Gala 	.halt_reg = 0x2fcc,
216124d8fba4SKumar Gala 	.halt_bit = 19,
216224d8fba4SKumar Gala 	.clkr = {
216324d8fba4SKumar Gala 		.enable_reg = 0x2960,
216424d8fba4SKumar Gala 		.enable_mask = BIT(4),
216524d8fba4SKumar Gala 		.hw.init = &(struct clk_init_data){
216624d8fba4SKumar Gala 			.name = "usb_fs1_h_clk",
216724d8fba4SKumar Gala 			.ops = &clk_branch_ops,
216824d8fba4SKumar Gala 			.flags = CLK_IS_ROOT,
216924d8fba4SKumar Gala 		},
217024d8fba4SKumar Gala 	},
217124d8fba4SKumar Gala };
217224d8fba4SKumar Gala 
217324d8fba4SKumar Gala static struct clk_regmap *gcc_ipq806x_clks[] = {
2174dc1b3f65SAndy Gross 	[PLL0] = &pll0.clkr,
2175dc1b3f65SAndy Gross 	[PLL0_VOTE] = &pll0_vote,
217624d8fba4SKumar Gala 	[PLL3] = &pll3.clkr,
2177*c99e515aSRajendra Nayak 	[PLL4_VOTE] = &pll4_vote,
217824d8fba4SKumar Gala 	[PLL8] = &pll8.clkr,
217924d8fba4SKumar Gala 	[PLL8_VOTE] = &pll8_vote,
218024d8fba4SKumar Gala 	[PLL14] = &pll14.clkr,
218124d8fba4SKumar Gala 	[PLL14_VOTE] = &pll14_vote,
218224d8fba4SKumar Gala 	[GSBI1_UART_SRC] = &gsbi1_uart_src.clkr,
218324d8fba4SKumar Gala 	[GSBI1_UART_CLK] = &gsbi1_uart_clk.clkr,
218424d8fba4SKumar Gala 	[GSBI2_UART_SRC] = &gsbi2_uart_src.clkr,
218524d8fba4SKumar Gala 	[GSBI2_UART_CLK] = &gsbi2_uart_clk.clkr,
218624d8fba4SKumar Gala 	[GSBI4_UART_SRC] = &gsbi4_uart_src.clkr,
218724d8fba4SKumar Gala 	[GSBI4_UART_CLK] = &gsbi4_uart_clk.clkr,
218824d8fba4SKumar Gala 	[GSBI5_UART_SRC] = &gsbi5_uart_src.clkr,
218924d8fba4SKumar Gala 	[GSBI5_UART_CLK] = &gsbi5_uart_clk.clkr,
219024d8fba4SKumar Gala 	[GSBI6_UART_SRC] = &gsbi6_uart_src.clkr,
219124d8fba4SKumar Gala 	[GSBI6_UART_CLK] = &gsbi6_uart_clk.clkr,
219224d8fba4SKumar Gala 	[GSBI7_UART_SRC] = &gsbi7_uart_src.clkr,
219324d8fba4SKumar Gala 	[GSBI7_UART_CLK] = &gsbi7_uart_clk.clkr,
219424d8fba4SKumar Gala 	[GSBI1_QUP_SRC] = &gsbi1_qup_src.clkr,
219524d8fba4SKumar Gala 	[GSBI1_QUP_CLK] = &gsbi1_qup_clk.clkr,
219624d8fba4SKumar Gala 	[GSBI2_QUP_SRC] = &gsbi2_qup_src.clkr,
219724d8fba4SKumar Gala 	[GSBI2_QUP_CLK] = &gsbi2_qup_clk.clkr,
219824d8fba4SKumar Gala 	[GSBI4_QUP_SRC] = &gsbi4_qup_src.clkr,
219924d8fba4SKumar Gala 	[GSBI4_QUP_CLK] = &gsbi4_qup_clk.clkr,
220024d8fba4SKumar Gala 	[GSBI5_QUP_SRC] = &gsbi5_qup_src.clkr,
220124d8fba4SKumar Gala 	[GSBI5_QUP_CLK] = &gsbi5_qup_clk.clkr,
220224d8fba4SKumar Gala 	[GSBI6_QUP_SRC] = &gsbi6_qup_src.clkr,
220324d8fba4SKumar Gala 	[GSBI6_QUP_CLK] = &gsbi6_qup_clk.clkr,
220424d8fba4SKumar Gala 	[GSBI7_QUP_SRC] = &gsbi7_qup_src.clkr,
220524d8fba4SKumar Gala 	[GSBI7_QUP_CLK] = &gsbi7_qup_clk.clkr,
220624d8fba4SKumar Gala 	[GP0_SRC] = &gp0_src.clkr,
220724d8fba4SKumar Gala 	[GP0_CLK] = &gp0_clk.clkr,
220824d8fba4SKumar Gala 	[GP1_SRC] = &gp1_src.clkr,
220924d8fba4SKumar Gala 	[GP1_CLK] = &gp1_clk.clkr,
221024d8fba4SKumar Gala 	[GP2_SRC] = &gp2_src.clkr,
221124d8fba4SKumar Gala 	[GP2_CLK] = &gp2_clk.clkr,
221224d8fba4SKumar Gala 	[PMEM_A_CLK] = &pmem_clk.clkr,
221324d8fba4SKumar Gala 	[PRNG_SRC] = &prng_src.clkr,
221424d8fba4SKumar Gala 	[PRNG_CLK] = &prng_clk.clkr,
221524d8fba4SKumar Gala 	[SDC1_SRC] = &sdc1_src.clkr,
221624d8fba4SKumar Gala 	[SDC1_CLK] = &sdc1_clk.clkr,
221724d8fba4SKumar Gala 	[SDC3_SRC] = &sdc3_src.clkr,
221824d8fba4SKumar Gala 	[SDC3_CLK] = &sdc3_clk.clkr,
221924d8fba4SKumar Gala 	[TSIF_REF_SRC] = &tsif_ref_src.clkr,
222024d8fba4SKumar Gala 	[TSIF_REF_CLK] = &tsif_ref_clk.clkr,
222124d8fba4SKumar Gala 	[DMA_BAM_H_CLK] = &dma_bam_h_clk.clkr,
222224d8fba4SKumar Gala 	[GSBI1_H_CLK] = &gsbi1_h_clk.clkr,
222324d8fba4SKumar Gala 	[GSBI2_H_CLK] = &gsbi2_h_clk.clkr,
222424d8fba4SKumar Gala 	[GSBI4_H_CLK] = &gsbi4_h_clk.clkr,
222524d8fba4SKumar Gala 	[GSBI5_H_CLK] = &gsbi5_h_clk.clkr,
222624d8fba4SKumar Gala 	[GSBI6_H_CLK] = &gsbi6_h_clk.clkr,
222724d8fba4SKumar Gala 	[GSBI7_H_CLK] = &gsbi7_h_clk.clkr,
222824d8fba4SKumar Gala 	[TSIF_H_CLK] = &tsif_h_clk.clkr,
222924d8fba4SKumar Gala 	[SDC1_H_CLK] = &sdc1_h_clk.clkr,
223024d8fba4SKumar Gala 	[SDC3_H_CLK] = &sdc3_h_clk.clkr,
223124d8fba4SKumar Gala 	[ADM0_CLK] = &adm0_clk.clkr,
223224d8fba4SKumar Gala 	[ADM0_PBUS_CLK] = &adm0_pbus_clk.clkr,
223324d8fba4SKumar Gala 	[PCIE_A_CLK] = &pcie_a_clk.clkr,
223424d8fba4SKumar Gala 	[PCIE_AUX_CLK] = &pcie_aux_clk.clkr,
223524d8fba4SKumar Gala 	[PCIE_H_CLK] = &pcie_h_clk.clkr,
223624d8fba4SKumar Gala 	[PCIE_PHY_CLK] = &pcie_phy_clk.clkr,
223724d8fba4SKumar Gala 	[SFAB_SATA_S_H_CLK] = &sfab_sata_s_h_clk.clkr,
223824d8fba4SKumar Gala 	[PMIC_ARB0_H_CLK] = &pmic_arb0_h_clk.clkr,
223924d8fba4SKumar Gala 	[PMIC_ARB1_H_CLK] = &pmic_arb1_h_clk.clkr,
224024d8fba4SKumar Gala 	[PMIC_SSBI2_CLK] = &pmic_ssbi2_clk.clkr,
224124d8fba4SKumar Gala 	[RPM_MSG_RAM_H_CLK] = &rpm_msg_ram_h_clk.clkr,
224224d8fba4SKumar Gala 	[SATA_H_CLK] = &sata_h_clk.clkr,
224324d8fba4SKumar Gala 	[SATA_CLK_SRC] = &sata_ref_src.clkr,
224424d8fba4SKumar Gala 	[SATA_RXOOB_CLK] = &sata_rxoob_clk.clkr,
224524d8fba4SKumar Gala 	[SATA_PMALIVE_CLK] = &sata_pmalive_clk.clkr,
224624d8fba4SKumar Gala 	[SATA_PHY_REF_CLK] = &sata_phy_ref_clk.clkr,
224724d8fba4SKumar Gala 	[SATA_A_CLK] = &sata_a_clk.clkr,
224824d8fba4SKumar Gala 	[SATA_PHY_CFG_CLK] = &sata_phy_cfg_clk.clkr,
224924d8fba4SKumar Gala 	[PCIE_ALT_REF_SRC] = &pcie_ref_src.clkr,
225024d8fba4SKumar Gala 	[PCIE_ALT_REF_CLK] = &pcie_ref_src_clk.clkr,
225124d8fba4SKumar Gala 	[PCIE_1_A_CLK] = &pcie1_a_clk.clkr,
225224d8fba4SKumar Gala 	[PCIE_1_AUX_CLK] = &pcie1_aux_clk.clkr,
225324d8fba4SKumar Gala 	[PCIE_1_H_CLK] = &pcie1_h_clk.clkr,
225424d8fba4SKumar Gala 	[PCIE_1_PHY_CLK] = &pcie1_phy_clk.clkr,
225524d8fba4SKumar Gala 	[PCIE_1_ALT_REF_SRC] = &pcie1_ref_src.clkr,
225624d8fba4SKumar Gala 	[PCIE_1_ALT_REF_CLK] = &pcie1_ref_src_clk.clkr,
225724d8fba4SKumar Gala 	[PCIE_2_A_CLK] = &pcie2_a_clk.clkr,
225824d8fba4SKumar Gala 	[PCIE_2_AUX_CLK] = &pcie2_aux_clk.clkr,
225924d8fba4SKumar Gala 	[PCIE_2_H_CLK] = &pcie2_h_clk.clkr,
226024d8fba4SKumar Gala 	[PCIE_2_PHY_CLK] = &pcie2_phy_clk.clkr,
226124d8fba4SKumar Gala 	[PCIE_2_ALT_REF_SRC] = &pcie2_ref_src.clkr,
226224d8fba4SKumar Gala 	[PCIE_2_ALT_REF_CLK] = &pcie2_ref_src_clk.clkr,
226324d8fba4SKumar Gala 	[USB30_MASTER_SRC] = &usb30_master_clk_src.clkr,
226424d8fba4SKumar Gala 	[USB30_0_MASTER_CLK] = &usb30_0_branch_clk.clkr,
226524d8fba4SKumar Gala 	[USB30_1_MASTER_CLK] = &usb30_1_branch_clk.clkr,
226624d8fba4SKumar Gala 	[USB30_UTMI_SRC] = &usb30_utmi_clk.clkr,
226724d8fba4SKumar Gala 	[USB30_0_UTMI_CLK] = &usb30_0_utmi_clk_ctl.clkr,
226824d8fba4SKumar Gala 	[USB30_1_UTMI_CLK] = &usb30_1_utmi_clk_ctl.clkr,
226924d8fba4SKumar Gala 	[USB_HS1_H_CLK] = &usb_hs1_h_clk.clkr,
227024d8fba4SKumar Gala 	[USB_HS1_XCVR_SRC] = &usb_hs1_xcvr_clk_src.clkr,
227124d8fba4SKumar Gala 	[USB_HS1_XCVR_CLK] = &usb_hs1_xcvr_clk.clkr,
227224d8fba4SKumar Gala 	[USB_FS1_H_CLK] = &usb_fs1_h_clk.clkr,
227324d8fba4SKumar Gala 	[USB_FS1_XCVR_SRC] = &usb_fs1_xcvr_clk_src.clkr,
227424d8fba4SKumar Gala 	[USB_FS1_XCVR_CLK] = &usb_fs1_xcvr_clk.clkr,
227524d8fba4SKumar Gala 	[USB_FS1_SYSTEM_CLK] = &usb_fs1_sys_clk.clkr,
227624d8fba4SKumar Gala };
227724d8fba4SKumar Gala 
227824d8fba4SKumar Gala static const struct qcom_reset_map gcc_ipq806x_resets[] = {
227924d8fba4SKumar Gala 	[QDSS_STM_RESET] = { 0x2060, 6 },
228024d8fba4SKumar Gala 	[AFAB_SMPSS_S_RESET] = { 0x20b8, 2 },
228124d8fba4SKumar Gala 	[AFAB_SMPSS_M1_RESET] = { 0x20b8, 1 },
228224d8fba4SKumar Gala 	[AFAB_SMPSS_M0_RESET] = { 0x20b8, 0 },
228324d8fba4SKumar Gala 	[AFAB_EBI1_CH0_RESET] = { 0x20c0, 7 },
228424d8fba4SKumar Gala 	[AFAB_EBI1_CH1_RESET] = { 0x20c4, 7 },
228524d8fba4SKumar Gala 	[SFAB_ADM0_M0_RESET] = { 0x21e0, 7 },
228624d8fba4SKumar Gala 	[SFAB_ADM0_M1_RESET] = { 0x21e4, 7 },
228724d8fba4SKumar Gala 	[SFAB_ADM0_M2_RESET] = { 0x21e8, 7 },
228824d8fba4SKumar Gala 	[ADM0_C2_RESET] = { 0x220c, 4 },
228924d8fba4SKumar Gala 	[ADM0_C1_RESET] = { 0x220c, 3 },
229024d8fba4SKumar Gala 	[ADM0_C0_RESET] = { 0x220c, 2 },
229124d8fba4SKumar Gala 	[ADM0_PBUS_RESET] = { 0x220c, 1 },
229224d8fba4SKumar Gala 	[ADM0_RESET] = { 0x220c, 0 },
229324d8fba4SKumar Gala 	[QDSS_CLKS_SW_RESET] = { 0x2260, 5 },
229424d8fba4SKumar Gala 	[QDSS_POR_RESET] = { 0x2260, 4 },
229524d8fba4SKumar Gala 	[QDSS_TSCTR_RESET] = { 0x2260, 3 },
229624d8fba4SKumar Gala 	[QDSS_HRESET_RESET] = { 0x2260, 2 },
229724d8fba4SKumar Gala 	[QDSS_AXI_RESET] = { 0x2260, 1 },
229824d8fba4SKumar Gala 	[QDSS_DBG_RESET] = { 0x2260, 0 },
229924d8fba4SKumar Gala 	[SFAB_PCIE_M_RESET] = { 0x22d8, 1 },
230024d8fba4SKumar Gala 	[SFAB_PCIE_S_RESET] = { 0x22d8, 0 },
230124d8fba4SKumar Gala 	[PCIE_EXT_RESET] = { 0x22dc, 6 },
230224d8fba4SKumar Gala 	[PCIE_PHY_RESET] = { 0x22dc, 5 },
230324d8fba4SKumar Gala 	[PCIE_PCI_RESET] = { 0x22dc, 4 },
230424d8fba4SKumar Gala 	[PCIE_POR_RESET] = { 0x22dc, 3 },
230524d8fba4SKumar Gala 	[PCIE_HCLK_RESET] = { 0x22dc, 2 },
230624d8fba4SKumar Gala 	[PCIE_ACLK_RESET] = { 0x22dc, 0 },
230724d8fba4SKumar Gala 	[SFAB_LPASS_RESET] = { 0x23a0, 7 },
230824d8fba4SKumar Gala 	[SFAB_AFAB_M_RESET] = { 0x23e0, 7 },
230924d8fba4SKumar Gala 	[AFAB_SFAB_M0_RESET] = { 0x2420, 7 },
231024d8fba4SKumar Gala 	[AFAB_SFAB_M1_RESET] = { 0x2424, 7 },
231124d8fba4SKumar Gala 	[SFAB_SATA_S_RESET] = { 0x2480, 7 },
231224d8fba4SKumar Gala 	[SFAB_DFAB_M_RESET] = { 0x2500, 7 },
231324d8fba4SKumar Gala 	[DFAB_SFAB_M_RESET] = { 0x2520, 7 },
231424d8fba4SKumar Gala 	[DFAB_SWAY0_RESET] = { 0x2540, 7 },
231524d8fba4SKumar Gala 	[DFAB_SWAY1_RESET] = { 0x2544, 7 },
231624d8fba4SKumar Gala 	[DFAB_ARB0_RESET] = { 0x2560, 7 },
231724d8fba4SKumar Gala 	[DFAB_ARB1_RESET] = { 0x2564, 7 },
231824d8fba4SKumar Gala 	[PPSS_PROC_RESET] = { 0x2594, 1 },
231924d8fba4SKumar Gala 	[PPSS_RESET] = { 0x2594, 0 },
232024d8fba4SKumar Gala 	[DMA_BAM_RESET] = { 0x25c0, 7 },
232124d8fba4SKumar Gala 	[SPS_TIC_H_RESET] = { 0x2600, 7 },
232224d8fba4SKumar Gala 	[SFAB_CFPB_M_RESET] = { 0x2680, 7 },
232324d8fba4SKumar Gala 	[SFAB_CFPB_S_RESET] = { 0x26c0, 7 },
232424d8fba4SKumar Gala 	[TSIF_H_RESET] = { 0x2700, 7 },
232524d8fba4SKumar Gala 	[CE1_H_RESET] = { 0x2720, 7 },
232624d8fba4SKumar Gala 	[CE1_CORE_RESET] = { 0x2724, 7 },
232724d8fba4SKumar Gala 	[CE1_SLEEP_RESET] = { 0x2728, 7 },
232824d8fba4SKumar Gala 	[CE2_H_RESET] = { 0x2740, 7 },
232924d8fba4SKumar Gala 	[CE2_CORE_RESET] = { 0x2744, 7 },
233024d8fba4SKumar Gala 	[SFAB_SFPB_M_RESET] = { 0x2780, 7 },
233124d8fba4SKumar Gala 	[SFAB_SFPB_S_RESET] = { 0x27a0, 7 },
233224d8fba4SKumar Gala 	[RPM_PROC_RESET] = { 0x27c0, 7 },
233324d8fba4SKumar Gala 	[PMIC_SSBI2_RESET] = { 0x280c, 12 },
233424d8fba4SKumar Gala 	[SDC1_RESET] = { 0x2830, 0 },
233524d8fba4SKumar Gala 	[SDC2_RESET] = { 0x2850, 0 },
233624d8fba4SKumar Gala 	[SDC3_RESET] = { 0x2870, 0 },
233724d8fba4SKumar Gala 	[SDC4_RESET] = { 0x2890, 0 },
233824d8fba4SKumar Gala 	[USB_HS1_RESET] = { 0x2910, 0 },
233924d8fba4SKumar Gala 	[USB_HSIC_RESET] = { 0x2934, 0 },
234024d8fba4SKumar Gala 	[USB_FS1_XCVR_RESET] = { 0x2974, 1 },
234124d8fba4SKumar Gala 	[USB_FS1_RESET] = { 0x2974, 0 },
234224d8fba4SKumar Gala 	[GSBI1_RESET] = { 0x29dc, 0 },
234324d8fba4SKumar Gala 	[GSBI2_RESET] = { 0x29fc, 0 },
234424d8fba4SKumar Gala 	[GSBI3_RESET] = { 0x2a1c, 0 },
234524d8fba4SKumar Gala 	[GSBI4_RESET] = { 0x2a3c, 0 },
234624d8fba4SKumar Gala 	[GSBI5_RESET] = { 0x2a5c, 0 },
234724d8fba4SKumar Gala 	[GSBI6_RESET] = { 0x2a7c, 0 },
234824d8fba4SKumar Gala 	[GSBI7_RESET] = { 0x2a9c, 0 },
234924d8fba4SKumar Gala 	[SPDM_RESET] = { 0x2b6c, 0 },
235024d8fba4SKumar Gala 	[SEC_CTRL_RESET] = { 0x2b80, 7 },
235124d8fba4SKumar Gala 	[TLMM_H_RESET] = { 0x2ba0, 7 },
235224d8fba4SKumar Gala 	[SFAB_SATA_M_RESET] = { 0x2c18, 0 },
235324d8fba4SKumar Gala 	[SATA_RESET] = { 0x2c1c, 0 },
235424d8fba4SKumar Gala 	[TSSC_RESET] = { 0x2ca0, 7 },
235524d8fba4SKumar Gala 	[PDM_RESET] = { 0x2cc0, 12 },
235624d8fba4SKumar Gala 	[MPM_H_RESET] = { 0x2da0, 7 },
235724d8fba4SKumar Gala 	[MPM_RESET] = { 0x2da4, 0 },
235824d8fba4SKumar Gala 	[SFAB_SMPSS_S_RESET] = { 0x2e00, 7 },
235924d8fba4SKumar Gala 	[PRNG_RESET] = { 0x2e80, 12 },
236024d8fba4SKumar Gala 	[SFAB_CE3_M_RESET] = { 0x36c8, 1 },
236124d8fba4SKumar Gala 	[SFAB_CE3_S_RESET] = { 0x36c8, 0 },
236224d8fba4SKumar Gala 	[CE3_SLEEP_RESET] = { 0x36d0, 7 },
236324d8fba4SKumar Gala 	[PCIE_1_M_RESET] = { 0x3a98, 1 },
236424d8fba4SKumar Gala 	[PCIE_1_S_RESET] = { 0x3a98, 0 },
236524d8fba4SKumar Gala 	[PCIE_1_EXT_RESET] = { 0x3a9c, 6 },
236624d8fba4SKumar Gala 	[PCIE_1_PHY_RESET] = { 0x3a9c, 5 },
236724d8fba4SKumar Gala 	[PCIE_1_PCI_RESET] = { 0x3a9c, 4 },
236824d8fba4SKumar Gala 	[PCIE_1_POR_RESET] = { 0x3a9c, 3 },
236924d8fba4SKumar Gala 	[PCIE_1_HCLK_RESET] = { 0x3a9c, 2 },
237024d8fba4SKumar Gala 	[PCIE_1_ACLK_RESET] = { 0x3a9c, 0 },
237124d8fba4SKumar Gala 	[PCIE_2_M_RESET] = { 0x3ad8, 1 },
237224d8fba4SKumar Gala 	[PCIE_2_S_RESET] = { 0x3ad8, 0 },
237324d8fba4SKumar Gala 	[PCIE_2_EXT_RESET] = { 0x3adc, 6 },
237424d8fba4SKumar Gala 	[PCIE_2_PHY_RESET] = { 0x3adc, 5 },
237524d8fba4SKumar Gala 	[PCIE_2_PCI_RESET] = { 0x3adc, 4 },
237624d8fba4SKumar Gala 	[PCIE_2_POR_RESET] = { 0x3adc, 3 },
237724d8fba4SKumar Gala 	[PCIE_2_HCLK_RESET] = { 0x3adc, 2 },
237824d8fba4SKumar Gala 	[PCIE_2_ACLK_RESET] = { 0x3adc, 0 },
237924d8fba4SKumar Gala 	[SFAB_USB30_S_RESET] = { 0x3b54, 1 },
238024d8fba4SKumar Gala 	[SFAB_USB30_M_RESET] = { 0x3b54, 0 },
238124d8fba4SKumar Gala 	[USB30_0_PORT2_HS_PHY_RESET] = { 0x3b50, 5 },
238224d8fba4SKumar Gala 	[USB30_0_MASTER_RESET] = { 0x3b50, 4 },
238324d8fba4SKumar Gala 	[USB30_0_SLEEP_RESET] = { 0x3b50, 3 },
238424d8fba4SKumar Gala 	[USB30_0_UTMI_PHY_RESET] = { 0x3b50, 2 },
238524d8fba4SKumar Gala 	[USB30_0_POWERON_RESET] = { 0x3b50, 1 },
238624d8fba4SKumar Gala 	[USB30_0_PHY_RESET] = { 0x3b50, 0 },
238724d8fba4SKumar Gala 	[USB30_1_MASTER_RESET] = { 0x3b58, 4 },
238824d8fba4SKumar Gala 	[USB30_1_SLEEP_RESET] = { 0x3b58, 3 },
238924d8fba4SKumar Gala 	[USB30_1_UTMI_PHY_RESET] = { 0x3b58, 2 },
239024d8fba4SKumar Gala 	[USB30_1_POWERON_RESET] = { 0x3b58, 1 },
239124d8fba4SKumar Gala 	[USB30_1_PHY_RESET] = { 0x3b58, 0 },
239224d8fba4SKumar Gala 	[NSSFB0_RESET] = { 0x3b60, 6 },
239324d8fba4SKumar Gala 	[NSSFB1_RESET] = { 0x3b60, 7 },
239424d8fba4SKumar Gala };
239524d8fba4SKumar Gala 
239624d8fba4SKumar Gala static const struct regmap_config gcc_ipq806x_regmap_config = {
239724d8fba4SKumar Gala 	.reg_bits	= 32,
239824d8fba4SKumar Gala 	.reg_stride	= 4,
239924d8fba4SKumar Gala 	.val_bits	= 32,
240024d8fba4SKumar Gala 	.max_register	= 0x3e40,
240124d8fba4SKumar Gala 	.fast_io	= true,
240224d8fba4SKumar Gala };
240324d8fba4SKumar Gala 
240424d8fba4SKumar Gala static const struct qcom_cc_desc gcc_ipq806x_desc = {
240524d8fba4SKumar Gala 	.config = &gcc_ipq806x_regmap_config,
240624d8fba4SKumar Gala 	.clks = gcc_ipq806x_clks,
240724d8fba4SKumar Gala 	.num_clks = ARRAY_SIZE(gcc_ipq806x_clks),
240824d8fba4SKumar Gala 	.resets = gcc_ipq806x_resets,
240924d8fba4SKumar Gala 	.num_resets = ARRAY_SIZE(gcc_ipq806x_resets),
241024d8fba4SKumar Gala };
241124d8fba4SKumar Gala 
241224d8fba4SKumar Gala static const struct of_device_id gcc_ipq806x_match_table[] = {
241324d8fba4SKumar Gala 	{ .compatible = "qcom,gcc-ipq8064" },
241424d8fba4SKumar Gala 	{ }
241524d8fba4SKumar Gala };
241624d8fba4SKumar Gala MODULE_DEVICE_TABLE(of, gcc_ipq806x_match_table);
241724d8fba4SKumar Gala 
241824d8fba4SKumar Gala static int gcc_ipq806x_probe(struct platform_device *pdev)
241924d8fba4SKumar Gala {
242024d8fba4SKumar Gala 	struct clk *clk;
242124d8fba4SKumar Gala 	struct device *dev = &pdev->dev;
242224d8fba4SKumar Gala 
242324d8fba4SKumar Gala 	/* Temporary until RPM clocks supported */
242424d8fba4SKumar Gala 	clk = clk_register_fixed_rate(dev, "cxo", NULL, CLK_IS_ROOT, 25000000);
242524d8fba4SKumar Gala 	if (IS_ERR(clk))
242624d8fba4SKumar Gala 		return PTR_ERR(clk);
242724d8fba4SKumar Gala 
242824d8fba4SKumar Gala 	clk = clk_register_fixed_rate(dev, "pxo", NULL, CLK_IS_ROOT, 25000000);
242924d8fba4SKumar Gala 	if (IS_ERR(clk))
243024d8fba4SKumar Gala 		return PTR_ERR(clk);
243124d8fba4SKumar Gala 
243224d8fba4SKumar Gala 	return qcom_cc_probe(pdev, &gcc_ipq806x_desc);
243324d8fba4SKumar Gala }
243424d8fba4SKumar Gala 
243524d8fba4SKumar Gala static int gcc_ipq806x_remove(struct platform_device *pdev)
243624d8fba4SKumar Gala {
243724d8fba4SKumar Gala 	qcom_cc_remove(pdev);
243824d8fba4SKumar Gala 	return 0;
243924d8fba4SKumar Gala }
244024d8fba4SKumar Gala 
244124d8fba4SKumar Gala static struct platform_driver gcc_ipq806x_driver = {
244224d8fba4SKumar Gala 	.probe		= gcc_ipq806x_probe,
244324d8fba4SKumar Gala 	.remove		= gcc_ipq806x_remove,
244424d8fba4SKumar Gala 	.driver		= {
244524d8fba4SKumar Gala 		.name	= "gcc-ipq806x",
244624d8fba4SKumar Gala 		.of_match_table = gcc_ipq806x_match_table,
244724d8fba4SKumar Gala 	},
244824d8fba4SKumar Gala };
244924d8fba4SKumar Gala 
245024d8fba4SKumar Gala static int __init gcc_ipq806x_init(void)
245124d8fba4SKumar Gala {
245224d8fba4SKumar Gala 	return platform_driver_register(&gcc_ipq806x_driver);
245324d8fba4SKumar Gala }
245424d8fba4SKumar Gala core_initcall(gcc_ipq806x_init);
245524d8fba4SKumar Gala 
245624d8fba4SKumar Gala static void __exit gcc_ipq806x_exit(void)
245724d8fba4SKumar Gala {
245824d8fba4SKumar Gala 	platform_driver_unregister(&gcc_ipq806x_driver);
245924d8fba4SKumar Gala }
246024d8fba4SKumar Gala module_exit(gcc_ipq806x_exit);
246124d8fba4SKumar Gala 
246224d8fba4SKumar Gala MODULE_DESCRIPTION("QCOM GCC IPQ806x Driver");
246324d8fba4SKumar Gala MODULE_LICENSE("GPL v2");
246424d8fba4SKumar Gala MODULE_ALIAS("platform:gcc-ipq806x");
2465