From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Anderson Date: Wed, 25 Dec 2019 00:13:42 -0500 Subject: [PATCH 0/2] clk: Generalize clock_gate2 for use outside of imx Message-ID: <0e4a9520-e210-a313-c8ee-c6f24228f723@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de I'm implementing a clock device and I would like to use the clock_gate2 from imx. This patch series adapts it to general use. An alternative is to use the composite clock, but it is unsuitable for clocks with no mux. I have a patch to adapt the composite to work without muxes (which will be sent next), but I figured this might be useful on its own. Sean Anderson (2): clk: Move clk-gate2 to clock driver directory clk: Add option to restrict clk-gate2 to one bit toggle drivers/clk/Makefile | 1 + drivers/clk/{imx => }/clk-gate2.c | 33 +++++++++++++------------------ drivers/clk/imx/Makefile | 2 +- drivers/clk/imx/clk.h | 5 ----- include/linux/clk-provider.h | 26 ++++++++++++++++++++---- 5 files changed, 38 insertions(+), 29 deletions(-) rename drivers/clk/{imx => }/clk-gate2.c (81%) -- 2.24.1