| 1 |
|
| 2 |
|
| 3 |
#ifndef MAINBOARD_GOOGLE_BLUEY_BOARD_H |
| 4 |
#define MAINBOARD_GOOGLE_BLUEY_BOARD_H |
| 5 |
|
| 6 |
#include <assert.h> |
| 7 |
#include <gpio.h> |
| 8 |
|
| 9 |
#define GPIO_AP_EC_INT GPIO(67) |
| 10 |
#define GSC_AP_INT(x) GPIO(x) |
| 11 |
#define GPIO_GSC_AP_INT GSC_AP_INT(CONFIG_MAINBOARD_GPIO_PIN_FOR_GSC_AP_INTERRUPT) |
| 12 |
|
| 13 |
#define TP_POWER_GPIO(x) GPIO(x) |
| 14 |
#define GPIO_TP_POWER_EN TP_POWER_GPIO(CONFIG_MAINBOARD_GPIO_PIN_FOR_TOUCHPAD_POWER) |
| 15 |
|
| 16 |
|
| 17 |
#if CONFIG(MAINBOARD_HAS_FINGERPRINT) |
| 18 |
#define GPIO_FP_RST_L GPIO(25) |
| 19 |
#if CONFIG(MAINBOARD_HAS_FINGERPRINT_VIA_SPI) |
| 20 |
#define GPIO_FPMCU_BOOT0 GPIO(24) |
| 21 |
#define GPIO_FPMCU_INT GPIO(23) |
| 22 |
#define GPIO_EN_FP_RAILS GPIO(22) |
| 23 |
#else |
| 24 |
#define GPIO_FPMCU_BOOT0 dead_code_t(gpio_t) |
| 25 |
#define GPIO_FPMCU_INT dead_code_t(gpio_t) |
| 26 |
#define GPIO_EN_FP_RAILS dead_code_t(gpio_t) |
| 27 |
#endif |
| 28 |
#endif |
| 29 |
|
| 30 |
|
| 31 |
#define GPIO_SNDW_AMP_0_ENABLE GPIO(204) |
| 32 |
#define GPIO_SNDW_AMP_1_ENABLE GPIO(205) |
| 33 |
|
| 34 |
|
| 35 |
#define GPIO_PANEL_POWER_ON GPIO(70) |
| 36 |
#define GPIO_PANEL_HPD GPIO(119) |
| 37 |
|
| 38 |
|
| 39 |
#if CONFIG(MAINBOARD_HAS_SD_CONTROLLER) |
| 40 |
#define GPIO_SD_CD_L GPIO(71) |
| 41 |
#endif |
| 42 |
|
| 43 |
void setup_chromeos_gpios(void); |
| 44 |
void enable_slow_battery_charging(void); |
| 45 |
void disable_slow_battery_charging(void); |
| 46 |
|
| 47 |
#endif |