Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2692333rwb; Mon, 19 Sep 2022 08:36:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6hXH0T8tp6VzBSGur6S0ltSlJpzzAgY8EJ+JAq3UFUNFIqaGPMixZGTEPDl9lQmRUc92ig X-Received: by 2002:a17:906:7952:b0:781:667e:cfd7 with SMTP id l18-20020a170906795200b00781667ecfd7mr2843682ejo.259.1663601785844; Mon, 19 Sep 2022 08:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663601785; cv=none; d=google.com; s=arc-20160816; b=KzVI5peq/puYSIU/1KRkQTATK+hDR1oh3XOQv1SW1H9MDfwUDbvnTWTqCpwVjlvo42 T4n6TA0gnUcmwGqna1VjjYibdBoPOngXOQN8DnNtxAPpVlQWZsoXDsIKxPzG8DSTkm8M tWBotoPJoTLlJT386nemqqcPOyULrqeoJFml+C0JjJxbUQG/MEka8rC/HKsEVNQRa732 GfuF26Da5j2gLZvjuIesASvHyzN3bYEBiYXSwqHqBZ6ZQFlV2MPnQklkqsKHmrHnfa5S xUWcIB2wnir9rDUIByoZAZ4Va2tXWBcK1lH7QbK9i10nW4dlTqERFVVLZINH2UsR9gVX bOHQ== 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=yFB/Lagmz7upzSW0qhRNFGeuwWuX/zy/4bYsRJhBtEA=; b=kcsR8HL8Q5bl+YMk252fYhc2d3REmSZIQszPlbrVytuEfRZ8pcdVzzheIzJpm4FwfX 022WIvHP1ulxd7knggJR4Fv7I89x9KYh4W4qip9ODe2NdI17shoXqyQorsmyyOGiFUHJ jKc2Ed8wjrdQSoGIa+ff9o8Wc7TqI2ZvXR46BA4no4MDlVKFngyn54jKAOfW9l5nLWoy 3HSznJNAIdFSlJs6GG65KVkGWCkpdrOLBal0qhwnCFoImiCVhP5TDwRJL/gFV1gJwrSr I332OIkMB3BI20lAFHxccKckdNCs09bbA/ag2EEBu/k3wxio42Kd9E9rKqie1pa5F3wU y9YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=iAMrjHpJ; 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 b15-20020aa7cd0f000000b0044e723e8ca9si8157534edw.183.2022.09.19.08.35.55; Mon, 19 Sep 2022 08:36:25 -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=iAMrjHpJ; 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 S229926AbiISPOy (ORCPT + 99 others); Mon, 19 Sep 2022 11:14:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbiISPOa (ORCPT ); Mon, 19 Sep 2022 11:14:30 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68ABE356E9; Mon, 19 Sep 2022 08:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1663600453; x=1695136453; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9l85M5Mmw+iMAkBceErn0IPu5335FhxC7YxeDPx3hLA=; b=iAMrjHpJcHEGSHviZERNBWQaf6IoSPLI8M8AiLHs/Bdyf4H2sf4XzWSe xCRfvapbEOHVSbHpMZYOlowVQ0w5DfZ37JN7TACwJjMULhxGTSNiwuyJs BueZjamDv8c7Fc34gMenklvlBxBeTc2OMTMrqbn3XxGvDn2kBUNg0I4yv Xn9ZlSQm7+d1agSmPveXPJqH+ZbT2FefhmY4mWT9/qrmCAbl8Iq7leak0 ljep3wWiuVAOos5lGFyFveJTCrtrQGi2w9xbu+Cjg09gRXG+nBdSXgWli 2jF90D8V2/TVUC0YA8/wlmFfIMlls3Th5120DUj31A8FV7CGdnu92AX5P A==; X-IronPort-AV: E=Sophos;i="5.93,328,1654585200"; d="scan'208";a="177851613" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Sep 2022 08:14:12 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) 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:08 -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:05 -0700 From: Sergiu Moga To: , , , , , , , , , , CC: , , , , , Sergiu Moga Subject: [PATCH v4 7/9] tty: serial: atmel: Define BRSRCCK bitmask of UART IP's Mode Register Date: Mon, 19 Sep 2022 18:08:45 +0300 Message-ID: <20220919150846.1148783-8-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 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 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 Add definitions for the Baud Rate Source Clock bitmask of the Mode Register of UART IP's and its bitfields. Signed-off-by: Sergiu Moga --- v1 -> v2: - Nothing, this patch was not here before v2 -> v3: - Nothing, previously this was [PATCH 9] V3 -> v4: - Nothing, this was previously [PATCH 11] drivers/tty/serial/atmel_serial.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/atmel_serial.h b/drivers/tty/serial/atmel_serial.h index 70d0611e56fd..ed64035ba6c3 100644 --- a/drivers/tty/serial/atmel_serial.h +++ b/drivers/tty/serial/atmel_serial.h @@ -68,6 +68,9 @@ #define ATMEL_US_NBSTOP_1 (0 << 12) #define ATMEL_US_NBSTOP_1_5 (1 << 12) #define ATMEL_US_NBSTOP_2 (2 << 12) +#define ATMEL_UA_BRSRCCK GENMASK(13, 12) /* Clock Selection for UART */ +#define ATMEL_UA_BRSRCCK_PERIPH_CLK (0 << 12) +#define ATMEL_UA_BRSRCCK_GCLK (1 << 12) #define ATMEL_US_CHMODE GENMASK(15, 14) /* Channel Mode */ #define ATMEL_US_CHMODE_NORMAL (0 << 14) #define ATMEL_US_CHMODE_ECHO (1 << 14) -- 2.34.1