From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCUpN-0004Yq-UH for barebox@lists.infradead.org; Tue, 16 Oct 2018 19:16:34 +0000 Received: by mail-pg1-x544.google.com with SMTP id d8-v6so82653pgv.10 for ; Tue, 16 Oct 2018 12:16:15 -0700 (PDT) From: Andrey Smirnov Date: Tue, 16 Oct 2018 12:15:35 -0700 Message-Id: <20181016191552.16690-6-andrew.smirnov@gmail.com> In-Reply-To: <20181016191552.16690-1-andrew.smirnov@gmail.com> References: <20181016191552.16690-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v4 05/22] clocksource: Introduce ARCH_HAS_IMX_GPT To: barebox@lists.infradead.org Cc: Andrey Smirnov Not all SoCs use i.MX GPT block as a clocksource, so introduce ARCH_HAS_IMX_GPT to mark the ones that do. Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/Kconfig | 11 +++++++++++ drivers/clocksource/Kconfig | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 8d161bee2..3aff62d89 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -85,58 +85,68 @@ comment "Freescale i.MX System-on-Chip" config ARCH_IMX1 bool select CPU_ARM920T + select ARCH_HAS_IMX_GPT select PINCTRL_IMX_IOMUX_V1 config ARCH_IMX21 bool select CPU_ARM926T + select ARCH_HAS_IMX_GPT select PINCTRL_IMX_IOMUX_V1 config ARCH_IMX25 bool select CPU_ARM926T select ARCH_HAS_FEC_IMX + select ARCH_HAS_IMX_GPT select PINCTRL_IMX_IOMUX_V3 config ARCH_IMX27 bool select CPU_ARM926T select ARCH_HAS_FEC_IMX + select ARCH_HAS_IMX_GPT select PINCTRL_IMX_IOMUX_V1 config ARCH_IMX31 select CPU_V6 bool + select ARCH_HAS_IMX_GPT select PINCTRL_IMX_IOMUX_V2 config ARCH_IMX35 bool select CPU_V6 select ARCH_HAS_FEC_IMX + select ARCH_HAS_IMX_GPT select PINCTRL_IMX_IOMUX_V3 config ARCH_IMX50 bool select CPU_V7 select ARCH_HAS_FEC_IMX + select ARCH_HAS_IMX_GPT select PINCTRL_IMX_IOMUX_V3 config ARCH_IMX51 bool select CPU_V7 select ARCH_HAS_FEC_IMX + select ARCH_HAS_IMX_GPT select PINCTRL_IMX_IOMUX_V3 config ARCH_IMX53 bool select CPU_V7 select ARCH_HAS_FEC_IMX + select ARCH_HAS_IMX_GPT select PINCTRL_IMX_IOMUX_V3 config ARCH_IMX6 bool select ARCH_HAS_L2X0 select ARCH_HAS_FEC_IMX + select ARCH_HAS_IMX_GPT select CPU_V7 select PINCTRL_IMX_IOMUX_V3 select OFTREE @@ -164,6 +174,7 @@ config ARCH_IMX7 select OFTREE select COMMON_CLK_OF_PROVIDER select ARCH_HAS_FEC_IMX + select ARCH_HAS_IMX_GPT config ARCH_IMX8MQ bool diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 1a33b2f0c..3caf72503 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -1,3 +1,6 @@ +config ARCH_HAS_IMX_GPT + bool + config AMBA_SP804 bool depends on ARM_AMBA @@ -76,4 +79,4 @@ config CLOCKSOURCE_ARM_GLOBAL_TIMER depends on ARM && CPU_V7 config CLOCKSOURCE_IMX_GPT def_bool y - depends on ARCH_IMX + depends on ARCH_HAS_IMX_GPT -- 2.17.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox