Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4105895imb; Wed, 6 Mar 2019 05:32:54 -0800 (PST) X-Google-Smtp-Source: APXvYqykpotZLPRjR8Z/YKMel3loI4Icc6FZWl8PRurq2d9DUlHHN76iQm0nWwxrH4Npe0KzaJHX X-Received: by 2002:a17:902:6a4:: with SMTP id 33mr7042728plh.140.1551879174881; Wed, 06 Mar 2019 05:32:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551879174; cv=none; d=google.com; s=arc-20160816; b=pI1RY2ka5+7beE3dOikYcpMfWbjpLpjqYDjZBn+NekDYduHgCPao9bNssR01148DP0 wvuRKwZKi6VoYEPliVU9ARfh18r/yRjLO/ev4OkYk0jh9SK0DbaVvv2K7WJpxj0aDKT6 85XLnH9UdhGGp1J/9fQveZgd/nec4ubYbYNOZz0fPkKhiaeGIbfOia/O0NJ7lsvx9I0K gRd4hr6Sfg1pACopkLLLsC34zr8sLMIVN+VHWMHnYV4uialu3pLUHLxuut8ICxg6u9hM iXwOyzdwfpiAW6LNDby4r3g/0MwLi/EiWgqjw7e03jQwt2NEZpnmrYI5MvDsOFHiAMES UySg== 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=cDSuoyKdNV1HV5DOgGi6pj2N/BJT3JWfpiGnrduNvUU=; b=vhmYwMZGQBHxBEIdA7vVzxfKWFXZJCMhycQAcoCXY3tFUZgObr7Gv8sRQFYJ0+kFGh eDXK7AxIZarfoLy+IZdWR3dM3yP4MZe1FKo3RNL7zoI/hvV2TMREz5M4cM2MglO2x1FI 4JkjZjtLImxMck3h9MLfWCT21j8F+sE7gcFJpFvDiORyj5qOn6vqV92vxGW0DDPuI97U h/MA8W7YC4CnO37m7fFekKUFxV/JTJXoldA5OAF3uX9R7sm7juz0RYzyipTaSGTp5AeA wWnMfJKq/fynk8S2nuSigEZ1jQX9EkY5zpXTsl/zmYnd/Ceo0DW3iT8qfsoiHSmRvvul m2cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@essensium-com.20150623.gappssmtp.com header.s=20150623 header.b=guHZcbpB; 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 s22si1482242plr.44.2019.03.06.05.32.39; Wed, 06 Mar 2019 05:32:54 -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=guHZcbpB; 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 S1730437AbfCFLNC (ORCPT + 99 others); Wed, 6 Mar 2019 06:13:02 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:45063 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729375AbfCFLMd (ORCPT ); Wed, 6 Mar 2019 06:12:33 -0500 Received: by mail-ed1-f67.google.com with SMTP id f19so9974547eds.12 for ; Wed, 06 Mar 2019 03:12:31 -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=cDSuoyKdNV1HV5DOgGi6pj2N/BJT3JWfpiGnrduNvUU=; b=guHZcbpBM7nvUcaZ6yVNVW194npw7ZDkaCs6IDJ/YAGhiSft9/UWwaATplFk/Y4Hd3 HzYmIYIFBtjWG5uQVqJnl5fA+FH1ft3rBfGfonIraRKRjLPS0b59lUftY0G234rmRPsS 8EfdQtHuSGKEi9SGFEHCekmLSrEaoOVtN9aai5C6VLjLolPid1GfIdXZgfpk7flXPQ7m W2KyD9Mdfji0CuW3VD9R4KTc+8BfIUcpSz6412Ez2P00vw4CUce94ZzCt02NtwpRLOTf AtBsPfLsCzOEod6NYuFJi4rGd2sHbSdqUHiAsSsrb7BXb+ZDTvSSXZeao3IdfCyncFDb KkGg== 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=cDSuoyKdNV1HV5DOgGi6pj2N/BJT3JWfpiGnrduNvUU=; b=BBBzbIudhtytivAdSIm8Onx1eQd9fqUpN43oIXQvYGvp2M/Sj0uxR5oI3NolIg5jX3 SGANjvDE/SNc718Ty4Q1fRq7DvWOqZU9khPW82vAGr0mW6yIyYKDNVpGo6qKm825cY1g 6B6e3jUPw6G+kze6VSNhftioVsN9dbCCECsUVkcngHiYekwaEtpXILIXBc7nX+LxkVj7 JljmB/FX7Bvk5/woB02TRKB09Njy60O3QZx5J2iT14/Aqqz87t3f2rmX69vT439EOpdh FHx7PlsvL8IDZ80PyLcrTmw1HwvH8veX+0RSH79beWFHr40zwigIT80YuDzoMzmCOOQk Kmfw== X-Gm-Message-State: APjAAAVdNRc+NvRfV/gqbAyyUiSn+VlbZM5T30BZV4mykq86Dj1nvSjn KiOmVeU/Ef5QilvPndG/eDNUsQ== X-Received: by 2002:a05:6402:1490:: with SMTP id e16mr22862133edv.201.1551870751292; Wed, 06 Mar 2019 03:12:31 -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.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 03:12:30 -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 3/7] drivers/clocksource: timer-fsl-ftm: use common header for FlexTimer #defines Date: Wed, 6 Mar 2019 12:12:04 +0100 Message-Id: <20190306111208.7454-4-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 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 --- 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; -- 2.19.1