summaryrefslogtreecommitdiff
path: root/board/dalboz/board.h
diff options
context:
space:
mode:
authorMartin Roth <martinroth@chromium.org>2020-02-04 20:56:00 -0700
committerCommit Bot <commit-bot@chromium.org>2020-02-07 00:40:56 +0000
commit2aeb8e67d59f3fa4c7d25d330d0fffef856de61c (patch)
treedd9114999ceb5a34179b9ac0916ea051fb3f3645 /board/dalboz/board.h
parent24fba6dd423e919867494dbdcc394f36a77766ae (diff)
downloadchrome-ec-2aeb8e67d59f3fa4c7d25d330d0fffef856de61c.tar.gz
dalboz: Initial EC image
Create the initial EC image for the dalboz variant of the zork baseboard by copying the trembyle EC files into a new directory named for the variant. (Auto-Generated by create_initial_ec_image.sh version 1.0.1). BUG=b:147297680 BRANCH=none TEST=make BOARD=dalboz Change-Id: Ibe4e21ead12dc1c721484006d8e505cb4e23bf15 Signed-off-by: Martin Roth <martinroth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2037927 Commit-Queue: Martin Roth <martinroth@google.com> Tested-by: Martin Roth <martinroth@google.com> Auto-Submit: Martin Roth <martinroth@google.com> Reviewed-by: Raul E Rangel <rrangel@chromium.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'board/dalboz/board.h')
-rw-r--r--board/dalboz/board.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/board/dalboz/board.h b/board/dalboz/board.h
new file mode 100644
index 0000000000..5feefee1ba
--- /dev/null
+++ b/board/dalboz/board.h
@@ -0,0 +1,71 @@
+/* Copyright 2019 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.
+ */
+
+/* Trembyle board configuration */
+
+#ifndef __CROS_EC_BOARD_H
+#define __CROS_EC_BOARD_H
+
+#include "baseboard.h"
+
+/*
+ * Allow dangerous commands.
+ * TODO: Remove this config before production.
+ */
+#define CONFIG_SYSTEM_UNLOCKED
+#define CONFIG_BRINGUP
+#define CONFIG_I2C_DEBUG
+
+#define CONFIG_MKBP_USE_GPIO
+
+/* Motion sensing drivers */
+#define CONFIG_ACCELGYRO_BMI160
+#define CONFIG_ACCELGYRO_BMI160_INT_EVENT \
+ TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL)
+#define CONFIG_ACCEL_INTERRUPTS
+#define CONFIG_ACCEL_KX022
+#define CONFIG_CMD_ACCELS
+#define CONFIG_CMD_ACCEL_INFO
+#define CONFIG_TABLET_MODE
+#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
+
+/* GPIO mapping from board specific name to EC common name. */
+#define CONFIG_BATTERY_PRESENT_GPIO GPIO_EC_BATT_PRES_ODL
+#define GPIO_AC_PRESENT GPIO_ACOK_OD
+#define GPIO_CPU_PROCHOT GPIO_PROCHOT_ODL
+#define GPIO_EC_INT_L GPIO_EC_AP_INT_ODL
+#define GPIO_ENABLE_BACKLIGHT_L GPIO_EC_EDP_BL_DISABLE
+#define GPIO_ENTERING_RW GPIO_EC_ENTERING_RW
+#define GPIO_KBD_KSO2 GPIO_EC_KSO_02_INV
+#define GPIO_PCH_RSMRST_L GPIO_EC_FCH_RSMRST_L
+#define GPIO_PCH_SLP_S3_L GPIO_SLP_S3_L
+#define GPIO_PCH_SLP_S5_L GPIO_SLP_S5_L
+#define GPIO_PCH_WAKE_L GPIO_EC_FCH_WAKE_L
+#define GPIO_POWER_BUTTON_L GPIO_EC_PWR_BTN_ODL
+#define GPIO_S0_PGOOD GPIO_S0_PWROK_OD
+#define GPIO_S5_PGOOD GPIO_EC_PWROK_OD
+#define GPIO_SYS_RESET_L GPIO_EC_SYS_RST_L
+#define GPIO_VOLUME_DOWN_L GPIO_VOLDN_BTN_ODL
+#define GPIO_VOLUME_UP_L GPIO_VOLUP_BTN_ODL
+#define GPIO_WP_L GPIO_EC_WP_L
+
+#ifndef __ASSEMBLER__
+
+/* These GPIOs moved. Temporarily detect and support the V0 HW. */
+extern enum gpio_signal GPIO_PCH_PWRBTN_L;
+extern enum gpio_signal GPIO_PCH_SYS_PWROK;
+
+enum battery_type {
+ BATTERY_AP18F4M,
+ BATTERY_TYPE_COUNT,
+};
+
+#endif /* !__ASSEMBLER__ */
+
+
+#endif /* __CROS_EC_BOARD_H */