Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2438311imj; Mon, 18 Feb 2019 06:05:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IZkPe0m8FwOqTrKWl7PHusvbC1ouxKkguIVa/3lNerdNIgHW55NDjJ3rKFbsOV7CVNWRgfN X-Received: by 2002:a63:c303:: with SMTP id c3mr19015500pgd.268.1550498743227; Mon, 18 Feb 2019 06:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550498743; cv=none; d=google.com; s=arc-20160816; b=hNZax//fiZZx7vjmfqhDNo2OydRjVNmRG/xITiFBRm1PFaO0sAvyXxdHqL2ouEPrMO l4jYu2wwiQp1lfxknNOtv/f7h2v/FP5T/PjUNRacwypPZ2A4YV5I6zxpQguWqV7M2w9l 5rVy8fzwHAI4B1uUmmK8tYHA1MKNpJ9Ydp8AuxNfK684JpHfiissXtS6IZy/o4ElJXiy P/Jc67S2dnRQows0EbZzrh1ehxBMk55AY9/dtRxjM6W2ZY1IcXX5uO1p8OE5BqucbZT2 aN+vZbK9VAZ42f6fsBt9hTsxwW8sICaWz6j2G1hWqOWlSVghD48YFHOjquVYgGoNDYDX 0sAQ== 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=kDOvI7KHRas/e++nV1MAoAVesXibxebovw6lFI3t2LQ=; b=jM5UE5AXDzJoya9T4vpPlkgUIF1cmzC1sW3mVbWtBxpNBuk4FI1AXtjZiqbx5/Gs63 HuFi73jAp/OH5Sx+lwYzgyh4jrTsl8A8Z6u4/M/rFeQYJ2fnGk3xShaht3xTBFoC+HZh UL2RG18HA5FMC64ZVrKViuUZ8Pk1IhJYMc1BH2KA7Ba/qqHcTepH6UGO3BbQAnm85MUb q0ltt/nvXqylPl5w+RHgFefjnophSPbS1Rv90jFBgMWRamWJ4a7Ah1vdZfLq8pCTH1G9 h50vUzoFYDg4/pqCTzEBrHnjU/ipolE/mBVgi1XG27pyiZbqWkqlrCGjjpuzO+rHUdC4 CZtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@essensium-com.20150623.gappssmtp.com header.s=20150623 header.b=lPdVLPON; 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 b8si12685354ple.5.2019.02.18.06.05.27; Mon, 18 Feb 2019 06:05:43 -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=lPdVLPON; 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 S2389836AbfBROEA (ORCPT + 99 others); Mon, 18 Feb 2019 09:04:00 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:42410 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389758AbfBRODw (ORCPT ); Mon, 18 Feb 2019 09:03:52 -0500 Received: by mail-ed1-f66.google.com with SMTP id j89so4517362edb.9 for ; Mon, 18 Feb 2019 06:03:50 -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=kDOvI7KHRas/e++nV1MAoAVesXibxebovw6lFI3t2LQ=; b=lPdVLPONMX15tVFEdOGTWdO0qWE/4jq/BAze0ALMLuA0nMhYdTscqDSDouBdQJMKI+ 9P9j1Oo5wGvSlAFqwJ5MbsxrTSd68gxajlZug9ZW4tzsNll+n461GjbggeOeqUQpgDm7 W1pyYQRMbpuwsNn1TXoxIgHxqzMBLkEm6z/Mm2OFJDHKy3mdBVweK2p66YcDrrpeiyKy popuvplA8CMeHuToUOieTP7qkuHWUthsRGN5rVdQwprYyfywzPhUboAT3lTaCfKDFUXD GZCmTGPgJsVS9ZBLdp8t6SAGMuf9SNrpjtxDkSgWKiN8DRRDgz3mzZ/37doMnbxznzr/ OTcQ== 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=kDOvI7KHRas/e++nV1MAoAVesXibxebovw6lFI3t2LQ=; b=ii17OXBVme1O3mcohk9ATHN4sfF/+6TmAeEBv9QilUDRvcmdmSd74ccC0mU00SJiI4 DkRDi3oHZLayBYdI+kKXcLS+9gZrYK5FqIPsTsFRZrtDCGJo062N/QXP5p+DF5SHySYB MoveUpUADIG758tB4KuMeLAa3KX+7iVTVeSgMlus9EbhSXX9qED0c7fVt8nAjDwHbW4E BckEfuRWSFsTlAP5bLKjPUVenf7Fnsw3/GpJHppWi/Z1Riz2dYq92Z49D4va1ZvynP8L vSX3y9AOrOzm+PWK05ltYMvhtnxY6EpD71hHYj6g2PME/iAxjSllWdq89Wc88mvzf11n YBig== X-Gm-Message-State: AHQUAubgbxDqWs5uRAo2xzqQ81rMYzWZhoEmUl7CqBCgQXmu21Rn1nog MQSQKLURblq8KxSRquHqC6JjaA== X-Received: by 2002:a17:906:791:: with SMTP id l17mr13001446ejc.1.1550498630266; Mon, 18 Feb 2019 06:03:50 -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.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Feb 2019 06:03:49 -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 3/8] drivers/clocksource: timer-fsl-ftm: use common header for FlexTimer #defines Date: Mon, 18 Feb 2019 15:03:16 +0100 Message-Id: <20190218140321.19166-3-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 Signed-off-by: Patrick Havelange Reviewed-by: Esben Haabendal --- 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; -- 2.17.1