diff options
| author | David Lechner <david@lechnology.com> | 2018-03-15 22:52:18 -0400 |
|---|---|---|
| committer | Stephen Boyd <sboyd@kernel.org> | 2018-03-20 13:16:26 -0400 |
| commit | 2d172691515961cad2abb4bf1b15d187bf2106cf (patch) | |
| tree | b855d46c04e99a680f1ecdacce09d67882a3dd0a /include/linux/platform_data | |
| parent | b6e37ce2371dac0d696332d8e74c110030ab47c3 (diff) | |
clk: davinci: New driver for davinci PLL clocks
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>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/clk-davinci-pll.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/platform_data/clk-davinci-pll.h b/include/linux/platform_data/clk-davinci-pll.h new file mode 100644 index 000000000000..e55dab1d578b --- /dev/null +++ b/include/linux/platform_data/clk-davinci-pll.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 2 | /* | ||
| 3 | * PLL clock driver for TI Davinci SoCs | ||
| 4 | * | ||
| 5 | * Copyright (C) 2018 David Lechner <david@lechnology.com> | ||
| 6 | */ | ||
| 7 | |||
| 8 | #ifndef __LINUX_PLATFORM_DATA_CLK_DAVINCI_PLL_H__ | ||
| 9 | #define __LINUX_PLATFORM_DATA_CLK_DAVINCI_PLL_H__ | ||
| 10 | |||
| 11 | #include <linux/regmap.h> | ||
| 12 | |||
| 13 | /** | ||
| 14 | * davinci_pll_platform_data | ||
| 15 | * @cfgchip: CFGCHIP syscon regmap | ||
| 16 | */ | ||
| 17 | struct davinci_pll_platform_data { | ||
| 18 | struct regmap *cfgchip; | ||
| 19 | }; | ||
| 20 | |||
| 21 | #endif /* __LINUX_PLATFORM_DATA_CLK_DAVINCI_PLL_H__ */ | ||
