summaryrefslogtreecommitdiff
path: root/common/port80.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-10-25 12:16:33 -0700
committerGerrit <chrome-bot@google.com>2012-10-26 09:49:38 -0700
commite158bd5422d9f506d094bf77c65644187fae3ab9 (patch)
treedcc25e8eac906090d807c55d30073ea65f3e83a5 /common/port80.c
parentcf7f33d158848e11b4cca36533e7fac960ca65a3 (diff)
downloadchrome-ec-e158bd5422d9f506d094bf77c65644187fae3ab9.tar.gz
Clean up a few modules in common/
Just code cleanup; no functional changes BUG=chrome-os-partner:15579 BRANCH=none TEST=build link and snow Change-Id: Ib62f805777994b39cd9f47a721f52529bb9399c5 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/36573 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/port80.c')
-rw-r--r--common/port80.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/common/port80.c b/common/port80.c
index 72b8ccde11..c23dc419b3 100644
--- a/common/port80.c
+++ b/common/port80.c
@@ -5,7 +5,7 @@
/* Port 80 module for Chrome EC */
-#include "board.h"
+#include "common.h"
#include "console.h"
#include "host_command.h"
#include "port80.h"
@@ -16,7 +16,7 @@
#define HISTORY_LEN 256
static uint16_t history[HISTORY_LEN];
-static int writes; /* Number of port 80 writes so far */
+static int writes; /* Number of port 80 writes so far */
static int last_boot; /* Last code from previous boot */
static int scroll;
static int print_in_int = 1;
@@ -25,9 +25,7 @@ void port_80_write(int data)
{
/*
* Note that this currently prints from inside the LPC interrupt
- * itself. Probably not worth the system overhead to buffer the data
- * and print it from a task, because we're printing a small amount of
- * data and cprintf() doesn't block.
+ * itself. If you're dropping events, turn print_in_int off.
*/
if (print_in_int)
CPRINTF("%c[%T Port 80: 0x%02x]", scroll ? '\n' : '\r', data);