Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753411Ab2E1PD3 (ORCPT ); Mon, 28 May 2012 11:03:29 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:46556 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750802Ab2E1PD2 (ORCPT ); Mon, 28 May 2012 11:03:28 -0400 Date: Mon, 28 May 2012 16:03:11 +0100 From: Russell King - ARM Linux To: Roland Stigge Cc: alan@linux.intel.com, gregkh@linuxfoundation.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, kevin.wells@nxp.com, srinivas.bakki@nxp.com, linux-arm-kernel@lists.infradead.org, arnd@arndb.de Subject: Re: [PATCH] serial/of-serial: Add 16654 chip to compatible string list Message-ID: <20120528150311.GA28290@n2100.arm.linux.org.uk> References: <1338199134-23885-1-git-send-email-stigge@antcom.de> <20120528100338.GI24149@n2100.arm.linux.org.uk> <4FC35F97.2030400@antcom.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FC35F97.2030400@antcom.de> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1895 Lines: 47 On Mon, May 28, 2012 at 01:20:55PM +0200, Roland Stigge wrote: > On 28/05/12 12:03, Russell King - ARM Linux wrote: > > Something which occurs to me. Normally, the digit at the end indicates > > how many ports are integrated into the device (0=1port, 2=2port, 4=4port.) > > Are you sure there isn't a ST16650 which has the same characteristics? > > > > We really should stick with naming these using the single port versions if > > at all possible. > > Right. > > This indicates to me that maybe this is not the right solution for my > original problem, anyway. :-) > > Initially, with my RFC patch, there was an #ifdef for bigger FIFO in > case of LPC32xx where we have a 16550A variant with 64 byte fifos. What are all the differences? Is it just a larger FIFO? > Looking at the 16x50 line: > > 16550A 16 bytes FIFOs > 16650V2 32 bytes FIFOs > 16750 64 bytes FIFOs > > (?) > > So maybe 16750 is the better choice for me, anyway. Already supported in > of-serial. Works for now, but need more testing. Another hint is that > 16750 is advertised as "IP core for Soc" which matches the case of LPC32xx. 16750 also has automatic hardware flow control support, selectable through bit 5 in the MCR register. If your UART has that, then it's probably a 16750 derivative rather than a 16550 or 16650 derivative. 16650s have an EFR register at offset 2, selectable by writing 0xBF into the LCR register, which the 16750 doesn't have. 16650 also has automatic hardware flow control, bit this is selected through a couple of bits in the EFR. With that information, you should be able to track down which of these your UART is derived from. -- 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/