From patchwork Sat Oct 13 00:21:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 191257 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 684302C008B for ; Sat, 13 Oct 2012 11:22:51 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 297784A17D; Sat, 13 Oct 2012 02:22:47 +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 ay9Ua6NJtPXy; Sat, 13 Oct 2012 02:22:46 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 394D04A142; Sat, 13 Oct 2012 02:22:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 032874A119 for ; Sat, 13 Oct 2012 02:21:59 +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 JaJTifR1YoWN for ; Sat, 13 Oct 2012 02:21:58 +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-vb0-f74.google.com (mail-vb0-f74.google.com [209.85.212.74]) by theia.denx.de (Postfix) with ESMTPS id A53744A116 for ; Sat, 13 Oct 2012 02:21:53 +0200 (CEST) Received: by mail-vb0-f74.google.com with SMTP id s24so394095vbi.3 for ; Fri, 12 Oct 2012 17:21:52 -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=SvYlq8dX/KRx47k8VZqIS84zOOfznk6xTXu74bZqYa0=; b=LxZ/G7LPNXbHYMNIhKy8E7hK+go1a4pJtVjmlftS39FPg24kVLOCwFGRK1KkvB1cX4 uKZbvj7iP+MeSc4FLXB25D/mk/skFDCaqques2YnJko86XMQJTQhaOHjMacTRIzBDUcf a4Dgvi/oioxvKGuKmntUi3egQG2oyhjqYBytOdqmjfUIDokSmy/XjCG3nsM9YrxYeQYp wD2NmA8IgVan23j/0YcMEypbTPY8TqOVRbXOF544nIWg8ud/sWyPNjovBaJL9HcsPOs3 HeBFjnNimVbS1QPVGb2CZxsu5Xz0mllxvF+1aKicTD+exD//MN+KXo4XZoth3k65v1vJ 8HZw== Received: by 10.236.78.199 with SMTP id g47mr4105938yhe.0.1350087712582; Fri, 12 Oct 2012 17:21:52 -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 m9si827734yhc.5.2012.10.12.17.21.52 (version=TLSv1/SSLv3 cipher=AES128-SHA); Fri, 12 Oct 2012 17:21:52 -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 79B171E0048; Fri, 12 Oct 2012 17:21:52 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 3611F160B41; Fri, 12 Oct 2012 17:21:52 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Fri, 12 Oct 2012 17:21:08 -0700 Message-Id: <1350087681-16442-2-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: ALoCoQlpx16r11omSDEkZWZBiV/ovULjT/b9Bk7lRsL2myHlPeiwy3Wr0hA5LLZxcuRuv4OH6HMCOK44CN7jOvgt4UeU+Xy+aLm1zql9gnT6vQ2sh+GiCaTt6w+40sOrmsU9XbCRhdgkCDmVYwPp4LIQhe5FrBg3Ge3PAIZz7ktC6liWOnRw3E9scfU8Iw9Ouqdb9og9fjBv Cc: Tom Rini Subject: [U-Boot] [PATCH 01/14] sh: 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/sh/include/asm/global_data.h | 2 +- arch/sh/include/asm/u-boot.h | 2 +- common/cmd_bdinfo.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/sh/include/asm/global_data.h b/arch/sh/include/asm/global_data.h index 6e534ad..9a2c193 100644 --- a/arch/sh/include/asm/global_data.h +++ b/arch/sh/include/asm/global_data.h @@ -31,7 +31,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/sh/include/asm/u-boot.h b/arch/sh/include/asm/u-boot.h index 6c04daf..2c9c463 100644 --- a/arch/sh/include/asm/u-boot.h +++ b/arch/sh/include/asm/u-boot.h @@ -33,7 +33,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 */ unsigned long bi_boot_params; /* where this board expects params */ } bd_t; diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 286c8c8..698826c 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -405,7 +405,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) print_eth(0); printf("ip_addr = %s\n", getenv("ipaddr")); #endif - printf("baudrate = %ld bps\n", (ulong)bd->bi_baudrate); + printf("baudrate = %u bps\n", bd->bi_baudrate); return 0; }