]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pmdomain: sunxi: add V853 ppu support
authorAndras Szemzo <szemzo.andras@gmail.com>
Wed, 5 Feb 2025 12:52:21 +0000 (13:52 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 14 Feb 2025 11:23:05 +0000 (12:23 +0100)
V853 has a similar ppu like Allwinner D1, add compatible and the available pd names.

Signed-off-by: Andras Szemzo <szemzo.andras@gmail.com>
Link: https://lore.kernel.org/r/20250205125225.1152849-7-szemzo.andras@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/sunxi/sun20i-ppu.c

index 8700f9dd5f75b8bee3661b83b656bf1fdb8cb994..9f002748d224f7b61561defdcf5f9c517ed54ff4 100644 (file)
@@ -182,11 +182,26 @@ static const struct sun20i_ppu_desc sun20i_d1_ppu_desc = {
        .num_domains    = ARRAY_SIZE(sun20i_d1_ppu_pd_names),
 };
 
+static const char *const sun8i_v853_ppu_pd_names[] = {
+       "RISCV",
+       "NPU",
+       "VE",
+};
+
+static const struct sun20i_ppu_desc sun8i_v853_ppu_desc = {
+       .names          = sun8i_v853_ppu_pd_names,
+       .num_domains    = ARRAY_SIZE(sun8i_v853_ppu_pd_names),
+};
+
 static const struct of_device_id sun20i_ppu_of_match[] = {
        {
                .compatible     = "allwinner,sun20i-d1-ppu",
                .data           = &sun20i_d1_ppu_desc,
        },
+       {
+               .compatible     = "allwinner,sun8i-v853-ppu",
+               .data           = &sun8i_v853_ppu_desc,
+       },
        { }
 };
 MODULE_DEVICE_TABLE(of, sun20i_ppu_of_match);