tegra: hwpm: add nvtherm enum

Add enum for NVTHERM ip and resource to
kernel driver and userspace library.

JIRA MSST-868

Change-Id: Iacb6e9c9205e4293af04e28f265dd535b6fd1783
Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3322825
Reviewed-by: Vasuki Shankar <vasukis@nvidia.com>
Reviewed-by: Yifei Wan <ywan@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Besar Wicaksono
2025-03-20 00:21:34 +00:00
committed by mobile promotions
parent 7f1249c9e9
commit 8b415ed149
5 changed files with 22 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: MIT */
/*
* SPDX-FileCopyrightText: Copyright (c) 2021-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -104,6 +104,7 @@ enum tegra_hwpm_ip_enum {
TEGRA_HWPM_IP_UCF_HUB,
TEGRA_HWPM_IP_UCF_SCB,
TEGRA_HWPM_IP_CPU,
TEGRA_HWPM_IP_NVTHERM,
TERGA_HWPM_NUM_IPS
};
@@ -152,6 +153,7 @@ static inline const char *tegra_hwpm_ip_string(enum tegra_hwpm_ip_enum ip_enum)
[TEGRA_HWPM_IP_UCF_HUB] = "ucf_hub",
[TEGRA_HWPM_IP_UCF_SCB] = "ucf_scb",
[TEGRA_HWPM_IP_CPU] = "cpu",
[TEGRA_HWPM_IP_NVTHERM] = "nvtherm",
[TERGA_HWPM_NUM_IPS] = "unknown",
};
@@ -207,6 +209,7 @@ enum tegra_hwpm_resource_enum {
TEGRA_HWPM_RESOURCE_UCF_HUB,
TEGRA_HWPM_RESOURCE_UCF_SCB,
TEGRA_HWPM_RESOURCE_CPU,
TEGRA_HWPM_RESOURCE_NVTHERM,
TERGA_HWPM_NUM_RESOURCES
};