dt-bindings: thermal: Add Tegra234 soctherm header

This change adds the dt-bindings header file, which includes definitions
for Tegra234 soctherm's throttle identifier, EDP/OC identifier, and
throttle mode.

Bug 3571683

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: I6bb1b577e564b05dfe3ef18bf908eb3752daee3a
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2862055
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Yi-Wei Wang
2023-02-23 01:29:02 +08:00
committed by mobile promotions
parent 7a3a094915
commit 23858268fd

View File

@@ -0,0 +1,47 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
#ifndef BPMP_ABI_MACH_T234_SOCTHERM_H
#define BPMP_ABI_MACH_T234_SOCTHERM_H
/**
* @file
* @defgroup bpmp_soctherm_ids Soctherm ID's
* @{
* @defgroup bpmp_soctherm_throt_ids Throttle Identifiers
* @defgroup bpmp_soctherm_edp_oc_ids EDP/OC Identifiers
* @defgroup bpmp_soctherm_throt_modes Throttle Modes
* @}
*/
/**
* @addtogroup bpmp_soctherm_throt_ids
* @{
*/
#define TEGRA234_SOCTHERM_THROT_NONE 0U
#define TEGRA234_SOCTHERM_THROT_LITE 1U
#define TEGRA234_SOCTHERM_THROT_MED 2U
#define TEGRA234_SOCTHERM_THROT_HEAVY 4U
/** @} */
/**
* @addtogroup bpmp_soctherm_edp_oc_ids
* @{
*/
#define TEGRA234_SOCTHERM_EDP_OC1 0U
#define TEGRA234_SOCTHERM_EDP_OC2 1U
#define TEGRA234_SOCTHERM_EDP_OC3 2U
#define TEGRA234_SOCTHERM_EDP_OC_CNT 3U
/** @} */
/**
* @addtogroup bpmp_soctherm_throt_modes
* @{
*/
#define TEGRA234_SOCTHERM_EDP_OC_MODE_BRIEF 2U
/** @} */
#endif