Skip to content

Commit 11d0c43

Browse files
jernejskmripard
authored andcommitted
clk: sunxi-ng: sun8i-de2: Add R40 specific quirks
R40 is actually very similar to A64, but it doesn't have mixer1 reset. This means it's clocks and resets combination is unique and R40 specific quirks are needed. Signed-off-by: Jernej Skrabec <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
1 parent b0bfba9 commit 11d0c43

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

drivers/clk/sunxi-ng/ccu-sun8i-de2.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,16 @@ static const struct sunxi_ccu_desc sun8i_h3_de2_clk_desc = {
238238
.num_resets = ARRAY_SIZE(sun8i_h3_de2_resets),
239239
};
240240

241+
static const struct sunxi_ccu_desc sun8i_r40_de2_clk_desc = {
242+
.ccu_clks = sun50i_a64_de2_clks,
243+
.num_ccu_clks = ARRAY_SIZE(sun50i_a64_de2_clks),
244+
245+
.hw_clks = &sun50i_a64_de2_hw_clks,
246+
247+
.resets = sun8i_a83t_de2_resets,
248+
.num_resets = ARRAY_SIZE(sun8i_a83t_de2_resets),
249+
};
250+
241251
static const struct sunxi_ccu_desc sun50i_a64_de2_clk_desc = {
242252
.ccu_clks = sun50i_a64_de2_clks,
243253
.num_ccu_clks = ARRAY_SIZE(sun50i_a64_de2_clks),
@@ -356,6 +366,10 @@ static const struct of_device_id sunxi_de2_clk_ids[] = {
356366
.compatible = "allwinner,sun8i-h3-de2-clk",
357367
.data = &sun8i_h3_de2_clk_desc,
358368
},
369+
{
370+
.compatible = "allwinner,sun8i-r40-de2-clk",
371+
.data = &sun8i_r40_de2_clk_desc,
372+
},
359373
{
360374
.compatible = "allwinner,sun8i-v3s-de2-clk",
361375
.data = &sun8i_v3s_de2_clk_desc,

0 commit comments

Comments
 (0)