diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-11-04 12:11:58 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-05 04:22:34 +0000 |
commit | 252457d4b21f46889eebad61d4c0a65331919cec (patch) | |
tree | 01856c4d31d710b20e85a74c8d7b5836e35c3b98 /board/pico/gpio.inc | |
parent | 08f5a1e6fc2c9467230444ac9b582dcf4d9f0068 (diff) | |
download | chrome-ec-stabilize-14438.B-ish.tar.gz |
ish: Trim down the release branchstabilize-wristpin-14469.59.B-ishstabilize-voshyr-14637.B-ishstabilize-quickfix-14695.187.B-ishstabilize-quickfix-14695.124.B-ishstabilize-quickfix-14526.91.B-ishstabilize-14695.85.B-ishstabilize-14695.107.B-ishstabilize-14682.B-ishstabilize-14633.B-ishstabilize-14616.B-ishstabilize-14589.B-ishstabilize-14588.98.B-ishstabilize-14588.14.B-ishstabilize-14588.123.B-ishstabilize-14536.B-ishstabilize-14532.B-ishstabilize-14528.B-ishstabilize-14526.89.B-ishstabilize-14526.84.B-ishstabilize-14526.73.B-ishstabilize-14526.67.B-ishstabilize-14526.57.B-ishstabilize-14498.B-ishstabilize-14496.B-ishstabilize-14477.B-ishstabilize-14469.9.B-ishstabilize-14469.8.B-ishstabilize-14469.58.B-ishstabilize-14469.41.B-ishstabilize-14442.B-ishstabilize-14438.B-ishstabilize-14411.B-ishstabilize-14396.B-ishstabilize-14395.B-ishstabilize-14388.62.B-ishstabilize-14388.61.B-ishstabilize-14388.52.B-ishstabilize-14385.B-ishstabilize-14345.B-ishstabilize-14336.B-ishstabilize-14333.B-ishrelease-R99-14469.B-ishrelease-R98-14388.B-ishrelease-R102-14695.B-ishrelease-R101-14588.B-ishrelease-R100-14526.B-ishfirmware-cherry-14454.B-ishfirmware-brya-14505.B-ishfirmware-brya-14505.71.B-ishfactory-kukui-14374.B-ishfactory-guybrush-14600.B-ishfactory-cherry-14455.B-ishfactory-brya-14517.B-ish
In the interest of making long-term branch maintenance incur as little
technical debt on us as possible, we should not maintain any files on
the branch we are not actually using.
This has the added effect of making it extremely clear when merging CLs
from the main branch when changes have the possibility to affect us.
The follow-on CL adds a convenience script to actually pull updates from
the main branch and generate a CL for the update.
BUG=b:204206272
BRANCH=ish
TEST=make BOARD=arcada_ish && make BOARD=drallion_ish
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'board/pico/gpio.inc')
-rw-r--r-- | board/pico/gpio.inc | 150 |
1 files changed, 0 insertions, 150 deletions
diff --git a/board/pico/gpio.inc b/board/pico/gpio.inc deleted file mode 100644 index 34ac5cf7af..0000000000 --- a/board/pico/gpio.inc +++ /dev/null @@ -1,150 +0,0 @@ -/* -*- mode:c -*- - * - * Copyright 2021 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -/* - * Declare symbolic names for all the GPIOs that we care about. - * Note: Those with interrupt handlers must be declared first. - */ - -/* Interrupts */ -GPIO_INT(POWER_BUTTON_L, PIN(E, 4), GPIO_INT_BOTH, - power_button_interrupt) /* EC_PWR_BTN_ODL */ -GPIO_INT(AP_IN_SLEEP_L, PIN(F, 2), GPIO_INT_BOTH | GPIO_PULL_DOWN | GPIO_SEL_1P8V, - power_signal_interrupt) -GPIO_INT(PMIC_EC_RESETB, PIN(F, 3), GPIO_INT_BOTH | GPIO_PULL_DOWN | GPIO_SEL_1P8V, - power_signal_interrupt) -GPIO_INT(WARM_RESET_REQ, PIN(D, 3), GPIO_INT_RISING | GPIO_PULL_DOWN | GPIO_SEL_1P8V, - chipset_reset_request_interrupt) -GPIO_INT_RW(ACCEL_INT_ODL, PIN(J, 2), GPIO_INT_FALLING | GPIO_SEL_1P8V, - bmi160_interrupt) -GPIO_INT_RO(BOOTBLOCK_EN_L, PIN(J, 1), GPIO_INT_RISING | GPIO_SEL_1P8V, - emmc_ap_jump_to_bl) -GPIO_INT(SPI0_CS, PIN(M, 5), GPIO_INT_FALLING, - spi_event) /* SPI slave Chip Select -- AP_SPI_EC_CS_L */ -GPIO_INT(LID_OPEN, PIN(E, 2), GPIO_INT_BOTH, - lid_interrupt) -GPIO_INT(AC_PRESENT, PIN(E, 5), GPIO_INT_BOTH, - extpower_interrupt) /* ACOK_OD */ -GPIO_INT(BC12_EC_INT_ODL, PIN(J, 6), GPIO_INT_FALLING, - bc12_interrupt) -GPIO_INT(AP_EC_WATCHDOG_L, PIN(C, 7), GPIO_INT_FALLING | GPIO_SEL_1P8V, - chipset_watchdog_interrupt) -GPIO_INT(UART1_RX, PIN(B, 0), GPIO_INT_FALLING, - uart_deepsleep_interrupt) /* UART_DEBUG_TX_EC_RX */ -GPIO_INT(TABLET_MODE_L, PIN(J, 7), GPIO_INT_BOTH, - gmr_tablet_switch_isr) -/* Unimplemented interrupts */ -GPIO(VOLUME_DOWN_L, PIN(D, 5), GPIO_INPUT) -GPIO(VOLUME_UP_L, PIN(D, 6), GPIO_INPUT) -GPIO(ALS_RGB_INT_ODL, PIN(F, 0), GPIO_INPUT) -GPIO(LID_ACCEL_INT_ODL, PIN(J, 3), GPIO_INPUT | GPIO_SEL_1P8V) - -/* Reset pins */ -GPIO(AP_SYS_RST_L, PIN(B, 6), GPIO_OUT_LOW) -/* 1.8V PP or 1.8V OD output with external 10K PU */ -GPIO(PMIC_WATCHDOG_L, PIN(H, 0), GPIO_ODR_LOW | GPIO_SEL_1P8V) -/* OD output with 5VT (there is 5V internal PU on PWRKEY of MT6358) */ -GPIO(PMIC_EN_ODL, PIN(E, 1), GPIO_ODR_HIGH) - -/* - * I2C pins should be configured as inputs until I2C module is - * initialized. This will avoid driving the lines unintentionally. - */ -/* EC programming */ -GPIO(I2C_E_SCL, PIN(A, 4), GPIO_INPUT | GPIO_SEL_1P8V) -GPIO(I2C_E_SDA, PIN(A, 5), GPIO_INPUT | GPIO_SEL_1P8V) -/* battery and charger */ -GPIO(I2C_A_SCL, PIN(B, 3), GPIO_INPUT) -GPIO(I2C_A_SDA, PIN(B, 4), GPIO_INPUT) -/* sensor */ -GPIO(I2C_B_SCL, PIN(C, 1), GPIO_INPUT | GPIO_SEL_1P8V) -GPIO(I2C_B_SDA, PIN(C, 2), GPIO_INPUT | GPIO_SEL_1P8V) -/* typec */ -GPIO(I2C_C_SCL, PIN(F, 6), GPIO_INPUT) -GPIO(I2C_C_SDA, PIN(F, 7), GPIO_INPUT) - -/* Other input pins */ -/* TODO(WP_L): change to interrupt pin ? */ -GPIO(WP_L, PIN(I, 4), GPIO_INPUT | GPIO_SEL_1P8V) /* EC_FLASH_WP_ODL */ -GPIO(CCD_MODE_ODL, PIN(C, 4), GPIO_INPUT) - -/* Other output pins */ -GPIO(EC_BATT_PRES_ODL, PIN(C, 0), GPIO_INPUT) -GPIO(EC_BL_EN_OD, PIN(B, 5), GPIO_ODR_HIGH | GPIO_SEL_1P8V) -GPIO(EN_USBA_5V, PIN(B, 7), GPIO_OUT_LOW) -GPIO(ENTERING_RW, PIN(C, 5), GPIO_ODR_HIGH) /* EC_ENTERING_RW_ODL */ -GPIO(EC_INT_L, PIN(E, 6), GPIO_ODR_HIGH | GPIO_SEL_1P8V) /* EC_AP_INT_ODL */ -GPIO(EC_BOARD_ID_EN_L, PIN(H, 5), GPIO_ODR_HIGH) /* EC_BOARD_ID_EN_ODL */ -GPIO(USB_C0_HPD_OD, PIN(J, 0), GPIO_ODR_LOW) -GPIO(USB_C0_DISCHARGE, PIN(H, 3), GPIO_OUT_LOW) -GPIO(EN_USB_C0_CC1_VCONN, PIN(H, 1), GPIO_OUT_LOW) -GPIO(EN_USB_C0_CC2_VCONN, PIN(H, 2), GPIO_OUT_LOW) - -/* LEDs */ -GPIO(LED_BLUE, PIN(A, 2), GPIO_OUT_HIGH) -GPIO(LED_GREEN, PIN(A, 1), GPIO_OUT_HIGH) -GPIO(LED_ORANGE, PIN(A, 0), GPIO_OUT_HIGH) -GPIO(EN_PP1800_S5_L, PIN(D, 0), GPIO_OUT_LOW) - -/* Unimplemented Pins */ -GPIO(PG_PP5000_A_OD, PIN(A, 6), GPIO_INPUT) -GPIO(USB_A0_OC_ODL, PIN(A, 7), GPIO_INPUT) -GPIO(EC_PROCHOT_ODL, PIN(C, 3), GPIO_INPUT) -GPIO(PMIC_FORCE_RESET_ODL, PIN(C, 6), GPIO_INPUT) -GPIO(USB_C0_PD_INT_ODL, PIN(D, 1), GPIO_INPUT) /* no used on this board */ -GPIO(EN_PP5000A_USM, PIN(D, 7), GPIO_INPUT) -GPIO(EN_USBC_CHARGE_L, PIN(F, 1), GPIO_INPUT) -GPIO(EN_PP5000_USBC, PIN(H, 4), GPIO_INPUT) -GPIO(PP1800_H1_PG, PIN(H, 6), GPIO_INPUT) - -/* NC pins, ensure they aren't in floating state. */ -GPIO(NC_GPA3, PIN(A, 3), GPIO_INPUT | GPIO_PULL_DOWN) -GPIO(NC_GPB2, PIN(B, 2), GPIO_INPUT | GPIO_PULL_DOWN) -GPIO(NC_GPD2, PIN(D, 2), GPIO_INPUT | GPIO_PULL_DOWN) -GPIO(NC_GPD4, PIN(D, 4), GPIO_INPUT | GPIO_PULL_DOWN) -GPIO(NC_GPE0, PIN(E, 0), GPIO_INPUT | GPIO_PULL_DOWN) -GPIO(NC_GPE3, PIN(E, 3), GPIO_INPUT | GPIO_PULL_DOWN) -GPIO(NC_GPE7, PIN(E, 7), GPIO_INPUT | GPIO_PULL_DOWN) -/* - * ADC pins don't have internal pull-down capability, - * so we set them as output low. - */ -GPIO(NC_GPI5, PIN(I, 5), GPIO_OUT_LOW) -GPIO(NC_GPI7, PIN(I, 7), GPIO_OUT_LOW) - -GPIO(NC_GPJ4, PIN(J, 4), GPIO_INPUT | GPIO_PULL_DOWN) -GPIO(NC_GPJ5, PIN(J, 5), GPIO_INPUT | GPIO_PULL_DOWN) -/* - * GPG3,4,5,7 don't have internal pull-down capability, - * so we set them as output low. - */ -GPIO(NC_GPG0, PIN(G, 0), GPIO_INPUT | GPIO_PULL_DOWN) -/* Don't touch GPG1 and GPG2 */ -GPIO(NC_GPG3, PIN(G, 3), GPIO_OUT_LOW) -GPIO(EC_SPI_FLASH_MOSI, PIN(G, 4), GPIO_OUT_LOW) -GPIO(EC_SPI_FLASH_MISO, PIN(G, 5), GPIO_OUT_LOW) -GPIO(EC_SPI_FLASH_CLK, PIN(G, 6), GPIO_INPUT | GPIO_PULL_UP) -GPIO(EC_SPI_FLASH_CS_L, PIN(G, 7), GPIO_OUT_LOW) - -/* Alternate functions GPIO definitions */ -/* Keyboard */ -ALTERNATE(PIN_MASK(KSI, 0xFF), 0, MODULE_KEYBOARD_SCAN, 0) /* KSI0-7 */ -ALTERNATE(PIN_MASK(KSO_H, 0xFF), 0, MODULE_KEYBOARD_SCAN, 0) /* KSO8-15 */ -ALTERNATE(PIN_MASK(KSO_L, 0xFB), 0, MODULE_KEYBOARD_SCAN, 0) /* KSO0-1, 3-7 */ -GPIO(EC_KSO_02_INV, PIN(KSO_L, 2), GPIO_OUT_LOW) /* KSO2 inverted */ -/* I2C */ -ALTERNATE(PIN_MASK(B, 0x18), 1, MODULE_I2C, 0) /* I2C A */ -ALTERNATE(PIN_MASK(C, 0x06), 1, MODULE_I2C, GPIO_SEL_1P8V) /* I2C B */ -ALTERNATE(PIN_MASK(F, 0xC0), 1, MODULE_I2C, 0) /* I2C C */ -/* ADC */ -ALTERNATE(PIN_MASK(I, 0x4F), 0, MODULE_ADC, 0) /* ADC 0,1,2,3,6 */ -/* UART */ -ALTERNATE(PIN_MASK(B, 0x03), 1, MODULE_UART, 0) /* EC to Servo */ -/* EMMC SPI SLAVE M2:CLK, M3:CMD, M6:DATA0 */ -ALTERNATE(PIN_MASK(M, 0x4C), 0, MODULE_SPI_FLASH, 0) -/* SPI */ -ALTERNATE(PIN_MASK(M, 0x33), 0, MODULE_SPI, 0) /* SPI for communication */ |