From patchwork Mon Apr 6 15:53:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamel BOUHARA X-Patchwork-Id: 11475735 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2612A1744 for ; Mon, 6 Apr 2020 15:54:43 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A203022573 for ; Mon, 6 Apr 2020 15:54:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="V3Fep1HH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A203022573 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YV8zxb50MXvbJes/CD5+c3BMEEFMRj2fioVO+ZGHs5A=; b=V3Fep1HH+xpf0e jrk8oyV2xtA/fRX0r9Ge+sROJRzfMKKt4MVuwphZCH5dc+tZEKxAZfZey1B56iL7fxlskjDFStvAh KNxt/m/qMdaxj3ioCrpqKALzAOLr7lcblaRR1TEZuM6xRZFwRaw7OzELVsF5ara+0Ul4QN/BUaPty 4tploKq+PnpjJYwpoqbzQUIJDHXcfaUC7gV+erz3IF7Bq1kgbHS1m1bX/YjpdwOM33VGbyM9A4LZY G79w7ldFRYSF3QpBWBdsmk4BwLo7KkRM5JHM4few/5MciD4SNe/cmRYILNLa2WqhsDGkeFrPL7/Se q3Zmn2F3m3oDIcci5dQw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLU5A-0004Bc-Iv; Mon, 06 Apr 2020 15:54:40 +0000 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLU4q-0003p0-C9 for linux-arm-kernel@lists.infradead.org; Mon, 06 Apr 2020 15:54:24 +0000 X-Originating-IP: 78.193.40.249 Received: from localhost (unknown [78.193.40.249]) (Authenticated sender: kamel.bouhara@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id F14D5FF805; Mon, 6 Apr 2020 15:54:10 +0000 (UTC) From: Kamel Bouhara To: William Breathitt Gray , Rob Herring , Mark Rutland , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] ARM: at91: add atmel tcb capabilities Date: Mon, 6 Apr 2020 17:53:18 +0200 Message-Id: <20200406155320.1291701-2-kamel.bouhara@bootlin.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200406155320.1291701-1-kamel.bouhara@bootlin.com> References: <20200406155320.1291701-1-kamel.bouhara@bootlin.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200406_085421_721452_837BD0FF X-CRM114-Status: GOOD ( 10.31 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [217.70.183.199 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Kamel Bouhara , Thomas Petazzoni , linux-input@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Some atmel socs have extra tcb capabilities that allow using a generic clock source or enabling a quadrature decoder. Signed-off-by: Kamel Bouhara --- include/soc/at91/atmel_tcb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/soc/at91/atmel_tcb.h b/include/soc/at91/atmel_tcb.h index fbf5474f4484..6b9c9bec982e 100644 --- a/include/soc/at91/atmel_tcb.h +++ b/include/soc/at91/atmel_tcb.h @@ -39,7 +39,8 @@ struct clk; */ struct atmel_tcb_config { size_t counter_width; - unsigned int has_gclk:1; + bool has_gclk; + bool has_qdec; }; /**