diff options
author | Diana Z <dzigterman@chromium.org> | 2020-09-22 14:49:14 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-23 00:35:02 +0000 |
commit | bd5d36fd20acfe72ed71e61b796a6e22184d166a (patch) | |
tree | 21d9353910b9566b88f69f102c191d75bb214759 /board/magolor | |
parent | 98f0f2891c52e22b970d5afc94107a9eb463980a (diff) | |
download | chrome-ec-bd5d36fd20acfe72ed71e61b796a6e22184d166a.tar.gz |
Dedede: Remove VSYNC sensor
Remove VSYNC sensor, and related GPIOs and configs.
BRANCH=None
BUG=b:169056723
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ib37e648ea04b5da3ed9ce6a660fcd60f2bfe264a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2424891
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/magolor')
-rw-r--r-- | board/magolor/board.c | 12 | ||||
-rw-r--r-- | board/magolor/board.h | 3 | ||||
-rw-r--r-- | board/magolor/gpio.inc | 1 |
3 files changed, 0 insertions, 16 deletions
diff --git a/board/magolor/board.c b/board/magolor/board.c index c8c6fab77f..4335141881 100644 --- a/board/magolor/board.c +++ b/board/magolor/board.c @@ -20,7 +20,6 @@ #include "driver/bc12/pi3usb9201.h" #include "driver/charger/isl923x.h" #include "driver/retimer/nb7v904m.h" -#include "driver/sync.h" #include "driver/tcpm/raa489000.h" #include "driver/tcpm/tcpci.h" #include "driver/usb_mux/pi3usb3x532.h" @@ -383,17 +382,6 @@ struct motion_sensor_t motion_sensors[] = { .min_frequency = BMI_GYRO_MIN_FREQ, .max_frequency = BMI_GYRO_MAX_FREQ, }, - [VSYNC] = { - .name = "Camera VSYNC", - .active_mask = SENSOR_ACTIVE_S0, - .chip = MOTIONSENSE_CHIP_GPIO, - .type = MOTIONSENSE_TYPE_SYNC, - .location = MOTIONSENSE_LOC_CAMERA, - .drv = &sync_drv, - .default_range = 0, - .min_frequency = 0, - .max_frequency = 1, - }, }; const unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors); diff --git a/board/magolor/board.h b/board/magolor/board.h index a1d32f1bd4..06b15529ce 100644 --- a/board/magolor/board.h +++ b/board/magolor/board.h @@ -99,7 +99,6 @@ #define CONFIG_ACCEL_BMA255 /* Lid accel */ #define CONFIG_ACCELGYRO_BMI160 /* Base accel */ -#define CONFIG_SYNC /* Camera VSYNC */ /* Lid operates in forced mode, base in FIFO */ #define CONFIG_ACCEL_FORCE_MODE_MASK BIT(LID_ACCEL) @@ -110,7 +109,6 @@ #define CONFIG_ACCEL_INTERRUPTS #define CONFIG_ACCELGYRO_BMI160_INT_EVENT \ TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL) -#define CONFIG_SYNC_INT_EVENT TASK_EVENT_MOTION_SENSOR_INTERRUPT(VSYNC) #define CONFIG_LID_ANGLE #define CONFIG_LID_ANGLE_UPDATE @@ -153,7 +151,6 @@ enum sensor_id { LID_ACCEL, BASE_ACCEL, BASE_GYRO, - VSYNC, SENSOR_COUNT }; diff --git a/board/magolor/gpio.inc b/board/magolor/gpio.inc index f7b44dc335..42593db13b 100644 --- a/board/magolor/gpio.inc +++ b/board/magolor/gpio.inc @@ -37,7 +37,6 @@ GPIO_INT(VOLUP_BTN_ODL, PIN(7, 3), GPIO_INT_BOTH | GPIO_PULL_UP, button_interr GPIO_INT(LID_OPEN, PIN(D, 2), GPIO_INT_BOTH, lid_interrupt) GPIO_INT(EC_WP_OD, PIN(A, 1), GPIO_INT_BOTH, switch_interrupt) GPIO_INT(BASE_SIXAXIS_INT_L, PIN(5, 6), GPIO_INT_FALLING | GPIO_SEL_1P8V, bmi160_interrupt) -GPIO_INT(CAM_EC_VSYNC, PIN(0, 0), GPIO_INT_FALLING | GPIO_SEL_1P8V, sync_interrupt) GPIO_INT(LID_360_L, PIN(9, 5), GPIO_INT_BOTH, gmr_tablet_switch_isr) /* I2C Ports */ |