summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorKevin K Wong <kevin.k.wong@intel.com>2015-04-20 17:48:21 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-04-27 23:29:30 +0000
commit5a18413ff528331a229fe8734c6bca932e5478e1 (patch)
treeed2469096bf0612fc16fde5e8b4a13fb24b1db80 /board
parentb35e4d47fc55a8ad1e1aa3f9818576176510008d (diff)
downloadchrome-ec-5a18413ff528331a229fe8734c6bca932e5478e1.tar.gz
mec1322: Added task-based Port80 POST code support.
With mec1322's EMI set to decode IO 0x800, it does not have any other interfaces to support POST code via IO 0x80. This change is to enable Port80 POST code support via polling method. Limitation: - POST Code 0xFF will be ignored. - POST Code frequency is greater than 1 msec. BUG=chrome-os-partner:39386 TEST=Verified Port80 POST code is captured in EC console. Verified "port80 task" console command will disable/enable Port80 task. Verified "port80 poll" will get the last Port80 POST code. BRANCH=none Change-Id: I27e53e84b5be1fd98464a44407dd58b93d8c798d Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com> Reviewed-on: https://chromium-review.googlesource.com/266783 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/cyan/board.h2
-rw-r--r--board/cyan/ec.tasklist1
-rw-r--r--board/glower/board.h1
-rw-r--r--board/glower/ec.tasklist1
-rw-r--r--board/strago/board.h2
-rw-r--r--board/strago/ec.tasklist1
6 files changed, 8 insertions, 0 deletions
diff --git a/board/cyan/board.h b/board/cyan/board.h
index 8ec396036d..98b8910f7b 100644
--- a/board/cyan/board.h
+++ b/board/cyan/board.h
@@ -27,6 +27,8 @@
#define CONFIG_EXTPOWER_GPIO
#define CONFIG_I2C
+#define CONFIG_PORT80_TASK_EN
+
#define CONFIG_CHARGER
#define CONFIG_BATTERY_SMART
#define CONFIG_CHARGER_V2
diff --git a/board/cyan/ec.tasklist b/board/cyan/ec.tasklist
index 73f54cca53..2fc581d310 100644
--- a/board/cyan/ec.tasklist
+++ b/board/cyan/ec.tasklist
@@ -23,6 +23,7 @@
TASK_NOTEST(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \
+ TASK_NOTEST(PORT80, port80_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(POWERBTN, power_button_task, NULL, TASK_STACK_SIZE) \
TASK_NOTEST(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE)
diff --git a/board/glower/board.h b/board/glower/board.h
index a6a120332f..387c582992 100644
--- a/board/glower/board.h
+++ b/board/glower/board.h
@@ -12,6 +12,7 @@
/* #define CONFIG_BACKLIGHT_LID */
/* #define CONFIG_BATTERY_SMART */
#define CONFIG_BOARD_VERSION
+#define CONFIG_PORT80_TASK_EN
#if 0
#define CONFIG_CHARGER
diff --git a/board/glower/ec.tasklist b/board/glower/ec.tasklist
index b199809ac9..4067403bee 100644
--- a/board/glower/ec.tasklist
+++ b/board/glower/ec.tasklist
@@ -23,5 +23,6 @@
TASK_NOTEST(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \
+ TASK_NOTEST(PORT80, port80_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(POWERBTN, power_button_task, NULL, TASK_STACK_SIZE) \
TASK_NOTEST(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE)
diff --git a/board/strago/board.h b/board/strago/board.h
index 8b39fd4b6d..d3a8002043 100644
--- a/board/strago/board.h
+++ b/board/strago/board.h
@@ -26,6 +26,8 @@
#define CONFIG_POWER_COMMON
#define CONFIG_EXTPOWER_GPIO
+#define CONFIG_PORT80_TASK_EN
+
#define CONFIG_SPI_PORT 1
#define CONFIG_SPI_CS_GPIO GPIO_PVT_CS0
#define CONFIG_SPI_FLASH
diff --git a/board/strago/ec.tasklist b/board/strago/ec.tasklist
index bc15569efd..370444648e 100644
--- a/board/strago/ec.tasklist
+++ b/board/strago/ec.tasklist
@@ -24,5 +24,6 @@
TASK_NOTEST(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \
+ TASK_NOTEST(PORT80, port80_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(POWERBTN, power_button_task, NULL, TASK_STACK_SIZE) \
TASK_NOTEST(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE)