Lines Matching refs:sku_info

111 static void __init rev_sku_to_speedo_ids(struct tegra_sku_info *sku_info)  in rev_sku_to_speedo_ids()  argument
115 switch (sku_info->revision) { in rev_sku_to_speedo_ids()
117 sku_info->cpu_speedo_id = 0; in rev_sku_to_speedo_ids()
118 sku_info->soc_speedo_id = 0; in rev_sku_to_speedo_ids()
123 switch (sku_info->sku_id) { in rev_sku_to_speedo_ids()
126 sku_info->cpu_speedo_id = 1; in rev_sku_to_speedo_ids()
127 sku_info->soc_speedo_id = 1; in rev_sku_to_speedo_ids()
133 sku_info->cpu_speedo_id = 2; in rev_sku_to_speedo_ids()
134 sku_info->soc_speedo_id = 2; in rev_sku_to_speedo_ids()
138 sku_info->cpu_speedo_id = 4; in rev_sku_to_speedo_ids()
139 sku_info->soc_speedo_id = 1; in rev_sku_to_speedo_ids()
150 sku_info->cpu_speedo_id = 5; in rev_sku_to_speedo_ids()
151 sku_info->soc_speedo_id = 2; in rev_sku_to_speedo_ids()
155 sku_info->cpu_speedo_id = 6; in rev_sku_to_speedo_ids()
156 sku_info->soc_speedo_id = 2; in rev_sku_to_speedo_ids()
167 sku_info->cpu_speedo_id = 7; in rev_sku_to_speedo_ids()
168 sku_info->soc_speedo_id = 1; in rev_sku_to_speedo_ids()
172 sku_info->cpu_speedo_id = 3; in rev_sku_to_speedo_ids()
173 sku_info->soc_speedo_id = 2; in rev_sku_to_speedo_ids()
182 sku_info->cpu_speedo_id = 8; in rev_sku_to_speedo_ids()
183 sku_info->soc_speedo_id = 1; in rev_sku_to_speedo_ids()
187 sku_info->cpu_speedo_id = 1; in rev_sku_to_speedo_ids()
188 sku_info->soc_speedo_id = 1; in rev_sku_to_speedo_ids()
192 sku_info->cpu_speedo_id = 2; in rev_sku_to_speedo_ids()
193 sku_info->soc_speedo_id = 2; in rev_sku_to_speedo_ids()
197 sku_info->cpu_speedo_id = 3; in rev_sku_to_speedo_ids()
198 sku_info->soc_speedo_id = 2; in rev_sku_to_speedo_ids()
204 sku_info->cpu_speedo_id = 2; in rev_sku_to_speedo_ids()
205 sku_info->soc_speedo_id = 2; in rev_sku_to_speedo_ids()
209 sku_info->cpu_speedo_id = 3; in rev_sku_to_speedo_ids()
210 sku_info->soc_speedo_id = 2; in rev_sku_to_speedo_ids()
219 pr_warn("Tegra Unknown SKU %d\n", sku_info->sku_id); in rev_sku_to_speedo_ids()
220 sku_info->cpu_speedo_id = 0; in rev_sku_to_speedo_ids()
221 sku_info->soc_speedo_id = 0; in rev_sku_to_speedo_ids()
227 pr_warn("Tegra Unknown chip rev %d\n", sku_info->revision); in rev_sku_to_speedo_ids()
228 sku_info->cpu_speedo_id = 0; in rev_sku_to_speedo_ids()
229 sku_info->soc_speedo_id = 0; in rev_sku_to_speedo_ids()
235 void __init tegra30_init_speedo_data(struct tegra_sku_info *sku_info) in tegra30_init_speedo_data() argument
247 rev_sku_to_speedo_ids(sku_info); in tegra30_init_speedo_data()
256 sku_info->cpu_process_id = i - 1; in tegra30_init_speedo_data()
258 if (sku_info->cpu_process_id == -1) { in tegra30_init_speedo_data()
261 sku_info->cpu_process_id = 0; in tegra30_init_speedo_data()
262 sku_info->cpu_speedo_id = 1; in tegra30_init_speedo_data()
269 sku_info->soc_process_id = i - 1; in tegra30_init_speedo_data()
271 if (sku_info->soc_process_id == -1) { in tegra30_init_speedo_data()
274 sku_info->soc_process_id = 0; in tegra30_init_speedo_data()
275 sku_info->soc_speedo_id = 1; in tegra30_init_speedo_data()