summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-10-30 13:40:18 +0000
committerTom Warren <twarren@nvidia.com>2012-11-19 08:15:38 -0700
commit9a8efc4604b32221ea362ea41b38d714e4b4ab7a (patch)
tree6aa7d8e12f1c62a602188b69132405395de7b70b /common/main.c
parent676d319ef5f450ca7845555f75de496b96cd688e (diff)
lcd: Add support for flushing LCD fb from dcache after update
This provides an option for the LCD to flush the dcache after each update (puts, scroll or clear). Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/common/main.c b/common/main.c
index 592ce077d21..5fdfff2e285 100644
--- a/common/main.c
+++ b/common/main.c
@@ -1041,8 +1041,16 @@ int readline_into_buffer(const char *const prompt, char *buffer, int timeout)
puts (tab_seq+(col&07));
col += 8 - (col&07);
} else {
- ++col; /* echo input */
- putc (c);
+ char buf[2];
+
+ /*
+ * Echo input using puts() to force am
+ * LCD flush if we are using an LCD
+ */
+ ++col;
+ buf[0] = c;
+ buf[1] = '\0';
+ puts(buf);
}
*p++ = c;
++n;