aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJianguo Sun <sunjianguo1@huawei.com>2018-05-04 04:56:30 -0400
committerStephen Boyd <sboyd@kernel.org>2018-05-15 18:12:06 -0400
commit80820a7bc8eb92bee8dab36668dfc567062b0ccf (patch)
tree3c40ddd5f9b54529da953e5c4442d525273fc7b8
parent60cc43fc888428bb2f18f08997432d426a243338 (diff)
clk: hisilicon: add missing usb3 clocks for Hi3798CV200 SoC
There are two USB3 host controllers on Hi3798CV200 SoC. This commit adds missing clocks for them. Signed-off-by: Jianguo Sun <sunjianguo1@huawei.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r--drivers/clk/hisilicon/crg-hi3798cv200.c17
-rw-r--r--include/dt-bindings/clock/histb-clock.h8
2 files changed, 25 insertions, 0 deletions
diff --git a/drivers/clk/hisilicon/crg-hi3798cv200.c b/drivers/clk/hisilicon/crg-hi3798cv200.c
index 743eec131528..4fe0b2a9baf1 100644
--- a/drivers/clk/hisilicon/crg-hi3798cv200.c
+++ b/drivers/clk/hisilicon/crg-hi3798cv200.c
@@ -186,6 +186,23 @@ static const struct hisi_gate_clock hi3798cv200_gate_clks[] = {
186 CLK_SET_RATE_PARENT, 0xbc, 0, 0 }, 186 CLK_SET_RATE_PARENT, 0xbc, 0, 0 },
187 { HISTB_USB2_PHY2_REF_CLK, "clk_u2_phy2_ref", "24m", 187 { HISTB_USB2_PHY2_REF_CLK, "clk_u2_phy2_ref", "24m",
188 CLK_SET_RATE_PARENT, 0xbc, 2, 0 }, 188 CLK_SET_RATE_PARENT, 0xbc, 2, 0 },
189 /* USB3 */
190 { HISTB_USB3_BUS_CLK, "clk_u3_bus", NULL,
191 CLK_SET_RATE_PARENT, 0xb0, 0, 0 },
192 { HISTB_USB3_UTMI_CLK, "clk_u3_utmi", NULL,
193 CLK_SET_RATE_PARENT, 0xb0, 4, 0 },
194 { HISTB_USB3_PIPE_CLK, "clk_u3_pipe", NULL,
195 CLK_SET_RATE_PARENT, 0xb0, 3, 0 },
196 { HISTB_USB3_SUSPEND_CLK, "clk_u3_suspend", NULL,
197 CLK_SET_RATE_PARENT, 0xb0, 2, 0 },
198 { HISTB_USB3_BUS_CLK1, "clk_u3_bus1", NULL,
199 CLK_SET_RATE_PARENT, 0xb0, 16, 0 },
200 { HISTB_USB3_UTMI_CLK1, "clk_u3_utmi1", NULL,
201 CLK_SET_RATE_PARENT, 0xb0, 20, 0 },
202 { HISTB_USB3_PIPE_CLK1, "clk_u3_pipe1", NULL,
203 CLK_SET_RATE_PARENT, 0xb0, 19, 0 },
204 { HISTB_USB3_SUSPEND_CLK1, "clk_u3_suspend1", NULL,
205 CLK_SET_RATE_PARENT, 0xb0, 18, 0 },
189}; 206};
190 207
191static struct hisi_clock_data *hi3798cv200_clk_register( 208static struct hisi_clock_data *hi3798cv200_clk_register(
diff --git a/include/dt-bindings/clock/histb-clock.h b/include/dt-bindings/clock/histb-clock.h
index fab30b3f78b2..136de24733be 100644
--- a/include/dt-bindings/clock/histb-clock.h
+++ b/include/dt-bindings/clock/histb-clock.h
@@ -62,6 +62,14 @@
62#define HISTB_USB2_PHY1_REF_CLK 40 62#define HISTB_USB2_PHY1_REF_CLK 40
63#define HISTB_USB2_PHY2_REF_CLK 41 63#define HISTB_USB2_PHY2_REF_CLK 41
64#define HISTB_COMBPHY0_CLK 42 64#define HISTB_COMBPHY0_CLK 42
65#define HISTB_USB3_BUS_CLK 43
66#define HISTB_USB3_UTMI_CLK 44
67#define HISTB_USB3_PIPE_CLK 45
68#define HISTB_USB3_SUSPEND_CLK 46
69#define HISTB_USB3_BUS_CLK1 47
70#define HISTB_USB3_UTMI_CLK1 48
71#define HISTB_USB3_PIPE_CLK1 49
72#define HISTB_USB3_SUSPEND_CLK1 50
65 73
66/* clocks provided by mcu CRG */ 74/* clocks provided by mcu CRG */
67#define HISTB_MCE_CLK 1 75#define HISTB_MCE_CLK 1