summaryrefslogtreecommitdiff
path: root/drivers/clk/sunxi/clk_a80.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2019-01-29 15:54:09 +0000
committerJagan Teki <jagan@amarulasolutions.com>2019-01-29 23:30:11 +0530
commitbb3e5aa2896d69a6fe86861004d7d4e33824efbe (patch)
tree8f38de7357c03681bc0309bd76ab52fe00e02e06 /drivers/clk/sunxi/clk_a80.c
parent1659156c74fb575d851fc1f43818d232712e776b (diff)
sunxi: clk: add MMC gates/resets
Add the MMC clock gates and reset bits for all the Allwinner SoCs. This allows them to be used by the MMC driver. We don't advertise the mod clock yet, as this is still handled by the MMC driver. Signed-off-by: Andre Przywara <andre.przywara@arm.com> [jagan: add V3S, A80 gates/resets] Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'drivers/clk/sunxi/clk_a80.c')
-rw-r--r--drivers/clk/sunxi/clk_a80.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clk/sunxi/clk_a80.c b/drivers/clk/sunxi/clk_a80.c
index d6dd6a1fa1..d4bfb0a98b 100644
--- a/drivers/clk/sunxi/clk_a80.c
+++ b/drivers/clk/sunxi/clk_a80.c
@@ -13,6 +13,8 @@
#include <dt-bindings/reset/sun9i-a80-ccu.h>
static const struct ccu_clk_gate a80_gates[] = {
+ [CLK_BUS_MMC] = GATE(0x580, BIT(8)),
+
[CLK_BUS_UART0] = GATE(0x594, BIT(16)),
[CLK_BUS_UART1] = GATE(0x594, BIT(17)),
[CLK_BUS_UART2] = GATE(0x594, BIT(18)),
@@ -22,6 +24,8 @@ static const struct ccu_clk_gate a80_gates[] = {
};
static const struct ccu_reset a80_resets[] = {
+ [RST_BUS_MMC] = RESET(0x5a0, BIT(8)),
+
[RST_BUS_UART0] = RESET(0x5b4, BIT(16)),
[RST_BUS_UART1] = RESET(0x5b4, BIT(17)),
[RST_BUS_UART2] = RESET(0x5b4, BIT(18)),