]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: meson: mpll: properly handle spread spectrum
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 13 May 2019 12:31:09 +0000 (14:31 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Mon, 20 May 2019 10:17:57 +0000 (12:17 +0200)
commitf9b3eeebef6aabaa37a351715374de53b6da860c
treef47d9fee177be371797d0ed599df16d1336f9c1d
parent3ff46efbcd90d3d469de8eddaf03d12293aaa50c
clk: meson: mpll: properly handle spread spectrum

The bit 'SSEN' available on some MPLL DSS outputs is not related to the
fractional part of the divider but to the function called
'Spread Spectrum'.

This function might be used to solve EM issues by adding a jitter on
clock signal. This widens the signal spectrum and weakens the peaks in it.

While spread spectrum might be useful for some application, it is
problematic for others, such as audio.

This patch introduce a new flag to the MPLL driver to enable (or not) the
spread spectrum function.

Fixes: 1f737ffa13ef ("clk: meson: mpll: fix mpll0 fractional part ignored")
Tested-by: Martin Blumenstingl<martin.blumenstingl@googlemail.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/clk-mpll.c
drivers/clk/meson/clk-mpll.h