Set Fan PWM Value on Bootloder

Hi everyone. I want to set fan pwm value on starts i want to fan never run at bootloader. So i have found TegraPwmDxe.c file on GitHub - NVIDIA/edk2-nvidia: NVIDIA EDK2 platform support but there was only two variable about pwm.

#define PWM_FAN_HIGH    0x81000000
#define PWM_FAN_MED     0x80800000

if avaible could you please give me low profile value ? I set the value to 0 nothing is changed.

Hi,
Do you mean you would like fan to be enabled after booting to kernel? This may be risky since temperature might be high while booting bootloader.

And please share which Jetpack version you are using. 6.1 or 5.1.4?

Yes exactly, that i want. I am using Jetpack 5.1.3 right now.

Hi metinsama,

For the Macros in TegraPwmDxe, please refer to 9.11 Pulse Width Modulator (PWM) of Orin Technical Reference Manual.
All we did in UEFI is enabling pwm and setting its value from register.
Please refer to the following table:

If you want to disable it in UEFI, you can customize as following:

#define PWM_FAN_HIGH    0x81000000
#define PWM_FAN_MED     0x80800000
+ #define PWM_FAN_NONE     0x00800000

..

-      MmioWrite32 (BaseAddress, PWM_FAN_MED);
+      MmioWrite32 (BaseAddress, PWM_FAN_NONE);
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.