From patchwork Wed Jan 21 09:35:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Mulvihill X-Patchwork-Id: 431392 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 5576E140213 for ; Wed, 21 Jan 2015 20:35:35 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 0BC9628BB5A; Wed, 21 Jan 2015 10:33:09 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id E71722804B3 for ; Wed, 21 Jan 2015 10:33:01 +0100 (CET) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 21 Jan 2015 10:33:01 +0100 (CET) Received: by mail-wi0-f181.google.com with SMTP id fb4so19344222wid.2 for ; Wed, 21 Jan 2015 01:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:content-type :content-transfer-encoding:mime-version; bh=Fcq5WfEbeD7e7P1PC+3Fq2nH4Au9yUrXG0MJwd/R0jk=; b=jMRTscHwls14+VhUmrIyrTJpbLvItdsSGtIA0x2XxFhAmErQYyHhfJc/UfokeSEkt5 mRoFwR4ioZaKbcyKU9+9KRaxFMTdY52Xq9seMhkw7u/k4JTo2gPWNG7caKJsR7RWAWWD JgEzT4vz5ms+kdavT2pNBLWHJtXG1i0TsnSwtl5OC43KpVvNlrzDkv82kfvw2aTCvvrG n4KO1jxoWuFolsSbKFp+N2BgzdYbpnNHSjFHUxbFv8CqiZljkCXFN2DiI5T/4CSVjvNZ ATEC3P0dpfrrJpFHfTaX/7u6CZAGssCmflO9rQdzvSyOrJEZ/o3VH91QEbdht0TMThgw OMDQ== X-Received: by 10.194.20.137 with SMTP id n9mr23208081wje.114.1421832921225; Wed, 21 Jan 2015 01:35:21 -0800 (PST) Received: from [10.7.1.191] ([87.112.158.166]) by mx.google.com with ESMTPSA id dc1sm6447823wib.18.2015.01.21.01.35.19 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Wed, 21 Jan 2015 01:35:20 -0800 (PST) Message-ID: <1421832908.6920.7.camel@merveille.lan> From: Ben Mulvihill To: OpenWrt Development List Date: Wed, 21 Jan 2015 10:35:08 +0100 X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 Subject: [OpenWrt-Devel] [PATCH] lantiq: correct value for fpi clock on ar9 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Hello, This is a patch to go in target/linux/lantiq/patches-3.14/ It corrects the fpi clock value on lantiq ar9. See this discussion for further details: https://lists.openwrt.org/pipermail/openwrt-devel/2015-January/030688.html --- a/arch/mips/lantiq/xway/clk.c 2015-01-21 10:15:44.000000000 +0100 +++ b/arch/mips/lantiq/xway/clk.c 2015-01-21 10:17:29.000000000 +0100 @@ -104,8 +104,9 @@ unsigned long ltq_ar9_fpi_hz(void) unsigned long sys = ltq_ar9_sys_hz(); if (ltq_cgu_r32(CGU_SYS) & BIT(0)) - return sys; - return sys >> 1; + return sys / 3; + else + return sys / 2; } unsigned long ltq_ar9_cpu_hz(void)