From patchwork Fri May 11 12:06:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Lilja X-Patchwork-Id: 911963 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40j83y3MSWz9s2L for ; Fri, 11 May 2018 22:07:42 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 70BF5C223AC; Fri, 11 May 2018 12:07:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 91321C2239E; Fri, 11 May 2018 12:07:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8F0DDC22319; Fri, 11 May 2018 12:07:08 +0000 (UTC) Received: from mail.lysator.liu.se (mail.lysator.liu.se [130.236.254.3]) by lists.denx.de (Postfix) with ESMTPS id 2476DC223A4 for ; Fri, 11 May 2018 12:07:04 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id BF2634000E for ; Fri, 11 May 2018 14:07:03 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id A604240025; Fri, 11 May 2018 14:07:03 +0200 (CEST) Received: from localhost.localdomain (h-57-173.A496.priv.bahnhof.se [79.136.57.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id A3A3840043; Fri, 11 May 2018 14:07:01 +0200 (CEST) From: Magnus Lilja To: u-boot@lists.denx.de Date: Fri, 11 May 2018 14:06:55 +0200 Message-Id: <20180511120655.3862-3-lilja.magnus@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180511120655.3862-1-lilja.magnus@gmail.com> References: <20180511120655.3862-1-lilja.magnus@gmail.com> X-Virus-Scanned: ClamAV using ClamSMTP Cc: fabio.estevam@nxp.com, trini@konsulko.com Subject: [U-Boot] [PATCH 2/2] mx31: Convert MX31_HCLK_FREQ and MX31_CLK32 to Kconfig. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Also remove the #ifdef's from clock.h since the Kconfig values defaults the to old default values in clock.h. Signed-off-by: Magnus Lilja Reviewed-by: Tom Rini --- arch/arm/include/asm/arch-mx31/clock.h | 8 -------- arch/arm/mach-imx/mx3/Kconfig | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/arch/arm/include/asm/arch-mx31/clock.h b/arch/arm/include/asm/arch-mx31/clock.h index e340db42fa..aafc2d690e 100644 --- a/arch/arm/include/asm/arch-mx31/clock.h +++ b/arch/arm/include/asm/arch-mx31/clock.h @@ -9,17 +9,9 @@ #include -#ifdef CONFIG_MX31_HCLK_FREQ #define MXC_HCLK CONFIG_MX31_HCLK_FREQ -#else -#define MXC_HCLK 26000000 -#endif -#ifdef CONFIG_MX31_CLK32 #define MXC_CLK32 CONFIG_MX31_CLK32 -#else -#define MXC_CLK32 32768 -#endif enum mxc_clock { MXC_ARM_CLK, diff --git a/arch/arm/mach-imx/mx3/Kconfig b/arch/arm/mach-imx/mx3/Kconfig index bf6a1c6927..6cc970fc49 100644 --- a/arch/arm/mach-imx/mx3/Kconfig +++ b/arch/arm/mach-imx/mx3/Kconfig @@ -15,6 +15,20 @@ config TARGET_MX31PDK endchoice +config MX31_HCLK_FREQ + int "i.MX31 HCLK frequency" + default 26000000 + help + Frequency in Hz of the high frequency input clock. Typically + 26000000 Hz. + +config MX31_CLK32 + int "i.MX31 CLK32 Frequency" + default 32768 + help + Frequency in Hz of the low frequency input clock. Typically + 32768 or 32000 Hz. + source "board/freescale/mx31pdk/Kconfig" endif