diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2019-02-28 00:26:57 +0530 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2019-03-09 13:16:35 +0530 |
commit | 68620c9698f109c1f001f80d282138a5c67cabef (patch) | |
tree | 804e629965ba5df7ade8a6e96eb8c49229a4ad71 /drivers/clk/sunxi/clk_h6.c | |
parent | 3d83c4a1d4dd7ea230d5b5c073e503dca883e409 (diff) |
clk: sunxi: Implement EMAC, GMAC clocks, resets
- Implement EMAC, GMAC clocks via ccu_clk_gate for
all supported Allwinner SoCs.
- Implement EMAC, GMAC resets via ccu_reset for all
supported Allwinner SoCs.
Cc: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/clk/sunxi/clk_h6.c')
-rw-r--r-- | drivers/clk/sunxi/clk_h6.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clk/sunxi/clk_h6.c b/drivers/clk/sunxi/clk_h6.c index 71f0c78656c..0bb00f449ac 100644 --- a/drivers/clk/sunxi/clk_h6.c +++ b/drivers/clk/sunxi/clk_h6.c @@ -26,6 +26,8 @@ static struct ccu_clk_gate h6_gates[] = { [CLK_BUS_SPI0] = GATE(0x96c, BIT(0)), [CLK_BUS_SPI1] = GATE(0x96c, BIT(1)), + + [CLK_BUS_EMAC] = GATE(0x97c, BIT(0)), }; static struct ccu_reset h6_resets[] = { @@ -39,6 +41,8 @@ static struct ccu_reset h6_resets[] = { [RST_BUS_SPI0] = RESET(0x96c, BIT(16)), [RST_BUS_SPI1] = RESET(0x96c, BIT(17)), + + [RST_BUS_EMAC] = RESET(0x97c, BIT(16)), }; static const struct ccu_desc h6_ccu_desc = { |