diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-02-09 11:00:11 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-02-09 11:00:11 -0800 |
commit | e42cd379ded4f31487b863d84db11c8c24e22a76 (patch) | |
tree | bf3b8077a91d4b480543183eb6e11435cbb24dea /common/port80.c | |
parent | 898aaf1914ebd4a727cf9d754c5ea1f3dd3dce6b (diff) | |
download | chrome-ec-e42cd379ded4f31487b863d84db11c8c24e22a76.tar.gz |
Print repeated port 80 writes, for coreboot/uboot debugging
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=chrome-os-partner:7972
TEST=boot main processor; look for repeated sequential port 80 writes
Change-Id: I07b247130945296ce73177a342e0b2cf5645f4fb
Diffstat (limited to 'common/port80.c')
-rw-r--r-- | common/port80.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/port80.c b/common/port80.c index 6349975b75..114f1cf520 100644 --- a/common/port80.c +++ b/common/port80.c @@ -5,6 +5,7 @@ /* Port 80 module for Chrome EC */ +#include "board.h" #include "console.h" #include "port80.h" #include "uart.h" @@ -20,10 +21,12 @@ static int last_data = -1; /* Last data written to port 80 */ void port_80_write(int data) { +#ifndef CONFIG_PORT80_PRINT_DUPLICATES /* Ignore duplicate writes, since the linux kernel writes to port 80 * as a delay mechanism during boot. */ if (data == last_data) return; +#endif /* TODO: post to SWI and print from there? This currently * prints from inside the LPC interrupt itself. */ |