Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4496885rwb; Tue, 6 Sep 2022 08:18:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR4vPYwN3BgFQjTrbrMdC2A03tCujySJqi3OUB0ENXkFqe23nNvxLZlq276ygLXa7BfiXmIs X-Received: by 2002:a17:906:4d8c:b0:741:6194:e5b6 with SMTP id s12-20020a1709064d8c00b007416194e5b6mr31444604eju.252.1662477486413; Tue, 06 Sep 2022 08:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662477486; cv=none; d=google.com; s=arc-20160816; b=TPu7zfqynk9HlOGByFNqLbmsepmX3yE+bpowc7AHGmKh1kjzTdkCJSvgq4itcil924 2tJjxa2aI8kxI7fzuWpcnKmh0ZRNnZ6pfYrULZvIBsmjva1OaNhY/ATt/YUSiHJi8XFq NTzDgNiDVQxyMYkpKoRXOTYJYglqNBHO3MVMVDsDcSkFVXxCAf6skuxTKhyiDGb7B9ey 3+g6nM7sc43eWZ3maXMaAVPQYPn0+X665Twm8DmKVDcJWSyheqo1WC2VzhWGCM7wpgdw ErkRyBhBPeZ8JQbg4umAPErLkABc3QFtyPqaZ68v5iqsjb0LC+2VBacnbCZuA1EDVYXb 1X0w== 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=NGFUsmWErY+7XneRItcawZ5ao8/nMw6wiizrYffoO9Y=; b=QI7/0IA134UBVGk/FUuZqfGQBynD89Yia7xPLGCes+XcsGZBbrSszvdV1zzzDD7Zyu BkSH997BPipr2a9Ma8Iit2MwoOqBAdy9XC8s1+sMFEdDj1/jOvoVqDnLEkjbMTIkseDx PwThdhZELLFhQ0O3kVhLesa7mDi//ivsf2mHoMvFgROH9cSiO4Vx0HT9IdnmxfsNr+pK kp3c/itl5KM7/gnJAMhROS+eyMpdyKmsEFAurr9LAlVDa5bs5nTEsqdtmd/mstKerJ9b 0bBZa/md3FjNPdPydiQF2QrSIwdA7kCuh0PT0rm27NfNo+dK7iV6xUhVYJWgLfflmD10 oLZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=bS4iemoH; 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 qb24-20020a1709077e9800b0073023094027si2210552ejc.361.2022.09.06.08.17.40; Tue, 06 Sep 2022 08:18:06 -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=bS4iemoH; 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 S242037AbiIFOeq (ORCPT + 99 others); Tue, 6 Sep 2022 10:34:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242342AbiIFOdr (ORCPT ); Tue, 6 Sep 2022 10:33:47 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8977E8276D; Tue, 6 Sep 2022 06:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1662472748; x=1694008748; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ttW5D/aDzcSJYKXL2Ks4x6nT/tiEMuarCbgMkNwvAac=; b=bS4iemoHyFCEbwfTooy+f95UT5QlEwm1z+kaJiKB4Nkb014au3/ri01F QwGtkuRjo9IX+lz9mYAAtmQmBolnDQ0waEXwGtQswIvpAQ9FJ6JeMBFqC 7KOWowNi3/K0S4uzDVX6mxz2vTClz1tjnYrjrPZia5cdei8b94FHn/hzi iK+KunY45V9/8fppgN29+WWlp5cOXaWQiqnjvmLBo2BHURU2OyknpHr6h UgCDq6kuCQ6K8fo73W6K0L1NpSLYhmAkMA3qKD1j9g3xMlGsT61uP1HJq RvH+4Gwe1bJ2P9H8i0VzM/tbtt5gp8KtBxuRaqxcTAi58Y7SJfxV1eVJi w==; X-IronPort-AV: E=Sophos;i="5.93,294,1654585200"; d="scan'208";a="189613904" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 06 Sep 2022 06:57:16 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 6 Sep 2022 06:57:15 -0700 Received: from ROB-ULT-M68701.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Tue, 6 Sep 2022 06:57:10 -0700 From: Sergiu Moga To: , , , , , , , , , , , , , , , , CC: , , , , , Subject: [PATCH v2 08/13] tty: serial: atmel: Define GCLK as USART baudrate source clock Date: Tue, 6 Sep 2022 16:55:07 +0300 Message-ID: <20220906135511.144725-9-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220906135511.144725-1-sergiu.moga@microchip.com> References: <20220906135511.144725-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 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.25.1