kernel_optimize_test/drivers/clk/renesas
Geert Uytterhoeven 2066390ad4 clk: renesas: cpg-mssr: Export cpg_mssr_{at,de}tach_dev()
The R-Car SYSC PM Domain driver has to power manage devices in power
areas using clocks. To reuse code and to share knowledge of clocks
suitable for power management, this is ideally done through the existing
cpg_mssr_attach_dev() and cpg_mssr_detach_dev() callbacks.

Hence these callbacks can no longer rely on their "domain" parameter
pointing to the CPG/MSSR Clock Domain. To handle this, keep a pointer to
the clock domain in a static variable. cpg_mssr_attach_dev() has to
support probe deferral, as the R-Car SYSC PM Domain may be initialized,
and devices may be added to it, before the CPG/MSSR Clock Domain is
initialized.

Dummy callbacks are provided for the case where CPG/MSTP support is not
included, so the rcar-sysc driver won't have to care about this.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-04-20 09:17:07 +02:00
..
clk-div6.c
clk-div6.h clk: renesas: div6: use RENESAS for #define 2016-03-15 18:13:02 -07:00
clk-emev2.c
clk-mstp.c clk: renesas: mstp: Clarify cpg_mstp_{at,de}tach_dev() domain parameter 2016-04-07 17:27:13 +02:00
clk-r8a73a4.c
clk-r8a7740.c
clk-r8a7778.c
clk-r8a7779.c
clk-rcar-gen2.c
clk-rz.c
clk-sh73a0.c
Kconfig clk: renesas: Provide Kconfig symbols for CPG/MSSR and CPG/MSTP support 2016-04-20 09:16:58 +02:00
Makefile clk: renesas: Provide Kconfig symbols for CPG/MSSR and CPG/MSTP support 2016-04-20 09:16:58 +02:00
r8a7795-cpg-mssr.c clk: renesas: r8a7795: add RWDT clock 2016-04-06 09:48:49 +02:00
renesas-cpg-mssr.c clk: renesas: cpg-mssr: Export cpg_mssr_{at,de}tach_dev() 2016-04-20 09:17:07 +02:00
renesas-cpg-mssr.h clk: renesas: cpg-mssr: add generic support for read-only DIV6 clocks 2016-04-06 09:48:37 +02:00