Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4106705imb; Wed, 6 Mar 2019 05:34:00 -0800 (PST) X-Google-Smtp-Source: APXvYqwPwVtAiA400vSYOOnD7w55tnCXcIxjoLqkYp5DZ/eiugUs5GTyvyVVHlh/GUNc1Wn+kik+ X-Received: by 2002:a62:1851:: with SMTP id 78mr7405821pfy.206.1551879239902; Wed, 06 Mar 2019 05:33:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551879239; cv=none; d=google.com; s=arc-20160816; b=y19aciNCBTwu7Tv6tiXVP5cDvRvEeUF7Gny43e2Q035d3XFcUyxFodZFnzC1KCGsz0 nz7frPBy48JSWOKmv56IiSlSGAV3XKUb10GlvtMY9v7xfiURTsyoCLYu3e9zVdEi2Nga p4UbpOhjgBUEv0ju9sl/0nr+Ss9sHqUDstdauod9RWO8zQE186Envrjd++6TFoeFWvYR OA5ODrQNZx8YQW15tIg4cejGhwdiVWrAGubcV6V4YaVZ1XzEmqz4RCzXnBilmgq0G59P Lwx3wNZ+lJI7Bmv++tws3aQUhrsKMPI3EsfHThFevrlZaDqq8IUgmF1MfdjQrPwyQHeW 2gbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Eb8QqYRrz4udMhES1PQQVcFV8QXyv6ZjH+to8xVEkfQ=; b=sTPPfYshFTyReEiTjHL+uxffSQ62ndVCfElWzjmen+L4aECCjgeHDMIx5sorAzJqQm z+1uB2btrRxyh+X7bphkXQdr7ZkAJoJvFEmLkLLt6AWg/S0HfO4xRFCcjvB169wE22qJ 4upRegBHhKTaSo82wIxu6YUXUWMhRjSxWuevirsS+CYVvet5vz0AvgX9NV9zKbLLhXG6 F213CTStMUEgAVZy+hh3l8ynmZ5TfA58/5ArqX9Q0wtl9E04+YzwmIVK1uWnRafOSxPp W9c8tSsMp+9054h5eQoTzWXrVwV+R/ZMkukretjSo9YQqp4Z3W3zcut9oPWOK8T+Iuxi Z+CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@essensium-com.20150623.gappssmtp.com header.s=20150623 header.b=jQJjtG85; 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 m8si1398139pgp.322.2019.03.06.05.33.44; Wed, 06 Mar 2019 05:33:59 -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=jQJjtG85; 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 S1730356AbfCFLNJ (ORCPT + 99 others); Wed, 6 Mar 2019 06:13:09 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:34580 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730357AbfCFLMb (ORCPT ); Wed, 6 Mar 2019 06:12:31 -0500 Received: by mail-ed1-f65.google.com with SMTP id a16so10014320edn.1 for ; Wed, 06 Mar 2019 03:12:30 -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 :mime-version:content-transfer-encoding; bh=Eb8QqYRrz4udMhES1PQQVcFV8QXyv6ZjH+to8xVEkfQ=; b=jQJjtG85mLXrsJnvSxav5RIgquH5GW9mfXb8hLBzuRXca455TiuI7Y/Nr3GeOos5Ik ECEtC+SqM4DuZ3Or45muV3FFQIe87uNu7VI2U8s3b35xxh7jCtMuifd0yvtxvDlCFWtA xeh7SF39xYl/UIq6C3c0MYtJdvr47+xzywI6fS5GQl8JgY1EGOJOHWeopNUEMOLAFjgL IznuVIOelkZVXy9zQSQNr0fjR/gRghG/0bWHzoYRCBcwslzh2ZKARiWxyHHDikJhHN/0 BVVqz7Huonn6ProZBX5t6Y5W99dCDhwN4doI8SZLIs1mchAlpfHWAp5f+L6HizCNBx6u PNXw== 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:mime-version:content-transfer-encoding; bh=Eb8QqYRrz4udMhES1PQQVcFV8QXyv6ZjH+to8xVEkfQ=; b=gjThEvuV/6Ih6pAdqfGsxDeclUlzU+NXxC92fImzen0pBlv4opp4J2gMbhfQs6XKru 46FXNxkSAVpgkqRb6by09/L2wrswp+Krw/pDHRB4a9WVichqCSOyhdeRdv+9yJe3o5Dt H8VlIW9YKFuqNQ1ORZjC2Mm+jX9oabD6cRfjfP4ChY/k+TZN1mCEsxrQSvNIIZubKuz6 8MZf5a5sDIR3Dg4zVXb4aITOZcx/kVj/pvtLWptpC8rlTZ3P1v4vF7gif/Uu9wjeM4nR Kcxtzlj4b+pvwwKErhBk3Q34FIDQCk3jX8G/i1/bH9A8koOfH6dUCGt+0QfqIAeVqGLK FSFQ== X-Gm-Message-State: APjAAAUrDySpTIeMecinPN+7+RvMDXpDEmFFlduQAj5b5SqlmXVmqcW6 xOI3TP/LsO2o0WPfK+k0c0bfqA== X-Received: by 2002:a05:6402:184f:: with SMTP id v15mr23541935edy.133.1551870750172; Wed, 06 Mar 2019 03:12:30 -0800 (PST) Received: from ph-ThinkPad-E560.local.ess-mail.com (ip-188-118-3-185.reverse.destiny.be. [188.118.3.185]) by smtp.gmail.com with ESMTPSA id t25sm277879ejr.30.2019.03.06.03.12.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 03:12:29 -0800 (PST) From: Patrick Havelange To: William Breathitt Gray , Rob Herring , Mark Rutland , Shawn Guo , Li Yang , Daniel Lezcano , Thomas Gleixner , Thierry Reding , Esben Haabendal , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Jonathan Cameron Cc: Patrick Havelange Subject: [PATCH v2 2/7] drivers/pwm: pwm-fsl-ftm: use common header for FlexTimer #defines Date: Wed, 6 Mar 2019 12:12:03 +0100 Message-Id: <20190306111208.7454-3-patrick.havelange@essensium.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190306111208.7454-1-patrick.havelange@essensium.com> References: <20190306111208.7454-1-patrick.havelange@essensium.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- Changes v2 - None --- 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.19.1