From patchwork Sat Oct 13 00:21:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 191255 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 88DB32C008B for ; Sat, 13 Oct 2012 11:22:34 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 424B44A12B; Sat, 13 Oct 2012 02:22:33 +0200 (CEST) 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 N6IijUCUfhQp; Sat, 13 Oct 2012 02:22:31 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 930BA4A138; Sat, 13 Oct 2012 02:22:01 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 468264A134 for ; Sat, 13 Oct 2012 02:21:57 +0200 (CEST) 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 TVD+WnRVDFy5 for ; Sat, 13 Oct 2012 02:21:56 +0200 (CEST) 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-yh0-f74.google.com (mail-yh0-f74.google.com [209.85.213.74]) by theia.denx.de (Postfix) with ESMTPS id BDFA04A119 for ; Sat, 13 Oct 2012 02:21:54 +0200 (CEST) Received: by mail-yh0-f74.google.com with SMTP id 10so414518yhl.3 for ; Fri, 12 Oct 2012 17:21:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=JZJrspaEpcVT+hbDip0/52DewQPCiTZD3bUfJDIvhmQ=; b=PXtytX8JuuLQ1Jn6nGBMFgrcTFHBalkd2uOaaGEzM4e0bYAxIriEoYTCeqYTGV33uF cfGm+Xp7p9viDyndFvrAJzXcmcPZbQttHnoieYfgrIfU40KgIWpxuOpqNjGLgu7uSGKG Rs8xdtc9EJXVGvd6H4fZjptE1pyoFngVz5lsllB5pkoxDJYt6AycC2ozpdx+m2Xu9/x+ TPnoe3qk2i81xHBmNiH937HLAaYgDpwIQ3K/mZ71rRw8n/VYQfuxm/n3G3PNRceVzDx7 GZRGfeIiH5vAzLl8BTyNaZwceRcKB1JNYIiYYKF9NpLLXSj8x2lzdCkerao6w+xGuwYL /AFw== Received: by 10.101.151.37 with SMTP id d37mr993620ano.26.1350087713117; Fri, 12 Oct 2012 17:21:53 -0700 (PDT) Received: from wpzn4.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id l20si828167yhi.2.2012.10.12.17.21.53 (version=TLSv1/SSLv3 cipher=AES128-SHA); Fri, 12 Oct 2012 17:21:53 -0700 (PDT) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by wpzn4.hot.corp.google.com (Postfix) with ESMTP id 0881D1E0048; Fri, 12 Oct 2012 17:21:53 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id B1438160B41; Fri, 12 Oct 2012 17:21:52 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Fri, 12 Oct 2012 17:21:12 -0700 Message-Id: <1350087681-16442-6-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1350087681-16442-1-git-send-email-sjg@chromium.org> References: <1350087681-16442-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQm0rZ7oS8P2TulISc+pPkjagW5lTST1c0v8jpza7bAL3N2auXyDn+89/HlwZyHlT3JDx5ujb/54bmsfBclWb3//BiwkFpzS/8z9yxBUVmUgC8uLeOeLxYoRZ7P8o+6B/bxXmJVZVsPiU8egWrWQckdfc1/Oa8CQXh1m86gq/du3vZcaFTpZM4Dg9ni3zDKwG+GxPomO Cc: Tom Rini , Scott McNutt Subject: [U-Boot] [PATCH 05/14] nios2: Change bi_baudrate and global data baudrate to int 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 These don't need to be longs, so change them. Signed-off-by: Simon Glass --- arch/nios2/include/asm/global_data.h | 2 +- arch/nios2/include/asm/u-boot.h | 2 +- common/cmd_bdinfo.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/nios2/include/asm/global_data.h b/arch/nios2/include/asm/global_data.h index 3b0d9e6..413b485 100644 --- a/arch/nios2/include/asm/global_data.h +++ b/arch/nios2/include/asm/global_data.h @@ -26,7 +26,7 @@ typedef struct global_data { bd_t *bd; unsigned long flags; - unsigned long baudrate; + unsigned int baudrate; unsigned long cpu_clk; /* CPU clock in Hz! */ unsigned long have_console; /* serial_init() was called */ #ifdef CONFIG_PRE_CONSOLE_BUFFER diff --git a/arch/nios2/include/asm/u-boot.h b/arch/nios2/include/asm/u-boot.h index 315ef8b..e591237 100644 --- a/arch/nios2/include/asm/u-boot.h +++ b/arch/nios2/include/asm/u-boot.h @@ -39,7 +39,7 @@ typedef struct bd_info { unsigned long bi_flashoffset; /* reserved area for startup monitor */ unsigned long bi_sramstart; /* start of SRAM memory */ unsigned long bi_sramsize; /* size of SRAM memory */ - unsigned long bi_baudrate; /* Console Baudrate */ + unsigned int bi_baudrate; /* Console Baudrate */ } bd_t; /* For image.h:image_check_target_arch() */ diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 447c0a2..899a216 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -175,7 +175,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) printf("ip_addr = %s\n", getenv("ipaddr")); #endif - printf("baudrate = %ld bps\n", bd->bi_baudrate); + printf("baudrate = %u bps\n", bd->bi_baudrate); return 0; }