David Lechner | 76c9dd9 | 2018-05-25 13:11:47 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Clock drivers for TI DaVinci PLL and PSC controllers |
| 4 | * |
| 5 | * Copyright (C) 2018 David Lechner <david@lechnology.com> |
| 6 | */ |
| 7 | |
| 8 | #ifndef __LINUX_CLK_DAVINCI_PLL_H___ |
| 9 | #define __LINUX_CLK_DAVINCI_PLL_H___ |
| 10 | |
| 11 | #include <linux/device.h> |
| 12 | #include <linux/regmap.h> |
| 13 | |
| 14 | /* function for registering clocks in early boot */ |
| 15 | |
David Lechner | 4eff0be | 2018-05-25 13:11:50 -0500 | [diff] [blame] | 16 | #ifdef CONFIG_ARCH_DAVINCI_DA830 |
David Lechner | 76c9dd9 | 2018-05-25 13:11:47 -0500 | [diff] [blame] | 17 | int da830_pll_init(struct device *dev, void __iomem *base, struct regmap *cfgchip); |
David Lechner | 4eff0be | 2018-05-25 13:11:50 -0500 | [diff] [blame] | 18 | #endif |
| 19 | #ifdef CONFIG_ARCH_DAVINCI_DA850 |
David Lechner | 76c9dd9 | 2018-05-25 13:11:47 -0500 | [diff] [blame] | 20 | int da850_pll0_init(struct device *dev, void __iomem *base, struct regmap *cfgchip); |
David Lechner | 4eff0be | 2018-05-25 13:11:50 -0500 | [diff] [blame] | 21 | #endif |
| 22 | #ifdef CONFIG_ARCH_DAVINCI_DM355 |
David Lechner | 76c9dd9 | 2018-05-25 13:11:47 -0500 | [diff] [blame] | 23 | int dm355_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip); |
David Lechner | 4eff0be | 2018-05-25 13:11:50 -0500 | [diff] [blame] | 24 | int dm355_psc_init(struct device *dev, void __iomem *base); |
| 25 | #endif |
| 26 | #ifdef CONFIG_ARCH_DAVINCI_DM365 |
David Lechner | 76c9dd9 | 2018-05-25 13:11:47 -0500 | [diff] [blame] | 27 | int dm365_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip); |
| 28 | int dm365_pll2_init(struct device *dev, void __iomem *base, struct regmap *cfgchip); |
David Lechner | 043eaa7 | 2018-05-25 13:11:49 -0500 | [diff] [blame] | 29 | int dm365_psc_init(struct device *dev, void __iomem *base); |
David Lechner | 4eff0be | 2018-05-25 13:11:50 -0500 | [diff] [blame] | 30 | #endif |
| 31 | #ifdef CONFIG_ARCH_DAVINCI_DM644x |
| 32 | int dm644x_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip); |
David Lechner | 043eaa7 | 2018-05-25 13:11:49 -0500 | [diff] [blame] | 33 | int dm644x_psc_init(struct device *dev, void __iomem *base); |
David Lechner | 4eff0be | 2018-05-25 13:11:50 -0500 | [diff] [blame] | 34 | #endif |
| 35 | #ifdef CONFIG_ARCH_DAVINCI_DM646x |
| 36 | int dm646x_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip); |
David Lechner | 043eaa7 | 2018-05-25 13:11:49 -0500 | [diff] [blame] | 37 | int dm646x_psc_init(struct device *dev, void __iomem *base); |
David Lechner | 4eff0be | 2018-05-25 13:11:50 -0500 | [diff] [blame] | 38 | #endif |
David Lechner | 043eaa7 | 2018-05-25 13:11:49 -0500 | [diff] [blame] | 39 | |
David Lechner | 76c9dd9 | 2018-05-25 13:11:47 -0500 | [diff] [blame] | 40 | #endif /* __LINUX_CLK_DAVINCI_PLL_H___ */ |