Skip to content

Commit

Permalink
darp10: Add custom fan points
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Crawford <tcrawford@system76.com>
  • Loading branch information
crawfxrd committed Jul 26, 2024
1 parent 0f7642d commit 984428b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 20 deletions.
28 changes: 18 additions & 10 deletions src/board/system76/darp10-b/board.mk
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,30 @@ CFLAGS += \
-DPOWER_LIMIT_DC=45

# Fan configs
CFLAGS += -DSMOOTH_FANS_MIN=27

CFLAGS += -DFAN1_PWM=DCR2
CFLAGS += -DBOARD_FAN1_POINTS="\
FAN_POINT(70, 40), \
FAN_POINT(75, 50), \
FAN_POINT(80, 60), \
FAN_POINT(85, 65), \
FAN_POINT(90, 65), \
FAN_POINT(48, 27), \
FAN_POINT(52, 27), \
FAN_POINT(56, 33), \
FAN_POINT(60, 37), \
FAN_POINT(75, 53), \
FAN_POINT(83, 65), \
FAN_POINT(87, 75), \
FAN_POINT(89, 77), \
"

CFLAGS += -DFAN2_PWM=DCR3
CFLAGS += -DBOARD_FAN2_POINTS="\
FAN_POINT(70, 40), \
FAN_POINT(75, 50), \
FAN_POINT(80, 60), \
FAN_POINT(85, 65), \
FAN_POINT(90, 65), \
FAN_POINT(48, 27), \
FAN_POINT(52, 27), \
FAN_POINT(56, 33), \
FAN_POINT(60, 37), \
FAN_POINT(75, 53), \
FAN_POINT(83, 65), \
FAN_POINT(87, 75), \
FAN_POINT(89, 77), \
"

# Add common code
Expand Down
28 changes: 18 additions & 10 deletions src/board/system76/darp10/board.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,30 @@ CFLAGS += \
-DPOWER_LIMIT_DC=45

# Fan configs
CFLAGS += -DSMOOTH_FANS_MIN=27

CFLAGS += -DFAN1_PWM=DCR2
CFLAGS += -DBOARD_FAN1_POINTS="\
FAN_POINT(70, 40), \
FAN_POINT(75, 50), \
FAN_POINT(80, 60), \
FAN_POINT(85, 65), \
FAN_POINT(90, 65), \
FAN_POINT(48, 27), \
FAN_POINT(52, 27), \
FAN_POINT(56, 33), \
FAN_POINT(60, 37), \
FAN_POINT(75, 53), \
FAN_POINT(83, 65), \
FAN_POINT(87, 75), \
FAN_POINT(89, 77), \
"

CFLAGS += -DFAN2_PWM=DCR3
CFLAGS += -DBOARD_FAN2_POINTS="\
FAN_POINT(70, 40), \
FAN_POINT(75, 50), \
FAN_POINT(80, 60), \
FAN_POINT(85, 65), \
FAN_POINT(90, 65), \
FAN_POINT(48, 27), \
FAN_POINT(52, 27), \
FAN_POINT(56, 33), \
FAN_POINT(60, 37), \
FAN_POINT(75, 53), \
FAN_POINT(83, 65), \
FAN_POINT(87, 75), \
FAN_POINT(89, 77), \
"

# Add common code
Expand Down

0 comments on commit 984428b

Please sign in to comment.