All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add a regmap to Allwinner R40 CCU to export GMAC register
@ 2017-10-06  6:33 ` Icenowy Zheng
  0 siblings, 0 replies; 14+ messages in thread
From: Icenowy Zheng @ 2017-10-06  6:33 UTC (permalink / raw)
  To: Maxime Ripard, Chen-Yu Tsai
  Cc: linux-arm-kernel, linux-clk, linux-kernel, linux-sunxi,
	Icenowy Zheng

In the CCU of the Allwinner R40 SoC, there's a GMAC configuration register,
which is intended to be accessed by the dwmac-sun8i driver. On SoCs already
supported by the driver the register is placed in the syscon rather than
the CCU.

As CCU is a critical part of the SoC, so write to it should be strictly
limited. A regmap with restricted write permission is created by the R40
CCU driver, and can be get with dev_get_regmap. In order to tie the regmap
to the CCU device, the R40 CCU is now a platform driver, so a platform
device is created for it (and then tied with the regmap).

The first patch does the conversion of the driver to a platform driver,
and the second patch adds the regmap.

Icenowy Zheng (2):
  clk: sunxi-ng: r40: rewrite init code to a platform driver
  clk: sunxi-ng: r40: export a regmap to access the GMAC register

 drivers/clk/sunxi-ng/ccu-sun8i-r40.c | 69 ++++++++++++++++++++++++++++++------
 1 file changed, 59 insertions(+), 10 deletions(-)

-- 
2.13.6


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-11-02  7:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-06  6:33 [PATCH 0/2] Add a regmap to Allwinner R40 CCU to export GMAC register Icenowy Zheng
2017-10-06  6:33 ` Icenowy Zheng
2017-10-06  6:33 ` [PATCH 1/2] clk: sunxi-ng: r40: rewrite init code to a platform driver Icenowy Zheng
2017-10-06  6:33   ` Icenowy Zheng
2017-10-06  6:33 ` [PATCH 2/2] clk: sunxi-ng: r40: export a regmap to access the GMAC register Icenowy Zheng
2017-10-06  6:33   ` Icenowy Zheng
2017-10-09  7:18 ` [PATCH 0/2] Add a regmap to Allwinner R40 CCU to export " Maxime Ripard
2017-10-09  7:18   ` Maxime Ripard
2017-10-09  7:22   ` Icenowy Zheng
2017-10-09  7:22     ` Icenowy Zheng
2017-11-02  7:11     ` Stephen Boyd
2017-11-02  7:11       ` Stephen Boyd
2017-11-02  7:49       ` Icenowy Zheng
2017-11-02  7:49         ` Icenowy Zheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.