summaryrefslogtreecommitdiff
path: root/board/oak/ec.tasklist
diff options
context:
space:
mode:
authorRong Chang <rongchang@chromium.org>2016-03-03 15:59:48 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-03-03 06:21:57 -0800
commitfc715ba428e044519e80078652d70d239fe340c3 (patch)
tree81a6acd1056cb13dff1ac0eac3eb247f0531e87c /board/oak/ec.tasklist
parent99ab107819fe2726e9dfe4fde084408e097acada (diff)
downloadchrome-ec-fc715ba428e044519e80078652d70d239fe340c3.tar.gz
oak: fix issues on building oak rev1-4 EC
The default target hardware is rev5. This is a maintainess change for old and deprecated HW. BRANCH=none BUG=chrome-os-partner:49114 BUG=chrome-os-partner:50720 TEST=manual for N=1,5 do make BOARD=oak clean && make BOARD=oak EXTRA_CFLAGS="-DBOARD_REV=$N" -j Signed-off-by: Rong chang <rongchang@chromium.org> Change-Id: Ibb4ebf9fab429964ace7c3e548598f0fb08e7dea Reviewed-on: https://chromium-review.googlesource.com/330065 Commit-Ready: Rong Chang <rongchang@chromium.org> Tested-by: Rong Chang <rongchang@chromium.org> Reviewed-by: Wei-Ning Huang <wnhuang@chromium.org>
Diffstat (limited to 'board/oak/ec.tasklist')
-rw-r--r--board/oak/ec.tasklist21
1 files changed, 3 insertions, 18 deletions
diff --git a/board/oak/ec.tasklist b/board/oak/ec.tasklist
index e0f2f9d150..dcc2e34c06 100644
--- a/board/oak/ec.tasklist
+++ b/board/oak/ec.tasklist
@@ -16,25 +16,10 @@
* 'd' in an opaque parameter passed to the routine at startup
* 's' is the stack size in bytes; must be a multiple of 8
*/
-#include "board_revs.h"
-
-#if BOARD_REV < OAK_REV4
-#define TASK_VBUS(n, r, d, s) TASK_ALWAYS(n, r, d, s)
-#else
-#define TASK_VBUS(n, r, d, s)
-#endif
-
-#if (BOARD_REV > OAK_REV4)
-#define TASK_ALS(n, r, d, s) TASK_ALWAYS(n, r, d, s)
-#define TASK_MOTIONSENSE(n, r, d, s) TASK_NOTEST(n, r, d, s)
-#else
-#define TASK_ALS(n, r, d, s)
-#define TASK_MOTIONSENSE(n, r, d, s)
-#endif
#define CONFIG_TASK_LIST \
TASK_ALWAYS(HOOKS, hook_task, NULL, LARGER_TASK_STACK_SIZE) \
- TASK_VBUS(VBUS, vbus_task, NULL, TASK_STACK_SIZE) \
+ TASK_ALWAYS(VBUS, vbus_task, NULL, TASK_STACK_SIZE) \
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) \
@@ -43,7 +28,7 @@
TASK_ALWAYS(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(CONSOLE, console_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_NOTEST(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \
- TASK_ALS(ALS, als_task, NULL, TASK_STACK_SIZE) \
- TASK_MOTIONSENSE(MOTIONSENSE, motion_sense_task, NULL, TASK_STACK_SIZE) \
+ TASK_ALWAYS(ALS, als_task, NULL, TASK_STACK_SIZE) \
+ TASK_NOTEST(MOTIONSENSE, motion_sense_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(PD_C0, pd_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_ALWAYS(PD_C1, pd_task, NULL, LARGER_TASK_STACK_SIZE)