clk: sunxi-ng: r40: export a regmap to access the GMAC register
authorIcenowy Zheng <icenowy@aosc.io>
Tue, 1 May 2018 16:12:14 +0000 (00:12 +0800)
committerChen-Yu Tsai <wens@csie.org>
Thu, 17 May 2018 06:02:07 +0000 (14:02 +0800)
commit17de4c857b1f74b90967f7e7fd5ff81be61dc044
tree7c7d26968b573cc6a896653638ee33c51a7a5f52
parentc3bf29f675b7eabe0df66bef3a89677dbccd4e7f
clk: sunxi-ng: r40: export a regmap to access the GMAC register

There's a GMAC configuration register, which exists on A64/A83T/H3/H5 in
the syscon part, in the CCU of R40 SoC.

Export a regmap of the CCU.

Read access is not restricted to all registers, but only the GMAC
register is allowed to be written.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu-sun8i-r40.c