summaryrefslogtreecommitdiff
path: root/board/coral/board.c
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2017-10-10 17:07:42 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-10-13 14:45:19 -0700
commitc36e313a20b59bbe89c598725e401bf4273593a8 (patch)
tree2d806c7ca79ba19c39768588740ac28064ae8ac3 /board/coral/board.c
parent7f472114fb3c0c2cc48ec4490ec9cc3d5b41eeef (diff)
downloadchrome-ec-c36e313a20b59bbe89c598725e401bf4273593a8.tar.gz
coral: Remove support for ALS since coral devices don't have it
No Coral configurations will contain the ambient light sensor (ALS). Therefore, no reason to have support for this in the board.c/.h files. BUG=b:38271876 BRANCH=eve TEST=make -j BOARD=coral and verify no errors. Change-Id: Ib8f6c546d5fb4d0bb8d37e84a62c4725e37be6f5 Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/711196 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'board/coral/board.c')
-rw-r--r--board/coral/board.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/board/coral/board.c b/board/coral/board.c
index ff4ce97698..e12b7543f6 100644
--- a/board/coral/board.c
+++ b/board/coral/board.c
@@ -225,14 +225,6 @@ struct i2c_stress_test i2c_stress_tests[] = {
},
#endif
-#ifdef CONFIG_CMD_I2C_STRESS_TEST_ALS
- {
- .port = I2C_PORT_ALS,
- .addr = OPT3001_I2C_ADDR1,
- .i2c_test = &opt3001_i2c_stress_test_dev,
- },
-#endif
-
/* NPCX_I2C_PORT3 */
#ifdef CONFIG_CMD_I2C_STRESS_TEST_BATTERY
{
@@ -837,9 +829,6 @@ const matrix_3x3_t mag_standard_ref = {
/* sensor private data */
static struct kionix_accel_data g_kx022_data;
static struct bmi160_drv_data_t g_bmi160_data;
-static struct opt3001_drv_data_t g_opt3001_data = {
- .attenuation = 5,
-};
/* FIXME(dhendrix): Copied from Amenia, probably need to tweak for Coral */
struct motion_sensor_t motion_sensors[] = {
@@ -952,50 +941,9 @@ struct motion_sensor_t motion_sensors[] = {
},
},
},
-
- [LID_ALS] = {
- .name = "Light",
- .active_mask = SENSOR_ACTIVE_S0_S3,
- .chip = MOTIONSENSE_CHIP_OPT3001,
- .type = MOTIONSENSE_TYPE_LIGHT,
- .location = MOTIONSENSE_LOC_LID,
- .drv = &opt3001_drv,
- .drv_data = &g_opt3001_data,
- .port = I2C_PORT_ALS,
- .addr = OPT3001_I2C_ADDR1,
- .rot_standard_ref = NULL,
- .default_range = OPT3001_RANGE_AUTOMATIC_FULL_SCALE,
- .config = {
- /* AP: by default shutdown all sensors */
- [SENSOR_CONFIG_AP] = {
- .odr = 0,
- .ec_rate = 0,
- },
- [SENSOR_CONFIG_EC_S0] = {
- .odr = 1000,
- .ec_rate = 0,
- },
- /* Sensor off in S3/S5 */
- [SENSOR_CONFIG_EC_S3] = {
- .odr = 0,
- .ec_rate = 0,
- },
- /* Sensor off in S3/S5 */
- [SENSOR_CONFIG_EC_S5] = {
- .odr = 0,
- .ec_rate = 0,
- },
- },
- },
};
unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors);
-/* ALS instances when LPC mapping is needed. Each entry directs to a sensor. */
-const struct motion_sensor_t *motion_als_sensors[] = {
- &motion_sensors[LID_ALS],
-};
-BUILD_ASSERT(ARRAY_SIZE(motion_als_sensors) == ALS_COUNT);
-
void board_hibernate(void)
{
/*