Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752799AbcCHNzc (ORCPT ); Tue, 8 Mar 2016 08:55:32 -0500 Received: from nopam.alitech.com ([202.3.176.31]:27302 "EHLO nopam.alitech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751233AbcCHNzY (ORCPT ); Tue, 8 Mar 2016 08:55:24 -0500 split_mail: 1 In-Reply-To: <1457439972-20285-8-git-send-email-vgupta@synopsys.com> References: <1457439972-20285-1-git-send-email-vgupta@synopsys.com> <1457439972-20285-8-git-send-email-vgupta@synopsys.com> To: Vineet Gupta Cc: Alexey Brodkin , Daniel Lezcano , lkml , linux-snps-arc@lists.infradead.org, Noam Camus , Rob Herring , Vineet Gupta Subject: Re: [PATCH v2 7/9] ARC: use fixed frequencies in arc_set_early_base_baud() MIME-Version: 1.0 X-KeepSent: 2E92DD14:F9BD34D1-C1257F70:004C6256; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3 September 15, 2011 Message-ID: From: christian.ruppert@alitech.com Date: Tue, 8 Mar 2016 14:56:29 +0100 X-MailConfidential: Public X-MIMETrack: Serialize by Router on TWALINS2/ALI_TPE/ALi(Release 8.0.2FP6|July 15, 2010) at 2016/03/08 ?? 09:56:16, Serialize complete at 2016/03/08 ?? 09:56:16 Content-Type: text/plain; charset="US-ASCII" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1835 Lines: 55 Vineet Gupta wrote on 08.03.2016 13:26:10: > From: Alexey Brodkin > > UARTs usually have fixed clock so we're switching to use of > constant values instead of something derived from core clock > frequency. > > Among other things this will allow us to get rid of > arc_{get|set}_core_freq() and switch to generic clock > framework later on. > > Cc: Christian Ruppert > Signed-off-by: Alexey Brodkin > Signed-off-by: Vineet Gupta Acked-by: Christian Ruppert > --- > Changes v1 -> v2 > - Base baud TB10x needs to be 166.66 not 166.67 [Christian] > > v1: > - http://lists.infradead.org/pipermail/linux-snps-arc/2016- > February/000453.html > > Signed-off-by: Vineet Gupta > --- > arch/arc/kernel/devtree.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/arch/arc/kernel/devtree.c b/arch/arc/kernel/devtree.c > index 7e844fd8213f..fecbc96df828 100644 > --- a/arch/arc/kernel/devtree.c > +++ b/arch/arc/kernel/devtree.c > @@ -28,14 +28,12 @@ unsigned int __init arc_early_base_baud(void) > > static void __init arc_set_early_base_baud(unsigned long dt_root) > { > - unsigned int core_clk = arc_get_core_freq(); > - > if (of_flat_dt_is_compatible(dt_root, "abilis,arc-tb10x")) > - arc_base_baud = core_clk/3; > + arc_base_baud = 166666666; /* Fixed 166.6MHz clk (TB10x) */ > else if (of_flat_dt_is_compatible(dt_root, "snps,arc-sdp")) > arc_base_baud = 33333333; /* Fixed 33MHz clk (AXS10x) */ > else > - arc_base_baud = core_clk; > + arc_base_baud = 50000000; /* Fixed default 50MHz */ > } > #else > #define arc_set_early_base_baud(dt_root) > -- > 2.5.0 >