From patchwork Sat Oct 13 00:21:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 191258 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 5E1612C008B for ; Sat, 13 Oct 2012 11:22:59 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 479364A18E; Sat, 13 Oct 2012 02:22:53 +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 5C4slBF84Wxl; Sat, 13 Oct 2012 02:22:53 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3B50B4A147; Sat, 13 Oct 2012 02:22:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 07E014A134 for ; Sat, 13 Oct 2012 02:22:00 +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 TAZe-FUO-Vhg for ; Sat, 13 Oct 2012 02:21:59 +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-ee0-f74.google.com (mail-ee0-f74.google.com [74.125.83.74]) by theia.denx.de (Postfix) with ESMTPS id 0058D4A124 for ; Sat, 13 Oct 2012 02:21:54 +0200 (CEST) Received: by mail-ee0-f74.google.com with SMTP id b57so203703eek.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=OsHWCcYAgBAV4C8wRz4vyjRC5Ui+irpAnKfw5rnmreU=; b=Ofmu7U79cwFhV+LDNfbBDw4wp9tuWxj0T08oeVFJ3CY06u4C2BdgYIX8fSwLbGYHGg T2ljCbcWefVZTZPzUtYWJw9fuMZSHTCXWbw0XqGeET31LDMddg7i2vi07WEb/Qqe302i wtwV05nuDumkbHgRnExJpS6ojJZ2WaO8GcsigG0fRzphT4kqP/rti98KXHc8VEOR9og9 BbngKTXc4pROvkmeQnrq58iTjv413rFmpUDqjF6XjIuKTIxjzTK1dcy45Pb2Wkkvrqn4 q1UJRhzBHln4q1kI8huDfh91SSMrfIrjulEWxwpdZ3nBuEGyexN3slpkU+PAYVsEoVWk fCAw== Received: by 10.180.87.100 with SMTP id w4mr977402wiz.3.1350087713931; Fri, 12 Oct 2012 17:21:53 -0700 (PDT) Received: from hpza10.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id cx9si9870wib.0.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 hpza10.eem.corp.google.com (Postfix) with ESMTP id 8592B200057; Fri, 12 Oct 2012 17:21:53 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id EAC30160EA0; Fri, 12 Oct 2012 17:21:52 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Fri, 12 Oct 2012 17:21:14 -0700 Message-Id: <1350087681-16442-8-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: ALoCoQn+gQXBWmm+UGEDcFHUFT+29cBs0CVUDkXaRKriQL3RsdwJLiQC7nAVtlhsiS+ZbeuMeL//G9o2B16IoOZv2BtK7dvDIY/gg2MTb5pCzgqpsRxf9Ww0pQT4JlP5CD8/a1Ezx7HJRDhi3erQi7x2fwJu2ARUfIPRnskj8ahlmpVFLKehhlLus0ctEHssDd4ggeqghlXi Cc: Kim Phillips , Kumar Gala , Andy Fleming , Tom Rini , Stefan Roese Subject: [U-Boot] [PATCH 07/14] powerpc: 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/powerpc/include/asm/global_data.h | 2 +- arch/powerpc/include/asm/u-boot.h | 2 +- common/cmd_bdinfo.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/global_data.h b/arch/powerpc/include/asm/global_data.h index 5a5877f..374fc6d 100644 --- a/arch/powerpc/include/asm/global_data.h +++ b/arch/powerpc/include/asm/global_data.h @@ -38,7 +38,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 bus_clk; #if defined(CONFIG_8xx) diff --git a/arch/powerpc/include/asm/u-boot.h b/arch/powerpc/include/asm/u-boot.h index b2fa2b5..7229a98 100644 --- a/arch/powerpc/include/asm/u-boot.h +++ b/arch/powerpc/include/asm/u-boot.h @@ -81,7 +81,7 @@ typedef struct bd_info { unsigned long bi_ipbfreq; /* IPB Bus Freq, in MHz */ unsigned long bi_pcifreq; /* PCI Bus Freq, in MHz */ #endif - unsigned long bi_baudrate; /* Console Baudrate */ + unsigned int bi_baudrate; /* Console Baudrate */ #if defined(CONFIG_405) || \ defined(CONFIG_405GP) || \ defined(CONFIG_405CR) || \ diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 5af60e8..6b2f914 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -148,7 +148,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) print_mhz("ethspeed", bd->bi_ethspeed); #endif printf("IP addr = %s\n", getenv("ipaddr")); - printf("baudrate = %6ld bps\n", bd->bi_baudrate); + printf("baudrate = %6u bps\n", bd->bi_baudrate); print_num("relocaddr", gd->relocaddr); return 0; }