From 252457d4b21f46889eebad61d4c0a65331919cec Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Thu, 4 Nov 2021 12:11:58 -0600 Subject: ish: Trim down the release branch 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 Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038 Reviewed-by: Jett Rink Reviewed-by: Tom Hughes --- board/adlrvpp_mchp1727/board.c | 113 ----------------------------------------- 1 file changed, 113 deletions(-) delete mode 100644 board/adlrvpp_mchp1727/board.c (limited to 'board/adlrvpp_mchp1727/board.c') diff --git a/board/adlrvpp_mchp1727/board.c b/board/adlrvpp_mchp1727/board.c deleted file mode 100644 index 7e2b777e70..0000000000 --- a/board/adlrvpp_mchp1727/board.c +++ /dev/null @@ -1,113 +0,0 @@ -/* 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. - */ - -/* Intel ADL-P-RVP-MCHP1727 board-specific configuration */ -#include "button.h" -#include "fusb302.h" -#include "lid_switch.h" -#include "pca9675.h" -#include "power.h" -#include "power_button.h" -#include "switch.h" -#include "tablet_mode.h" -#include "uart.h" -#include "usb_pd_tcpm.h" -#include "spi.h" -#include "spi_chip.h" - -#include "gpio_list.h" /* Must come after other header files. */ - -/******************************************************************************/ -/* I2C ports */ -const struct i2c_port_t i2c_ports[] = { - [I2C_CHAN_BATT_CHG] = { - .name = "batt_chg", - .port = I2C_PORT_CHARGER, - .kbps = 100, - .scl = GPIO_SMB_BS_CLK, - .sda = GPIO_SMB_BS_DATA, - }, - [I2C_CHAN_TYPEC_0] = { - .name = "typec_0", - .port = I2C_PORT_TYPEC_0, - .kbps = 400, - .scl = GPIO_USBC_TCPC_I2C_CLK_P0, - .sda = GPIO_USBC_TCPC_I2C_DATA_P0, - }, - [I2C_CHAN_TYPEC_1] = { - .name = "typec_1", - .port = I2C_PORT_TYPEC_1, - .kbps = 400, - .scl = GPIO_USBC_TCPC_I2C_CLK_P2, - .sda = GPIO_USBC_TCPC_I2C_DATA_P2, - }, -#if defined(HAS_TASK_PD_C2) - [I2C_CHAN_TYPEC_2] = { - .name = "typec_2", - .port = I2C_PORT_TYPEC_2, - .kbps = 400, - .scl = GPIO_USBC_TCPC_I2C_CLK_P1, - .sda = GPIO_USBC_TCPC_I2C_DATA_P1, - }, - [I2C_CHAN_TYPEC_3] = { - .name = "typec_3", - .port = I2C_PORT_TYPEC_3, - .kbps = 400, - .scl = GPIO_USBC_TCPC_I2C_CLK_P3, - .sda = GPIO_USBC_TCPC_I2C_DATA_P3, - }, -#endif -}; -BUILD_ASSERT(ARRAY_SIZE(i2c_ports) == I2C_CHAN_COUNT); -const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); - -/* USB-C TCPC Configuration */ -const struct tcpc_config_t tcpc_config[] = { - [TYPE_C_PORT_0] = { - .bus_type = EC_BUS_TYPE_I2C, - .i2c_info = { - .port = I2C_PORT_TYPEC_0, - .addr_flags = I2C_ADDR_FUSB302_TCPC_AIC, - }, - .drv = &fusb302_tcpm_drv, - }, -#if defined(HAS_TASK_PD_C1) - [TYPE_C_PORT_1] = { - .bus_type = EC_BUS_TYPE_I2C, - .i2c_info = { - .port = I2C_PORT_TYPEC_1, - .addr_flags = I2C_ADDR_FUSB302_TCPC_AIC, - }, - .drv = &fusb302_tcpm_drv, - }, -#endif -#if defined(HAS_TASK_PD_C2) - [TYPE_C_PORT_2] = { - .bus_type = EC_BUS_TYPE_I2C, - .i2c_info = { - .port = I2C_PORT_TYPEC_2, - .addr_flags = I2C_ADDR_FUSB302_TCPC_AIC, - }, - .drv = &fusb302_tcpm_drv, - }, -#endif -#if defined(HAS_TASK_PD_C3) - [TYPE_C_PORT_3] = { - .bus_type = EC_BUS_TYPE_I2C, - .i2c_info = { - .port = I2C_PORT_TYPEC_3, - .addr_flags = I2C_ADDR_FUSB302_TCPC_AIC, - }, - .drv = &fusb302_tcpm_drv, - }, -#endif -}; -BUILD_ASSERT(ARRAY_SIZE(tcpc_config) == CONFIG_USB_PD_PORT_MAX_COUNT); - -/* SPI devices */ -const struct spi_device_t spi_devices[] = { - { QMSPI0_PORT, 4, GPIO_QMSPI_CS0}, -}; -const unsigned int spi_devices_used = ARRAY_SIZE(spi_devices); -- cgit v1.2.1