Initial commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
EXTRA_OEMESON:greatlakes = "-Duse-host-power-state=enabled -Dsensor-monitor-hard-shutdown-delay=0"
|
||||
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"sensors": [
|
||||
{
|
||||
"name": "BB_INLET_TEMP_C",
|
||||
"type": "temp",
|
||||
"readPath": "/xyz/openbmc_project/sensors/temperature/BB_INLET_TEMP_C",
|
||||
"timeout": 0,
|
||||
"ignoreDbusMinMax": true
|
||||
},
|
||||
{
|
||||
"name": "BB_FAN0_TACH_RPM",
|
||||
"type": "fan",
|
||||
"readPath": "/xyz/openbmc_project/sensors/fan_tach/BB_FAN0_TACH_RPM",
|
||||
"writePath": "/xyz/openbmc_project/control/fanpwm/Pwm_1",
|
||||
"min": 0,
|
||||
"max": 255,
|
||||
"ignoreDbusMinMax": true
|
||||
},
|
||||
{
|
||||
"name": "BB_FAN1_TACH_RPM",
|
||||
"type": "fan",
|
||||
"readPath": "/xyz/openbmc_project/sensors/fan_tach/BB_FAN1_TACH_RPM",
|
||||
"writePath": "/xyz/openbmc_project/control/fanpwm/Pwm_2",
|
||||
"min": 0,
|
||||
"max": 255,
|
||||
"ignoreDbusMinMax": true
|
||||
},
|
||||
{
|
||||
"name": "BB_FAN2_TACH_RPM",
|
||||
"type": "fan",
|
||||
"readPath": "/xyz/openbmc_project/sensors/fan_tach/BB_FAN2_TACH_RPM",
|
||||
"writePath": "/xyz/openbmc_project/control/fanpwm/Pwm_3",
|
||||
"min": 0,
|
||||
"max": 255,
|
||||
"ignoreDbusMinMax": true
|
||||
},
|
||||
{
|
||||
"name": "BB_FAN3_TACH_RPM",
|
||||
"type": "fan",
|
||||
"readPath": "/xyz/openbmc_project/sensors/fan_tach/BB_FAN3_TACH_RPM",
|
||||
"writePath": "/xyz/openbmc_project/control/fanpwm/Pwm_4",
|
||||
"min": 0,
|
||||
"max": 255,
|
||||
"ignoreDbusMinMax": true
|
||||
}
|
||||
],
|
||||
"zones" : [
|
||||
{
|
||||
"id": 1,
|
||||
"failsafePercent": 90.0,
|
||||
"minThermalOutput": 0.0,
|
||||
"cycleTimeBaseMS": 1000,
|
||||
"updateThermalsTimeMS": 1000,
|
||||
"pids": [
|
||||
{
|
||||
"name": "fan0 1 2 3",
|
||||
"type": "fan",
|
||||
"inputs": [
|
||||
"BB_FAN0_TACH_RPM",
|
||||
"BB_FAN1_TACH_RPM",
|
||||
"BB_FAN2_TACH_RPM",
|
||||
"BB_FAN3_TACH_RPM"
|
||||
],
|
||||
"setpoint": 0.0,
|
||||
"pid": {
|
||||
"samplePeriod": 1,
|
||||
"proportionalCoeff": 0.0,
|
||||
"integralCoeff": 0.0,
|
||||
"derivativeCoeff": 0.0,
|
||||
"feedFwdOffsetCoeff": 0.0,
|
||||
"feedFwdGainCoeff": 1.0,
|
||||
"integralLimit_min": 0.0,
|
||||
"integralLimit_max": 0.0,
|
||||
"outLim_min": 0.0,
|
||||
"outLim_max": 100.0,
|
||||
"slewNeg": 0.0,
|
||||
"slewPos": 0.0,
|
||||
"positiveHysteresis": 0,
|
||||
"negativeHysteresis": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Stepwise_BB_INLET_TEMP_C",
|
||||
"type": "stepwise",
|
||||
"inputs": [
|
||||
"BB_INLET_TEMP_C"
|
||||
],
|
||||
"setpoint": 0.0,
|
||||
"pid": {
|
||||
"samplePeriod": 1,
|
||||
"isCeiling": false,
|
||||
"reading": {
|
||||
"0": 20.0
|
||||
},
|
||||
"output": {
|
||||
"0": 70.0
|
||||
},
|
||||
"positiveHysteresis": 0,
|
||||
"negativeHysteresis": 2
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
FILESEXTRAPATHS:prepend:greatlakes := "${THISDIR}/${PN}:"
|
||||
SRC_URI:append:greatlakes = " file://config.json \
|
||||
"
|
||||
|
||||
FILES:${PN}:append:greatlakes = " ${datadir}/swampd/config.json"
|
||||
|
||||
do_install:append:greatlakes() {
|
||||
install -d ${D}${datadir}/swampd
|
||||
install -m 0644 -D ${WORKDIR}/config.json ${D}${datadir}/swampd/
|
||||
}
|
||||
Reference in New Issue
Block a user