From patchwork Sat Oct 13 00:21:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 191256 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 4DD3C2C008B for ; Sat, 13 Oct 2012 11:22:43 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D7B8E4A165; Sat, 13 Oct 2012 02:22:40 +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 65KmyLW+Jw1K; Sat, 13 Oct 2012 02:22:40 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B194F4A13D; Sat, 13 Oct 2012 02:22:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E0CC34A119 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 eYZdaEnNzfTt for ; Sat, 13 Oct 2012 02:21:57 +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 C02044A11D for ; Sat, 13 Oct 2012 02:21:54 +0200 (CEST) Received: by mail-yh0-f74.google.com with SMTP id 10so414519yhl.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=0Faqls/bb9KvwzU9DWJnzLqjmge7iAaztGEg8692apI=; b=bplO2v/EtB7c13PMORpqS8ZLww2OBCIKU5jTJ3kzB91b91TNHv7wgpg5Ks9Gs9lIrc m30Ehx3VOcQlpyN8BoE8hui0XXThqMB4KADoJu+eOQrOidd6rAPijUaVYQhzIeioWt5m rebLS5g/tJJceT6IoQFcpAI0oz3TWsaV6zi7uTiYySym41a3GPJvvBRpM3f0t8c1U4ML vrJyvd7i4LPYyl7zDdlfUgpB9ViHvNXy8qclKCSmAWkV42j3aL4EK/ZtxoJn/0Qqjz0T jbH+Xo0x/Gop0bHQyLE0Yu61labnIm0mUWKXfOwRBUobNcspQ2hOq1WXRIPvz3iGO0OX Ua/A== Received: by 10.236.129.106 with SMTP id g70mr4082540yhi.49.1350087713251; 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 t29si828332yha.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 wpzn4.hot.corp.google.com (Postfix) with ESMTP id AD9311E0043; Fri, 12 Oct 2012 17:21:52 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 571A6160DED; Fri, 12 Oct 2012 17:21:52 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Fri, 12 Oct 2012 17:21:09 -0700 Message-Id: <1350087681-16442-3-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: ALoCoQm2vgZjK1srK2vrGtQN/iMVm3hCocCg5TRTxWFUeexU5VMW9Ct1JxnkUvE8qu2NT/6Wko+nJlXdOm8qXobRwLPK55eHzjVrXnAbNMyndRH4m2FBxdsnBd6edZRbR2y2UDo0wiIOSDIVxUZVHDG51QZtPEHFi0YTpvXr66p4Fj4dUlcjUQ9+Mhi+AOibPbdu/Ha8BzQx Cc: Tom Rini Subject: [U-Boot] [PATCH 02/14] avr32: 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 Acked-by: Andreas Bießmann --- arch/avr32/include/asm/global_data.h | 2 +- arch/avr32/include/asm/u-boot.h | 2 +- common/cmd_bdinfo.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/avr32/include/asm/global_data.h b/arch/avr32/include/asm/global_data.h index 7878bb1..bf661e2 100644 --- a/arch/avr32/include/asm/global_data.h +++ b/arch/avr32/include/asm/global_data.h @@ -33,7 +33,7 @@ typedef struct global_data { bd_t *bd; unsigned long flags; - unsigned long baudrate; + unsigned int baudrate; unsigned long stack_end; /* highest stack address */ unsigned long have_console; /* serial_init() was called */ #ifdef CONFIG_PRE_CONSOLE_BUFFER diff --git a/arch/avr32/include/asm/u-boot.h b/arch/avr32/include/asm/u-boot.h index 1d2959a..97bbbde 100644 --- a/arch/avr32/include/asm/u-boot.h +++ b/arch/avr32/include/asm/u-boot.h @@ -23,7 +23,7 @@ #define __ASM_U_BOOT_H__ 1 typedef struct bd_info { - unsigned long bi_baudrate; + unsigned int bi_baudrate; unsigned char bi_phy_id[4]; unsigned long bi_board_number; void *bi_boot_params; diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 698826c..138693e 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -344,7 +344,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")); - printf("baudrate = %lu bps\n", bd->bi_baudrate); + printf("baudrate = %u bps\n", bd->bi_baudrate); return 0; }