From: Tom Rini Date: Sun, 22 Nov 2015 10:52:39 -0500 Subject: [U-Boot] [U-Boot, v3, 03/13] ns16550: add generic binding to unify the drivers In-Reply-To: <1447940895-7763-4-git-send-email-thomas@wytron.com.tw> References: <1447940895-7763-4-git-send-email-thomas@wytron.com.tw> Message-ID: <20151122155239.GY9551@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Nov 19, 2015 at 09:48:05PM +0800, Thomas Chou wrote: > Add generic binding to unify ns16550 drivers. There are > several drivers using almost the same code, such as serial_dw, > serial_keystone, serial_omap, serial_ppc, serial_rockchip, > serial_tegra.c, and serial_x86. But each is platform specific. > > The key difference between these drivers is the way to get > input clock frequency. With this unified approach, fixed clock > frequency should be extracted from "clock-frequency" property of > device tree blob. If this property is not available, the macro > CONFIG_SYS_NS16550_CLK will be used. It can be a constant or a > function to get clock, eg, get_serial_clock(). > > Signed-off-by: Thomas Chou > Reviewed-by: Tom Rini > Reviewed-by: Bin Meng > Reviewed-by: Heiko Schocher > Acked-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: