From patchwork Tue Oct 21 05:51:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tang yuantian X-Patchwork-Id: 401326 X-Patchwork-Delegate: yorksun@freescale.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 281C314007B for ; Tue, 21 Oct 2014 16:53:12 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EDD424B5FB; Tue, 21 Oct 2014 07:53:08 +0200 (CEST) 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 cGwaFuSoAGp0; Tue, 21 Oct 2014 07:53:07 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EF94D4B5EB; Tue, 21 Oct 2014 07:53:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 172D44B5EB for ; Tue, 21 Oct 2014 07:52:55 +0200 (CEST) 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 Q3u+KxICmCvK for ; Tue, 21 Oct 2014 07:52: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 na01-by2-obe.outbound.protection.outlook.com (mail-by2on0142.outbound.protection.outlook.com [207.46.100.142]) by theia.denx.de (Postfix) with ESMTPS id 207034B5E9 for ; Tue, 21 Oct 2014 07:52:50 +0200 (CEST) Received: from BN3PR0301CA0038.namprd03.prod.outlook.com (25.160.180.176) by BL2PR03MB465.namprd03.prod.outlook.com (10.141.92.14) with Microsoft SMTP Server (TLS) id 15.0.1054.13; Tue, 21 Oct 2014 05:52:47 +0000 Received: from BY2FFO11FD028.protection.gbl (2a01:111:f400:7c0c::161) by BN3PR0301CA0038.outlook.office365.com (2a01:111:e400:4000::48) with Microsoft SMTP Server (TLS) id 15.0.1054.13 via Frontend Transport; Tue, 21 Oct 2014 05:52:46 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD028.mail.protection.outlook.com (10.1.15.217) with Microsoft SMTP Server (TLS) id 15.0.1049.20 via Frontend Transport; Tue, 21 Oct 2014 05:52:46 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id s9L5qbHV027184; Mon, 20 Oct 2014 22:52:39 -0700 From: To: Date: Tue, 21 Oct 2014 13:51:58 +0800 Message-ID: <1413870718-25272-1-git-send-email-Yuantian.Tang@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(88136002)(104166001)(6806004)(68736004)(105606002)(76482002)(229853001)(106466001)(26826002)(19580395003)(2351001)(64706001)(19580405001)(89996001)(107046002)(110136001)(86362001)(93916002)(21056001)(31966008)(97736003)(84676001)(44976005)(77156001)(86152002)(92726001)(92566001)(62966002)(85852003)(50226001)(102836001)(4396001)(87286001)(36756003)(99396003)(47776003)(87936001)(95666004)(50466002)(85306004)(120916001)(48376002)(20776003)(104016003)(46102003)(50986999)(80022003); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR03MB465; H:tx30smr01.am.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB465; X-Exchange-Antispam-Report-Test: UriScan:; X-Forefront-PRVS: 0371762FE7 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=Yuantian.Tang@freescale.com; X-OriginatorOrg: freescale.com Cc: u-boot@lists.denx.de, jingchang.lu@freescale.com Subject: [U-Boot] [PATCH] arm: ls102xa: fixed a bus frequency setting error X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Tang Yuantian The bus frequency in SOC node should be clock frequency of platform. That is not true if it is devided by 2. Signed-off-by: Tang Yuantian --- arch/arm/cpu/armv7/ls102xa/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/ls102xa/fdt.c b/arch/arm/cpu/armv7/ls102xa/fdt.c index 4ce3808..989780d 100644 --- a/arch/arm/cpu/armv7/ls102xa/fdt.c +++ b/arch/arm/cpu/armv7/ls102xa/fdt.c @@ -91,7 +91,7 @@ void ft_cpu_setup(void *blob, bd_t *bd) } do_fixup_by_prop_u32(blob, "device_type", "soc", - 4, "bus-frequency", busclk / 2, 1); + 4, "bus-frequency", busclk, 1); ft_fixup_enet_phy_connect_type(blob);