diff options
author | Kevin K Wong <kevin.k.wong@intel.com> | 2015-04-20 17:48:21 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-04-27 23:29:30 +0000 |
commit | 5a18413ff528331a229fe8734c6bca932e5478e1 (patch) | |
tree | ed2469096bf0612fc16fde5e8b4a13fb24b1db80 /board/strago | |
parent | b35e4d47fc55a8ad1e1aa3f9818576176510008d (diff) | |
download | chrome-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/strago')
-rw-r--r-- | board/strago/board.h | 2 | ||||
-rw-r--r-- | board/strago/ec.tasklist | 1 |
2 files changed, 3 insertions, 0 deletions
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) |