Skip to content

Commit c41bac7

Browse files
szemzoastorulf
authored andcommitted
pmdomain: sunxi: add V853 ppu support
V853 has a similar ppu like Allwinner D1, add compatible and the available pd names. Signed-off-by: Andras Szemzo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent a42c920 commit c41bac7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

drivers/pmdomain/sunxi/sun20i-ppu.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,26 @@ static const struct sun20i_ppu_desc sun20i_d1_ppu_desc = {
182182
.num_domains = ARRAY_SIZE(sun20i_d1_ppu_pd_names),
183183
};
184184

185+
static const char *const sun8i_v853_ppu_pd_names[] = {
186+
"RISCV",
187+
"NPU",
188+
"VE",
189+
};
190+
191+
static const struct sun20i_ppu_desc sun8i_v853_ppu_desc = {
192+
.names = sun8i_v853_ppu_pd_names,
193+
.num_domains = ARRAY_SIZE(sun8i_v853_ppu_pd_names),
194+
};
195+
185196
static const struct of_device_id sun20i_ppu_of_match[] = {
186197
{
187198
.compatible = "allwinner,sun20i-d1-ppu",
188199
.data = &sun20i_d1_ppu_desc,
189200
},
201+
{
202+
.compatible = "allwinner,sun8i-v853-ppu",
203+
.data = &sun8i_v853_ppu_desc,
204+
},
190205
{ }
191206
};
192207
MODULE_DEVICE_TABLE(of, sun20i_ppu_of_match);

0 commit comments

Comments
 (0)