From patchwork Tue Jan 21 16:21:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 312997 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 0A5162C009B for ; Wed, 22 Jan 2014 03:21:41 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8E11A4B5C6; Tue, 21 Jan 2014 17:21:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 xn2Dw8y96DYZ; Tue, 21 Jan 2014 17:21:39 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3A8324B5C2; Tue, 21 Jan 2014 17:21:35 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D6A7F4B5C5 for ; Tue, 21 Jan 2014 17:21:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 10aS8SJCKS+N for ; Tue, 21 Jan 2014 17:21:22 +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-ea0-f181.google.com (mail-ea0-f181.google.com [209.85.215.181]) by theia.denx.de (Postfix) with ESMTPS id 48CD34B5BF for ; Tue, 21 Jan 2014 17:21:15 +0100 (CET) Received: by mail-ea0-f181.google.com with SMTP id m10so3865536eaj.26 for ; Tue, 21 Jan 2014 08:21:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :content-type; bh=jgtSCEg1b9GlNVGFaSnwtoLVra6ier0S2jX35U+sOTw=; b=NXsQJ45Cn7k8rwNM/iY4n+0QBITTsH/BOhv/Va4RRu6dPOIRNjWkRYXCbZeEyTYylh DNNFgAm9oQVzSJlCyvLkK4nKe2+xXvbxkt3crgjSwjx1gZA6uD63cNhfIQrd/uD3YQmS jU2zOgVBN+D+v10e9COCHxMB0yOn4yz5ugYaTGJTCk0vb8ADJM7R+7AwbQYNJz8Frm+n 2ajmfFjSgUQNPMLrElaPWcq4xgTPJdwBcrIQGIbDmFgMXmI/+JOVVWUmxk6QJ9iehdIO P8+m6CeBJ1xQjHVXCf9rUi6sKB1gzbquxCe7wJ9aGCuOoWgELO2vyGdO80VrqhZnjlea 753Q== X-Gm-Message-State: ALoCoQlyjVLb74palL7E2CVxkljiB/xGI+Rew3Tg56GFqGoD6GiOV4T3B2z2dv/ioXM38zyeWa6R X-Received: by 10.14.99.66 with SMTP id w42mr11393298eef.63.1390321274461; Tue, 21 Jan 2014 08:21:14 -0800 (PST) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id d43sm16418589eeo.12.2014.01.21.08.21.13 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 21 Jan 2014 08:21:13 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de Date: Tue, 21 Jan 2014 17:21:02 +0100 Message-Id: <7f37ff5b1ac90437580a000023f493d1c6a74650.1390321261.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.8.2.3 Subject: [U-Boot] [PATCH 1/4] microblaze: Show u-boot banner X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de It is nice to see u-boot version. Signed-off-by: Michal Simek --- arch/microblaze/lib/board.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 1.8.2.3 diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c index 896e73a..d22aa85 100644 --- a/arch/microblaze/lib/board.c +++ b/arch/microblaze/lib/board.c @@ -24,6 +24,12 @@ DECLARE_GLOBAL_DATA_PTR; +static int display_banner(void) +{ + printf("\n\n%s\n\n", version_string); + return 0; +} + /* * All attempts to come up with a "common" initialization sequence * that works for all boards and architectures failed: some of the @@ -45,6 +51,7 @@ init_fnc_t *init_sequence[] = { #endif serial_init, console_init_f, + display_banner, interrupts_init, timer_init, NULL,