summaryrefslogtreecommitdiff
path: root/board/arcada_ish/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/arcada_ish/board.h')
-rw-r--r--board/arcada_ish/board.h32
1 files changed, 13 insertions, 19 deletions
diff --git a/board/arcada_ish/board.h b/board/arcada_ish/board.h
index bf05a48697..129640d60f 100644
--- a/board/arcada_ish/board.h
+++ b/board/arcada_ish/board.h
@@ -1,4 +1,4 @@
-/* Copyright 2018 The Chromium OS Authors. All rights reserved.
+/* Copyright 2018 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -16,7 +16,7 @@
#define CONFIG_HOSTCMD_DEBUG_MODE HCDEBUG_OFF
/* ISH specific*/
-#undef CONFIG_DEBUG_ASSERT
+#undef CONFIG_DEBUG_ASSERT
#define CONFIG_CLOCK_CRYSTAL
/* EC */
#define CONFIG_FLASH_SIZE_BYTES 0x80000
@@ -24,13 +24,13 @@
#define CONFIG_I2C
#define CONFIG_I2C_CONTROLLER
-#define CONFIG_ACCEL_LNG2DM /* Base sensor: LNG2DM
- * (uses LIS2DH driver)
- */
-#define CONFIG_ACCELGYRO_LSM6DSM /* Lid sensor: LSM6DS3
- * (uses LSM6DSM driver)
- */
-#define CONFIG_MAG_LIS2MDL /* Lid sensor: LIS2DML */
+#define CONFIG_ACCEL_LNG2DM /* Base sensor: LNG2DM \
+ * (uses LIS2DH driver) \
+ */
+#define CONFIG_ACCELGYRO_LSM6DSM /* Lid sensor: LSM6DS3 \
+ * (uses LSM6DSM driver) \
+ */
+#define CONFIG_MAG_LIS2MDL /* Lid sensor: LIS2DML */
#define CONFIG_MAG_CALIBRATE
/* Enable sensor fifo, must also define the _SIZE and _THRES */
@@ -40,7 +40,7 @@
/* Depends on how fast the AP boots and typical ODRs. */
#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO_SIZE / 3)
/* Sensors without hardware FIFO are in forced mode */
-#define CONFIG_ACCEL_FORCE_MODE_MASK (BIT(BASE_ACCEL) | BIT(LID_MAG))
+#define CONFIG_ACCEL_FORCE_MODE_MASK (BIT(BASE_ACCEL) | BIT(LID_MAG))
#define CONFIG_ACCEL_LSM6DSM_INT_EVENT \
TASK_EVENT_MOTION_SENSOR_INTERRUPT(LID_ACCEL)
@@ -99,8 +99,8 @@
#define CONFIG_ISH_PM_D3
#define CONFIG_ISH_PM_RESET_PREP
-#define CONFIG_ISH_D0I2_MIN_USEC (15*MSEC) /* need final tune */
-#define CONFIG_ISH_D0I3_MIN_USEC (100*MSEC) /* need final tune */
+#define CONFIG_ISH_D0I2_MIN_USEC (15 * MSEC) /* need final tune */
+#define CONFIG_ISH_D0I3_MIN_USEC (100 * MSEC) /* need final tune */
#ifndef __ASSEMBLER__
@@ -112,13 +112,7 @@
* Note: Since we aren't using LPC memory map to transmit sensor data, the
* order of this enum does not need to be accel, accel, gyro
*/
-enum sensor_id {
- LID_ACCEL,
- LID_GYRO,
- BASE_ACCEL,
- LID_MAG,
- SENSOR_COUNT
-};
+enum sensor_id { LID_ACCEL, LID_GYRO, BASE_ACCEL, LID_MAG, SENSOR_COUNT };
#endif /* !__ASSEMBLER__ */