summaryrefslogtreecommitdiff
path: root/board/lindar/board.h
diff options
context:
space:
mode:
authorjerry2.huang <jerry2.huang@lcfc.corp-partner.google.com>2020-07-29 15:40:33 +0800
committerCommit Bot <commit-bot@chromium.org>2020-08-03 05:53:04 +0000
commit1050d05802fa7669e2bd6bf1a1b8ff399d7a8eeb (patch)
tree6b2f14ab338290e545650cc2da137d7dafc2a320 /board/lindar/board.h
parent84837be65cb3ff2c34374db4884ba9ec7ba2a943 (diff)
downloadchrome-ec-1050d05802fa7669e2bd6bf1a1b8ff399d7a8eeb.tar.gz
lindar: Update GPIO to match schematic
1. Update gpio setting base on lindar’s schematics, 2. Remove sensor's gpio and code (not support) 3. Remove volume button's gpio,because lindar doesn't support 4. Add lightbar port information into I2C port map configuration BUG=b:161089195 BRANCH=none TEST=make -j BOARD=lindar Signed-off-by: jerry2.huang <jerry2.huang@lcfc.corp-partner.google.com> Change-Id: Id82512e765d66905b1605bb059942eb31ccb4311 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2325497 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/lindar/board.h')
-rw-r--r--board/lindar/board.h40
1 files changed, 11 insertions, 29 deletions
diff --git a/board/lindar/board.h b/board/lindar/board.h
index f1a34bb73a..ca4699f3ea 100644
--- a/board/lindar/board.h
+++ b/board/lindar/board.h
@@ -25,22 +25,10 @@
/* Keyboard features */
-/* Sensors */
-#define CONFIG_DYNAMIC_MOTION_SENSOR_COUNT
-#define CONFIG_ACCEL_LIS2DE /* Lid accel */
-#define CONFIG_ACCELGYRO_LSM6DSM /* Base accel */
-
-/* Sensors without hardware FIFO are in forced mode */
-#define CONFIG_ACCEL_FORCE_MODE_MASK \
- BIT(LID_ACCEL)
-
-#define CONFIG_LID_ANGLE
-#define CONFIG_LID_ANGLE_UPDATE
-#define CONFIG_LID_ANGLE_SENSOR_BASE BASE_ACCEL
-#define CONFIG_LID_ANGLE_SENSOR_LID LID_ACCEL
-
-#define CONFIG_ACCEL_LSM6DSM_INT_EVENT \
- TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL)
+/* Sensors not supported*/
+#undef CONFIG_ACCEL_FIFO
+#undef CONFIG_TABLET_MODE
+#undef CONFIG_MKBP_EVENT
/* USB Type C and USB PD defines */
/*
@@ -60,6 +48,9 @@
#define CONFIG_USBC_PPC_SN5S330 /* USBC port C0 */
#define CONFIG_USBC_PPC_SYV682X /* USBC port C1 */
+/* undefine button */
+#undef CONFIG_VOLUME_BUTTONS
+
/* BC 1.2 */
/* Volume Button feature */
@@ -73,11 +64,11 @@
* which purpose.
*/
#define GPIO_AC_PRESENT GPIO_ACOK_OD
-#define GPIO_EC_INT_L GPIO_EC_PCH_INT_ODL
#define GPIO_EN_PP5000 GPIO_EN_PP5000_A
#define GPIO_ENTERING_RW GPIO_EC_ENTERING_RW
#define GPIO_LID_OPEN GPIO_EC_LID_OPEN
#define GPIO_KBD_KSO2 GPIO_EC_KSO_02_INV
+#define GPIO_PACKET_MODE_EN GPIO_EC_H1_PACKET_MODE
#define GPIO_PCH_WAKE_L GPIO_EC_PCH_WAKE_ODL
#define GPIO_PCH_PWRBTN_L GPIO_EC_PCH_PWR_BTN_ODL
#define GPIO_PCH_RSMRST_L GPIO_EC_PCH_RSMRST_ODL
@@ -85,25 +76,22 @@
#define GPIO_PCH_SYS_PWROK GPIO_EC_PCH_SYS_PWROK
#define GPIO_PCH_SLP_S0_L GPIO_SLP_S0_L
#define GPIO_PCH_SLP_S3_L GPIO_SLP_S3_L
-#define GPIO_PG_EC_DSW_PWROK GPIO_DSW_PWROK
#define GPIO_POWER_BUTTON_L GPIO_H1_EC_PWR_BTN_ODL
#define GPIO_RSMRST_L_PGOOD GPIO_PG_EC_RSMRST_ODL
#define GPIO_CPU_PROCHOT GPIO_EC_PROCHOT_ODL
#define GPIO_SYS_RESET_L GPIO_SYS_RST_ODL
#define GPIO_WP_L GPIO_EC_WP_L
#define GPIO_USB_C1_BC12_INT_ODL GPIO_USB_C1_MIX_INT_ODL
-#define GPIO_VOLUME_UP_L GPIO_EC_VOLUP_BTN_ODL
-#define GPIO_VOLUME_DOWN_L GPIO_EC_VOLDN_BTN_ODL
-#define GMR_TABLET_MODE_GPIO_L GPIO_TABLET_MODE_L
+
/* I2C Bus Configuration */
#define CONFIG_I2C
-#define I2C_PORT_SENSOR NPCX_I2C_PORT0_0
#define I2C_PORT_USB_C0 NPCX_I2C_PORT1_0
#define I2C_PORT_USB_C1 NPCX_I2C_PORT2_0
-#define I2C_PORT_USB_1_MIX NPCX_I2C_PORT3_0
+#define I2C_PORT_LIGHTBAR NPCX_I2C_PORT3_0
#define I2C_PORT_POWER NPCX_I2C_PORT5_0
#define I2C_PORT_EEPROM NPCX_I2C_PORT7_0
+#define I2C_PORT_USB_1_MIX NPCX_I2C_COUNT
#define I2C_PORT_BATTERY I2C_PORT_POWER
#define I2C_PORT_CHARGER I2C_PORT_EEPROM
@@ -131,12 +119,6 @@ enum pwm_channel {
PWM_CH_COUNT
};
-enum sensor_id {
- LID_ACCEL = 0,
- BASE_ACCEL,
- BASE_GYRO,
- SENSOR_COUNT,
-};
/* TODO: b/143375057 - Remove this code after power on. */
void c10_gate_change(enum gpio_signal signal);