Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

soc/tegra: fuse: Add function to print SKU info

Add helper function tegra_fuse_print_sku_info() to print Tegra SKU
information. So, it can be shared between tegra_fuse_init() and
ACPI probe which is to be introduced later.

Signed-off-by: Kartik <kkartik@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Kartik and committed by
Thierry Reding
13a69354 71661c1c

+11 -6
+11 -6
drivers/soc/tegra/fuse/fuse-tegra.c
··· 113 113 fuse->clk = NULL; 114 114 } 115 115 116 + static void tegra_fuse_print_sku_info(struct tegra_sku_info *tegra_sku_info) 117 + { 118 + pr_info("Tegra Revision: %s SKU: %d CPU Process: %d SoC Process: %d\n", 119 + tegra_revision_name[tegra_sku_info->revision], 120 + tegra_sku_info->sku_id, tegra_sku_info->cpu_process_id, 121 + tegra_sku_info->soc_process_id); 122 + pr_debug("Tegra CPU Speedo ID %d, SoC Speedo ID %d\n", 123 + tegra_sku_info->cpu_speedo_id, tegra_sku_info->soc_speedo_id); 124 + } 125 + 116 126 static int tegra_fuse_add_lookups(struct tegra_fuse *fuse) 117 127 { 118 128 fuse->lookups = kmemdup_array(fuse->soc->lookups, sizeof(*fuse->lookups), ··· 511 501 512 502 fuse->soc->init(fuse); 513 503 514 - pr_info("Tegra Revision: %s SKU: %d CPU Process: %d SoC Process: %d\n", 515 - tegra_revision_name[tegra_sku_info.revision], 516 - tegra_sku_info.sku_id, tegra_sku_info.cpu_process_id, 517 - tegra_sku_info.soc_process_id); 518 - pr_debug("Tegra CPU Speedo ID %d, SoC Speedo ID %d\n", 519 - tegra_sku_info.cpu_speedo_id, tegra_sku_info.soc_speedo_id); 504 + tegra_fuse_print_sku_info(&tegra_sku_info); 520 505 521 506 err = tegra_fuse_add_lookups(fuse); 522 507 if (err)