summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2015-09-10 16:22:49 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-11 21:21:27 -0700
commitfc4c50119952f378aa8565ec946f541348d0dbed (patch)
tree77e1419ece61e064a8925739b750894ad4b7ead7
parent39c422597af03f6b07684664e0d58e477c9e99a4 (diff)
downloadchrome-ec-fc4c50119952f378aa8565ec946f541348d0dbed.tar.gz
Kunimitsu: Disable motion_sense_task to save space
BUG=none TEST=make buildall -j BRANCH=none Change-Id: I9a0746a2ab6f0f9d193f93a98fc8062aac71c0a7 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/299500 Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com> Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r--board/kunimitsu/board.c2
-rw-r--r--board/kunimitsu/board.h2
-rw-r--r--board/kunimitsu/ec.tasklist1
3 files changed, 4 insertions, 1 deletions
diff --git a/board/kunimitsu/board.c b/board/kunimitsu/board.c
index 5e2f49b00b..5634ca3b58 100644
--- a/board/kunimitsu/board.c
+++ b/board/kunimitsu/board.c
@@ -162,6 +162,7 @@ void board_reset_pd_mcu(void)
gpio_set_level(GPIO_PD_RST_L, 1);
}
+#ifdef HAS_TASK_MOTIONSENSE
/* Four Motion sensors */
/* kxcj9 mutex and local/private data*/
static struct mutex g_kxcj9_mutex[2];
@@ -267,6 +268,7 @@ const struct accel_orientation acc_orient = {
},
.hinge_axis = {1, 0, 0},
};
+#endif
/*
* Temperature sensors data; must be in same order as enum temp_sensor_id.
diff --git a/board/kunimitsu/board.h b/board/kunimitsu/board.h
index 2a5196e5ce..2be4301767 100644
--- a/board/kunimitsu/board.h
+++ b/board/kunimitsu/board.h
@@ -113,10 +113,12 @@
#define OPT3001_I2C_ADDR OPT3001_I2C_ADDR1
/* Accelerometer */
+#ifdef HAS_TASK_MOTIONSENSE
#define CONFIG_ACCEL_KXCJ9
#define CONFIG_LID_ANGLE
#define CONFIG_LID_ANGLE_SENSOR_BASE 0
#define CONFIG_LID_ANGLE_SENSOR_LID 1
+#endif
/* Modules we want to exclude */
#undef CONFIG_CMD_ACCEL_INFO
diff --git a/board/kunimitsu/ec.tasklist b/board/kunimitsu/ec.tasklist
index beeba5c264..b8e334b52d 100644
--- a/board/kunimitsu/ec.tasklist
+++ b/board/kunimitsu/ec.tasklist
@@ -22,7 +22,6 @@
TASK_ALWAYS(USB_CHG_P0, usb_charger_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(USB_CHG_P1, usb_charger_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(CHARGER, charger_task, NULL, LARGER_TASK_STACK_SIZE) \
- TASK_NOTEST(MOTIONSENSE, motion_sense_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_NOTEST(CHIPSET, chipset_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_NOTEST(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
TASK_NOTEST(PDCMD, pd_command_task, NULL, TASK_STACK_SIZE) \