tegra: hwpm: add cpu ip and resource enums

Add IP and resource enums for CPU IP that support HWPM.

Bug 4730025
Bug 4748888

Change-Id: Ica0d247953500fc6d7eb21144a318f2dbcca2d96
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3198954
Reviewed-by: Vasuki Shankar <vasukis@nvidia.com>
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
This commit is contained in:
Vedashree Vidwans
2024-08-22 22:20:27 -07:00
committed by mobile promotions
parent 1a5bd8d683
commit b8a884d226
3 changed files with 10 additions and 0 deletions

View File

@@ -144,6 +144,9 @@ static u32 tegra_hwpm_translate_soc_hwpm_ip(struct tegra_soc_hwpm *hwpm,
case TEGRA_SOC_HWPM_IP_UCF_SCB:
ip_enum_idx = TEGRA_HWPM_IP_UCF_SCB;
break;
case TEGRA_SOC_HWPM_IP_CPU:
ip_enum_idx = TEGRA_HWPM_IP_CPU;
break;
default:
tegra_hwpm_err(hwpm,
"Queried enum tegra_soc_hwpm_ip %d is invalid",
@@ -306,6 +309,9 @@ u32 tegra_hwpm_translate_soc_hwpm_resource(struct tegra_soc_hwpm *hwpm,
case TEGRA_SOC_HWPM_RESOURCE_UCF_SCB:
res_enum_idx = TEGRA_HWPM_RESOURCE_UCF_SCB;
break;
case TEGRA_SOC_HWPM_RESOURCE_CPU:
res_enum_idx = TEGRA_HWPM_RESOURCE_CPU;
break;
default:
tegra_hwpm_err(hwpm,
"Queried enum tegra_soc_hwpm_resource %d is invalid",