From patchwork Sat Oct 13 00:21:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 191253 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 7CA832C008B for ; Sat, 13 Oct 2012 11:22:16 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 220984A116; Sat, 13 Oct 2012 02:22:15 +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 mqoJ9fpGFNSK; Sat, 13 Oct 2012 02:22:14 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 560F44A11D; Sat, 13 Oct 2012 02:21:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1468F4A12E for ; Sat, 13 Oct 2012 02:21:56 +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 6Vc89xkNoD83 for ; Sat, 13 Oct 2012 02:21:55 +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 648754A113 for ; Sat, 13 Oct 2012 02:21:54 +0200 (CEST) Received: by mail-wg0-f74.google.com with SMTP id dt11so203113wgb.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=Jsll/KBBNMInVFGZpe2nWmZOWB2ms/a4EE3Xla98n8E=; b=EaJ0/okbzSyvBORuBFNZFphs5IUHmCTQevOE+SOdO5Jgv5GvVVvfu9n+KPER63f1cp DOe+kErgf8t/IfI5b2W4u3QX6bTrY1jiLn1JYxxlaHMBpQJJc0/e14gXPOj5CiLLRc6I sAy98LrzJyYbkgQWJoNg5hXdJQDIKfGKsKn9XNCusw7fcvssgBylirs4ZAAxHWr4foOs xXqYMxuM5IEAi/bzUbM3ALP+uLp5t4Ir7T2N6BcccMsiurO5IgIddtn1yJNdnJYCR9oh NEzypOY0oAtjgTLHQeKW7PCSXqKZvq1qTE7yAy67AH/WLV87Vs1jWku5HOPLrmyxL9WQ gj3Q== Received: by 10.180.94.98 with SMTP id db2mr979994wib.2.1350087713829; 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 bu8si9359wib.2.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 6DBE320004E; Fri, 12 Oct 2012 17:21:53 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id CFFCF160DED; Fri, 12 Oct 2012 17:21:52 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Fri, 12 Oct 2012 17:21:13 -0700 Message-Id: <1350087681-16442-7-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: ALoCoQlq/rbQJkqGitxUSIEsJW3Opu2jcnJygmyT0q7r8YgvnU2ddJ6jqGp3XIUor1spllNdnxa7i/snDzAKgRyAKWuy5+KsqhWa0XVdkcffhHl8QdtckQrwvIc1TyiYSAmnAW3dWbqV3Xodm/r07OG7lsEpV6Q0wHt308RtdxqAOMw0Z7PSHRtL20QV+7dggRTXojoz0oP6 Cc: Tom Rini Subject: [U-Boot] [PATCH 06/14] openrisc: 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/openrisc/include/asm/global_data.h | 2 +- arch/openrisc/include/asm/u-boot.h | 2 +- common/cmd_bdinfo.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/openrisc/include/asm/global_data.h b/arch/openrisc/include/asm/global_data.h index 6a0c0cc..96f3f1c 100644 --- a/arch/openrisc/include/asm/global_data.h +++ b/arch/openrisc/include/asm/global_data.h @@ -35,7 +35,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 have_console; /* serial_init() was called */ phys_size_t ram_size; /* RAM size */ diff --git a/arch/openrisc/include/asm/u-boot.h b/arch/openrisc/include/asm/u-boot.h index 76b8132..f2f31d3 100644 --- a/arch/openrisc/include/asm/u-boot.h +++ b/arch/openrisc/include/asm/u-boot.h @@ -32,7 +32,7 @@ #define _U_BOOT_H_ typedef struct bd_info { - unsigned long bi_baudrate; /* serial console baudrate */ + unsigned int bi_baudrate; /* serial console baudrate */ unsigned long bi_arch_number; /* unique id for this board */ unsigned long bi_boot_params; /* where this board expects params */ unsigned long bi_memstart; /* start of DRAM memory */ diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 899a216..5af60e8 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -509,7 +509,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) printf("ip_addr = %s\n", getenv("ipaddr")); #endif - printf("baudrate = %ld bps\n", bd->bi_baudrate); + printf("baudrate = %u bps\n", bd->bi_baudrate); return 0; }