Searched refs:sku_info (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/drivers/soc/tegra/fuse/
H A Dspeedo-tegra30.c122 static void __init rev_sku_to_speedo_ids(struct tegra_sku_info *sku_info) rev_sku_to_speedo_ids() argument
126 switch (sku_info->revision) { rev_sku_to_speedo_ids()
128 sku_info->cpu_speedo_id = 0; rev_sku_to_speedo_ids()
129 sku_info->soc_speedo_id = 0; rev_sku_to_speedo_ids()
134 switch (sku_info->sku_id) { rev_sku_to_speedo_ids()
137 sku_info->cpu_speedo_id = 1; rev_sku_to_speedo_ids()
138 sku_info->soc_speedo_id = 1; rev_sku_to_speedo_ids()
144 sku_info->cpu_speedo_id = 2; rev_sku_to_speedo_ids()
145 sku_info->soc_speedo_id = 2; rev_sku_to_speedo_ids()
149 sku_info->cpu_speedo_id = 4; rev_sku_to_speedo_ids()
150 sku_info->soc_speedo_id = 1; rev_sku_to_speedo_ids()
161 sku_info->cpu_speedo_id = 5; rev_sku_to_speedo_ids()
162 sku_info->soc_speedo_id = 2; rev_sku_to_speedo_ids()
166 sku_info->cpu_speedo_id = 6; rev_sku_to_speedo_ids()
167 sku_info->soc_speedo_id = 2; rev_sku_to_speedo_ids()
178 sku_info->cpu_speedo_id = 7; rev_sku_to_speedo_ids()
179 sku_info->soc_speedo_id = 1; rev_sku_to_speedo_ids()
183 sku_info->cpu_speedo_id = 3; rev_sku_to_speedo_ids()
184 sku_info->soc_speedo_id = 2; rev_sku_to_speedo_ids()
193 sku_info->cpu_speedo_id = 8; rev_sku_to_speedo_ids()
194 sku_info->soc_speedo_id = 1; rev_sku_to_speedo_ids()
198 sku_info->cpu_speedo_id = 1; rev_sku_to_speedo_ids()
199 sku_info->soc_speedo_id = 1; rev_sku_to_speedo_ids()
203 sku_info->cpu_speedo_id = 2; rev_sku_to_speedo_ids()
204 sku_info->soc_speedo_id = 2; rev_sku_to_speedo_ids()
208 sku_info->cpu_speedo_id = 3; rev_sku_to_speedo_ids()
209 sku_info->soc_speedo_id = 2; rev_sku_to_speedo_ids()
215 sku_info->cpu_speedo_id = 2; rev_sku_to_speedo_ids()
216 sku_info->soc_speedo_id = 2; rev_sku_to_speedo_ids()
220 sku_info->cpu_speedo_id = 3; rev_sku_to_speedo_ids()
221 sku_info->soc_speedo_id = 2; rev_sku_to_speedo_ids()
230 pr_warn("Tegra Unknown SKU %d\n", sku_info->sku_id); rev_sku_to_speedo_ids()
231 sku_info->cpu_speedo_id = 0; rev_sku_to_speedo_ids()
232 sku_info->soc_speedo_id = 0; rev_sku_to_speedo_ids()
238 pr_warn("Tegra Unknown chip rev %d\n", sku_info->revision); rev_sku_to_speedo_ids()
239 sku_info->cpu_speedo_id = 0; rev_sku_to_speedo_ids()
240 sku_info->soc_speedo_id = 0; rev_sku_to_speedo_ids()
246 void __init tegra30_init_speedo_data(struct tegra_sku_info *sku_info) tegra30_init_speedo_data() argument
258 rev_sku_to_speedo_ids(sku_info); tegra30_init_speedo_data()
267 sku_info->cpu_process_id = i - 1; tegra30_init_speedo_data()
269 if (sku_info->cpu_process_id == -1) { tegra30_init_speedo_data()
272 sku_info->cpu_process_id = 0; tegra30_init_speedo_data()
273 sku_info->cpu_speedo_id = 1; tegra30_init_speedo_data()
280 sku_info->soc_process_id = i - 1; tegra30_init_speedo_data()
282 if (sku_info->soc_process_id == -1) { tegra30_init_speedo_data()
285 sku_info->soc_process_id = 0; tegra30_init_speedo_data()
286 sku_info->soc_speedo_id = 1; tegra30_init_speedo_data()
H A Dspeedo-tegra210.c68 static void __init rev_sku_to_speedo_ids(struct tegra_sku_info *sku_info, rev_sku_to_speedo_ids() argument
71 int sku = sku_info->sku_id; rev_sku_to_speedo_ids()
74 sku_info->cpu_speedo_id = 0; rev_sku_to_speedo_ids()
75 sku_info->soc_speedo_id = 0; rev_sku_to_speedo_ids()
76 sku_info->gpu_speedo_id = 0; rev_sku_to_speedo_ids()
86 sku_info->gpu_speedo_id = 1; rev_sku_to_speedo_ids()
91 sku_info->gpu_speedo_id = 1; rev_sku_to_speedo_ids()
93 sku_info->cpu_speedo_id = 1; rev_sku_to_speedo_ids()
114 void __init tegra210_init_speedo_data(struct tegra_sku_info *sku_info) tegra210_init_speedo_data() argument
148 sku_info->cpu_speedo_value = cpu_speedo[0]; tegra210_init_speedo_data()
149 sku_info->gpu_speedo_value = cpu_speedo[2]; tegra210_init_speedo_data()
150 sku_info->soc_speedo_value = soc_speedo[0]; tegra210_init_speedo_data()
152 sku_info->cpu_speedo_value = (-1938 + (1095 * cpu_speedo[0] / 100)) / 10; tegra210_init_speedo_data()
153 sku_info->gpu_speedo_value = (-1662 + (1082 * cpu_speedo[2] / 100)) / 10; tegra210_init_speedo_data()
154 sku_info->soc_speedo_value = ( -705 + (1037 * soc_speedo[0] / 100)) / 10; tegra210_init_speedo_data()
156 sku_info->cpu_speedo_value = 2100; tegra210_init_speedo_data()
157 sku_info->gpu_speedo_value = cpu_speedo[2] - 75; tegra210_init_speedo_data()
158 sku_info->soc_speedo_value = 1900; tegra210_init_speedo_data()
161 if ((sku_info->cpu_speedo_value <= 0) || tegra210_init_speedo_data()
162 (sku_info->gpu_speedo_value <= 0) || tegra210_init_speedo_data()
163 (sku_info->soc_speedo_value <= 0)) { tegra210_init_speedo_data()
168 rev_sku_to_speedo_ids(sku_info, speedo_revision, &index); tegra210_init_speedo_data()
170 sku_info->gpu_process_id = get_process_id(sku_info->gpu_speedo_value, tegra210_init_speedo_data()
174 sku_info->cpu_process_id = get_process_id(sku_info->cpu_speedo_value, tegra210_init_speedo_data()
178 sku_info->soc_process_id = get_process_id(sku_info->soc_speedo_value, tegra210_init_speedo_data()
183 sku_info->gpu_speedo_id, sku_info->gpu_speedo_value); tegra210_init_speedo_data()
H A Dspeedo-tegra124.c61 static void __init rev_sku_to_speedo_ids(struct tegra_sku_info *sku_info, rev_sku_to_speedo_ids() argument
64 int sku = sku_info->sku_id; rev_sku_to_speedo_ids()
67 sku_info->cpu_speedo_id = 0; rev_sku_to_speedo_ids()
68 sku_info->soc_speedo_id = 0; rev_sku_to_speedo_ids()
69 sku_info->gpu_speedo_id = 0; rev_sku_to_speedo_ids()
79 sku_info->cpu_speedo_id = 2; rev_sku_to_speedo_ids()
85 sku_info->cpu_speedo_id = 2; rev_sku_to_speedo_ids()
86 sku_info->soc_speedo_id = 0; rev_sku_to_speedo_ids()
87 sku_info->gpu_speedo_id = 1; rev_sku_to_speedo_ids()
93 sku_info->cpu_speedo_id = 1; rev_sku_to_speedo_ids()
94 sku_info->soc_speedo_id = 1; rev_sku_to_speedo_ids()
95 sku_info->gpu_speedo_id = 1; rev_sku_to_speedo_ids()
101 sku_info->cpu_speedo_id = 4; rev_sku_to_speedo_ids()
102 sku_info->soc_speedo_id = 2; rev_sku_to_speedo_ids()
103 sku_info->gpu_speedo_id = 3; rev_sku_to_speedo_ids()
113 void __init tegra124_init_speedo_data(struct tegra_sku_info *sku_info) tegra124_init_speedo_data() argument
128 sku_info->gpu_speedo_value = tegra_fuse_read_early(FUSE_CPU_SPEEDO_2); tegra124_init_speedo_data()
136 sku_info->cpu_speedo_value = cpu_speedo_0_value; tegra124_init_speedo_data()
138 if (sku_info->cpu_speedo_value == 0) { tegra124_init_speedo_data()
144 rev_sku_to_speedo_ids(sku_info, &threshold); tegra124_init_speedo_data()
146 sku_info->cpu_iddq_value = tegra_fuse_read_early(FUSE_CPU_IDDQ); tegra124_init_speedo_data()
149 if (sku_info->gpu_speedo_value < tegra124_init_speedo_data()
152 sku_info->gpu_process_id = i; tegra124_init_speedo_data()
155 if (sku_info->cpu_speedo_value < tegra124_init_speedo_data()
158 sku_info->cpu_process_id = i; tegra124_init_speedo_data()
164 sku_info->soc_process_id = i; tegra124_init_speedo_data()
167 sku_info->gpu_speedo_id, sku_info->gpu_speedo_value); tegra124_init_speedo_data()
H A Dspeedo-tegra114.c44 static void __init rev_sku_to_speedo_ids(struct tegra_sku_info *sku_info, rev_sku_to_speedo_ids() argument
48 u32 sku = sku_info->sku_id; rev_sku_to_speedo_ids()
49 enum tegra_revision rev = sku_info->revision; rev_sku_to_speedo_ids()
56 sku_info->cpu_speedo_id = 1; rev_sku_to_speedo_ids()
57 sku_info->soc_speedo_id = 0; rev_sku_to_speedo_ids()
63 sku_info->cpu_speedo_id = 2; rev_sku_to_speedo_ids()
64 sku_info->soc_speedo_id = 1; rev_sku_to_speedo_ids()
70 sku_info->cpu_speedo_id = 0; rev_sku_to_speedo_ids()
71 sku_info->soc_speedo_id = 0; rev_sku_to_speedo_ids()
80 sku_info->cpu_speedo_id = 0; rev_sku_to_speedo_ids()
84 void __init tegra114_init_speedo_data(struct tegra_sku_info *sku_info) tegra114_init_speedo_data() argument
96 rev_sku_to_speedo_ids(sku_info, &threshold); tegra114_init_speedo_data()
104 sku_info->cpu_process_id = i; tegra114_init_speedo_data()
109 sku_info->soc_process_id = i; tegra114_init_speedo_data()
H A Dspeedo-tegra20.c65 void __init tegra20_init_speedo_data(struct tegra_sku_info *sku_info) tegra20_init_speedo_data() argument
74 if (SPEEDO_ID_SELECT_0(sku_info->revision)) tegra20_init_speedo_data()
75 sku_info->soc_speedo_id = SPEEDO_ID_0; tegra20_init_speedo_data()
76 else if (SPEEDO_ID_SELECT_1(sku_info->sku_id)) tegra20_init_speedo_data()
77 sku_info->soc_speedo_id = SPEEDO_ID_1; tegra20_init_speedo_data()
79 sku_info->soc_speedo_id = SPEEDO_ID_2; tegra20_init_speedo_data()
91 if (val <= cpu_process_speedos[sku_info->soc_speedo_id][i]) tegra20_init_speedo_data()
94 sku_info->cpu_process_id = i; tegra20_init_speedo_data()
106 if (val <= soc_process_speedos[sku_info->soc_speedo_id][i]) tegra20_init_speedo_data()
109 sku_info->soc_process_id = i; tegra20_init_speedo_data()
H A Dfuse.h69 void tegra20_init_speedo_data(struct tegra_sku_info *sku_info);
73 void tegra30_init_speedo_data(struct tegra_sku_info *sku_info);
77 void tegra114_init_speedo_data(struct tegra_sku_info *sku_info);
81 void tegra124_init_speedo_data(struct tegra_sku_info *sku_info);
85 void tegra210_init_speedo_data(struct tegra_sku_info *sku_info);

Completed in 168 milliseconds