Skip to content

Commit 2b48dcb

Browse files
jernejskmripard
authored andcommitted
clk: sunxi-ng: sun8i-de2: Split out H5 definitions
H5 has less clocks and resets than A64. Currently that's not obvious because A64 is missing rotation core related clocks and reset. Split out H5 definition. A64 structures will be fixed in subsequent commit. Note that this patch depends on commit 19368d9 ("clk: sunxi-ng: add support for Allwinner H3 DE2 CCU") for the H3 clock list. Fixes: 763c5bd ("clk: sunxi-ng: add support for DE2 CCU") Signed-off-by: Jernej Skrabec <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
1 parent 1de8493 commit 2b48dcb

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,12 @@ static struct ccu_reset_map sun50i_a64_de2_resets[] = {
192192
[RST_WB] = { 0x08, BIT(2) },
193193
};
194194

195+
static struct ccu_reset_map sun50i_h5_de2_resets[] = {
196+
[RST_MIXER0] = { 0x08, BIT(0) },
197+
[RST_MIXER1] = { 0x08, BIT(1) },
198+
[RST_WB] = { 0x08, BIT(2) },
199+
};
200+
195201
static struct ccu_reset_map sun50i_h6_de3_resets[] = {
196202
[RST_MIXER0] = { 0x08, BIT(0) },
197203
[RST_MIXER1] = { 0x08, BIT(1) },
@@ -229,6 +235,16 @@ static const struct sunxi_ccu_desc sun50i_a64_de2_clk_desc = {
229235
.num_resets = ARRAY_SIZE(sun50i_a64_de2_resets),
230236
};
231237

238+
static const struct sunxi_ccu_desc sun50i_h5_de2_clk_desc = {
239+
.ccu_clks = sun8i_h3_de2_clks,
240+
.num_ccu_clks = ARRAY_SIZE(sun8i_h3_de2_clks),
241+
242+
.hw_clks = &sun8i_h3_de2_hw_clks,
243+
244+
.resets = sun50i_h5_de2_resets,
245+
.num_resets = ARRAY_SIZE(sun50i_h5_de2_resets),
246+
};
247+
232248
static const struct sunxi_ccu_desc sun50i_h6_de3_clk_desc = {
233249
.ccu_clks = sun50i_h6_de3_clks,
234250
.num_ccu_clks = ARRAY_SIZE(sun50i_h6_de3_clks),
@@ -347,7 +363,7 @@ static const struct of_device_id sunxi_de2_clk_ids[] = {
347363
},
348364
{
349365
.compatible = "allwinner,sun50i-h5-de2-clk",
350-
.data = &sun50i_a64_de2_clk_desc,
366+
.data = &sun50i_h5_de2_clk_desc,
351367
},
352368
{
353369
.compatible = "allwinner,sun50i-h6-de3-clk",

0 commit comments

Comments
 (0)