Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp999953yba; Mon, 1 Apr 2019 23:34:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIA4Yf6L/Lus++4okLbPqlCcjGDqzuEcsKKe0RbRlB7PwqdjfTRc7fGA/C5/sU0GUkzwLk X-Received: by 2002:a65:6150:: with SMTP id o16mr35082968pgv.285.1554186896528; Mon, 01 Apr 2019 23:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554186896; cv=none; d=google.com; s=arc-20160816; b=cxws/HaRVLsrtbZ1dH/pUjbBMJ6pqBJyzVS6ERPVrqVbs6hzgtv3M9W65tmuwBAP9l 3WOOiN4H0pZ3n66Lg4gHStpuZF66Z1LJ3vnF9/1qXh0tUhk6LJ6FYcqVrqKyHquiLAIo IOYidsBbZ2N8dQT6nQVlrEWhcT6uXyfZydAMzXKqVdHaDZV+FtgyleJz34MQKKaRG2+v RLtKxcMLHWvF/FYupq8xEm4a/bbOcSBOTSrvOiSauZ8xfBtu2utc1mHo0DXBgEzJMAxM 4l2KMtTj9eBXh41Ot1CdQrqc0De6SaB1Q9ehcdPOc7BMnU6swm2eVdM8vTK0GcFEeXsp tKzA== 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=i/73y8EqAZm2cFjbN4yCx0AeoLF3+nbdcxL9URDqVac=; b=FHyfH3nvS4i47fdzL//yAe2KaJ28//WO4jQzKAF3f9YUI2PKv4Q9XQ7EITto6oln8s CUFA0o9VvdgXUN0lqcRCjwUqHFHWdUdbo9+XmIyC/i5zmLruttBJkK2XEsoYReYZEd07 +tQa9eVLErG3OkqcOb8jcBFoTXAHVVnrKc5htWjQyIRMneQnvZi5bv2VaXyMl3obFuF8 D8QRqdXo/7zwQMvpiB8kSsu0FEnIZywbvb1Ifj7OeKaquNO8oDW1PpPCQEZS8BzvlQIc 4oDOSxiPjJ4Bm66YrjjIs1Y8N1H7af0MZFt+4ozesLNZrLNF4RI0ene3cG6AWYKDVWvn vcuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aNhFccOk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj7si10517321plb.408.2019.04.01.23.34.41; Mon, 01 Apr 2019 23:34:56 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=aNhFccOk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729251AbfDBGcZ (ORCPT + 99 others); Tue, 2 Apr 2019 02:32:25 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40737 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726074AbfDBGcZ (ORCPT ); Tue, 2 Apr 2019 02:32:25 -0400 Received: by mail-pf1-f196.google.com with SMTP id c207so5832689pfc.7; Mon, 01 Apr 2019 23:32:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=i/73y8EqAZm2cFjbN4yCx0AeoLF3+nbdcxL9URDqVac=; b=aNhFccOka/xlrRuJPftLIHqXOitZh0phQC2lQ3PkGChkwRIjRosI0XyI9gyfBpmmDh mwD6q5eympVCFtuDYDS7MZ5+otFqk/2UhXdKnzDl6faevAwP5SVPK/3Sjhi0Vjd/lV2/ cJ0M/d7f3FT2nMwwijOhjjdcJwdn14ucBPY1QHIF89s1WyzkVZk+FtQqOko9OPOqCBjd JqsLv2KcecLh1gf/BfB7YNn/CntblZz0K6djow3ad6zxsfC8QRjRfEoDJ/HHbqb4028K s2T+ut/jh56EHMr77XeLDv6Ebu78ODs5nSYZY65J961NBoghSEgxQiyiZoEaWpfktwAC xRqA== 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=i/73y8EqAZm2cFjbN4yCx0AeoLF3+nbdcxL9URDqVac=; b=ZkyvFnk181PhFFG9mS4mGhm/OmpuCbNJJGSwylJomZp9A5Yx1qEj+3uXvryP3XAHir z8cmQaZ8dXbC+enuIcG2zY1mW5pKL/wyZwBPUYlhfzkIA/hheH/aBHcgaWwd0XtO+jPM bXO7fbTsrDQmhHOCjVsCbcEU/6mE4WC82Fvi37Z/NLud3jIvjpntej2arJam6FPsVXt7 u9Sg+wPyKX7QVq2ZCTqqjXx7wPMyz8jjp0MI7kYz5/HWkFqYjZuWEaBtHw6P0KZ7/7Tr xd67YCbEBMOeGVMvsdFLBKtOOpZqjnymkukwsIjk1Pkw3Jvx18el7J1PJAkNj/UIVavw jDmg== X-Gm-Message-State: APjAAAX9hHWygFraeeIPWmgcbG1ARrMnXBXb7udq0jeZibY6fk3jpxjE 1at6rKsE6VwVfWqzvnhTTOU= X-Received: by 2002:a63:e653:: with SMTP id p19mr3469003pgj.284.1554186744528; Mon, 01 Apr 2019 23:32:24 -0700 (PDT) Received: from localhost.localdomain ([2001:268:c0a5:4ce0:c70:4af9:86e2:2]) by smtp.gmail.com with ESMTPSA id a17sm19327289pfj.123.2019.04.01.23.32.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 23:32:24 -0700 (PDT) From: William Breathitt Gray To: gregkh@linuxfoundation.org Cc: jic23@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, fabrice.gasnier@st.com, benjamin.gaignard@st.com, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, akpm@linux-foundation.org, david@lechnology.com, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, leoyang.li@nxp.com, daniel.lezcano@linaro.org, tglx@linutronix.de, thierry.reding@gmail.com, esben@haabendal.dk, linux-pwm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, patrick.havelange@essensium.com, William Breathitt Gray Subject: [PATCH v10 13/18] drivers/pwm: pwm-fsl-ftm: use common header for FlexTimer #defines Date: Tue, 2 Apr 2019 15:30:48 +0900 Message-Id: X-Mailer: git-send-email 2.21.0 In-Reply-To: References: 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 From: Patrick Havelange This also fixes the wrong value for the previously defined FTM_MODE_INIT macro (it was not used). Reviewed-by: Esben Haabendal Signed-off-by: Patrick Havelange Signed-off-by: William Breathitt Gray --- 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.21.0