From patchwork Sat Oct 13 00:21:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 191252 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 86CEA2C008A for ; Sat, 13 Oct 2012 11:22:06 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2F0EC4A120; Sat, 13 Oct 2012 02:22:05 +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 rTWcRSfI404M; Sat, 13 Oct 2012 02:22:04 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 17F2C4A12F; Sat, 13 Oct 2012 02:21:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D0A3C4A119 for ; Sat, 13 Oct 2012 02:21:54 +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 ed-ZqqTTm4KU for ; Sat, 13 Oct 2012 02:21:54 +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-qa0-f74.google.com (mail-qa0-f74.google.com [209.85.216.74]) by theia.denx.de (Postfix) with ESMTPS id F3ABE4A111 for ; Sat, 13 Oct 2012 02:21:53 +0200 (CEST) Received: by mail-qa0-f74.google.com with SMTP id a16so9336qae.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=KoCi6iw68Srm+KGSHf6hs1tNk1JRc13s+O0cWCYTspo=; b=SsgK/a2dqDyQqYL6xtigKH0ZwmdS3GVwF9VNVVJM5jk/HRVB2hGMuxq5b0cLJmDJZC BZOdmOc2uf7O2rKKWhkrzBmLnvjcKIBQ355wOU5tFB//tT7vjNuB3N+cACfaLXgG38/V 2RKSeKNbW0ROg3pr/StRQywzJAldzBBsP9EjBxlIoi07BkxZpyyeN//Nksm5uNfuGT8k 0xVv98S0QVod2U/Lnc8yen8XzmRopxOksqDuO0zkW7l1wFo20/1gguI+Xj6e754S/ufa Ce5OYOqKfth2oN3+6b46HF1rX7Ba0YH+3+qVFqlRV2BxurN69lDSzwRy8qn5LTww0PDf 3JCA== Received: by 10.101.132.6 with SMTP id j6mr1003684ann.3.1350087713589; 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 t29si828537yha.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 7B8AA1E0043; Fri, 12 Oct 2012 17:21:53 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 5CE6C16107B; Fri, 12 Oct 2012 17:21:53 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Fri, 12 Oct 2012 17:21:17 -0700 Message-Id: <1350087681-16442-11-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: ALoCoQkEE4aMQj9KhCxs7ChEQBeLaO/zKp00LbtmjqgpB/exoAwg+diCGM/u8kXLOp+vP3Z10w9apYHk1u0ieozNUNxdyM6MT54kcMVQ1ph6wVzCunL0dJZ3lUwqbosDg5pRiP1usilVOsOy7+3RfJpjdKwu3L3CNl9BwETTHrZs5YMfnmyLsL5hcfvybHjF2/1/mV7sk2K/ Cc: Tom Rini Subject: [U-Boot] [PATCH 10/14] blackfin: 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. Also adjust bi_baudrate to be unsigned. Signed-off-by: Simon Glass --- arch/blackfin/include/asm/global_data.h | 2 +- arch/blackfin/include/asm/u-boot.h | 2 +- arch/blackfin/lib/board.c | 2 +- common/cmd_bdinfo.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/blackfin/include/asm/global_data.h b/arch/blackfin/include/asm/global_data.h index 290a9e7..d91e5a4 100644 --- a/arch/blackfin/include/asm/global_data.h +++ b/arch/blackfin/include/asm/global_data.h @@ -41,7 +41,7 @@ typedef struct global_data { bd_t *bd; unsigned long flags; unsigned long board_type; - 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/arch/blackfin/include/asm/u-boot.h b/arch/blackfin/include/asm/u-boot.h index df81183..7abd6c2 100644 --- a/arch/blackfin/include/asm/u-boot.h +++ b/arch/blackfin/include/asm/u-boot.h @@ -29,7 +29,7 @@ #define _U_BOOT_H_ 1 typedef struct bd_info { - int bi_baudrate; /* serial console baudrate */ + unsigned int bi_baudrate; /* serial console baudrate */ unsigned long bi_boot_params; /* where this board expects params */ unsigned long bi_memstart; /* start of DRAM memory */ phys_size_t bi_memsize; /* size of DRAM memory in bytes */ diff --git a/arch/blackfin/lib/board.c b/arch/blackfin/lib/board.c index e47b606..9fbbea0 100644 --- a/arch/blackfin/lib/board.c +++ b/arch/blackfin/lib/board.c @@ -78,7 +78,7 @@ static void display_global_data(void) printf(" gd: %p\n", gd); printf(" |-flags: %lx\n", gd->flags); printf(" |-board_type: %lx\n", gd->board_type); - printf(" |-baudrate: %lu\n", gd->baudrate); + printf(" |-baudrate: %u\n", gd->baudrate); printf(" |-have_console: %lx\n", gd->have_console); printf(" |-ram_size: %lx\n", gd->ram_size); printf(" |-env_addr: %lx\n", gd->env_addr); diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 7686996..bc737d0 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -304,7 +304,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 = %d bps\n", bd->bi_baudrate); + printf("baudrate = %u bps\n", bd->bi_baudrate); return 0; }