diff options
author | Jett Rink <jettrink@chromium.org> | 2018-05-02 10:34:13 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-02 22:20:31 -0700 |
commit | f24dc485fef065ef6298d8b94fdee11a982e8564 (patch) | |
tree | eceb4233e074743b0b3e5d4bb26f0e7414b79ab8 /board/yorp/board.c | |
parent | e47daed322ef8fa6aa9dd0396d55d9b5a99a9c3b (diff) | |
download | chrome-ec-f24dc485fef065ef6298d8b94fdee11a982e8564.tar.gz |
octopus: move common function to baseboard
Move common variables and functions to baseboard from yorp and bip
BRANCH=none
BUG=none
TEST=builds
Change-Id: Ic74bec45f4ff6c833e4ef0620380f21b2ed6a041
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1040107
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Vijay Hiremath <vijay.p.hiremath@intel.corp-partner.google.com>
Diffstat (limited to 'board/yorp/board.c')
-rw-r--r-- | board/yorp/board.c | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/board/yorp/board.c b/board/yorp/board.c index 9689f92f79..133e0da19f 100644 --- a/board/yorp/board.c +++ b/board/yorp/board.c @@ -75,14 +75,6 @@ static void ppc_interrupt(enum gpio_signal signal) /* Must come after other header files and GPIO interrupts*/ #include "gpio_list.h" -/* Wake pins */ -const enum gpio_signal hibernate_wake_pins[] = { - GPIO_LID_OPEN, - GPIO_AC_PRESENT, - GPIO_POWER_BUTTON_L -}; -const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins); - /* ADC channels */ const struct adc_t adc_channels[] = { [ADC_TEMP_SENSOR_AMB] = { @@ -98,26 +90,6 @@ const struct adc_t adc_channels[] = { }; BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); - -/* Power signal list. Must match order of enum power_signal. */ -const struct power_signal_info power_signal_list[] = { -#ifdef CONFIG_POWER_S0IX - {GPIO_PCH_SLP_S0_L, - POWER_SIGNAL_ACTIVE_HIGH | POWER_SIGNAL_DISABLE_AT_BOOT, - "SLP_S0_DEASSERTED"}, -#endif - {GPIO_PCH_SLP_S3_L, POWER_SIGNAL_ACTIVE_HIGH, "SLP_S3_DEASSERTED"}, - {GPIO_PCH_SLP_S4_L, POWER_SIGNAL_ACTIVE_HIGH, "SLP_S4_DEASSERTED"}, - {GPIO_SUSPWRDNACK, POWER_SIGNAL_ACTIVE_HIGH, - "SUSPWRDNACK_DEASSERTED"}, - - {GPIO_ALL_SYS_PGOOD, POWER_SIGNAL_ACTIVE_HIGH, "ALL_SYS_PGOOD"}, - {GPIO_RSMRST_L_PGOOD, POWER_SIGNAL_ACTIVE_HIGH, "RSMRST_L"}, - {GPIO_PP3300_PG, POWER_SIGNAL_ACTIVE_HIGH, "PP3300_PG"}, - {GPIO_PP5000_PG, POWER_SIGNAL_ACTIVE_HIGH, "PP5000_PG"}, -}; -BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT); - /* I2C port map. */ const struct i2c_port_t i2c_ports[] = { {"battery", I2C_PORT_BATTERY, 100, GPIO_I2C0_SCL, GPIO_I2C0_SDA}, @@ -281,23 +253,6 @@ enum adc_channel board_get_vbus_adc(int port) return port ? ADC_VBUS_C1 : ADC_VBUS_C0; } -/** - * Reset all system PD/TCPC MCUs -- currently only called from - * handle_pending_reboot() in common/power.c just before hard - * resetting the system. This logic is likely not needed as the - * PP3300_A rail should be dropped on EC reset. - */ -void board_reset_pd_mcu(void) -{ - - /* Assert reset to TCPC1 (PS8751) for required delay (1ms) */ - gpio_set_level(GPIO_USB_C1_PD_RST_ODL, 0); - msleep(PS8XXX_RESET_DELAY_MS); - gpio_set_level(GPIO_USB_C1_PD_RST_ODL, 1); - - /* ANX7447 does not have a reset pin. */ -} - void board_tcpc_init(void) { int count = 0; @@ -353,26 +308,6 @@ uint16_t tcpc_get_alert_status(void) return status; } -/* Keyboard scan setting */ -struct keyboard_scan_config keyscan_config = { - /* - * F3 key scan cycle completed but scan input is not - * charging to logic high when EC start scan next - * column for "T" key, so we set .output_settle_us - * to 80us from 50us. - */ - .output_settle_us = 80, - .debounce_down_us = 9 * MSEC, - .debounce_up_us = 30 * MSEC, - .scan_period_us = 3 * MSEC, - .min_post_scan_delay_us = 1000, - .poll_timeout_us = 100 * MSEC, - .actual_key_mask = { - 0x14, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xff, - 0xa4, 0xff, 0xfe, 0x55, 0xfa, 0xca /* full set */ - }, -}; - /* Motion sensors */ /* Mutexes */ static struct mutex g_lid_mutex; |