.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
1 | 2 | /* |
---|
2 | | - * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. |
---|
| 3 | + * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. |
---|
3 | 4 | * |
---|
4 | 5 | * This software is licensed under the terms of the GNU General Public |
---|
5 | 6 | * License version 2, as published by the Free Software Foundation, and |
---|
.. | .. |
---|
56 | 57 | .thermtrip_any_en_mask = TEGRA210_THERMTRIP_ANY_EN_MASK, |
---|
57 | 58 | .thermtrip_enable_mask = TEGRA210_THERMTRIP_CPU_EN_MASK, |
---|
58 | 59 | .thermtrip_threshold_mask = TEGRA210_THERMTRIP_CPU_THRESH_MASK, |
---|
| 60 | + .thermctl_isr_mask = THERM_IRQ_CPU_MASK, |
---|
59 | 61 | .thermctl_lvl0_offset = THERMCTL_LEVEL0_GROUP_CPU, |
---|
60 | 62 | .thermctl_lvl0_up_thresh_mask = TEGRA210_THERMCTL_LVL0_UP_THRESH_MASK, |
---|
61 | 63 | .thermctl_lvl0_dn_thresh_mask = TEGRA210_THERMCTL_LVL0_DN_THRESH_MASK, |
---|
.. | .. |
---|
74 | 76 | .thermtrip_any_en_mask = TEGRA210_THERMTRIP_ANY_EN_MASK, |
---|
75 | 77 | .thermtrip_enable_mask = TEGRA210_THERMTRIP_GPU_EN_MASK, |
---|
76 | 78 | .thermtrip_threshold_mask = TEGRA210_THERMTRIP_GPUMEM_THRESH_MASK, |
---|
| 79 | + .thermctl_isr_mask = THERM_IRQ_GPU_MASK, |
---|
77 | 80 | .thermctl_lvl0_offset = THERMCTL_LEVEL0_GROUP_GPU, |
---|
78 | 81 | .thermctl_lvl0_up_thresh_mask = TEGRA210_THERMCTL_LVL0_UP_THRESH_MASK, |
---|
79 | 82 | .thermctl_lvl0_dn_thresh_mask = TEGRA210_THERMCTL_LVL0_DN_THRESH_MASK, |
---|
.. | .. |
---|
90 | 93 | .thermtrip_any_en_mask = TEGRA210_THERMTRIP_ANY_EN_MASK, |
---|
91 | 94 | .thermtrip_enable_mask = TEGRA210_THERMTRIP_TSENSE_EN_MASK, |
---|
92 | 95 | .thermtrip_threshold_mask = TEGRA210_THERMTRIP_TSENSE_THRESH_MASK, |
---|
| 96 | + .thermctl_isr_mask = THERM_IRQ_TSENSE_MASK, |
---|
93 | 97 | .thermctl_lvl0_offset = THERMCTL_LEVEL0_GROUP_TSENSE, |
---|
94 | 98 | .thermctl_lvl0_up_thresh_mask = TEGRA210_THERMCTL_LVL0_UP_THRESH_MASK, |
---|
95 | 99 | .thermctl_lvl0_dn_thresh_mask = TEGRA210_THERMCTL_LVL0_DN_THRESH_MASK, |
---|
.. | .. |
---|
108 | 112 | .thermtrip_any_en_mask = TEGRA210_THERMTRIP_ANY_EN_MASK, |
---|
109 | 113 | .thermtrip_enable_mask = TEGRA210_THERMTRIP_MEM_EN_MASK, |
---|
110 | 114 | .thermtrip_threshold_mask = TEGRA210_THERMTRIP_GPUMEM_THRESH_MASK, |
---|
| 115 | + .thermctl_isr_mask = THERM_IRQ_MEM_MASK, |
---|
111 | 116 | .thermctl_lvl0_offset = THERMCTL_LEVEL0_GROUP_MEM, |
---|
112 | 117 | .thermctl_lvl0_up_thresh_mask = TEGRA210_THERMCTL_LVL0_UP_THRESH_MASK, |
---|
113 | 118 | .thermctl_lvl0_dn_thresh_mask = TEGRA210_THERMCTL_LVL0_DN_THRESH_MASK, |
---|
.. | .. |
---|
203 | 208 | .fuse_spare_realignment = 0, |
---|
204 | 209 | }; |
---|
205 | 210 | |
---|
| 211 | +static struct tsensor_group_thermtrips tegra210_tsensor_thermtrips[] = { |
---|
| 212 | + {.id = TEGRA124_SOCTHERM_SENSOR_NUM}, |
---|
| 213 | + {.id = TEGRA124_SOCTHERM_SENSOR_NUM}, |
---|
| 214 | + {.id = TEGRA124_SOCTHERM_SENSOR_NUM}, |
---|
| 215 | + {.id = TEGRA124_SOCTHERM_SENSOR_NUM}, |
---|
| 216 | +}; |
---|
| 217 | + |
---|
206 | 218 | const struct tegra_soctherm_soc tegra210_soctherm = { |
---|
207 | 219 | .tsensors = tegra210_tsensors, |
---|
208 | 220 | .num_tsensors = ARRAY_SIZE(tegra210_tsensors), |
---|
.. | .. |
---|
212 | 224 | .thresh_grain = TEGRA210_THRESH_GRAIN, |
---|
213 | 225 | .bptt = TEGRA210_BPTT, |
---|
214 | 226 | .use_ccroc = false, |
---|
| 227 | + .thermtrips = tegra210_tsensor_thermtrips, |
---|
215 | 228 | }; |
---|