There are some hard-coded assumptions around fans that need to be addressed:
- There is 1 CPU fan
- There is 1 dGPU fan
darp10 is a unit without a dGPU, but has 2 CPU fans. They use PWM2 and PWM3.
It should be possible for a board to specify which interface each fan uses.
Info that's probably needed for each fan:
- PWM index (
DCR[0-7]) for setting duty
- Tachometer (
TACH[0-2][AB]) for tracking/reporting RPM?
- Min/max duty/RPM for each fan
Shoving it all in the Makefile probably won't work, requiring some rewriting of the common and board-level logic.
Additionally, the temperature sensors should be pulled out and be separate from the fan control, but that fits more with #390.
There are some hard-coded assumptions around fans that need to be addressed:
DCR2)DCR4)darp10 is a unit without a dGPU, but has 2 CPU fans. They use PWM2 and PWM3.
It should be possible for a board to specify which interface each fan uses.
Info that's probably needed for each fan:
DCR[0-7]) for setting dutyTACH[0-2][AB]) for tracking/reporting RPM?Shoving it all in the Makefile probably won't work, requiring some rewriting of the common and board-level logic.
Additionally, the temperature sensors should be pulled out and be separate from the fan control, but that fits more with #390.