qcacld-3.0: Relocate thermal info cfg items
Relocate thermal info config items to FW offload component. Change-Id: If03507a44041b53aa81837f687914931e8a05ec8 CRs-Fixed: 2316595
This commit is contained in:
@@ -24,9 +24,11 @@
|
||||
#include "qdf_types.h"
|
||||
|
||||
#include "cfg_coex.h"
|
||||
#include "cfg_thermal_temp.h"
|
||||
|
||||
#define CFG_FWOL_ALL \
|
||||
CFG_COEX_ALL
|
||||
CFG_COEX_ALL \
|
||||
CFG_THERMAL_TEMP_ALL
|
||||
|
||||
#endif /* __CFG_FWOL_H */
|
||||
|
||||
|
101
fw_offload/dispatcher/inc/cfg_thermal_temp.h
Normal file
101
fw_offload/dispatcher/inc/cfg_thermal_temp.h
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
* above copyright notice and this permission notice appear in all
|
||||
* copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* DOC: This file contains centralized definitions of converged configuration.
|
||||
*/
|
||||
|
||||
#ifndef __CFG_THERMAL_TEMP_H
|
||||
#define __CFG_THERMAL_TEMP_H
|
||||
|
||||
#define CFG_THERMAL_TEMP_MIN_LEVEL0 CFG_INI_UINT( \
|
||||
"gThermalTempMinLevel0", \
|
||||
0, \
|
||||
1000, \
|
||||
0, \
|
||||
CFG_VALUE_OR_DEFAULT, \
|
||||
"Thermal Temp Min Level0")
|
||||
|
||||
#define CFG_THERMAL_TEMP_MAX_LEVEL0 CFG_INI_UINT( \
|
||||
"gThermalTempMaxLevel0", \
|
||||
0, \
|
||||
1000, \
|
||||
90, \
|
||||
CFG_VALUE_OR_DEFAULT, \
|
||||
"Thermal Temp Max Level0")
|
||||
|
||||
#define CFG_THERMAL_TEMP_MIN_LEVEL1 CFG_INI_UINT( \
|
||||
"gThermalTempMinLevel1", \
|
||||
0, \
|
||||
1000, \
|
||||
70, \
|
||||
CFG_VALUE_OR_DEFAULT, \
|
||||
"Thermal Temp Min Level1")
|
||||
|
||||
#define CFG_THERMAL_TEMP_MAX_LEVEL1 CFG_INI_UINT( \
|
||||
"gThermalTempMaxLevel1", \
|
||||
0, \
|
||||
1000, \
|
||||
110, \
|
||||
CFG_VALUE_OR_DEFAULT, \
|
||||
"Thermal Temp Max Level1")
|
||||
|
||||
#define CFG_THERMAL_TEMP_MIN_LEVEL2 CFG_INI_UINT( \
|
||||
"gThermalTempMinLevel2", \
|
||||
0, \
|
||||
1000, \
|
||||
90, \
|
||||
CFG_VALUE_OR_DEFAULT, \
|
||||
"Thermal Temp Min Level2")
|
||||
|
||||
#define CFG_THERMAL_TEMP_MAX_LEVEL2 CFG_INI_UINT( \
|
||||
"gThermalTempMaxLevel2", \
|
||||
0, \
|
||||
1000, \
|
||||
125, \
|
||||
CFG_VALUE_OR_DEFAULT, \
|
||||
"Thermal Temp Max Level2")
|
||||
|
||||
#define CFG_THERMAL_TEMP_MIN_LEVEL3 CFG_INI_UINT( \
|
||||
"gThermalTempMinLevel3", \
|
||||
0, \
|
||||
1000, \
|
||||
110, \
|
||||
CFG_VALUE_OR_DEFAULT, \
|
||||
"Thermal Temp Min Level3")
|
||||
|
||||
#define CFG_THERMAL_TEMP_MAX_LEVEL3 CFG_INI_UINT( \
|
||||
"gThermalTempMaxLevel3", \
|
||||
0, \
|
||||
1000, \
|
||||
0, \
|
||||
CFG_VALUE_OR_DEFAULT, \
|
||||
"Thermal Temp Max Level3")
|
||||
|
||||
#define CFG_THERMAL_TEMP_ALL \
|
||||
CFG(CFG_THERMAL_TEMP_MIN_LEVEL0) \
|
||||
CFG(CFG_THERMAL_TEMP_MAX_LEVEL0) \
|
||||
CFG(CFG_THERMAL_TEMP_MIN_LEVEL1) \
|
||||
CFG(CFG_THERMAL_TEMP_MAX_LEVEL1) \
|
||||
CFG(CFG_THERMAL_TEMP_MIN_LEVEL2) \
|
||||
CFG(CFG_THERMAL_TEMP_MAX_LEVEL2) \
|
||||
CFG(CFG_THERMAL_TEMP_MIN_LEVEL3) \
|
||||
CFG(CFG_THERMAL_TEMP_MAX_LEVEL3) \
|
||||
|
||||
#endif
|
||||
|
@@ -25,6 +25,7 @@
|
||||
#include <wlan_objmgr_psoc_obj.h>
|
||||
#include <wlan_objmgr_global_obj.h>
|
||||
#include <wlan_cmn.h>
|
||||
#include "wlan_fw_offload_main.h"
|
||||
|
||||
#include "wlan_fw_offload_main.h"
|
||||
|
||||
@@ -77,4 +78,15 @@ QDF_STATUS
|
||||
ucfg_fwol_get_coex_config_params(struct wlan_objmgr_psoc *psoc,
|
||||
struct wlan_fwol_coex_config *coex_config);
|
||||
|
||||
/**
|
||||
* ucfg_fwol_get_thermal_temp() - Get thermal temperature config params
|
||||
* @psoc: Pointer to psoc object
|
||||
* @thermal_temp: Pointer to struct wlan_fwol_thermal_temp
|
||||
*
|
||||
* Return: QDF Status
|
||||
*/
|
||||
QDF_STATUS
|
||||
ucfg_fwol_get_thermal_temp(struct wlan_objmgr_psoc *psoc,
|
||||
struct wlan_fwol_thermal_temp *thermal_temp);
|
||||
|
||||
#endif /* _WLAN_FWOL_UCFG_API_H_ */
|
||||
|
@@ -165,3 +165,20 @@ ucfg_fwol_get_coex_config_params(struct wlan_objmgr_psoc *psoc,
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
ucfg_fwol_get_thermal_temp(struct wlan_objmgr_psoc *psoc,
|
||||
struct wlan_fwol_thermal_temp *thermal_info)
|
||||
{
|
||||
struct wlan_fwol_psoc_obj *fwol_obj;
|
||||
|
||||
fwol_obj = fwol_get_psoc_obj(psoc);
|
||||
if (!fwol_obj) {
|
||||
fwol_err("Failed to get fwol obj");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
*thermal_info = fwol_obj->cfg.thermal_temp_cfg;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user