mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-23 01:35:10 +03:00
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:
committed by
mobile promotions
parent
170c9552c8
commit
5e116ff176
@@ -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_* */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#if defined(CONFIG_TEGRA_HWPM_OOT)
|
||||
#include <linux/bitmap.h>
|
||||
#include <linux/limits.h>
|
||||
#include <linux/kernel.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user