1
2
3
4
5
6
7
8
9
10 #ifndef __DRIVERS_CLK_TEGRA_CLK_DFLL_H
11 #define __DRIVERS_CLK_TEGRA_CLK_DFLL_H
12
13 #include <linux/platform_device.h>
14 #include <linux/reset.h>
15 #include <linux/types.h>
16
17 #include "cvb.h"
18
19
20
21
22
23
24
25
26
27
28
29 struct tegra_dfll_soc_data {
30 struct device *dev;
31 unsigned long max_freq;
32 const struct cvb_table *cvb;
33 struct rail_alignment alignment;
34
35 void (*init_clock_trimmers)(void);
36 void (*set_clock_trimmers_high)(void);
37 void (*set_clock_trimmers_low)(void);
38 };
39
40 int tegra_dfll_register(struct platform_device *pdev,
41 struct tegra_dfll_soc_data *soc);
42 struct tegra_dfll_soc_data *tegra_dfll_unregister(struct platform_device *pdev);
43 int tegra_dfll_runtime_suspend(struct device *dev);
44 int tegra_dfll_runtime_resume(struct device *dev);
45
46 #endif