Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5989422yba; Thu, 11 Apr 2019 09:41:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjUyLvasph2r5LwNvJ66PmEv2PRFDfdpVatMhJLbdBBiIlBhvBD8J9I1gmAQPgpxhgWIoA X-Received: by 2002:a63:e44f:: with SMTP id i15mr43692255pgk.362.1555000918055; Thu, 11 Apr 2019 09:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555000918; cv=none; d=google.com; s=arc-20160816; b=e7ciojIGTl4o4GHSQyZBKmyzgGipAOZTyZIBUnyDzKhjihJ6UNbmBtGc2uaKnRG5Ql mSKkwQZA9J24PcZ7VBZHwp4WIgAlszILsW9fxxnzHi7YIc9P5KkP3Y/UEBmK+/NsE/H9 Y2NZ4nJzGGcQ8j4RZwYqL+BoyCRDtXHJOXOgs+0hGAJyv3UnzQW1Fp916c/lb1Bw7MnN KBCDf4sIkBPJs5IzeTdI3ZaAKSgualNnckMC95yowbiJr3dRGNQLoB9084TeVN1aemJb 3K4EZH35VWRlzl0Xk8q4g7TY2YhWZYc8wj/7ZeAwIoCaJrKlr0xFocmO+WMqAWMDwJ1o V4bg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=OEsAGu5FY2oqAqolGl6W2+S5SjflU5nYh0bRo2ivrKo=; b=m+WaymarsGht8NxLgZ89v1JHZZu5YU8QmyJPksX7XU3svD+C4p1aWf/pmcR+jP+3nm pF3RvkMZDRSMpSH/FMEsM4XYOgRgSlyO+g24S8lbkxMRlxm8QYun/U11Pf9s4xwpvkSH INfE/RxSM9+j1b8FHvOx+5g2TtDD/ZSbUrp+sfn8EPXZzN1Iqo12UHyudTUBjhMzkyMx xFDRPJZFEeeOsP5yIIWOpygs/uGC98W3F54ov2ARmkc6oUDrCArvKah5cMpZYC73RpKt 8G5JfGaAKNC0VAFxIHmlS2dXe96DLEV6HioPjjQ5/ruNAukgd7olQj4ty8RKoMHhW6Jm wpog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xcvXOgMW; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b128si4102614pfb.141.2019.04.11.09.41.41; Thu, 11 Apr 2019 09:41:58 -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=@linaro.org header.s=google header.b=xcvXOgMW; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726874AbfDKQkm (ORCPT + 99 others); Thu, 11 Apr 2019 12:40:42 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:33746 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726812AbfDKQkl (ORCPT ); Thu, 11 Apr 2019 12:40:41 -0400 Received: by mail-wr1-f65.google.com with SMTP id q1so8277211wrp.0 for ; Thu, 11 Apr 2019 09:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=OEsAGu5FY2oqAqolGl6W2+S5SjflU5nYh0bRo2ivrKo=; b=xcvXOgMWMmGIZQyJfVYL9B4/04simq4Tb1B0B4HZf/38fKoJwnbfwJEUDd+5aqyZGF vn91/46j//qhcGZ2IKGkqLz0HfA8pxCQXL7EFeTVIia9ftVGSNhbUnGW/lvhuPi/mKhH s8NyT0er5Qqc0uv6lSfavsHwZTrAO452YO+S9a2d4sWitqWXqKtxbnkALPyX3vERuf33 tAV6l7reP6hpnXydad3erl4EA5r8ioRKdZvqrdHW/Hceyica7+Nccpr5Bg8MSOSlKR/u YT/8IyV/Rk5roYSQsuTxN6SxNsflUD+L3eSClvbVnONHI1s8LpmeDRTA904mFlb/YxNr +e1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OEsAGu5FY2oqAqolGl6W2+S5SjflU5nYh0bRo2ivrKo=; b=pyLH659Pk/3znzwL5wiycGba3/4FbZqkjG2sL9w8Mbh2uN9wQPeFuXa6rLeMfZWUf5 6p2OHmcCq9jLmYbbAr6osNoXfhtBsdpoc64WYo1I3NYd2H/diXkBnQnxqk1bsrky/V4D gYpI1ooSrac75SjIS5oSq51FfrTDgW/QHgz/LcbRygWdT6/K9w8etGoKolWgvjaomW0T h8LZ8XyBjvlu6tWbI/IVgrQLqHmpwnsRnpou+2g0hiEopCFgxIly4BbYldpi0Tbiwssv /uQYRGHpnMBlGZSF+RDKYsr47CeMN5AOxU48/IrYXMUqLuKl3QK8vhjuiDeXPvH9NVm/ jkTw== X-Gm-Message-State: APjAAAWOyoG50THry+vvrazZcf2gztxMgjx5MCPzuG31flaK6d4EnZhK 4rm3BeuZNYkK21tJYzz9wRVcDQ== X-Received: by 2002:adf:edcf:: with SMTP id v15mr7867744wro.20.1555000839751; Thu, 11 Apr 2019 09:40:39 -0700 (PDT) Received: from [192.168.8.100] (195.118.130.77.rev.sfr.net. [77.130.118.195]) by smtp.googlemail.com with ESMTPSA id g84sm9684634wmf.25.2019.04.11.09.40.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 09:40:38 -0700 (PDT) Subject: Re: [PATCH v2 3/7] drivers/clocksource: timer-fsl-ftm: use common header for FlexTimer #defines To: Patrick Havelange , William Breathitt Gray , Rob Herring , Mark Rutland , Shawn Guo , Li Yang , 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 References: <20190306111208.7454-1-patrick.havelange@essensium.com> <20190306111208.7454-4-patrick.havelange@essensium.com> From: Daniel Lezcano Message-ID: Date: Thu, 11 Apr 2019 18:40:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190306111208.7454-4-patrick.havelange@essensium.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/03/2019 12:12, Patrick Havelange wrote: > Common #defines have been moved to "linux/fsl/ftm.h". Thus making use of > this file. > Also FTM_SC_CLK_SHIFT has been renamed to FTM_SC_CLK_MASK_SHIFT. > > Signed-off-by: Patrick Havelange > Reviewed-by: Esben Haabendal Acked-by: Daniel Lezcano > --- > Changes v2 > - None > --- > drivers/clocksource/timer-fsl-ftm.c | 15 ++------------- > 1 file changed, 2 insertions(+), 13 deletions(-) > > diff --git a/drivers/clocksource/timer-fsl-ftm.c b/drivers/clocksource/timer-fsl-ftm.c > index 846d18daf893..e1c34b2f53a5 100644 > --- a/drivers/clocksource/timer-fsl-ftm.c > +++ b/drivers/clocksource/timer-fsl-ftm.c > @@ -19,20 +19,9 @@ > #include > #include > #include > +#include > > -#define FTM_SC 0x00 > -#define FTM_SC_CLK_SHIFT 3 > -#define FTM_SC_CLK_MASK (0x3 << FTM_SC_CLK_SHIFT) > -#define FTM_SC_CLK(c) ((c) << FTM_SC_CLK_SHIFT) > -#define FTM_SC_PS_MASK 0x7 > -#define FTM_SC_TOIE BIT(6) > -#define FTM_SC_TOF BIT(7) > - > -#define FTM_CNT 0x04 > -#define FTM_MOD 0x08 > -#define FTM_CNTIN 0x4C > - > -#define FTM_PS_MAX 7 > +#define FTM_SC_CLK(c) ((c) << FTM_SC_CLK_MASK_SHIFT) > > struct ftm_clock_device { > void __iomem *clksrc_base; > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog