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

Enable power switch WDT on IT8587E boards #473

Closed
wants to merge 1 commit into from
Closed
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
3 changes: 3 additions & 0 deletions src/board/system76/addw1/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ struct Gpio __code WLAN_PWR_EN = GPIO(B, 0);
// uncrustify:on

void gpio_init(void) {
// PWRSW WDT 2 Enable
GCR8 = BIT(4);

// Enable LPC reset on GPD2
GCR = 0x04;

Expand Down
3 changes: 3 additions & 0 deletions src/board/system76/darp5/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ struct Gpio __code WLAN_PWR_EN = GPIO(J, 4);
// uncrustify:on

void gpio_init(void) {
// PWRSW WDT 2 Enable
GCR8 = BIT(4);

// Enable LPC reset on GPD2
GCR = 0x04;

Expand Down
3 changes: 3 additions & 0 deletions src/board/system76/galp3-c/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ struct Gpio __code WLAN_PWR_EN = GPIO(J, 4);
// uncrustify:on

void gpio_init(void) {
// PWRSW WDT 2 Enable
GCR8 = BIT(4);

// Enable LPC reset on GPD2
GCR = 0x04;

Expand Down
3 changes: 3 additions & 0 deletions src/board/system76/oryp5/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ struct Gpio __code WLAN_PWR_EN = GPIO(B, 0);
// uncrustify:on

void gpio_init(void) {
// PWRSW WDT 2 Enable
GCR8 = BIT(4);

// Enable LPC reset on GPD2
GCR = 0x04;

Expand Down