Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp398795ybh; Wed, 15 Jul 2020 05:06:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIvk8ihtlM6XEg4APg4GJ68gy+R5TctclLkdZJKjJI0TESJx2NnE5LREQV76lBnHk0cNGs X-Received: by 2002:a17:906:4757:: with SMTP id j23mr8453849ejs.431.1594814805352; Wed, 15 Jul 2020 05:06:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594814805; cv=none; d=google.com; s=arc-20160816; b=xQEw6WvUMz9lrKSyTEwZAdODgZmP8pTzNG1VXorv8XWCsObwq5m13pAExv23lK/9DD F3lxH36wusJo6B1kLME1lkPbIHM2Vn7zbytQ3ypSbx9ShFmDN7+YtWcdJtcmO49bgsKa 8DbhNHfkXQWehpeDSTXRjWYTUZE01A7uCB7AzpAhy/3+6My0UyDzqNxW4ev5PjyRUHQj le1tUXmu5QLWWyDPREzNJlPHF7t86WKLelAeL7up26kM2zf/UxKkqoBpb/p+/o1XRiuI n+V72nQLyUk/wrAlHhpeactWzupM9bqtDcCX6N9KWNJd9sVO+MQMqPL7iHSHLbwSkFmw 5CuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=xo0sAGQLg+liS3Tqh7SamgO1ecq6OhmIQK0e4B4WJDQ=; b=AweM5ezRPqO7OmYC/wndu/KIZnaHhrwJ6zSNKfO1N+MIAGDB24RUFRXMs4/4vsxgkk Xm4jIC2wwVtZtFQ22OK8UIHMkGaeUoqb/H5RmoKv0TYlgjkZXZNvfnaBB1Q/phyTdSmT BkfCdQgljo3PFogbJnmJX36poYKMcEaF5cAooPXFGTx6FhO0t4CrkhSCY3FXXhr90uAJ jfdvVMW+qZZS/CCu+BcE0r+8UkdhkUnTa0lz6EDLOubGn8pB1nzmFGaLltVMYNnzOGbw RhCPigSNuJJo4n+fyti8dVmU1HP5mtRxrVjA9CNPbUABBNd+xIwCTXn0ZPyY/0oBRjYu 8Ghw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=TIynM0Jo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z20si1071222ejb.342.2020.07.15.05.06.22; Wed, 15 Jul 2020 05:06:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=TIynM0Jo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730117AbgGOLZO (ORCPT + 99 others); Wed, 15 Jul 2020 07:25:14 -0400 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:62473 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730070AbgGOLZK (ORCPT ); Wed, 15 Jul 2020 07:25:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1594812310; x=1626348310; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=eMYiczZoooU+bD36WSG4xqAZTjUj5NiLwkluOK7Exls=; b=TIynM0JoIeiJAidz4fhLoAOo7LoaJHWSWzyWpNc2fky2xSbR6kmIFWfJ v1cXsZ955MA+6JRI7WzT5aFPx6RlaFKaRI0Hzavau6UHJglwvukOCdQAf vGGAL1SIJ/hfPa2vgzs0oIJRQfC1qOVqQ9Zt8Oip5IQ8gr9XfNK8Xg0Bb J5HFxqcjnFYhqbqoLJCnD8W5AzWxsJj7zRmkvz+YxCoyXqw6mcRqhqrLN NxsdBSlCEBwkOdeQQxse8xHzLigm7gnvvwTUf+WTqdbQJZyaez7KmYtmp IzdLc4+XV2MfQulBIoXkdl6RAlObuH0nZAEJL5AdaEtuAXU78cSsaKE6E A==; IronPort-SDR: F6+ctOcpSq1Vdg7zWetTWvdqIEBMbJLnJGV9/pcxoVw0sLirG0GR2KYdboVycLxJ08qmja2Jpm /rBF3GKZR1Bql7yrKrP6ieTw+0Po/2IgPN3PyX1shwrLREhjmNFCUARZlTuPo8ZHmJknljLGPS Wqt3m4G2LZfdvcv9JVlpZGRBesQlumBZiz/J1odMwuRx7UWUAb1oM7Tf4bHKJ5dkzlIgOZHYTD 3uVEM5j/TwByZefnDYwkRLTnzi8EJWD4DJvTxlt6cvBjZznLps8BGpWvIPGETOHya4gQWstvWl PcQ= X-IronPort-AV: E=Sophos;i="5.75,355,1589266800"; d="scan'208";a="83962852" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Jul 2020 04:25:09 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Wed, 15 Jul 2020 04:24:37 -0700 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Wed, 15 Jul 2020 04:24:33 -0700 From: Claudiu Beznea To: , , , , CC: , , , , "Claudiu Beznea" Subject: [PATCH 09/19] clk: at91: sckc: register slow_rc with accuracy option Date: Wed, 15 Jul 2020 14:24:17 +0300 Message-ID: <1594812267-6697-10-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1594812267-6697-1-git-send-email-claudiu.beznea@microchip.com> References: <1594812267-6697-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Register slow rc with accuracy option. Fixes: 04bcc4275e601 ("clk: at91: sckc: add support for SAM9X60") Signed-off-by: Claudiu Beznea --- drivers/clk/at91/sckc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/at91/sckc.c b/drivers/clk/at91/sckc.c index 15dc4cd86d76..2d65770d8665 100644 --- a/drivers/clk/at91/sckc.c +++ b/drivers/clk/at91/sckc.c @@ -471,8 +471,9 @@ static void __init of_sam9x60_sckc_setup(struct device_node *np) if (!regbase) return; - slow_rc = clk_hw_register_fixed_rate(NULL, parent_names[0], NULL, 0, - 32768); + slow_rc = clk_hw_register_fixed_rate_with_accuracy(NULL, parent_names[0], + NULL, 0, 32768, + 93750000); if (IS_ERR(slow_rc)) return; -- 2.7.4