diff options
author | Furquan Shaikh <furquan@chromium.org> | 2017-10-30 19:49:38 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-10-31 13:04:59 -0700 |
commit | 19f96191d35d373957725704430405b7211657e7 (patch) | |
tree | a28ed5c567676932efadfc0be0a524edbcbfd59c /common/port80.c | |
parent | d4d73eb806a9e480a9565f58f9637a9a669328de (diff) | |
download | chrome-ec-19f96191d35d373957725704430405b7211657e7.tar.gz |
port80: Clean up macros
1. Add a new config option to define history buffer length. This
allows boards to override this option if required.
2. Get rid of unused PORT80_POLL_PERIOD macro
BUG=None
BRANCH=None
TEST=Verified that all port80 messages from a boot-up or S3 resume are
present in port80 history buffer.
Change-Id: Ie64680459f58358713a1b1445a0b99fcfe1c1cdc
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/745902
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'common/port80.c')
-rw-r--r-- | common/port80.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/common/port80.c b/common/port80.c index 537623e339..8cd392e1a7 100644 --- a/common/port80.c +++ b/common/port80.c @@ -16,10 +16,7 @@ #define CPRINTF(format, args...) cprintf(CC_PORT80, format, ## args) -#define HISTORY_LEN 128 -#define PORT80_POLL_PERIOD MSEC - -static uint16_t __bss_slow history[HISTORY_LEN]; +static uint16_t __bss_slow history[CONFIG_PORT80_HISTORY_LEN]; static int __bss_slow writes; /* Number of port 80 writes so far */ static int last_boot; /* Last code from previous boot */ static int __bss_slow scroll; |