clk: meson-g12a: add PCIE PLL clocks
authorNeil Armstrong <narmstrong@baylibre.com>
Thu, 7 Mar 2019 14:14:55 +0000 (15:14 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 1 Apr 2019 08:45:11 +0000 (10:45 +0200)
commit34775209ba37bff3b4e60ddee0a2d69966146a5d
tree56e95653b6f0ae3dfc4da6b7cc362d450e52470a
parent39b8500283b45252e2f9ad9d60992f2c0d3a1659
clk: meson-g12a: add PCIE PLL clocks

Add the PCIe reference clock feeding the USB3 + PCIE combo PHY.

This PLL needs a very precise register sequence to permit to be locked,
thus using the specific clk-pll pcie ops.

The PLL is then followed by :
- a fixed /2 divider
- a 5-bit 1-based divider
- a final /2 divider

This reference clock is fixed to 100MHz, thus only a single PLL setup
is added.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lkml.kernel.org/r/20190307141455.23879-4-narmstrong@baylibre.com
drivers/clk/meson/g12a.c
drivers/clk/meson/g12a.h