mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-23 01:35:10 +03:00
tegra: hwpm: next4: Add next4 chip support
Add HWPM driver support for Next4 chip. Jira MSST-821 Signed-off-by: vasukis <vasukis@nvidia.com> Change-Id: Idc9c99653fa814a24fcab22735ae258f6f1a3f1c Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3250030 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Besar Wicaksono <bwicaksono@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f4b7bb9ead
commit
cda058bccc
@@ -31,6 +31,9 @@
|
||||
#if defined(CONFIG_TEGRA_NEXT1_HWPM)
|
||||
#include <os/linux/next1_soc_utils.h>
|
||||
#endif
|
||||
#if defined(CONFIG_TEGRA_NEXT4_HWPM)
|
||||
#include <os/linux/next4_soc_utils.h>
|
||||
#endif
|
||||
|
||||
static struct hwpm_soc_chip_info chip_info = {
|
||||
.chip_id = CHIP_ID_UNKNOWN,
|
||||
@@ -113,6 +116,12 @@ int tegra_hwpm_init_chip_info(struct tegra_hwpm_os_linux *hwpm_linux)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_TEGRA_NEXT4_HWPM)
|
||||
if (tegra_hwpm_next4_get_chip_compatible(&chip_info) == 0) {
|
||||
goto complete;
|
||||
}
|
||||
#endif
|
||||
|
||||
return -ENODEV;
|
||||
complete:
|
||||
chip_info_initialized = true;
|
||||
|
||||
Reference in New Issue
Block a user