Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162448AbbKTJHm (ORCPT ); Fri, 20 Nov 2015 04:07:42 -0500 Received: from mail-ob0-f177.google.com ([209.85.214.177]:35012 "EHLO mail-ob0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934844AbbKTJHc (ORCPT ); Fri, 20 Nov 2015 04:07:32 -0500 MIME-Version: 1.0 In-Reply-To: <11872773.MUvOKIUXMO@avalon> References: <1447958344-836-1-git-send-email-geert+renesas@glider.be> <1662323.uZlFXR9U2a@avalon> <11872773.MUvOKIUXMO@avalon> Date: Fri, 20 Nov 2015 10:07:31 +0100 X-Google-Sender-Auth: gPRItEAK2SHC5vgsgoKOSrT0QSM Message-ID: Subject: Re: [PATCH 00/25] serial: sh-sci: Add external clock and BRG Support From: Geert Uytterhoeven To: Laurent Pinchart Cc: Geert Uytterhoeven , Greg Kroah-Hartman , Simon Horman , Magnus Damm , Yoshinori Sato , "linux-serial@vger.kernel.org" , Linux-sh list , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1440 Lines: 37 Hi Laurent, On Fri, Nov 20, 2015 at 9:58 AM, Laurent Pinchart wrote: > On Friday 20 November 2015 09:22:16 Geert Uytterhoeven wrote: >> On Thu, Nov 19, 2015 at 10:08 PM, Laurent Pinchart wrote: >> > Could you briefly explain (and even better in a source code comment) how >> > you handle baud rate calculation with the chained BRGs ? >> >> I'll do that. Note that there's no chaining of BRGs, only muxing (so yes, it >> needs more clarification ;-). > > Really ? I thought the BRG-EC was one possible input for the internal BRG ? > Does it bypass the internal BRG ? Or do you configure the internal BRG to not > divide the clock when using the BRG-EC ? Yes, it's bypassed. Cfr. SCSCR.CKE[1:0]. '00' means internal BRG (although the docs state P divided by 1/4/16/64), '10' means SCK or SC_CLK (SCIF_CLK/INT_CLK). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/