summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2024-02-12 23:13:01 +0000
committerAndre Przywara <andre.przywara@arm.com>2024-10-10 00:23:41 +0100
commit7db2f11eb041043d43fe4dd1879d567d33759ee0 (patch)
tree2cdfacb958caf47a8298a8ab683ffcab6a918f58
parent9c4b44d1e3e988b3db6a631c436498e186297b31 (diff)
clk: sunxi: a80: Fix reset description
Clock gates and reset lines share a common structure in the sunxi clock driver descriptions, but use different flags to tell them apart. The description of the Allwinner A80 MMC clock reset lines was erroneously using the "GATE" macro, which made the reset driver ignore that entry, complaining with: sunxi_set_reset: (RST-reset:#0) unhandled Change that to the correct "RESET" macro, to make the reset driver happy. Fixes e0c7ce7e52b7 ("sunxi: clk: A80: add MMC clock support") Signed-off-by: Andre Przywara <andre.przywara@arm.com>
-rw-r--r--drivers/clk/sunxi/clk_a80.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/clk/sunxi/clk_a80.c b/drivers/clk/sunxi/clk_a80.c
index 6751af8a803..091aaeee987 100644
--- a/drivers/clk/sunxi/clk_a80.c
+++ b/drivers/clk/sunxi/clk_a80.c
@@ -75,10 +75,10 @@ static const struct ccu_clk_gate a80_mmc_gates[] = {
};
static const struct ccu_reset a80_mmc_resets[] = {
- [0] = GATE(0x0, BIT(18)),
- [1] = GATE(0x4, BIT(18)),
- [2] = GATE(0x8, BIT(18)),
- [3] = GATE(0xc, BIT(18)),
+ [0] = RESET(0x0, BIT(18)),
+ [1] = RESET(0x4, BIT(18)),
+ [2] = RESET(0x8, BIT(18)),
+ [3] = RESET(0xc, BIT(18)),
};
const struct ccu_desc a80_ccu_desc = {