Skip to content

Commit

Permalink
Add manual fan control
Browse files Browse the repository at this point in the history
Add EC config for automatic/manual fan control.

In automatic mode, EC is responsible for controlling fan duty as part of
thermal management. This is the existing behavior.

In manual mode, EC does not control fan duty target. The OS is
responsible for controlling duty for thermal management.

Control by system firmware is not yet implemented.

This allows users to control fan duty via ACPI.

RPM target is not supported.

Signed-off-by: Tim Crawford <[email protected]>
  • Loading branch information
crawfxrd committed Jan 7, 2025
1 parent 46ee1f9 commit 49883e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ec
Submodule ec updated 86 files
+4 −4 README.md
+22 −0 containers/Makefile
+114 −0 containers/ec/Containerfile
+1 −1 docs/index.md
+1 −1 docs/keyboard-layout-customization.md
+7 −11 src/board/system76/addw1/board.c
+118 −193 src/board/system76/addw1/gpio.c
+7 −11 src/board/system76/addw2/board.c
+122 −204 src/board/system76/addw2/gpio.c
+0 −4 src/board/system76/addw3/board.mk
+131 −234 src/board/system76/addw3/gpio.c
+0 −4 src/board/system76/addw4/board.mk
+125 −221 src/board/system76/addw4/gpio.c
+122 −197 src/board/system76/bonw14/gpio.c
+0 −4 src/board/system76/bonw15-b/board.mk
+0 −4 src/board/system76/bonw15/board.mk
+130 −235 src/board/system76/bonw15/gpio.c
+28 −0 src/board/system76/common/acpi.c
+48 −0 src/board/system76/common/battery.c
+13 −3 src/board/system76/common/dgpu.c
+53 −58 src/board/system76/common/fan.c
+2 −2 src/board/system76/common/flash/main.c
+3 −0 src/board/system76/common/include/board/battery.h
+14 −3 src/board/system76/common/include/board/fan.h
+1 −1 src/board/system76/common/keymap.c
+52 −40 src/board/system76/common/main.c
+14 −3 src/board/system76/common/peci.c
+0 −3 src/board/system76/common/power/intel.c
+35 −6 src/board/system76/common/smfi.c
+128 −225 src/board/system76/darp10-b/gpio.c
+128 −225 src/board/system76/darp10/gpio.c
+118 −192 src/board/system76/darp5/gpio.c
+125 −208 src/board/system76/darp7/gpio.c
+124 −210 src/board/system76/darp8/gpio.c
+127 −223 src/board/system76/darp9/gpio.c
+118 −192 src/board/system76/galp3-c/gpio.c
+125 −208 src/board/system76/galp5/gpio.c
+124 −211 src/board/system76/galp6/gpio.c
+122 −201 src/board/system76/gaze15/gpio.c
+0 −4 src/board/system76/gaze16-3050/board.mk
+125 −208 src/board/system76/gaze16-3050/gpio.c
+0 −4 src/board/system76/gaze16-3060-b/board.mk
+0 −4 src/board/system76/gaze16-3060/board.mk
+125 −207 src/board/system76/gaze16-3060/gpio.c
+0 −4 src/board/system76/gaze17-3050/board.mk
+124 −206 src/board/system76/gaze17-3050/gpio.c
+0 −4 src/board/system76/gaze17-3060-b/board.mk
+0 −4 src/board/system76/gaze17-3060/board.mk
+124 −212 src/board/system76/gaze17-3060/gpio.c
+0 −4 src/board/system76/gaze18/board.mk
+128 −222 src/board/system76/gaze18/gpio.c
+125 −207 src/board/system76/lemp10/gpio.c
+124 −213 src/board/system76/lemp11/gpio.c
+126 −213 src/board/system76/lemp12/gpio.c
+130 −228 src/board/system76/lemp13-b/gpio.c
+130 −228 src/board/system76/lemp13/gpio.c
+120 −192 src/board/system76/lemp9/gpio.c
+0 −4 src/board/system76/oryp10/board.mk
+0 −4 src/board/system76/oryp11/board.mk
+131 −235 src/board/system76/oryp11/gpio.c
+0 −4 src/board/system76/oryp12/board.mk
+125 −222 src/board/system76/oryp12/gpio.c
+118 −202 src/board/system76/oryp5/gpio.c
+122 −204 src/board/system76/oryp6/gpio.c
+122 −204 src/board/system76/oryp7/gpio.c
+125 −209 src/board/system76/oryp8/gpio.c
+0 −4 src/board/system76/oryp9/board.mk
+123 −211 src/board/system76/oryp9/gpio.c
+0 −4 src/board/system76/serw13/board.mk
+116 −212 src/board/system76/serw13/gpio.c
+8 −5 src/common/include/common/command.h
+2 −0 src/ec/ite/ec.mk
+5 −0 src/ec/ite/include/ec/gpio.h
+47 −41 tool/Cargo.lock
+1 −4 tool/src/access/hid.rs
+5 −19 tool/src/access/lpc/direct.rs
+7 −23 tool/src/access/lpc/linux.rs
+5 −15 tool/src/access/lpc/sim.rs
+2 −8 tool/src/access/mod.rs
+101 −98 tool/src/ec.rs
+2 −9 tool/src/legacy.rs
+2 −3 tool/src/lib.rs
+194 −145 tool/src/main.rs
+1 −5 tool/src/pmc.rs
+47 −53 tool/src/spi.rs
+2 −2 tool/src/timeout.rs

0 comments on commit 49883e9

Please sign in to comment.