From patchwork Wed Oct 10 23:12:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 190814 X-Patchwork-Delegate: sjg@chromium.org 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 0CA652C007C for ; Thu, 11 Oct 2012 17:34:45 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 82F9A4A21A; Thu, 11 Oct 2012 08:34:44 +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 7GM2YCMI2nEZ; Thu, 11 Oct 2012 08:34:44 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EF23A4A21C; Thu, 11 Oct 2012 08:34:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0C8244A21C for ; Thu, 11 Oct 2012 08:34:41 +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 OM7Kb+tw0kGr for ; Thu, 11 Oct 2012 08:34:39 +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-wg0-f74.google.com (mail-wg0-f74.google.com [74.125.82.74]) by theia.denx.de (Postfix) with ESMTPS id A5E9E4A21A for ; Thu, 11 Oct 2012 08:34:38 +0200 (CEST) Received: by mail-wg0-f74.google.com with SMTP id dt11so83601wgb.3 for ; Wed, 10 Oct 2012 23:34:37 -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=iTufiRltaw927hxrymM7IZG4a+fwj/cPMU9/2y5ZCao=; b=BJDNQU8djgBbY6pJtJxtHTjOYC4oxTLI7IOMg31v4VLUIZYqwgY1RqaeWaZNCecxgC 1NJulwMeq6rA2vSCrP3wsrVNTPHLM9DKhCHREWpF6oufH1EPyor6dgnzXAO2hk0xJOc3 y+aGRx5VPj0jSJPSpsl9+MRrSCoom3F7azo4DBBi9cw2oXoBmwJ8U9Wi0nmKyOd3EH4T /P9cBbIL5W4rRv/r04EGqlS/dhgPBiQ4Ys9ODWss5+KzlnJ5HavM/qlq/ap5ZVwamRHS rOxf+8mQ3QOno1h5/6Sp3G+Kv0Ev2bCIqNTYn0o5SYDbxO7h65loViWj9jikGnDFulE7 apwQ== Received: by 10.180.84.74 with SMTP id w10mr2012632wiy.4.1349910813087; Wed, 10 Oct 2012 16:13:33 -0700 (PDT) Received: from hpza10.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id e5si1822093wiw.0.2012.10.10.16.13.33 (version=TLSv1/SSLv3 cipher=AES128-SHA); Wed, 10 Oct 2012 16:13:33 -0700 (PDT) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by hpza10.eem.corp.google.com (Postfix) with ESMTP id AD17020004E; Wed, 10 Oct 2012 16:13:32 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 1FDA9160EA0; Wed, 10 Oct 2012 16:13:32 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Wed, 10 Oct 2012 16:12:52 -0700 Message-Id: <1349910781-32088-2-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1349910781-32088-1-git-send-email-sjg@chromium.org> References: <1349910781-32088-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQnqNkcamciKNmOwBN+lKvsL2hf+wiwAxuDBprFEoaNRdT0DOiazrIOABr8/PtJBIOMbdpVaQwVPY12WqVtEq0pGSUOt+39Pg0+WCjH3FKg7afneiccOt8cUuAaeRejzTWvJDHJTsxKNhreaALfmzwfn28nB6vs9R/Y9NrrNqKlxjZPSHpc4/Fu5D+XueAmG+F57EZDN Subject: [U-Boot] [PATCH v2 01/10] x86: Change board baud_rate to ulong 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 This is a ulong for some architectures and just unsigned for others. Change x86 to be consistent. Signed-off-by: Simon Glass Acked-by: Graeme Russ --- arch/x86/include/asm/u-boot.h | 2 +- common/cmd_bdinfo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/u-boot.h b/arch/x86/include/asm/u-boot.h index da667c5..0671b8d 100644 --- a/arch/x86/include/asm/u-boot.h +++ b/arch/x86/include/asm/u-boot.h @@ -48,7 +48,7 @@ typedef struct bd_info { unsigned short bi_ethspeed; /* Ethernet speed in Mbps */ unsigned long bi_intfreq; /* Internal Freq, in MHz */ unsigned long bi_busfreq; /* Bus Freq, in MHz */ - unsigned int bi_baudrate; /* Console Baudrate */ + unsigned long bi_baudrate; /* Console Baudrate */ unsigned long bi_boot_params; /* where this board expects params */ struct /* RAM configuration */ { diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 23bd8a5..9bc0ebc 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -439,7 +439,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) printf("ip_addr = %s\n", getenv("ipaddr")); print_mhz("ethspeed", bd->bi_ethspeed); #endif - printf("baudrate = %d bps\n", bd->bi_baudrate); + printf("baudrate = %ld bps\n", bd->bi_baudrate); return 0; }