mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-23 09:46:59 +03:00
tegra: hwpm: Add support for next3 chip
- This patch adds the support for next3 chip in the hwpm kernel repo. - Add NULL check for fake registers before read/write operations. - On simulation platform, HWPM allocates memory to simulate perfmux and perfmon address spaces. Update IP instance mask logic to assume perfmux is available. Jira THWPM-87 Jira THWPM-88 Change-Id: I6cdc882025d29268452c18b91873f4570f0d3462 Signed-off-by: vasukis <vasukis@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2924799 Reviewed-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-by: Adeel Raza <araza@nvidia.com> Tested-by: Vedashree Vidwans <vvidwans@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
034993b547
commit
bbe13a4fa2
@@ -34,6 +34,9 @@
|
||||
#if defined(CONFIG_TEGRA_NEXT2_HWPM)
|
||||
#include <os/linux/next2_soc_utils.h>
|
||||
#endif
|
||||
#if defined(CONFIG_TEGRA_NEXT3_HWPM)
|
||||
#include <os/linux/next3_soc_utils.h>
|
||||
#endif
|
||||
|
||||
static struct hwpm_soc_chip_info chip_info = {
|
||||
.chip_id = CHIP_ID_UNKNOWN,
|
||||
@@ -89,6 +92,11 @@ int tegra_hwpm_init_chip_info(struct tegra_hwpm_os_linux *hwpm_linux)
|
||||
goto complete;
|
||||
}
|
||||
#endif
|
||||
#if defined(CONFIG_TEGRA_NEXT3_HWPM)
|
||||
if (tegra_hwpm_next3_get_chip_compatible(&chip_info) == 0) {
|
||||
goto complete;
|
||||
}
|
||||
#endif
|
||||
|
||||
return -ENODEV;
|
||||
complete:
|
||||
|
||||
Reference in New Issue
Block a user