From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9P9D-0006ft-IT for barebox@lists.infradead.org; Mon, 08 Oct 2018 06:37:14 +0000 Received: by mail-pg1-x542.google.com with SMTP id f8-v6so955971pgq.5 for ; Sun, 07 Oct 2018 23:35:57 -0700 (PDT) From: Andrey Smirnov Date: Sun, 7 Oct 2018 23:35:30 -0700 Message-Id: <20181008063542.18709-5-andrew.smirnov@gmail.com> In-Reply-To: <20181008063542.18709-1-andrew.smirnov@gmail.com> References: <20181008063542.18709-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 04/16] 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 4a56fb9f4..cc8f65e1e 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 bb9d57f91..0e5978cbd 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 @@ -77,4 +80,4 @@ config CLOCKSOURCE_ARM_GLOBAL_TIMER 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