clk: Add a basic multiplier clock
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 19 May 2015 20:19:33 +0000 (22:19 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 21 Oct 2015 19:51:27 +0000 (21:51 +0200)
commitf2e0a53271a439a2ab142645867f0cde45b2b3cd
tree9ac4820d6b1c42452e3a80ea8667822318c6a486
parent7d6ddad659f7220438b863977b0c4032e3d77dda
clk: Add a basic multiplier clock

Some clocks are using a multiplier component, however, unlike their mux,
gate or divider counterpart, these factors don't have a basic clock
implementation.

This leads to code duplication across platforms that want to use that kind
of clocks, and the impossibility to use the composite clocks with such a
clock without defining your own rate operations.

Create such a driver in order to remove these issues, and hopefully factor
the implementations, reducing code size across platforms and consolidating
the various implementations.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/Makefile
drivers/clk/clk-multiplier.c [new file with mode: 0644]
include/linux/clk-provider.h