Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2460271imj; Mon, 18 Feb 2019 06:25:35 -0800 (PST) X-Google-Smtp-Source: AHgI3IbUXhB6v5xHvpbnmS2rMZElhNVVkXOGL/gYRImlcHMWFUhgfzD9Fc8AVZZLNxR6ff4Dmn1G X-Received: by 2002:a62:b40b:: with SMTP id h11mr6763809pfn.108.1550499935728; Mon, 18 Feb 2019 06:25:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550499935; cv=none; d=google.com; s=arc-20160816; b=Qk5PXH+LphRHaGEZMhTdhmjBPK0vu9vM7kT7R1JjcZjFjlGQhP5G+od98J2jH2BR6A ln3iuspheOroxaH8YDEMazkV5GJlTWvtPzfzZwmpcKKcscU0IBPfzDZh3EciPSUvMwhs 2r4fllIoSJByW7RFGFhxuRzynncfQ9y9e0/Zhl0qeFpHTAWe5/FswfqUR617O5vMxkMl E/yEky5R4FafepOA2X8nW0XiIDXAiprD/5k36Kb5PK9tOqwiSz5GCvLqHIdyL7EIO6MG Ui8dUCdcXew70lxvaSkCSpuSMJxKmk2yBh/fUDQU+v8iLMCM0moQSLP1TuW8fgmYc4l8 G4gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=yRbFDaxWpy1WZcEaSiXFGy4r6+XphTOi/wCgftAJFLc=; b=DELXksG0g2orXQZLwr4l04tG3wVpJJAJ5YWXiJkrrbIusEHtFk+EzPq8uRQdGq5YJR Oapd2NeeckI7wOBek2HpctlhDI4NoTT++Q881fyuHgjps6QI/zSfeKYGXoC7hjguqZhN 7BZI3gbChAwUlkjt7VbldILlt7uwVkpWbwwC8sHaVG2G+UVAvg/xnfvKpKRHOUbkHZKU VcD/+2zffvM44KZ4nLGND1O4fJ9H0rrXYtfnGrPzRs1jtgc7GwyAHtNnDwbjP22R79cZ 6g0GXKsV5TBulMTRDNG9rRjHgoOp9ULy5bchOTYrxLvDC73NTuMPKVpZiIxE5ExCggug NC4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@essensium-com.20150623.gappssmtp.com header.s=20150623 header.b=r986BO1B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32si14450473pls.84.2019.02.18.06.25.20; Mon, 18 Feb 2019 06:25:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@essensium-com.20150623.gappssmtp.com header.s=20150623 header.b=r986BO1B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389818AbfBROD5 (ORCPT + 99 others); Mon, 18 Feb 2019 09:03:57 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:39841 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389748AbfBRODu (ORCPT ); Mon, 18 Feb 2019 09:03:50 -0500 Received: by mail-ed1-f66.google.com with SMTP id p27so6365534edc.6 for ; Mon, 18 Feb 2019 06:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essensium-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yRbFDaxWpy1WZcEaSiXFGy4r6+XphTOi/wCgftAJFLc=; b=r986BO1Bzxok2V8E1eD37WYjzK2SBEteAVMs6PJ+GyfPBhlMmSQusvvsx60zQIua0j HEtFc2Cbjy57gwxNqqBkJTEfiend4iuH9mrGHHfaPOHdhozsGK7yXfjWIX5pNCwVJfzf Hi7DRrqfs8UCedwzmElcbeS4l2np34oQ+BmVxFRzAKISQbXvMikWdJV9/RWIbEHMnp8t B7CuoCwlSNrRceunX/D+BNQP/vorwExi5Q3k3KPWa29v4DiDhCkN4xsC777AFI8ZwwZc VzHmLw2/DQxlDztf1WTkxkdvMn9z8ND9aIuIVSjPg6LbZqJVTe885POnip9mNLyZWwYu I2Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yRbFDaxWpy1WZcEaSiXFGy4r6+XphTOi/wCgftAJFLc=; b=F+5uvsFPp+ES21xMEkk8h+N3Qv27yhO9inj1FmpTxalZWy5gv0MP237ls6mWUuaIvY OIfjurB9M5Ab70Xj7zkP2jNqapzoAZNO3DZ28aDKPfkzyIaATRwmfYJnyahZSB9ClPSK nBR/TAJPi63QsioB90FbZwGd9sq3kuRuxlT+sB/Luz1ajdd7LKXwLEChmaf79gE0Plx9 ECdd1euSztAfVa+A7a4IZhRCPhJGqB3vHpy+VLZIbL53hSJlegIi7A213m/HgmS+DySj J13oJKD2uu5cP1WcMxkNwIDyidSDtI22ApvmQm4f7CaCGMGPjhyonsJ/DSLS4ob0iEJy LqMg== X-Gm-Message-State: AHQUAuYrMyYBp8oqCXjx8lzAjGikb3/gODoL/iww7x+0A8bXZv+UKHPU K2znuum6Pl/VlIWS565nl7aenQ== X-Received: by 2002:a50:b527:: with SMTP id y36mr19649567edd.83.1550498629140; Mon, 18 Feb 2019 06:03:49 -0800 (PST) Received: from localhost.localdomain (ip-188-118-3-185.reverse.destiny.be. [188.118.3.185]) by smtp.gmail.com with ESMTPSA id w48sm1421606eda.88.2019.02.18.06.03.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Feb 2019 06:03:48 -0800 (PST) From: Patrick Havelange To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , Shawn Guo , Li Yang , Daniel Lezcano , Thomas Gleixner , Thierry Reding , Esben Haabendal , William Breathitt Gray , Linus Walleij , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: Patrick Havelange Subject: [PATCH 2/8] drivers/pwm: pwm-fsl-ftm: use common header for FlexTimer #defines Date: Mon, 18 Feb 2019 15:03:15 +0100 Message-Id: <20190218140321.19166-2-patrick.havelange@essensium.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190218140321.19166-1-patrick.havelange@essensium.com> References: <20190218140321.19166-1-patrick.havelange@essensium.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This also fixes the wrong value for the previously defined FTM_MODE_INIT macro (it was not used). Signed-off-by: Patrick Havelange Reviewed-by: Esben Haabendal --- drivers/pwm/pwm-fsl-ftm.c | 44 +-------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/drivers/pwm/pwm-fsl-ftm.c b/drivers/pwm/pwm-fsl-ftm.c index 883378d055c6..f21ea1b97116 100644 --- a/drivers/pwm/pwm-fsl-ftm.c +++ b/drivers/pwm/pwm-fsl-ftm.c @@ -22,51 +22,9 @@ #include #include #include +#include -#define FTM_SC 0x00 -#define FTM_SC_CLK_MASK_SHIFT 3 -#define FTM_SC_CLK_MASK (3 << FTM_SC_CLK_MASK_SHIFT) #define FTM_SC_CLK(c) (((c) + 1) << FTM_SC_CLK_MASK_SHIFT) -#define FTM_SC_PS_MASK 0x7 - -#define FTM_CNT 0x04 -#define FTM_MOD 0x08 - -#define FTM_CSC_BASE 0x0C -#define FTM_CSC_MSB BIT(5) -#define FTM_CSC_MSA BIT(4) -#define FTM_CSC_ELSB BIT(3) -#define FTM_CSC_ELSA BIT(2) -#define FTM_CSC(_channel) (FTM_CSC_BASE + ((_channel) * 8)) - -#define FTM_CV_BASE 0x10 -#define FTM_CV(_channel) (FTM_CV_BASE + ((_channel) * 8)) - -#define FTM_CNTIN 0x4C -#define FTM_STATUS 0x50 - -#define FTM_MODE 0x54 -#define FTM_MODE_FTMEN BIT(0) -#define FTM_MODE_INIT BIT(2) -#define FTM_MODE_PWMSYNC BIT(3) - -#define FTM_SYNC 0x58 -#define FTM_OUTINIT 0x5C -#define FTM_OUTMASK 0x60 -#define FTM_COMBINE 0x64 -#define FTM_DEADTIME 0x68 -#define FTM_EXTTRIG 0x6C -#define FTM_POL 0x70 -#define FTM_FMS 0x74 -#define FTM_FILTER 0x78 -#define FTM_FLTCTRL 0x7C -#define FTM_QDCTRL 0x80 -#define FTM_CONF 0x84 -#define FTM_FLTPOL 0x88 -#define FTM_SYNCONF 0x8C -#define FTM_INVCTRL 0x90 -#define FTM_SWOCTRL 0x94 -#define FTM_PWMLOAD 0x98 enum fsl_pwm_clk { FSL_PWM_CLK_SYS, -- 2.17.1