summaryrefslogtreecommitdiffstats
path: root/drivers/clk/davinci (follow)
Commit message (Collapse)AuthorAgeFilesLines
* clk: davinci: add a reset lookup table for psc0Bartosz Golaszewski2018-04-062-0/+8
| | | | | | | | | In order to be able to use the reset framework in legacy boot mode as well, add the reset lookup table to the psc driver for da850 variant. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Reviewed-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: Remove redundant dev_err callsWei Yongjun2018-03-232-6/+2
| | | | | | | | | | There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: cfgchip: Add TI DA8XX USB PHY clocksDavid Lechner2018-03-201-0/+351
| | | | | | | | | | | | | This adds a new driver for the USB PHY clocks in the CFGCHIP2 syscon register on TI DA8XX-type SoCs. The USB0 (USB 2.0) PHY clock is an interesting case because it calls clk_enable() in a reentrant way. The USB 2.0 PSC only has to be enabled temporarily while we are locking the PLL, which takes place during the clk_enable() callback. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: New driver for TI DA8XX CFGCHIP clocksDavid Lechner2018-03-202-0/+441
| | | | | | | | This adds a new driver for the gate and multiplexer clocks in the CFGCHIPn syscon registers on TI DA8XX-type SoCs. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: Add platform information for TI DM646x PSCDavid Lechner2018-03-204-0/+83
| | | | | | | | This adds platform-specific declarations for the PSC clocks on TI DM646x based systems. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: Add platform information for TI DM644x PSCDavid Lechner2018-03-204-0/+86
| | | | | | | | This adds platform-specific declarations for the PSC clocks on TI DM644x based systems. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: Add platform information for TI DM365 PSCDavid Lechner2018-03-204-0/+99
| | | | | | | | | This adds platform-specific declarations for the PSC clocks on TI DM365 based systems. Signed-off-by: David Lechner <david@lechnology.com> Reviewed-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: Add platform information for TI DM355 PSCDavid Lechner2018-03-204-0/+91
| | | | | | | | This adds platform-specific declarations for the PSC clocks on TI DM355 based systems. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: Add platform information for TI DA850 PSCDavid Lechner2018-03-204-0/+158
| | | | | | | | This adds platform-specific declarations for the PSC clocks on TI DA850/ OMAP-L138/AM18XX SoCs. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: Add platform information for TI DA830 PSCDavid Lechner2018-03-204-0/+122
| | | | | | | | This adds platform-specific declarations for the PSC clocks on TI DA830/ OMAP-L137/AM17XX SoCs. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: New driver for davinci PSC clocksDavid Lechner2018-03-203-0/+641
| | | | | | | | | | | | | | | | 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>
* clk: davinci: Add platform information for TI DM646x PLLDavid Lechner2018-03-204-0/+90
| | | | | | | | This adds platform-specific declarations for the PLL clocks on TI DM646x based systems. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: Add platform information for TI DM644x PLLDavid Lechner2018-03-204-0/+86
| | | | | | | | This adds platform-specific declarations for the PLL clocks on TI DM644x based systems. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: Add platform information for TI DM365 PLLDavid Lechner2018-03-204-0/+151
| | | | | | | | This adds platform-specific declarations for the PLL clocks on TI DM365 based systems. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: Add platform information for TI DM355 PLLDavid Lechner2018-03-204-0/+85
| | | | | | | | This adds platform-specific declarations for the PLL clocks on TI DM355 based systems. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: Add platform information for TI DA850 PLLDavid Lechner2018-03-204-0/+222
| | | | | | | | This adds platform-specific declarations for the PLL clocks on TI DA850/ OMAP-L138/AM18XX SoCs. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: Add platform information for TI DA830 PLLDavid Lechner2018-03-204-0/+76
| | | | | | | | This adds platform-specific declarations for the PLL clocks on TI DA830/ OMAP-L137/AM17XX SoCs. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
* clk: davinci: New driver for davinci PLL clocksDavid Lechner2018-03-203-0/+1013
This adds a new driver for mach-davinci PLL clocks. This is porting the code from arch/arm/mach-davinci/clock.c to the common clock framework. Additionally, it adds device tree support for these clocks. The ifeq ($(CONFIG_COMMON_CLK), y) in the Makefile is needed to prevent compile errors until the clock code in arch/arm/mach-davinci is removed. 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 register layouts are a bit different, which would add even more if/else mess to the keystone clocks. And the keystone PLL driver doesn't support setting clock rates. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>