2018-05-25 12:11:47 -06:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
/*
|
|
|
|
* Clock drivers for TI DaVinci PLL and PSC controllers
|
|
|
|
*
|
|
|
|
* Copyright (C) 2018 David Lechner <david@lechnology.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LINUX_CLK_DAVINCI_PLL_H___
|
|
|
|
#define __LINUX_CLK_DAVINCI_PLL_H___
|
|
|
|
|
|
|
|
#include <linux/device.h>
|
|
|
|
#include <linux/regmap.h>
|
|
|
|
|
|
|
|
/* function for registering clocks in early boot */
|
|
|
|
|
2018-05-25 12:11:50 -06:00
|
|
|
#ifdef CONFIG_ARCH_DAVINCI_DA830
|
2018-05-25 12:11:47 -06:00
|
|
|
int da830_pll_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
|
2018-05-25 12:11:50 -06:00
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_ARCH_DAVINCI_DA850
|
2018-05-25 12:11:47 -06:00
|
|
|
int da850_pll0_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
|
2018-05-25 12:11:50 -06:00
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_ARCH_DAVINCI_DM355
|
2018-05-25 12:11:47 -06:00
|
|
|
int dm355_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
|
2018-05-25 12:11:50 -06:00
|
|
|
int dm355_psc_init(struct device *dev, void __iomem *base);
|
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_ARCH_DAVINCI_DM365
|
2018-05-25 12:11:47 -06:00
|
|
|
int dm365_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
|
|
|
|
int dm365_pll2_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
|
2018-05-25 12:11:49 -06:00
|
|
|
int dm365_psc_init(struct device *dev, void __iomem *base);
|
2018-05-25 12:11:50 -06:00
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_ARCH_DAVINCI_DM644x
|
|
|
|
int dm644x_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
|
2018-05-25 12:11:49 -06:00
|
|
|
int dm644x_psc_init(struct device *dev, void __iomem *base);
|
2018-05-25 12:11:50 -06:00
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_ARCH_DAVINCI_DM646x
|
|
|
|
int dm646x_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
|
2018-05-25 12:11:49 -06:00
|
|
|
int dm646x_psc_init(struct device *dev, void __iomem *base);
|
2018-05-25 12:11:50 -06:00
|
|
|
#endif
|
2018-05-25 12:11:49 -06:00
|
|
|
|
2018-05-25 12:11:47 -06:00
|
|
|
#endif /* __LINUX_CLK_DAVINCI_PLL_H___ */
|