*
*/
-#include <dt-bindings/thermal/tegra210-dfll-trips.h>
#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/clkdev.h>
seq_printf(s, "THERM CAPS:%s\n", size ? "" : " NONE");
for (i = 0; i < size; i++) {
tv = td->soc->thermal_cap_table[i];
- if (tv.temp == TEGRA210_DFLL_THERMAL_CAP_NOCAP / 1000)
+ if (tv.temp == DFLL_THERMAL_CAP_NOCAP / 1000)
continue;
v = find_mv_out_floor(td, tv.millivolts);
seq_printf(s, "%3dC.. %5dmV\n",
const char *cvb_version;
};
+
+/*
+ * These thermal boundaries are not set in thermal zone as trip-points, but
+ * must be below/above all other actually set DFLL thermal trip-points.
+ */
+#define DFLL_THERMAL_CAP_NOCAP 0
+#define DFLL_THERMAL_FLOOR_NOFLOOR 125000
+
int tegra_dfll_register(struct platform_device *pdev,
struct tegra_dfll_soc_data *soc);
int tegra_dfll_unregister(struct platform_device *pdev);
static struct thermal_tv tegra210_thermal_floor_table[] = {
{TEGRA210_DFLL_THERMAL_FLOOR_0 / 1000, 950},
- {TEGRA210_DFLL_THERMAL_FLOOR_4 / 1000, 0},
+ {DFLL_THERMAL_FLOOR_NOFLOOR / 1000, 0},
};
static const struct thermal_tv tegra210_thermal_cap_table[] = {
- {TEGRA210_DFLL_THERMAL_CAP_NOCAP / 1000, INT_MAX},
+ {DFLL_THERMAL_CAP_NOCAP / 1000, INT_MAX},
{TEGRA210_DFLL_THERMAL_CAP_0 / 1000, 1170},
{TEGRA210_DFLL_THERMAL_CAP_1 / 1000, 1132},
};
static const struct thermal_tv tegra210_thermal_cap_ucm2_table[] = {
- {TEGRA210_DFLL_THERMAL_CAP_NOCAP / 1000, INT_MAX},
+ {DFLL_THERMAL_CAP_NOCAP / 1000, INT_MAX},
{TEGRA210_DFLL_THERMAL_CAP_0 / 1000, 1162},
{TEGRA210_DFLL_THERMAL_CAP_1 / 1000, 1090},
};
static struct thermal_tv tegra210b01_thermal_floor_table[] = {
{TEGRA210B01_DFLL_THERMAL_FLOOR_0 / 1000, 800},
- {TEGRA210B01_DFLL_THERMAL_FLOOR_NOFLOOR / 1000, 0},
+ {DFLL_THERMAL_FLOOR_NOFLOOR / 1000, 0},
};
static const struct thermal_tv tegra210b01_thermal_cap_table[] = {
- {TEGRA210B01_DFLL_THERMAL_CAP_NOCAP / 1000, INT_MAX},
+ {DFLL_THERMAL_CAP_NOCAP / 1000, INT_MAX},
{TEGRA210B01_DFLL_THERMAL_CAP_0 / 1000, 1060},
{TEGRA210B01_DFLL_THERMAL_CAP_1 / 1000, 1010},
};