mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 17:30:40 +03:00
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:
committed by
mobile promotions
parent
1a5bd8d683
commit
b8a884d226
@@ -103,6 +103,7 @@ enum tegra_hwpm_ip_enum {
|
|||||||
TEGRA_HWPM_IP_UCF_CSW,
|
TEGRA_HWPM_IP_UCF_CSW,
|
||||||
TEGRA_HWPM_IP_UCF_HUB,
|
TEGRA_HWPM_IP_UCF_HUB,
|
||||||
TEGRA_HWPM_IP_UCF_SCB,
|
TEGRA_HWPM_IP_UCF_SCB,
|
||||||
|
TEGRA_HWPM_IP_CPU,
|
||||||
TERGA_HWPM_NUM_IPS
|
TERGA_HWPM_NUM_IPS
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -151,6 +152,7 @@ enum tegra_hwpm_resource_enum {
|
|||||||
TEGRA_HWPM_RESOURCE_UCF_CSW,
|
TEGRA_HWPM_RESOURCE_UCF_CSW,
|
||||||
TEGRA_HWPM_RESOURCE_UCF_HUB,
|
TEGRA_HWPM_RESOURCE_UCF_HUB,
|
||||||
TEGRA_HWPM_RESOURCE_UCF_SCB,
|
TEGRA_HWPM_RESOURCE_UCF_SCB,
|
||||||
|
TEGRA_HWPM_RESOURCE_CPU,
|
||||||
TERGA_HWPM_NUM_RESOURCES
|
TERGA_HWPM_NUM_RESOURCES
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -144,6 +144,9 @@ static u32 tegra_hwpm_translate_soc_hwpm_ip(struct tegra_soc_hwpm *hwpm,
|
|||||||
case TEGRA_SOC_HWPM_IP_UCF_SCB:
|
case TEGRA_SOC_HWPM_IP_UCF_SCB:
|
||||||
ip_enum_idx = TEGRA_HWPM_IP_UCF_SCB;
|
ip_enum_idx = TEGRA_HWPM_IP_UCF_SCB;
|
||||||
break;
|
break;
|
||||||
|
case TEGRA_SOC_HWPM_IP_CPU:
|
||||||
|
ip_enum_idx = TEGRA_HWPM_IP_CPU;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
tegra_hwpm_err(hwpm,
|
tegra_hwpm_err(hwpm,
|
||||||
"Queried enum tegra_soc_hwpm_ip %d is invalid",
|
"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:
|
case TEGRA_SOC_HWPM_RESOURCE_UCF_SCB:
|
||||||
res_enum_idx = TEGRA_HWPM_RESOURCE_UCF_SCB;
|
res_enum_idx = TEGRA_HWPM_RESOURCE_UCF_SCB;
|
||||||
break;
|
break;
|
||||||
|
case TEGRA_SOC_HWPM_RESOURCE_CPU:
|
||||||
|
res_enum_idx = TEGRA_HWPM_RESOURCE_CPU;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
tegra_hwpm_err(hwpm,
|
tegra_hwpm_err(hwpm,
|
||||||
"Queried enum tegra_soc_hwpm_resource %d is invalid",
|
"Queried enum tegra_soc_hwpm_resource %d is invalid",
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ enum tegra_soc_hwpm_ip {
|
|||||||
TEGRA_SOC_HWPM_IP_UCF_CSW,
|
TEGRA_SOC_HWPM_IP_UCF_CSW,
|
||||||
TEGRA_SOC_HWPM_IP_UCF_HUB,
|
TEGRA_SOC_HWPM_IP_UCF_HUB,
|
||||||
TEGRA_SOC_HWPM_IP_UCF_SCB,
|
TEGRA_SOC_HWPM_IP_UCF_SCB,
|
||||||
|
TEGRA_SOC_HWPM_IP_CPU,
|
||||||
TERGA_SOC_HWPM_NUM_IPS
|
TERGA_SOC_HWPM_NUM_IPS
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -147,6 +148,7 @@ enum tegra_soc_hwpm_resource {
|
|||||||
TEGRA_SOC_HWPM_RESOURCE_UCF_CSW,
|
TEGRA_SOC_HWPM_RESOURCE_UCF_CSW,
|
||||||
TEGRA_SOC_HWPM_RESOURCE_UCF_HUB,
|
TEGRA_SOC_HWPM_RESOURCE_UCF_HUB,
|
||||||
TEGRA_SOC_HWPM_RESOURCE_UCF_SCB,
|
TEGRA_SOC_HWPM_RESOURCE_UCF_SCB,
|
||||||
|
TEGRA_SOC_HWPM_RESOURCE_CPU,
|
||||||
TERGA_SOC_HWPM_NUM_RESOURCES
|
TERGA_SOC_HWPM_NUM_RESOURCES
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user