clk: renesas: Provide Kconfig symbols for CPG/MSSR and CPG/MSTP support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 13 Apr 2016 09:08:42 +0000 (11:08 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 20 Apr 2016 07:16:58 +0000 (09:16 +0200)
commita5bd7f7a726c97698dacb062e4635da13e5ea8c4
treeea8d8ae674f669ff4092b3487170150c79c6494a
parent12a56817b329d8a73ab53bad09aa976aeea46db9
clk: renesas: Provide Kconfig symbols for CPG/MSSR and CPG/MSTP support

Currently the decision whether to build the renesas-cpg-mssr and
clk-mstp drivers is handled by Makefile logic.  However, the rcar-sysc
driver will need to know whether CPG/MSSR and/or CPG/MSTP support are
available or not.

To avoid having to duplicate this logic, move it to Kconfig. Provide
non-visible CLK_RENESAS_CPG_MSSR and CLK_RENESAS_CPG_MSTP Kconfig
symbols, which can be used by both Makefiles and C code.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/clk/Kconfig
drivers/clk/renesas/Kconfig [new file with mode: 0644]
drivers/clk/renesas/Makefile