From c3c5a23f1cb4fa321dd4b5246f9417c54b32ac6c Mon Sep 17 00:00:00 2001 From: Bhanu Prakash Maiya Date: Tue, 22 Jun 2021 22:36:00 -0700 Subject: guybrush: enable BMA422 sensor on guybrush Enable BMA422 sensor as LID ACCEL on guybrush board. BRANCH=none BUG=b:178400750 TEST=1. Flash ec.bin on Guybrush SKUA1 with BMA422 sensor 2. EC console commands > accelread 2 Current data 2: 6576 -464 14752 Last calib. data 2: 0 0 0 > accelinfo on sensor 2 name: Lid Accel active mask: 28 chip: 27 type: 0 location: 1 port: 8 addr: 24 range: 2 min_freq: 12500 max_freq: 200000 config: 0 - odr: 0mHz, ec_rate: 0us 1 - odr: 10000mHz, ec_rate: 100000us 2 - odr: 10000mHz, ec_rate: 0us 3 - odr: 0mHz, ec_rate: 0us > accelrate 2 > accelres 2 Resolution for sensor 2: 12 Signed-off-by: Bhanu Prakash Maiya Change-Id: I01aea418e426e546de9733b56dc465c70c704436 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2981466 Tested-by: Bhanu Prakash Maiya Auto-Submit: Bhanu Prakash Maiya Reviewed-by: Rob Barnes Commit-Queue: Bhanu Prakash Maiya --- baseboard/guybrush/baseboard.h | 1 + 1 file changed, 1 insertion(+) (limited to 'baseboard/guybrush/baseboard.h') diff --git a/baseboard/guybrush/baseboard.h b/baseboard/guybrush/baseboard.h index 77e22c433b..3b87a99b48 100644 --- a/baseboard/guybrush/baseboard.h +++ b/baseboard/guybrush/baseboard.h @@ -321,6 +321,7 @@ enum temp_sensor_id { enum sensor_id { BASE_ACCEL = 0, BASE_GYRO, + LID_ACCEL, SENSOR_COUNT, }; -- cgit v1.2.1