mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 17:27:01 +00:00
Fixed definition to uppercase.
Added all fans with maximum speed while thermal readed fail.
Fixed SYS_OBJECT_ID to ".9032.1" in __init__.py
Signed-off-by: hans <hans.taeng@delta.com.tw>
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG
|
||||
#include <global_custom_config.h>
|
||||
#endif
|
||||
#ifdef x86_64_delta_ag9032V1_INCLUDE_CUSTOM_CONFIG
|
||||
#ifdef X86_64_DELTA_AG9032V1_INCLUDE_CUSTOM_CONFIG
|
||||
#include <x86_64_delta_ag9032v1_custom_config.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
* x86_64_delta_ag9032v1 Doxygen Header
|
||||
*
|
||||
*****************************************************************************/
|
||||
#ifndef __x86_64_delta_ag9032v1_DOX_H__
|
||||
#define __x86_64_delta_ag9032v1_DOX_H__
|
||||
#ifndef __X86_64_DELTA_AG9032V1_DOX_H__
|
||||
#define __X86_64_DELTA_AG9032V1_DOX_H__
|
||||
|
||||
/**
|
||||
* @defgroup x86_64_delta_ag9032v1 x86_64_delta_ag9032v1 - x86_64_delta_ag9032v1 Description
|
||||
@@ -23,4 +23,4 @@ The documentation overview for this module should go here.
|
||||
*
|
||||
*/
|
||||
|
||||
#endif /* __x86_64_delta_ag9032v1_DOX_H__ */
|
||||
#endif /* __X86_64_DELTA_AG9032V1_DOX_H__ */
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
* @{
|
||||
*
|
||||
*****************************************************************************/
|
||||
#ifndef __x86_64_delta_ag9032v1_PORTING_H__
|
||||
#define __x86_64_delta_ag9032v1_PORTING_H__
|
||||
#ifndef __X86_64_DELTA_AG9032V1_PORTING_H__
|
||||
#define __X86_64_DELTA_AG9032V1_PORTING_H__
|
||||
|
||||
|
||||
/* <auto.start.portingmacro(ALL).define> */
|
||||
@@ -103,5 +103,5 @@
|
||||
/* <auto.end.portingmacro(ALL).define> */
|
||||
|
||||
|
||||
#endif /* __x86_64_delta_ag9032v1_PORTING_H__ */
|
||||
#endif /* _X86_64_DELTA_AG9032V1_PORTING_H__ */
|
||||
/* @} */
|
||||
|
||||
@@ -142,6 +142,13 @@ onlp_sysi_platform_manage_fans(void)
|
||||
onlp_thermali_info_get(ONLP_THERMAL_ID_CREATE(THERMAL_1_ON_PSU1), &thermal[6]) != ONLP_STATUS_OK ||
|
||||
onlp_thermali_info_get(ONLP_THERMAL_ID_CREATE(THERMAL_1_ON_PSU2), &thermal[7]) != ONLP_STATUS_OK )
|
||||
{
|
||||
/* Setting all fans speed to maximum */
|
||||
new_duty_percentage = SPEED_100_PERCENTAGE;
|
||||
for(i = 1 ; i <= 12; i++)
|
||||
{
|
||||
onlp_fani_percentage_set(ONLP_FAN_ID_CREATE(i), new_duty_percentage);
|
||||
}
|
||||
|
||||
AIM_LOG_ERROR("Unable to read thermal status");
|
||||
return ONLP_STATUS_E_INTERNAL;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ class OnlPlatform_x86_64_delta_ag9032v1_r0(OnlPlatformDelta,
|
||||
OnlPlatformPortConfig_32x100):
|
||||
PLATFORM='x86-64-delta-ag9032v1-r0'
|
||||
MODEL="AG9032V1"
|
||||
SYS_OBJECT_ID=".9032"
|
||||
SYS_OBJECT_ID=".9032.1"
|
||||
|
||||
|
||||
def baseconfig(self):
|
||||
|
||||
Reference in New Issue
Block a user