From patchwork Fri Jul 20 02:16:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tetsuyuki Kobayashi X-Patchwork-Id: 172114 X-Patchwork-Delegate: albert.aribaud@free.fr 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 A3C112C0338 for ; Fri, 20 Jul 2012 12:16:51 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3BD0A28089; Fri, 20 Jul 2012 04:16:48 +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 IM1EZG1qBMaM; Fri, 20 Jul 2012 04:16:47 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A46B128093; Fri, 20 Jul 2012 04:16:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5F25928094 for ; Fri, 20 Jul 2012 04:16:42 +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 B23p4SzO80qU for ; Fri, 20 Jul 2012 04:16:40 +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 vrgw2.firstserver.ne.jp (vrgw2.firstserver.ne.jp [164.46.1.45]) by theia.denx.de (Postfix) with ESMTPS id 447A628093 for ; Fri, 20 Jul 2012 04:16:36 +0200 (CEST) Received: from fvrsp17.firstserver.ne.jp (fvrsp17.firstserver.ne.jp [203.183.56.3]) by vrgw2.firstserver.ne.jp (8.13.8/8.13.8/FirstServer) with ESMTP id q6K2GO79028659; Fri, 20 Jul 2012 11:16:24 +0900 (envelope-from koba@kmckk.co.jp) Received: from 203.137.25.97 (203.137.25.97) by fvrsp17.firstserver.ne.jp (F-Secure/virusgw_smtp/407/fvrsp17.firstserver.ne.jp); Fri, 20 Jul 2012 11:16:24 +0900 (JST) X-Virus-Status: clean(F-Secure/virusgw_smtp/407/fvrsp17.firstserver.ne.jp) Received: from localhost (58-188-103-12f2.kns1.eonet.ne.jp [58.188.103.12]) (authenticated (0 bits)) by mail.kmckk.co.jp (8.14.3/8.11.3) with ESMTP id q6K2GNFt026658; Fri, 20 Jul 2012 11:16:24 +0900 From: Tetsuyuki Kobayshi To: u-boot@lists.denx.de, nobuhiro.iwamatsu.yj@renesas.com Date: Fri, 20 Jul 2012 11:16:08 +0900 Message-Id: <1342750568-6356-1-git-send-email-koba@kmckk.co.jp> X-Mailer: git-send-email 1.7.9.5 Subject: [U-Boot] [PATCH] arm: rmobile: kzm9g: Fix CONFIG_BAUDRATE setting 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 From: Tetsuyuki Kobayashi The value of CONFIG_BAUDRATE is treated as string and put as initial value of environment variable. If it begin with '(', it is wrongly parsed to 0 in number. So I removed '(' and ')'. Signed-off-by: Tetsuyuki Kobayashi --- Hi, Iwamatsu-san This is a kind of regression. The initial value of environment variable of barud rate is wrong. When you flash U-Boot to a new board, serial console doesn't work because board rate is set to 0. If you save environment variables in old version U-Boot, you don't aware this problem. include/configs/kzm9g.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index bd157d9..14f088f 100644 --- a/include/configs/kzm9g.h +++ b/include/configs/kzm9g.h @@ -46,7 +46,7 @@ #define CONFIG_CMD_FAT #define CONFIG_CMD_BOOTZ -#define CONFIG_BAUDRATE (115200) +#define CONFIG_BAUDRATE 115200 #define CONFIG_BOOTARGS "root=/dev/null console=ttySC4,115200" #define CONFIG_INTEGRATOR #define CONFIG_ARCH_CINTEGRATOR