clk: davinci: New driver for davinci PSC clocks
authorDavid Lechner <david@lechnology.com>
Fri, 16 Mar 2018 02:52:26 +0000 (21:52 -0500)
committerStephen Boyd <sboyd@kernel.org>
Tue, 20 Mar 2018 17:16:26 +0000 (10:16 -0700)
commitc6ed4d734bc7f731709dab0ffd69eed499dd5277
tree88e087646ed9fc7ac9c99eb8af3d368dbc9eac7a
parent21cdf7269f9dcd8dc22d152fbfee85e4ea57289f
clk: davinci: New driver for davinci PSC clocks

This adds a new driver for mach-davinci PSC clocks. This is porting the
code from arch/arm/mach-davinci/psc.c to the common clock framework and
is converting it to use regmap to simplify the code. Additionally, it
adds device tree support for these clocks.

Note: although there are similar clocks for TI Keystone we are not able
to share the code for a few reasons. The keystone clocks are device tree
only and use legacy one-node-per-clock bindings. Also the keystone
driver makes the assumption that there is only one PSC per SoC and uses
global variables, but here we have two controllers per SoC.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/davinci/Makefile
drivers/clk/davinci/psc.c [new file with mode: 0644]
drivers/clk/davinci/psc.h [new file with mode: 0644]