From patchwork Fri Jan 30 13:25:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hannes Schmelzer X-Patchwork-Id: 434867 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 72F001402A3 for ; Sat, 31 Jan 2015 00:48:18 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 20C514B612; Fri, 30 Jan 2015 14:47:40 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NBHphbktZeAO; Fri, 30 Jan 2015 14:47:40 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 03C004B69D; Fri, 30 Jan 2015 14:46:49 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5D6184A032 for ; Fri, 30 Jan 2015 14:46:20 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xw128PWhX7W2 for ; Fri, 30 Jan 2015 14:46:20 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from s15287728.onlinehome-server.info (hamspirit.at [87.106.47.214]) by theia.denx.de (Postfix) with ESMTP id 246424A046 for ; Fri, 30 Jan 2015 14:46:17 +0100 (CET) Received: from localhost (s15287728.onlinehome-server.info [127.0.0.1]) by s15287728.onlinehome-server.info (Postfix) with ESMTP id B72598F480C0; Fri, 30 Jan 2015 13:26:16 +0000 (UTC) Received: from s15287728.onlinehome-server.info ([127.0.0.1]) by localhost (s15287728.onlinehome-server.info [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V+MV6nMQDOob; Fri, 30 Jan 2015 13:26:16 +0000 (UTC) Received: from hannes-werkstatt.scm.lan (188-22-110-107.adsl.highway.telekom.at [188.22.110.107]) by s15287728.onlinehome-server.info (Postfix) with ESMTP id 21BA48F480C1; Fri, 30 Jan 2015 13:25:35 +0000 (UTC) From: Hannes Petermaier To: u-boot@lists.denx.de Date: Fri, 30 Jan 2015 14:25:06 +0100 Message-Id: <1422624324-15431-3-git-send-email-oe5hpm@oevsv.at> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1422624324-15431-1-git-send-email-oe5hpm@oevsv.at> References: <1422624324-15431-1-git-send-email-oe5hpm@oevsv.at> Subject: [U-Boot] [PATCH 03/21] common/lcd: Add command for writing to lcd-display X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" We need this function if we want to make some outputs out of u-boot scripts. Signed-off-by: Hannes Petermaier --- common/lcd.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/common/lcd.c b/common/lcd.c index f418da9..755388f 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -279,6 +279,17 @@ static int do_lcd_clear(cmd_tbl_t *cmdtp, int flag, int argc, return 0; } +static int do_lcd_puts(cmd_tbl_t *cmdtp, int flag, int argc, + char *const argv[]) +{ + if (argc != 2) + return CMD_RET_USAGE; + + lcd_puts(argv[1]); + + return 0; +} + static int do_lcd_setcursor(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) { @@ -306,6 +317,12 @@ U_BOOT_CMD( " in character" ); +U_BOOT_CMD( + puts, 2, 1, do_lcd_puts, + "print string on lcd-framebuffer", + " " +); + /*----------------------------------------------------------------------*/ static int lcd_init(void *lcdbase)