Fixup bonw15 gpios

This commit is contained in:
Jeremy Soller
2023-03-31 07:57:14 -06:00
parent 5d11cc14f8
commit 916c9f8c5f
2 changed files with 5 additions and 3 deletions

View File

@@ -30,6 +30,7 @@ struct Gpio __code PWR_SW_N = GPIO(B, 3);
struct Gpio __code SINK_CTRL = GPIO(H, 0);
struct Gpio __code SLP_SUS_N = GPIO(H, 7);
struct Gpio __code VA_EC_EN = GPIO(J, 4);
struct Gpio __code WLAN_EN = GPIO(G, 1);
struct Gpio __code WLAN_PWR_EN = GPIO(B, 5);
struct Gpio __code XLP_OUT = GPIO(B, 4);
// clang-format on
@@ -69,7 +70,8 @@ void gpio_init() {
GPDRF = BIT(3);
// H_PROCHOT#_EC
GPDRG = BIT(6);
GPDRH = 0;
// EC_AMP_EN
GPDRH = BIT(6);
GPDRI = 0;
GPDRJ = 0;
@@ -247,7 +249,7 @@ void gpio_init() {
// VA_EC_EN
GPCRJ4 = GPIO_OUT;
// VBATT_BOOST#
GPCRJ5 = GPIO_OUT;
GPCRJ5 = GPIO_IN;
// EC_GPIO
GPCRJ6 = GPIO_IN | GPIO_DOWN;
// PERKB_DET#

View File

@@ -39,7 +39,7 @@ extern struct Gpio __code SINK_CTRL;
extern struct Gpio __code SLP_SUS_N;
#define HAVE_SUS_PWR_ACK 0
extern struct Gpio __code VA_EC_EN;
#define HAVE_WLAN_EN 0
extern struct Gpio __code WLAN_EN;
extern struct Gpio __code WLAN_PWR_EN;
extern struct Gpio __code XLP_OUT;
// clang-format on