From patchwork Thu Apr 7 08:13:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Tu X-Patchwork-Id: 558713 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0A96C433F5 for ; Thu, 7 Apr 2022 08:30:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243052AbiDGIcY (ORCPT ); Thu, 7 Apr 2022 04:32:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243023AbiDGIcO (ORCPT ); Thu, 7 Apr 2022 04:32:14 -0400 X-Greylist: delayed 821 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 07 Apr 2022 01:30:14 PDT Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6C64145993; Thu, 7 Apr 2022 01:30:13 -0700 (PDT) Received: from droid06.amlogic.com (10.18.11.248) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2176.14; Thu, 7 Apr 2022 16:15:07 +0800 From: Yu Tu To: , , , , Neil Armstrong , Kevin Hilman , Jerome Brunet CC: Greg Kroah-Hartman , Jiri Slaby , Martin Blumenstingl , Yu Tu Subject: [PATCH 0/3] Use DIV_ROUND_CLOSEST to calculate baud rate, Date: Thu, 7 Apr 2022 16:13:52 +0800 Message-ID: <20220407081355.13602-1-yu.tu@amlogic.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-Originating-IP: [10.18.11.248] Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org 1.Use DIV_ROUND_CLOSEST to calculate baud rates. 2.Added 12Mhz as the clock source for calculating baud rate. 3.Added S4 SOC compatibility. Yu Tu (3): tty: serial: meson: Use DIV_ROUND_CLOSEST to calculate baud rates tty: serial: meson: Added 12Mhz as the clock source for calculating baud rate tty: serial: meson: Added S4 SOC compatibility drivers/tty/serial/meson_uart.c | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) base-commit: 3123109284176b1532874591f7c81f3837bbdc17