Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6831976rwn; Tue, 13 Sep 2022 09:33:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR6mnA8G7g7nz1roEoBYlKrkljHltUYL/aVMsn1G3CAEDfnu1VSobqUH1E9KJoUtVnr7+Dg2 X-Received: by 2002:a63:8948:0:b0:437:4915:4fe9 with SMTP id v69-20020a638948000000b0043749154fe9mr22740937pgd.61.1663086801533; Tue, 13 Sep 2022 09:33:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663086801; cv=none; d=google.com; s=arc-20160816; b=b6A/I0GbJBI0wCSqXFy43YkyM+ab37DaSWXlWAXQrGyGe6t8d9nGcE7rcNZzNtFp1I cgdsDo11ERWlOpZICc1KilZQEIDsUBOuPtE48vr8dHN0e6b+u3q0VkAgohkdNrUMbPlV b7j88wSdo1WCf9lsHAkb8wL1n/JN0MAOSsjMxWL4fnjfjB8jOvAm5ec6X7re9ZN7F9iI ITOumR6ZsT4iHm4q8ltdoIDYir6T4C8oXcUnDpz8iO7xwqKy4lPL6MZUyEJl7bsFObZz 7vFYCJ71maXe3XH1EuHFOq2X81yy5IFc6Woou3M+E9Q06WwSNFU/wSqKH5/CbiQ8ek11 OK2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6syspyyQLbhG+IDKOdzdgP/4t5E53na8ZVeiuKmEEKA=; b=r5NnefrUWKmOMvOty/urDERDDYhRFIsRmB4iRpe3seX10kJs7IMIXka9jtIZFVEp8+ mRD5DVwzDLBwICrKuYqU9Ytrbbl/5AcgIcsqewzwNO1J21QcYAZdaTI22wdTOigr24qw x1v7kW0r6YsiGU7gLLJHFFdV1jOiURpJNwkveBIumcih7fbXSE9j9zTjmNplYTczZW3O 2u0IYL9zbkDwK2hLNZgavsC10wHV2Q9sGso9Qn1OK7A7YDxl6qGaKbUHp7S2K5D5PQro L0Gfy5hhHZ/fz+R/75mjkqJtL2TAC0bHs6L5/luXUJSd3X4oKT/W1JWlkuAHzfm2br4H 0pMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=I8IyIKU+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t17-20020a056a0021d100b0052f9293affcsi12445876pfj.335.2022.09.13.09.33.08; Tue, 13 Sep 2022 09:33:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=I8IyIKU+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236662AbiIMPzT (ORCPT + 99 others); Tue, 13 Sep 2022 11:55:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234249AbiIMPyl (ORCPT ); Tue, 13 Sep 2022 11:54:41 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FFDF72697; Tue, 13 Sep 2022 07:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1663080913; x=1694616913; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ryJdliDNfrfwxRnUejI4JqgB3nY/8hhPaCs/Rks/6qg=; b=I8IyIKU+oTQRo4UXd13AV38n+ivnYAZnolBQDj4/He4+1OG/iUA3iASI ZX+j7+U0uYPsuI44l1MZQUVc5qGnTdxHfLTmsLlQ+0B6RvbF5ED3EJfa0 PeILinJB9UK7IQMIEssVc3bW7sVK033h6lJNNO4FUXCKCElTjSqgjpngz mtOwFy7ePBGTZLlrnZQ6qHrT6vj4eiqws8uGzYuwcY8OKrUuwKjPzaYSc 273trm+qvRRRhf65leMgENWqL2iYP1l4RSGsVKxKgJQSenimOrd51ZRZa CHwEWt4UvgARS4zTyFiUrswXxp/rgtH/SWoRI4HBqxp+aNt4mNojNmPcd w==; 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 To: , , , , , , , , , , , , , , , , CC: , , , , , 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 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