File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 77#include "board_adc.h"
88#include "console.h"
99#include "diagnostics.h"
10+ #include "dptf.h"
1011#include "driver/temp_sensor/f75303.h"
1112#include "fan.h"
1213#include "hooks.h"
@@ -42,10 +43,15 @@ void check_device_deferred(void)
4243 if (product_id != F75303_ID )
4344 set_diagnostic (DIAGNOSTICS_THERMAL_SENSOR , true);
4445
46+ /* force turn on the fan for diagnostic */
47+ dptf_set_fan_duty_target (5 );
4548
4649 if (!(fan_get_rpm_actual (0 ) > 100 ))
4750 set_diagnostic (DIAGNOSTICS_NOFAN , true);
4851
52+ /* Exit the duty mode and let thermal to control the fan */
53+ dptf_set_fan_duty_target (-1 );
54+
4955 if (amd_ddr_initialized_check ())
5056 set_bios_diagnostic (CODE_DDR_FAIL );
5157}
Original file line number Diff line number Diff line change 66#include "board_host_command.h"
77#include "console.h"
88#include "diagnostics.h"
9+ #include "dptf.h"
910#include "fan.h"
1011#include "gpu.h"
1112#include "hooks.h"
@@ -24,12 +25,18 @@ void check_device_deferred(void)
2425 if (get_deck_state () != DECK_ON && !get_standalone_mode ())
2526 set_diagnostic (DIAGNOSTICS_INPUT_MODULE_FAULT , true);
2627
28+ /* force turn on the fan for diagnostic */
29+ dptf_set_fan_duty_target (5 );
30+
2731 if (!(fan_get_rpm_actual (0 ) > 100 ))
2832 set_diagnostic (DIAGNOSTICS_NO_RIGHT_FAN , true);
2933
3034 if (!(fan_get_rpm_actual (1 ) > 100 ))
3135 set_diagnostic (DIAGNOSTICS_NO_LEFT_FAN , true);
3236
37+ /* Exit the duty mode and let thermal to control the fan */
38+ dptf_set_fan_duty_target (-1 );
39+
3340 if (amd_ddr_initialized_check ())
3441 set_bios_diagnostic (CODE_DDR_FAIL );
3542}
You can’t perform that action at this time.
0 commit comments