From patchwork Sat Oct 13 00:21:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 191263 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 F1BC02C008F for ; Sat, 13 Oct 2012 11:23:35 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 52B764A161; Sat, 13 Oct 2012 02:23:24 +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 YdBiuDII2lmv; Sat, 13 Oct 2012 02:23:24 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 558454A167; Sat, 13 Oct 2012 02:22:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ED9CA4A113 for ; Sat, 13 Oct 2012 02:22:08 +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 ejixicS57c-x for ; Sat, 13 Oct 2012 02:22:08 +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-la0-f74.google.com (mail-la0-f74.google.com [209.85.215.74]) by theia.denx.de (Postfix) with ESMTPS id 9BEF04A133 for ; Sat, 13 Oct 2012 02:21:55 +0200 (CEST) Received: by mail-la0-f74.google.com with SMTP id j13so202281lah.3 for ; Fri, 12 Oct 2012 17:21:54 -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=9QzWfzjviTCmeauUG2W+K8JrnHx7Q6Thx3s+4IYh3Zk=; b=o3iay/aA7JRGUFkSLzCZ5LgXzNU3eakS4y7DGAlNPNjI2tLKW5kCZ/sVmU24Wd8tnQ CFRErCTMWQUDiFCwC3Affwsu23t2l7GnxJd7MhS8oY8My64IBqhSOaqJMHKfCSy2AiJN Y7xIrcCAmHEf5Jco9EFBnLP6uOj/7/kY2rCdi8DCYMt16o7c6VwkDO5xiwyPgAOOEXV7 3tYFjfWXNlBJJvOkVAfPkpaOxGjez3boiFl+MWcE6g8w/U2C0j2tCPcSafQKmFQaKhGk xnbnAZr9zdzHHBlVVjE5gHmmfkhy8A8pwhHcY6dNWUKoaPbTm3qbUNZdKSBwQMExS4ou mZag== Received: by 10.180.73.134 with SMTP id l6mr978838wiv.1.1350087714477; Fri, 12 Oct 2012 17:21:54 -0700 (PDT) Received: from hpza10.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id ci6si9210wib.3.2012.10.12.17.21.54 (version=TLSv1/SSLv3 cipher=AES128-SHA); Fri, 12 Oct 2012 17:21:54 -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 17DFE20004E; Fri, 12 Oct 2012 17:21:54 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id C9C10160DED; Fri, 12 Oct 2012 17:21:53 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Fri, 12 Oct 2012 17:21:20 -0700 Message-Id: <1350087681-16442-14-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: ALoCoQkiWrCRKA869odIX7zqZSH2b71AMaDpH6DR//rVa6kxkrBRQiumknKQCppXM6g0YfHOGd6VxL8EvIIAZSX78ItM+9eVSa8FvEHRje3X+QAMbX93p2zo+6StoMbZZ1CtezaCLKaIRn1MRkS4ZU7d3clg/hhFsFn0lqpTzKBB45x7KSBxhsYQJ69oY1s86PtFAUL3ezK7 Cc: Tom Rini Subject: [U-Boot] [PATCH 13/14] x86: Change 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 This doesn't need to be a long, so change it. Signed-off-by: Simon Glass --- arch/x86/include/asm/global_data.h | 2 +- common/cmd_bdinfo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h index 6d29c0b..bce999f 100644 --- a/arch/x86/include/asm/global_data.h +++ b/arch/x86/include/asm/global_data.h @@ -38,7 +38,7 @@ typedef struct global_data { unsigned long gd_addr; /* Location of Global Data */ bd_t *bd; unsigned long flags; - unsigned long baudrate; + unsigned int baudrate; unsigned long have_console; /* serial_init() was called */ #ifdef CONFIG_PRE_CONSOLE_BUFFER unsigned long precon_buf_idx; /* Pre-Console buffer index */ diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 656c565..48cdd16 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 = %u bps\n", bd->bi_baudrate); return 0; }