From patchwork Tue Nov 22 08:48:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 697591 X-Patchwork-Delegate: monstr@monstr.eu 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 3tNK162V24z9s5w for ; Tue, 22 Nov 2016 19:50:18 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="N1hb1SiV"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1CB5EA75FA; Tue, 22 Nov 2016 09:49:55 +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 sP2Pe6UGt9Dt; Tue, 22 Nov 2016 09:49:54 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AD773B382F; Tue, 22 Nov 2016 09:49:46 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3A95CA75BA for ; Tue, 22 Nov 2016 09:49:41 +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 V30gRMzERblY for ; Tue, 22 Nov 2016 09:49:41 +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 mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by theia.denx.de (Postfix) with ESMTPS id 08794A75AB for ; Tue, 22 Nov 2016 09:49:35 +0100 (CET) Received: by mail-pg0-f65.google.com with SMTP id e9so1515114pgc.1 for ; Tue, 22 Nov 2016 00:49:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=C/tB2zJ2Bg4kC21koJ+UXcdVdgesuTYag0eM//lkIYY=; b=N1hb1SiVcmSUVcCiMDH4ELGZM+6YKR0Vw0H6SL0nbwoxKB04A4GIAfWel34UJleEAx sr4WT+4wer4wIDOWt7r9klK5YR9TlUOoYVd1H/DatWPty4Pvy9dffuN+oT4VJb5htSRb egPxIjfOUDMZQ3stHn1DTaUfO33HVVeOd0/d68QL7+bB9t8Xqahc8IgQIwGz8fNnfbeD fuIW5IFR+Po+EHM9Hlp8nJaN5xk9HKEDcC6sL37l5gOBPalcEqr50LlzffMnxQtUh26H WrC6wBH2pKJHQc0llNIUOmRXlWqVp3WoRes4VOmlg2uU0A81kHakbNzG3pLfoPdruVl4 gK6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=C/tB2zJ2Bg4kC21koJ+UXcdVdgesuTYag0eM//lkIYY=; b=KiFR68A+O9HgApLH4rb3U1W0ZvJ6yqNId1W2oxmf+x6yP8OHgzTcWqV/JijF+uNAQh nGhL1YUcija3YUussrjInuBFmORzOohkPBIV+j3X/oGMomToeb0XNPTKmkr+LqopYiF0 bPllr1RU2+alOm+0tc6+4j1Qr5QM0R0Zycky2cS0tQZDeuhngpyzNc9MAnb/+MQRIRh9 dtw8fqLOv61rbPnJPAP9GZw6XzsNzc5gAFXJ0mVhTfZBjFDrMRRAnaMLIm/bzALkJ/XS 7Ack+3jV6/dC2DP7YmQ/1rsrv+oibXZXTZvOAn31Tfr2b/l9wHa1gWEnFg5EwnIN22m1 8CDQ== X-Gm-Message-State: AKaTC03I99UgZ5AVAYhsqbNMMmTqSPhtAsTdZ6ju3rO5TUK1ZqdLhxsq6C3L9Wyl1K8EEQ== X-Received: by 10.98.28.79 with SMTP id c76mr24123180pfc.8.1479804573688; Tue, 22 Nov 2016 00:49:33 -0800 (PST) Received: from chrisp-dl.atlnz.lc ([2001:df5:b000:22:788b:fe63:5ad7:3cb3]) by smtp.gmail.com with ESMTPSA id q2sm25196547pga.8.2016.11.22.00.49.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Nov 2016 00:49:33 -0800 (PST) From: Chris Packham To: u-boot@lists.denx.de Date: Tue, 22 Nov 2016 21:48:59 +1300 Message-Id: <20161122084902.20890-5-judge.packham@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161122084902.20890-1-judge.packham@gmail.com> References: <20161122084902.20890-1-judge.packham@gmail.com> Cc: Chris Packham Subject: [U-Boot] [RFC PATCH 4/7] fpga/spartan3: make output quieter 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" Suppress some putc calls with CONFIG_SYS_FPGA_PROG_FEEDBACK. Signed-off-by: Chris Packham --- drivers/fpga/spartan3.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/fpga/spartan3.c b/drivers/fpga/spartan3.c index 759ad95e2afc..34aa097ab6c2 100644 --- a/drivers/fpga/spartan3.c +++ b/drivers/fpga/spartan3.c @@ -428,7 +428,9 @@ static int spartan3_ss_load(xilinx_desc *desc, const void *buf, size_t bsize) CONFIG_FPGA_DELAY (); (*fn->clk) (true, true, cookie); /* Assert the clock pin */ +#ifdef CONFIG_FPGA_PROG_FEEDBACK putc ('*'); +#endif if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ puts ("** Timeout waiting for DONE to clear.\n"); @@ -436,7 +438,9 @@ static int spartan3_ss_load(xilinx_desc *desc, const void *buf, size_t bsize) break; } } +#ifdef CONFIG_FPGA_PROG_FEEDBACK putc ('\n'); /* terminate the dotted line */ +#endif /* * Run the post configuration function if there is one.