clk: meson: add audio clock divider support
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 13 Feb 2017 23:13:55 +0000 (00:13 +0100)
committerJerome Brunet <jbrunet@baylibre.com>
Fri, 7 Apr 2017 14:50:44 +0000 (16:50 +0200)
commit59e85335dda9826284a1f0f160ea8f10b59e0568
tree6cf1f00b7d262230abc34f8cce4cb1c2b9fc25d7
parenta70c6e06ed7c8c84612c7e3dada9d6895b65c70a
clk: meson: add audio clock divider support

The audio divider needs a specific clock divider driver.
With am mpll parent clock, which is able to provide a fairly precise rate,
the generic divider tends to select low value of the divider. In such case
the quality of the clock is very poor. For the same final rate, maximizing
the audio clock divider value and selecting the corresponding mpll rate
gives better results. This is what this driver aims to acheive. So far, so
good.

Cc: Hendrik v. Raven <hendrik@consetetur.de>
Acked-by: Michael Turquette <mturquette@baylibre.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/Makefile
drivers/clk/meson/clk-audio-divider.c [new file with mode: 0644]
drivers/clk/meson/clkc.h