summaryrefslogtreecommitdiffstats
path: root/drivers/clk/sunxi-ng/ccu-sun8i-h3.h
diff options
context:
space:
mode:
authorIcenowy Zheng <icenowy@aosc.xyz>2017-03-02 04:13:39 +0800
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-03-06 10:25:56 +0100
commit9be1c8afb4926aee043d48493c0474c0eea56540 (patch)
treefdad2e5551a7797318b50937b2ee3c0f5be62677 /drivers/clk/sunxi-ng/ccu-sun8i-h3.h
parent845d6b0ff92d2c8151892c81f2050b873d7a7ef7 (diff)
downloadop-kernel-dev-9be1c8afb4926aee043d48493c0474c0eea56540.zip
op-kernel-dev-9be1c8afb4926aee043d48493c0474c0eea56540.tar.gz
clk: sunxi-ng: add Allwinner H5 CCU support for H3 CCU driver
Allwinner H5 is a SoC that features a design which keeps the peripheral compatible with H3, so that it have also a CCU like the one on H3 -- only one bus gate/reset is added, and the mmc sample/output phases are removed because of MMC controller update. Add its support in our existing H3 CCU driver. Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers/clk/sunxi-ng/ccu-sun8i-h3.h')
-rw-r--r--drivers/clk/sunxi-ng/ccu-sun8i-h3.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-h3.h b/drivers/clk/sunxi-ng/ccu-sun8i-h3.h
index 78be712..85973d1 100644
--- a/drivers/clk/sunxi-ng/ccu-sun8i-h3.h
+++ b/drivers/clk/sunxi-ng/ccu-sun8i-h3.h
@@ -57,6 +57,7 @@
/* And the GPU module clock is exported */
-#define CLK_NUMBER (CLK_GPU + 1)
+#define CLK_NUMBER_H3 (CLK_GPU + 1)
+#define CLK_NUMBER_H5 (CLK_BUS_SCR1 + 1)
#endif /* _CCU_SUN8I_H3_H_ */
OpenPOWER on IntegriCloud