tegra: hwpm: add support for next2 chip

- add next2 init chip info logic
- add next2 device id
- Update logic of chip info functions to support next2 chip. Modify the
functions to use formal "if defined()" macro instead of "ifdef".
- Execute support-soc-tools property only on silicon platform
- Separate OOT module_init symbol from postcore_init call on previos
kernel.

Jira THWPM-64

Change-Id: I408c99ff84507a685db6195cb71364d939931d53
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2757457
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Vedashree Vidwans
2022-08-15 22:21:25 -07:00
committed by mobile promotions
parent 170c9552c8
commit 5e116ff176
6 changed files with 79 additions and 23 deletions

View File

@@ -16,10 +16,6 @@
#include <tegra_hwpm_types.h>
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
#endif
#define TEGRA_HWPM_IP_INACTIVE ~(0U)
/* These macro values should match TEGRA_SOC_HWPM_IP_STATUS_* */

View File

@@ -15,6 +15,9 @@
#define TEGRA_HWPM_SOC_H
#if defined(CONFIG_TEGRA_HWPM_OOT)
#define CHIP_ID_UNKNOWN 0x0U
#define CHIP_ID_REV_UNKNOWN 0x0U
#define PLAT_SI 0
#define PLAT_PRE_SI_QT 1
#define PLAT_PRE_SI_VDK 8

View File

@@ -22,6 +22,7 @@
#if defined(CONFIG_TEGRA_HWPM_OOT)
#include <linux/bitmap.h>
#include <linux/limits.h>
#include <linux/kernel.h>
#endif
#endif