diff options
author | Raymond Chung <raymondchung@ami.corp-partner.google.com> | 2021-08-03 02:02:34 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-17 14:13:38 +0000 |
commit | f3a5aa7ecd489725ae9696d26312e6a0af2c7e05 (patch) | |
tree | fd1bd59d5e0f05531b2c5d5e501408508a015787 /board/bugzzy/cbi_ssfc.h | |
parent | c31a5d73bd2159845930c0f1bd0b9edbe2529624 (diff) | |
download | chrome-ec-f3a5aa7ecd489725ae9696d26312e6a0af2c7e05.tar.gz |
bugzzy: Initial EC image
Create the initial EC image for the bugzzy variant by copying the
waddledoo reference board EC files into a new directory named for
the variant.
(Auto-Generated by create_initial_ec_image.sh version 1.5.0).
BUG=b:192521391
BRANCH=None
TEST=make BOARD=bugzzy
Signed-off-by: Raymond Chung <raymondchung@ami.corp-partner.google.com>
Change-Id: I71b44d40a11a477f6fa81a75795dd972e44435f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3067291
Reviewed-by: Henry Sun <henrysun@google.com>
Commit-Queue: Henry Sun <henrysun@google.com>
Diffstat (limited to 'board/bugzzy/cbi_ssfc.h')
-rw-r--r-- | board/bugzzy/cbi_ssfc.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/board/bugzzy/cbi_ssfc.h b/board/bugzzy/cbi_ssfc.h new file mode 100644 index 0000000000..935049b6ae --- /dev/null +++ b/board/bugzzy/cbi_ssfc.h @@ -0,0 +1,60 @@ +/* Copyright 2021 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. + */ + +#ifndef _DEDEDE_CBI_SSFC__H_ +#define _DEDEDE_CBI_SSFC__H_ + +#include "stdint.h" + +/**************************************************************************** + * Dedede CBI Second Source Factory Cache + */ + +/* + * Base Sensor (Bits 0-2) + */ +enum ec_ssfc_base_sensor { + SSFC_SENSOR_BASE_DEFAULT = 0, + SSFC_SENSOR_BMI160 = 1, + SSFC_SENSOR_ICM426XX = 2, + SSFC_SENSOR_LSM6DSM = 3, + SSFC_SENSOR_ICM42607 = 4 +}; + +/* + * Lid Sensor (Bits 3-5) + */ +enum ec_ssfc_lid_sensor { + SSFC_SENSOR_LID_DEFAULT = 0, + SSFC_SENSOR_BMA255 = 1, + SSFC_SENSOR_KX022 = 2, + SSFC_SENSOR_LIS2DWL = 3 +}; + +union dedede_cbi_ssfc { + struct { + uint32_t base_sensor : 3; + uint32_t lid_sensor : 3; + uint32_t reserved_2 : 26; + }; + uint32_t raw_value; +}; + +/** + * Get the Base sensor type from SSFC_CONFIG. + * + * @return the Base sensor board type. + */ +enum ec_ssfc_base_sensor get_cbi_ssfc_base_sensor(void); + +/** + * Get the Lid sensor type from SSFC_CONFIG. + * + * @return the Lid sensor board type. + */ +enum ec_ssfc_lid_sensor get_cbi_ssfc_lid_sensor(void); + + +#endif /* _DEDEDE_CBI_SSFC__H_ */ |