forked from coreboot/coreboot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from coreboot/main
[pull] main from coreboot:main
- Loading branch information
Showing
18 changed files
with
947 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ comment "Rauru" | |
|
||
config BOARD_GOOGLE_RAURU | ||
bool "-> Rauru" | ||
|
||
config BOARD_GOOGLE_NAVI | ||
bool "-> Navi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
||
#include <boot/coreboot_tables.h> | ||
#include <gpio.h> | ||
|
||
#include "gpio.h" | ||
|
||
void setup_chromeos_gpios(void) | ||
{ | ||
gpio_output(GPIO_AP_FP_FW_UP_STRAP, 0); | ||
gpio_output(GPIO_BEEP_ON_OD, 0); | ||
gpio_output(GPIO_EN_PWR_FP, 0); | ||
gpio_output(GPIO_EN_SPKR, 0); | ||
gpio_output(GPIO_FP_RST_1V8_S3_L, 0); | ||
gpio_output(GPIO_XHCI_INIT_DONE, 0); | ||
} | ||
|
||
void fill_lb_gpios(struct lb_gpios *gpios) | ||
{ | ||
/* TODO: add ChromeOS specific gpios */ | ||
struct lb_gpio chromeos_gpios[] = { | ||
{ GPIO_XHCI_INIT_DONE.id, ACTIVE_HIGH, -1, "XHCI init done" }, | ||
{ GPIO_EN_SPKR.id, ACTIVE_HIGH, -1, "speaker enable" }, | ||
{ GPIO_BEEP_ON_OD.id, ACTIVE_HIGH, -1, "beep enable" }, | ||
}; | ||
lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
||
#ifndef __MAINBOARD_GOOGLE_RAURU_GPIO_H__ | ||
#define __MAINBOARD_GOOGLE_RAURU_GPIO_H__ | ||
|
||
#include <soc/gpio.h> | ||
|
||
#define GPIO_BEEP_ON_OD GPIO(PERIPHERAL_EN1) | ||
#define GPIO_EN_SPKR GPIO(PERIPHERAL_EN0) | ||
#define GPIO_XHCI_INIT_DONE GPIO(EINT28) | ||
#define GPIO_FP_RST_1V8_S3_L GPIO(EINT26) | ||
#define GPIO_AP_FP_FW_UP_STRAP GPIO(EINT27) | ||
#define GPIO_EN_PWR_FP GPIO(PERIPHERAL_EN3) | ||
|
||
void setup_chromeos_gpios(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## SPDX-License-Identifier: GPL-2.0-only | ||
|
||
bootblock-y += soc_gpio.c soc_pch.c | ||
romstage-y += soc_gpio.c soc_pmutil.c soc_pch.c | ||
ramstage-y += lockdown.c soc_gpio.c soc_pch.c soc_pmutil.c | ||
|
||
CPPFLAGS_common += -I$(src)/soc/intel/xeon_sp/ibl/include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
||
#ifndef DEVICE_AZALIA_H | ||
#define DEVICE_AZALIA_H | ||
|
||
#define HDA_PCS 0x54 | ||
#define HDA_PCS_PS_D3HOT 3 | ||
|
||
#endif /* DEVICE_AZALIA_H */ |
Oops, something went wrong.