From mboxrd@z Thu Jan 1 00:00:00 1970 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 58BA2C54EE9 for ; Mon, 19 Sep 2022 15:14:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229946AbiISPOi (ORCPT ); Mon, 19 Sep 2022 11:14:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbiISPO1 (ORCPT ); Mon, 19 Sep 2022 11:14:27 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2A2233E24; Mon, 19 Sep 2022 08:14:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1663600447; x=1695136447; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=I4gMGo2tfk/2mg9vrlwrTzCDmtNMbNJml/dUvNSNDZ4=; b=kG5tYkjCHpb3mDSOy7xoLpe00U1KIXBXZGx+m2tYIe/81C2uXZtAANgB trV5XIEL7JLdNQJKlqTmB+HM31fGRxsw93MBJ6A5z64YCzWg5QtAQSAyT +VuOvh0bzoQXw/QNC1DzHIE+0ctlzLLONhaX8I9XKIRDjKuBNa8yB7ms3 Et+kaOacBXPUfOREkLvJIW0YrxmJNj/uBjZDGIGpsDBucD/+ynfnM5kob bgSt4O9rYkQaXKIu/blECeN4V7RGo6gepFCWQ9d+zyUrjBWmSpQDmyi5l MpFrUP4Q7XSMhmONeTLPl9+LQc22ki2/nrxzj2n2agDXh5PALIxNn3eLU Q==; X-IronPort-AV: E=Sophos;i="5.93,328,1654585200"; d="scan'208";a="180993026" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Sep 2022 08:14:07 -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; Mon, 19 Sep 2022 08:14:04 -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; Mon, 19 Sep 2022 08:14:01 -0700 From: Sergiu Moga To: , , , , , , , , , , CC: , , , , , Sergiu Moga Subject: [PATCH v4 6/9] tty: serial: atmel: Define GCLK as USART baudrate source clock Date: Mon, 19 Sep 2022 18:08:44 +0300 Message-ID: <20220919150846.1148783-7-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220919150846.1148783-1-sergiu.moga@microchip.com> References: <20220919150846.1148783-1-sergiu.moga@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- v1 -> v2: - Nothing, this patch was not here before v2 -> v3: - Nothing v3 -> v4: - Nothing, this was previously [PATCH 10] drivers/tty/serial/atmel_serial.h | 1 + 1 file changed, 1 insertion(+) 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) -- 2.34.1 From mboxrd@z Thu Jan 1 00:00:00 1970 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 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 ADF40C54EE9 for ; Mon, 19 Sep 2022 15:22:29 +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=Wlp5ypOgGWQRtdHRR3nv9vJf35ZEyYiozvh8FhtyCJk=; b=pa2ylPjn2OakH7 wqOAL3xpE8H9RE3hZDh5JYHPqSdwLC7A1ZOhhxqvR6CJqyoKAJAslpsZz6N/26IMKv5HPsG8Kj/YZ MV7D79fCJO7FVoYtPSPXLl8ohzWRV1RsqucLue9ONVQT60xJN1KP5p4RiR1T6uftDoMXAzvq6qdo2 TFRxcNQUKDYsL9hlPeDF2YGb92t/JklzVnoZSAWzrILq/EyvR0aspIg9zniVjYKg1USPApt8a8lBQ lGonNq3Sq+Vn+m7YjR5KNAhTr7ckV9MmIgxm/LFZHosCMRPntg+F28G9ZsrUzUK49w1s86pnmC8uC 4z8KjC8dpNzlVnr0tseA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaIa2-00COun-8Y; Mon, 19 Sep 2022 15:21:06 +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 1oaITI-00CJJ9-0s for linux-arm-kernel@lists.infradead.org; Mon, 19 Sep 2022 15:14:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1663600448; x=1695136448; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=I4gMGo2tfk/2mg9vrlwrTzCDmtNMbNJml/dUvNSNDZ4=; b=qcgYj5VB7kwr/95cGzQSBNJyl4ju/xycdQ5MgD95ATWrRJL64vOJ2sz8 DuAYqIWxop7MV8I5vF+ANKweHzyuPUoKabdNKafnFUsgeNkfqd+zzDRqF Ck/x80jqnNbic39KudohTi2G2Cx2BQAirAfznoYnLi77W5KlJKdRDXZ4F NeqZWKHsY/mpYC0OqpNZZ9sWYqDv8+h64LCvy+HgHTDwdrqHIsF18I1Ww D9o4iVm5jLjDTEEk6q9ilgACM8XMQbuB3OqBSO/sFPdB5m96nD/DkuH+X 07/GLi3BhzYGeMqi2mAq6JYdXwB8nmDKdbytVJZiXr1mP7c6RGgsiB22f g==; X-IronPort-AV: E=Sophos;i="5.93,328,1654585200"; d="scan'208";a="180993026" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Sep 2022 08:14:07 -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; Mon, 19 Sep 2022 08:14:04 -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; Mon, 19 Sep 2022 08:14:01 -0700 From: Sergiu Moga To: , , , , , , , , , , CC: , , , , , Sergiu Moga Subject: [PATCH v4 6/9] tty: serial: atmel: Define GCLK as USART baudrate source clock Date: Mon, 19 Sep 2022 18:08:44 +0300 Message-ID: <20220919150846.1148783-7-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220919150846.1148783-1-sergiu.moga@microchip.com> References: <20220919150846.1148783-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-20220919_081408_184864_48CE7C6B X-CRM114-Status: UNSURE ( 8.42 ) 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- v1 -> v2: - Nothing, this patch was not here before v2 -> v3: - Nothing v3 -> v4: - Nothing, this was previously [PATCH 10] drivers/tty/serial/atmel_serial.h | 1 + 1 file changed, 1 insertion(+) 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) -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel