clk: davinci: psc: allow for dev == NULL

On some davinci SoCs, we need to register the PSC clocks during early
boot because they are needed for clocksource/clockevent. These changes
allow for dev == NULL because in this case, we won't have a platform
device for the clocks.

Signed-off-by: David Lechner <david@lechnology.com>
Reviewed-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/20180525181150.17873-9-david@lechnology.com
This commit is contained in:
David Lechner
2018-05-25 13:11:49 -05:00
committed by Michael Turquette
parent 17d8bacf19
commit 043eaa70ad
6 changed files with 57 additions and 18 deletions

View File

@@ -21,4 +21,9 @@ int dm365_pll2_init(struct device *dev, void __iomem *base, struct regmap *cfgch
int dm644x_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
int dm646x_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
int dm355_psc_init(struct device *dev, void __iomem *base);
int dm365_psc_init(struct device *dev, void __iomem *base);
int dm644x_psc_init(struct device *dev, void __iomem *base);
int dm646x_psc_init(struct device *dev, void __iomem *base);
#endif /* __LINUX_CLK_DAVINCI_PLL_H___ */