* Add support for TCU of X1000.
@ 2020-03-17 15:11 周琰杰 (Zhou Yanjie)
2020-03-17 15:11 ` [PATCH RESEND] " 周琰杰 (Zhou Yanjie)
2020-03-17 15:11 ` [PATCH RESEND] clk: Ingenic: " 周琰杰 (Zhou Yanjie)
0 siblings, 2 replies; 4+ messages in thread
From: 周琰杰 (Zhou Yanjie) @ 2020-03-17 15:11 UTC (permalink / raw)
To: linux-clk
Cc: linux-kernel, sboyd, mturquette, paul, dongsheng.qiu, yanfei.li,
sernia.zhou, zhenwenjin
Add support for TCU of X1000 from Ingenic. X1000 has a different TCU,
since X1000 OST has been independent of TCU. This patch is add TCU
support of X1000, and prepare for later OST driver.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH RESEND] Add support for TCU of X1000.
2020-03-17 15:11 Add support for TCU of X1000 周琰杰 (Zhou Yanjie)
@ 2020-03-17 15:11 ` 周琰杰 (Zhou Yanjie)
2020-03-17 15:11 ` [PATCH RESEND] clk: Ingenic: " 周琰杰 (Zhou Yanjie)
1 sibling, 0 replies; 4+ messages in thread
From: 周琰杰 (Zhou Yanjie) @ 2020-03-17 15:11 UTC (permalink / raw)
To: linux-clk
Cc: linux-kernel, sboyd, mturquette, paul, dongsheng.qiu, yanfei.li,
sernia.zhou, zhenwenjin
Add support for TCU of X1000 from Ingenic. X1000 has a different TCU,
since X1000 OST has been independent of TCU. This patch is add TCU
support of X1000, and prepare for later OST driver.
周琰杰 (Zhou Yanjie) (1):
clk: Ingenic: Add support for TCU of X1000.
drivers/clk/ingenic/tcu.c | 8 ++++++++
1 file changed, 8 insertions(+)
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH RESEND] clk: Ingenic: Add support for TCU of X1000.
2020-03-17 15:11 Add support for TCU of X1000 周琰杰 (Zhou Yanjie)
2020-03-17 15:11 ` [PATCH RESEND] " 周琰杰 (Zhou Yanjie)
@ 2020-03-17 15:11 ` 周琰杰 (Zhou Yanjie)
2020-03-21 0:01 ` Stephen Boyd
1 sibling, 1 reply; 4+ messages in thread
From: 周琰杰 (Zhou Yanjie) @ 2020-03-17 15:11 UTC (permalink / raw)
To: linux-clk
Cc: linux-kernel, sboyd, mturquette, paul, dongsheng.qiu, yanfei.li,
sernia.zhou, zhenwenjin
X1000 has a different TCU, since X1000 OST has been independent of TCU.
This patch is add TCU support of X1000, and prepare for later OST driver.
Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
---
drivers/clk/ingenic/tcu.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/clk/ingenic/tcu.c b/drivers/clk/ingenic/tcu.c
index ad7daa4..8799907 100644
--- a/drivers/clk/ingenic/tcu.c
+++ b/drivers/clk/ingenic/tcu.c
@@ -317,10 +317,17 @@ static const struct ingenic_soc_info jz4770_soc_info = {
.has_tcu_clk = false,
};
+static const struct ingenic_soc_info x1000_soc_info = {
+ .num_channels = 8,
+ .has_ost = false, /* X1000 has OST, but it not belong TCU */
+ .has_tcu_clk = false,
+};
+
static const struct of_device_id ingenic_tcu_of_match[] __initconst = {
{ .compatible = "ingenic,jz4740-tcu", .data = &jz4740_soc_info, },
{ .compatible = "ingenic,jz4725b-tcu", .data = &jz4725b_soc_info, },
{ .compatible = "ingenic,jz4770-tcu", .data = &jz4770_soc_info, },
+ { .compatible = "ingenic,x1000-tcu", .data = &x1000_soc_info, },
{ /* sentinel */ }
};
@@ -471,3 +478,4 @@ static void __init ingenic_tcu_init(struct device_node *np)
CLK_OF_DECLARE_DRIVER(jz4740_cgu, "ingenic,jz4740-tcu", ingenic_tcu_init);
CLK_OF_DECLARE_DRIVER(jz4725b_cgu, "ingenic,jz4725b-tcu", ingenic_tcu_init);
CLK_OF_DECLARE_DRIVER(jz4770_cgu, "ingenic,jz4770-tcu", ingenic_tcu_init);
+CLK_OF_DECLARE_DRIVER(x1000_cgu, "ingenic,x1000-tcu", ingenic_tcu_init);
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH RESEND] clk: Ingenic: Add support for TCU of X1000.
2020-03-17 15:11 ` [PATCH RESEND] clk: Ingenic: " 周琰杰 (Zhou Yanjie)
@ 2020-03-21 0:01 ` Stephen Boyd
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2020-03-21 0:01 UTC (permalink / raw)
To: linux-clk, zhouyanjie
Cc: linux-kernel, mturquette, paul, dongsheng.qiu, yanfei.li,
sernia.zhou, zhenwenjin
Quoting Zhou Yanjie (2020-03-17 08:11:33)
> X1000 has a different TCU, since X1000 OST has been independent of TCU.
> This patch is add TCU support of X1000, and prepare for later OST driver.
>
Ok. I can just take it.
Applied to clk-next
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-03-21 0:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-17 15:11 Add support for TCU of X1000 周琰杰 (Zhou Yanjie)
2020-03-17 15:11 ` [PATCH RESEND] " 周琰杰 (Zhou Yanjie)
2020-03-17 15:11 ` [PATCH RESEND] clk: Ingenic: " 周琰杰 (Zhou Yanjie)
2020-03-21 0:01 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).