diff options
Diffstat (limited to 'include/motion_sense.h')
-rw-r--r-- | include/motion_sense.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h index 3a3b9b5121..0319514fd7 100644 --- a/include/motion_sense.h +++ b/include/motion_sense.h @@ -92,5 +92,21 @@ void accel_int_lid(enum gpio_signal signal); */ void accel_int_base(enum gpio_signal signal); +enum sensor_location_t { + LOCATION_BASE, + LOCATION_LID, +}; + +struct motion_sensor_t { + char *name; + enum sensor_location_t location; + const struct accelgyro_info *drv; + void *drv_data; + uint8_t i2c_addr; +}; + +/* Defined at board level. */ +extern const struct motion_sensor_t motion_sensors[]; +extern const unsigned int motion_sensor_count; #endif /* __CROS_EC_MOTION_SENSE_H */ |