OSDN Git Service

clk: vc5: Enable addition output configurations of the Versaclock
authorAdam Ford <aford173@gmail.com>
Wed, 3 Jun 2020 15:43:29 +0000 (10:43 -0500)
committerStephen Boyd <sboyd@kernel.org>
Tue, 23 Jun 2020 02:04:58 +0000 (19:04 -0700)
commit260249f929e81d3d5764117fdd6b9e43eb8fb1d5
treee53b6f726cd07e8dc0d2ccdf868deb6f8c9613d2
parent34662f6e30846ae0f82bbc9605deff67781f6616
clk: vc5: Enable addition output configurations of the Versaclock

The existing driver is expecting the Versaclock to be pre-programmed,
and only sets the output frequency.  Unfortunately, not all devices
are pre-programmed, and the Versaclock chip has more options beyond
just the frequency.

This patch enables the following additional features:

   - Programmable voltage: 1.8V, 2.5V, or 3.3V​
   - Slew Percentage of normal: 85%, 90%, or 100%
   - Output Type: LVPECL, CMOS, HCSL, or LVDS

Signed-off-by: Adam Ford <aford173@gmail.com>
Link: https://lore.kernel.org/r/20200603154329.31579-3-aford173@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-versaclock5.c