]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
clocksource/drivers/ingenic-ost: Add support for the JZ4760B
authorPaul Cercueil <paul@crapouillou.net>
Mon, 8 Mar 2021 21:23:02 +0000 (21:23 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 8 Apr 2021 11:23:23 +0000 (13:23 +0200)
The OST in the JZ4760B SoC works exactly the same as in the JZ4770. But
since the JZ4760B is older, its Device Tree string does not fall back to
the JZ4770 one; so add support for the JZ4760B compatible string here.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210308212302.10288-3-paul@crapouillou.net
drivers/clocksource/ingenic-ost.c

index 029efc2731b49f35b89f3b3c07011a2152f8d40b..d2d664601441b9e614776d9da8025d99b9d9ecc3 100644 (file)
@@ -167,13 +167,14 @@ static const struct ingenic_ost_soc_info jz4725b_ost_soc_info = {
        .is64bit = false,
 };
 
-static const struct ingenic_ost_soc_info jz4770_ost_soc_info = {
+static const struct ingenic_ost_soc_info jz4760b_ost_soc_info = {
        .is64bit = true,
 };
 
 static const struct of_device_id ingenic_ost_of_match[] = {
        { .compatible = "ingenic,jz4725b-ost", .data = &jz4725b_ost_soc_info, },
-       { .compatible = "ingenic,jz4770-ost", .data = &jz4770_ost_soc_info, },
+       { .compatible = "ingenic,jz4760b-ost", .data = &jz4760b_ost_soc_info, },
+       { .compatible = "ingenic,jz4770-ost", .data = &jz4760b_ost_soc_info, },
        { }
 };