forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/clk/tegra/clk-dfll.h
....@@ -1,18 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * clk-dfll.h - prototypes and macros for the Tegra DFLL clocksource driver
3
- * Copyright (C) 2013 NVIDIA Corporation. All rights reserved.
4
+ * Copyright (C) 2013-2019 NVIDIA Corporation. All rights reserved.
45 *
56 * Aleksandr Frid <afrid@nvidia.com>
67 * Paul Walmsley <pwalmsley@nvidia.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15
- * more details.
168 */
179
1810 #ifndef __DRIVERS_CLK_TEGRA_CLK_DFLL_H
....@@ -22,11 +14,14 @@
2214 #include <linux/reset.h>
2315 #include <linux/types.h>
2416
17
+#include "cvb.h"
18
+
2519 /**
2620 * struct tegra_dfll_soc_data - SoC-specific hooks/integration for the DFLL driver
2721 * @dev: struct device * that holds the OPP table for the DFLL
2822 * @max_freq: maximum frequency supported on this SoC
2923 * @cvb: CPU frequency table for this SoC
24
+ * @alignment: parameters of the regulator step and offset
3025 * @init_clock_trimmers: callback to initialize clock trimmers
3126 * @set_clock_trimmers_high: callback to tune clock trimmers for high voltage
3227 * @set_clock_trimmers_low: callback to tune clock trimmers for low voltage
....@@ -35,6 +30,7 @@
3530 struct device *dev;
3631 unsigned long max_freq;
3732 const struct cvb_table *cvb;
33
+ struct rail_alignment alignment;
3834
3935 void (*init_clock_trimmers)(void);
4036 void (*set_clock_trimmers_high)(void);
....@@ -46,5 +42,7 @@
4642 struct tegra_dfll_soc_data *tegra_dfll_unregister(struct platform_device *pdev);
4743 int tegra_dfll_runtime_suspend(struct device *dev);
4844 int tegra_dfll_runtime_resume(struct device *dev);
45
+int tegra_dfll_suspend(struct device *dev);
46
+int tegra_dfll_resume(struct device *dev);
4947
5048 #endif /* __DRIVERS_CLK_TEGRA_CLK_DFLL_H */