Skip to content

Commit

Permalink
Silicon/RK3588: Set default fan speed to 50%
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobalanica committed Sep 14, 2023
1 parent 3154f14 commit 8b616fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ SetupCoolingFanVariables (
&gRK3588DxeFormSetGuid,
NULL, &Size, &Var32);
if (EFI_ERROR (Status)) {
Status = PcdSet32S (PcdCoolingFanSpeed, 100);
Status = PcdSet32S (PcdCoolingFanSpeed, FAN_PERCENTAGE_DEFAULT);
ASSERT_EFI_ERROR (Status);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define FAN_PERCENTAGE_MIN 0
#define FAN_PERCENTAGE_MAX 100
#define FAN_PERCENTAGE_STEP 1
#define FAN_PERCENTAGE_DEFAULT 100
#define FAN_PERCENTAGE_DEFAULT 50

//
// Don't declare these in the VFR file.
Expand Down
2 changes: 1 addition & 1 deletion edk2-rockchip/Silicon/Rockchip/RK3588/RK3588Base.dsc.inc
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
# Cooling Fan
#
gRK3588TokenSpaceGuid.PcdCoolingFanState|L"CoolingFanState"|gRK3588DxeFormSetGuid|0x0|1
gRK3588TokenSpaceGuid.PcdCoolingFanSpeed|L"CoolingFanSpeed"|gRK3588DxeFormSetGuid|0x0|100
gRK3588TokenSpaceGuid.PcdCoolingFanSpeed|L"CoolingFanSpeed"|gRK3588DxeFormSetGuid|0x0|50

#
# USB/DP PHY
Expand Down

0 comments on commit 8b616fe

Please sign in to comment.