Skip to content

Commit dc6a81c

Browse files
XBurstbebarino
authored andcommitted
clk: Ingenic: Add support for TCU of X1000.
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) <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent bb6d3fb commit dc6a81c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/clk/ingenic/tcu.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,17 @@ static const struct ingenic_soc_info jz4770_soc_info = {
317317
.has_tcu_clk = false,
318318
};
319319

320+
static const struct ingenic_soc_info x1000_soc_info = {
321+
.num_channels = 8,
322+
.has_ost = false, /* X1000 has OST, but it not belong TCU */
323+
.has_tcu_clk = false,
324+
};
325+
320326
static const struct of_device_id ingenic_tcu_of_match[] __initconst = {
321327
{ .compatible = "ingenic,jz4740-tcu", .data = &jz4740_soc_info, },
322328
{ .compatible = "ingenic,jz4725b-tcu", .data = &jz4725b_soc_info, },
323329
{ .compatible = "ingenic,jz4770-tcu", .data = &jz4770_soc_info, },
330+
{ .compatible = "ingenic,x1000-tcu", .data = &x1000_soc_info, },
324331
{ /* sentinel */ }
325332
};
326333

@@ -471,3 +478,4 @@ static void __init ingenic_tcu_init(struct device_node *np)
471478
CLK_OF_DECLARE_DRIVER(jz4740_cgu, "ingenic,jz4740-tcu", ingenic_tcu_init);
472479
CLK_OF_DECLARE_DRIVER(jz4725b_cgu, "ingenic,jz4725b-tcu", ingenic_tcu_init);
473480
CLK_OF_DECLARE_DRIVER(jz4770_cgu, "ingenic,jz4770-tcu", ingenic_tcu_init);
481+
CLK_OF_DECLARE_DRIVER(x1000_cgu, "ingenic,x1000-tcu", ingenic_tcu_init);

0 commit comments

Comments
 (0)