Skip to content

Commit a7cd395

Browse files
XBurstdlezcano
authored andcommitted
clocksource/drivers/ingenic: Add support for TCU of X1000
X1000 has a different TCU containing OST, since X1000, OST has been independent of TCU. This patch is prepare for later OST driver. Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/1582100974-129559-5-git-send-email-zhouyanjie@wanyeetech.com
1 parent fe6c2d6 commit a7cd395

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clocksource/ingenic-timer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ static const struct of_device_id ingenic_tcu_of_match[] = {
230230
{ .compatible = "ingenic,jz4740-tcu", .data = &jz4740_soc_info, },
231231
{ .compatible = "ingenic,jz4725b-tcu", .data = &jz4725b_soc_info, },
232232
{ .compatible = "ingenic,jz4770-tcu", .data = &jz4740_soc_info, },
233+
{ .compatible = "ingenic,x1000-tcu", .data = &jz4740_soc_info, },
233234
{ /* sentinel */ }
234235
};
235236

@@ -302,7 +303,7 @@ static int __init ingenic_tcu_init(struct device_node *np)
302303
TIMER_OF_DECLARE(jz4740_tcu_intc, "ingenic,jz4740-tcu", ingenic_tcu_init);
303304
TIMER_OF_DECLARE(jz4725b_tcu_intc, "ingenic,jz4725b-tcu", ingenic_tcu_init);
304305
TIMER_OF_DECLARE(jz4770_tcu_intc, "ingenic,jz4770-tcu", ingenic_tcu_init);
305-
306+
TIMER_OF_DECLARE(x1000_tcu_intc, "ingenic,x1000-tcu", ingenic_tcu_init);
306307

307308
static int __init ingenic_tcu_probe(struct platform_device *pdev)
308309
{

0 commit comments

Comments
 (0)