Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fan tach config #379

Merged
merged 2 commits into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/board/system76/galp6/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ void gpio_init(void) {
// PWR_BTN#
GPCRD5 = GPIO_OUT;
// CPU_FANSEN
GPCRD6 = GPIO_IN | GPIO_DOWN;
GPCRD6 = GPIO_ALT;
// VGA_FANSEN
GPCRD7 = GPIO_IN | GPIO_DOWN;
GPCRD7 = GPIO_ALT;
// SMC_BAT
GPCRE0 = GPIO_ALT | GPIO_UP;
// AC_PRESENT
Expand Down
2 changes: 1 addition & 1 deletion src/board/system76/lemp10/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void gpio_init() {
// PWR_BTN#
GPCRD5 = GPIO_OUT | GPIO_UP;
// CPU_FANSEN
GPCRD6 = GPIO_ALT | GPIO_DOWN;
GPCRD6 = GPIO_ALT;
// NC
GPCRD7 = GPIO_IN;
// SMC_BAT
Expand Down
2 changes: 1 addition & 1 deletion src/board/system76/lemp11/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void gpio_init(void) {
// PWR_BTN#
GPCRD5 = GPIO_OUT | GPIO_UP;
// CPU_FANSEN
GPCRD6 = GPIO_ALT | GPIO_DOWN;
GPCRD6 = GPIO_ALT;
// SINK_CTRL_EC
GPCRD7 = GPIO_IN;
// SMC_BAT
Expand Down
2 changes: 1 addition & 1 deletion src/board/system76/lemp12/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void gpio_init(void) {
// PWR_BTN#
GPCRD5 = GPIO_OUT | GPIO_UP;
// CPU_FANSEN
GPCRD6 = GPIO_ALT | GPIO_DOWN;
GPCRD6 = GPIO_ALT;
// SINK_CTRL_EC
GPCRD7 = GPIO_IN;
// SMC_BAT
Expand Down