Message ID | 20220913142205.162399-11-sergiu.moga@microchip.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E3BEC54EE9 for <linux-arm-kernel@archiver.kernel.org>; Tue, 13 Sep 2022 14:41:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BDDVv/ErJZgrc8haGMqgEdAv7UrMpRZQhcdn1Tb6udI=; b=tcEUP6cPzQtXp1 MwPL6pztMdmlNNw7zAt6eiW04RBJxKYf8+txE6OeSTXFrS9qCaEq/grDJ2ia79N84C6J1iwjoZgE+ DxOnivpqnYlTj+FjN8yYmBr8t8/tl/58a/FY+z+t1c4+mYVHVSPjq0VkUD6xZJhxDFWaIdE0+OkMl YE1TwAAiUAM8kG7mKA1B8BeLTkfTjBtdtzsBrTs/yqTEiRkn/40j2TDm/ehW0io2tviA2uhio6Kq4 T4aQQWXUPGcjppt6OjMDM1byj6DZw4DVAAQi6oC35zOyEIinf/zIwPMve7Z168LK3jbNw9FVguhEv dJK3aVHAkyPaNrReD9tg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oY74i-00BlRO-3j; Tue, 13 Sep 2022 14:39:44 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oY6r6-00BYyt-3g for linux-arm-kernel@lists.infradead.org; Tue, 13 Sep 2022 14:25:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1663079139; x=1694615139; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ryJdliDNfrfwxRnUejI4JqgB3nY/8hhPaCs/Rks/6qg=; b=ukemfxACtd4WjOxuTf2BznUREmiQ3hne1BvcfVud9E3HH+byXInrSO1K dcF8VF+lEuAHEAfnL7JbOWYK0S9CnGyFrQ6N2wnz9GOl6gV9sYDiKD2f6 A+GlJYpP/IL/h9YPh5iPM7dRSgT5LHJeg01LR/uW3WcGPoSdMEzPXvG5Y 03hRD+wsypYk/xuPx9c9xcwNFhI8rWyiLG0D8h6HW3Hbl8ah7QZnC0Xjn E9TbZ0/nD+EunCVcoc9XBEpJZKeBw87jejlHunlRKZEWsKsB6l6BXmE/x 4Z7oxke3QDYznOZn+f7AIUCKgMtJ1meX9ZKJVXa0t3iowiXE42mjZZNaD g==; X-IronPort-AV: E=Sophos;i="5.93,313,1654585200"; d="scan'208";a="190644171" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Sep 2022 07:25:38 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 13 Sep 2022 07:25:38 -0700 Received: from ROB-ULT-M68701.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Tue, 13 Sep 2022 07:25:33 -0700 From: Sergiu Moga <sergiu.moga@microchip.com> To: <lee@kernel.org>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>, <claudiu.beznea@microchip.com>, <radu_nicolae.pirea@upb.ro>, <richard.genoud@gmail.com>, <gregkh@linuxfoundation.org>, <broonie@kernel.org>, <mturquette@baylibre.com>, <sboyd@kernel.org>, <jirislaby@kernel.org>, <sergiu.moga@microchip.com>, <admin@hifiphile.com>, <kavyasree.kotagiri@microchip.com>, <tudor.ambarus@microchip.com> CC: <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-spi@vger.kernel.org>, <linux-serial@vger.kernel.org>, <linux-clk@vger.kernel.org> Subject: [PATCH v3 10/14] tty: serial: atmel: Define GCLK as USART baudrate source clock Date: Tue, 13 Sep 2022 17:22:02 +0300 Message-ID: <20220913142205.162399-11-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220913142205.162399-1-sergiu.moga@microchip.com> References: <20220913142205.162399-1-sergiu.moga@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220913_072540_267348_658321E3 X-CRM114-Status: UNSURE ( 8.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Make atmel serial driver aware of GCLK
|
expand
|
diff --git a/drivers/tty/serial/atmel_serial.h b/drivers/tty/serial/atmel_serial.h index 0d8a0f9cc5c3..70d0611e56fd 100644 --- a/drivers/tty/serial/atmel_serial.h +++ b/drivers/tty/serial/atmel_serial.h @@ -49,6 +49,7 @@ #define ATMEL_US_USCLKS GENMASK(5, 4) /* Clock Selection */ #define ATMEL_US_USCLKS_MCK (0 << 4) #define ATMEL_US_USCLKS_MCK_DIV8 (1 << 4) +#define ATMEL_US_USCLKS_GCLK (2 << 4) #define ATMEL_US_USCLKS_SCK (3 << 4) #define ATMEL_US_CHRL GENMASK(7, 6) /* Character Length */ #define ATMEL_US_CHRL_5 (0 << 6)
Define the bit that represents the choice of having GCLK as a baudrate source clock inside the USCLKS bitmask of the Mode Register of USART IP's. Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com> --- v1 -> v2: - Nothing, this patch was not here before v2 -> v3: - Nothing drivers/tty/serial/atmel_serial.h | 1 + 1 file changed, 1 insertion(+)