From patchwork Thu Aug 22 01:57:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 268925 X-Patchwork-Delegate: iwamatsu@nigauri.org 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 CA1F52C00C8 for ; Thu, 22 Aug 2013 12:03:53 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0082A4A08F; Thu, 22 Aug 2013 04:03:51 +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 jQyrlFTe4VPd; Thu, 22 Aug 2013 04:03:50 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9D24E4A080; Thu, 22 Aug 2013 04:03:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6CCAF4A080 for ; Thu, 22 Aug 2013 04:03: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 NVtt-SHMifai for ; Thu, 22 Aug 2013 04:03:37 +0200 (CEST) X-Greylist: delayed 348 seconds by postgrey-1.27 at theia; Thu, 22 Aug 2013 04:03:30 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-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by theia.denx.de (Postfix) with ESMTPS id 9D53B4A068 for ; Thu, 22 Aug 2013 04:03:30 +0200 (CEST) Received: by mail-pd0-f171.google.com with SMTP id g10so1221426pdj.16 for ; Wed, 21 Aug 2013 19:03:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=mPRsvfdk3578sVEoj1Osk3raoMk8+Z4lspeb6tBRRfM=; b=SvsxXFJoyKnYTeEP4hYQDhPLn3x8U0CYrH/u3lHSn9X3s7Hpa0RElq9N/nrT4l8xqf Dxn44g27wi7ig49Lo0Ba5IGAkA4MalPUDFQPTFpLh9n/55sBi7ZzZckMjz1QqfkBpcZm daBdaOABsiwyotmSAzTCQihm3f6BxxJbjC6ZYJa94Py0OW2lhTeyKIhxyjAtOKX8s9gx wcITRWLjogo4ayhMndB6pSUnT1RzOpzkNK94I0rmnvh1TQuo7M6aNrUWB0iHHZIXrtoB jvpElpnv190ac6KqeQDeqghJg5+JNVncHlJe0+5VRgwy0ubx7/j2HuT+TNHKGgMfDz+X z0hw== X-Gm-Message-State: ALoCoQng+7gXjjGQeXkuYjFgQrOt69IV3Kd1Y/shbXNwuH+gyI8xb1wOZoj9sn5QUC/DJHO6/cZy X-Received: by 10.66.2.164 with SMTP id 4mr12546588pav.55.1377136664532; Wed, 21 Aug 2013 18:57:44 -0700 (PDT) Received: from xps-iwamatsu.renesas.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id py4sm11365154pbc.14.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 18:57:43 -0700 (PDT) From: Nobuhiro Iwamatsu To: iwamatsu@nigauri.org Date: Thu, 22 Aug 2013 10:57:14 +0900 Message-Id: <1377136635-27875-5-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1377136635-27875-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> References: <1377136635-27875-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> Cc: u-boot@lists.denx.de, Nobuhiro Iwamatsu Subject: [U-Boot] [PATCH 5/6] serial: sh: Change The definition of clock of SCIF 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 The former SH/SCIF driver had calculated baudrate based on CONFIG_SYS_CLK_FREQ. The newest SH/SCIF needs calculation of the clock for SCIF. This patch defines clock CONFIG_SH_SCIF_CLK_FREQ for SCIF and changes it to CONFIG_SH_SCIF_CLK_FREQ from CONFIG_SYS_CLK_FREQ. Signed-off-by: Nobuhiro Iwamatsu --- drivers/serial/serial_sh.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c index ff2cdc5..67cc0dc 100644 --- a/drivers/serial/serial_sh.c +++ b/drivers/serial/serial_sh.c @@ -48,7 +48,9 @@ static struct uart_port sh_sci = { static void sh_serial_setbrg(void) { DECLARE_GLOBAL_DATA_PTR; - sci_out(&sh_sci, SCBRR, SCBRR_VALUE(gd->baudrate, CONFIG_SYS_CLK_FREQ)); + + sci_out(&sh_sci, SCBRR, + SCBRR_VALUE(gd->baudrate, CONFIG_SH_SCIF_CLK_FREQ)); } static int sh_serial_init(void)