From patchwork Tue Apr 2 11:28:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 189 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2628140B0A for ; Tue, 2 Apr 2019 13:29:13 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id h69sf9598863pfd.21 for ; Tue, 02 Apr 2019 04:29:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1554204548; cv=pass; d=google.com; s=arc-20160816; b=S+OQbJs0sUZIkg5kFF1WCteaypjRaA2aOLXSQd5Ix0oN3FL9sKhXxtJErvwOcMfWQB QM07pXrV2prp+3c61fShUIDF8lO0K7ylMsmy9LaNuy8mLazz5P7NxSvwAog0cP5E9CNO hhiQL2WZEwIRVCmjJOFHE5Dh8yjkGho9eboAqi1Q6GRhPg6bXUjbPMvqbyutHCPmmxB3 YwDgsQ6stf//iUVlqBG8pM/RM57wuk/rSQ/+NP2j0dXYtTKeygGhPuDJzBrQpNEOqN4N MqD8UgnCbPXiTgWoMuo4dH6Vo7gKDUk1sv0DPamIfM8WOqvy6vA6XMThFv9sLZP4jinu drkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=AjoxMYX5xazSFNFCCO+CrPbQnTqriLMk+O/KaCAOgCw=; b=mfj/olD/8odUFZGwAieIemNJQsFQJgXLv0CN9RDeTp76/gLY5iBmJTovQ5kTSHCM0F EQ4/bXwx2ulGOVwnz9dHx3sA6wmRZzSPJz0QESlExRdVpmo0Je/uBXLCp6LBoAeDpdDE qsgwuIWabYJjm3HC3hpGgD0c6ZeSJgIkRNSeWvYI+yihgNe/VwUmAsHtQwyUrh6D/C99 KDG68PbZL0kTuoSGC5NR8W782txPYp668wApnPr77AHdjqY8A1VS0ARkQueX694ow4VX th/1Wwy9Cdun2nnKxIRkGqm2OEICmLI2vJ3eMZ08UHMf7aHlOc01d/Gz+Pnr9YLVZKiC Hfsw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jp7iznYF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=AjoxMYX5xazSFNFCCO+CrPbQnTqriLMk+O/KaCAOgCw=; b=AunVqFtug53yyDpBmYe2WZOqG23eNWZkJvMZNpBaPDiVEEIyA88TfwVkJvpsTPwz54 1TkB9Gs1Cv9hAkv07BipbUdbISfRZN0Aix+i2vUThkuAwhLQuNBB9lOVrKvJBcD3gwnN TkCqUbKFzL/1kBt/0zqnaWHWoWfaYdqWj93ks= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=AjoxMYX5xazSFNFCCO+CrPbQnTqriLMk+O/KaCAOgCw=; b=O4hkduqV5WX3DQPbKYD4XAJgfno6E1HNwCh4tZqsm9gD02jhReOSG8B4J/1mA4XzCK 8OK7mP/RXPYB1PzVy+735sGwu/Fg09vtPdYlj5X/p9GFQjZGyJzNor1BV16FIc33rX4K 5WeSJJcI9X41UujHMOJnjFBJabLBopsr93KcTUxa78gPRZ4z4B5DO/cm/i0jbURY0+5G spnzmNEjc994QiNRA9lt8H4gJ9WY7006EVjKzeB5i/cBCn+F07St06U0yE0+b6d2GT2M KuL3m6zS4Weevr2JTbw+rQmAOFXIuP89RSG6rXqrFZI4sVQ8ccEpc3kuK7Jk2LlA65mK Ghiw== X-Gm-Message-State: APjAAAULNHK7uYCFOPk1mx7zzGBpB0QWD85DTfj4W8rdVgYd+TKY+gwX Oh2wEa5lhJlGbMDqG1n7sp/ADs2z X-Google-Smtp-Source: APXvYqyQJdZvT13XHc6ZCLrhl0WntoeibDiTVfMVFK9/96BIB0eBbxaBaBDh0jsiXyC+n92StWDXhA== X-Received: by 2002:a17:902:8485:: with SMTP id c5mr1407018plo.29.1554204548813; Tue, 02 Apr 2019 04:29:08 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:f80f:: with SMTP id n15ls139357pgh.13.gmail; Tue, 02 Apr 2019 04:29:08 -0700 (PDT) X-Received: by 2002:a63:c706:: with SMTP id n6mr32648780pgg.310.1554204548401; Tue, 02 Apr 2019 04:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554204548; cv=none; d=google.com; s=arc-20160816; b=ItIsMPv9cg4y43ijuoY7xyDWRba73xRqkK9w+kOEKIB1jpe8Aje66SEJHxHQh1mJU4 aoKTebraTt8rihNKhor+FPDWr9TNqS+XLVkbHyI/NdvZS9hSgarRmHX0HabHlySLteyd GR2igrd+Vj00kQL1iMeUhR1nrUMfvvQRKRtgFOwnCGLt6Qq3yQ1CQRzXJOtG5hQUpWSc /5x/56co3+p0yLdjk1kgtNT3+XpoNVfQjS3fAHwzAxc1ITDojd2PvGWQj1YH577js0Ca 0gMmXXbSbW1IwbyKS3BC/Vs8MozOzAtPWnMS4Ex1i8glidp43mxr5WTdkgBkPFMCt1Zx m6Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=+98ES9ZYnE0+OkTGwia9MWbbM6YR1Wp8HWdMroJ+xNA=; b=jmyaOJ4FpjdbrsmsmIu2ZHCGR5sulMZzBhyauJBpB8c2JHzSR/T3AuV78SfkRjkz23 aKAXf2WbzWY/0cxtGRPQWkIDH3Ib/6hb6Jd5xeztT+vaDIHxeO76KieDzp3hL5GP+lag eKIRtaaXYEpvV4sXw7+EVEKTjbPv7d87vAFMy8wyPVWkFke/yaVyLrUXKnAKe4BST4L/ CerdSpSpwfUP9V8ZBOXUlTinDk2W78aWVtIAaAeJ6TIWyHri2Yktm1tNRjH0NfXGQULq X/XoyFbP2WwcpG8rNBISwVI7L178a1AjR1DpivIyqhWPTkIx4TmF/5JL78kmNxPTQmxQ lT7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jp7iznYF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d8sor16435044pln.53.2019.04.02.04.29.08 for (Google Transport Security); Tue, 02 Apr 2019 04:29:08 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:2bab:: with SMTP id l40mr69615736plb.273.1554204548124; Tue, 02 Apr 2019 04:29:08 -0700 (PDT) Received: from jagan-XPS-13-9350.imgcgcw.net ([147.50.13.10]) by smtp.gmail.com with ESMTPSA id u62sm23992715pfa.124.2019.04.02.04.29.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Apr 2019 04:29:07 -0700 (PDT) From: Jagan Teki To: Simon Glass , Tom Rini , Neil Armstrong , Philipp Tomsich , Marek Vasut , Stefano Babic , Fabio Estevam , Peng Fan , Maxime Ripard , Michael Trimarchi , Andre Przywara Cc: u-boot@lists.denx.de, uboot-imx@nxp.com, Shyam Saini , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 01/10] clk: imx: Kconfig: Make CONFIG_CLK available for selection Date: Tue, 2 Apr 2019 16:58:34 +0530 Message-Id: <20190402112843.992-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190402112843.992-1-jagan@amarulasolutions.com> References: <20190402112843.992-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jp7iznYF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Adjust the Kconfig to hide architecture and other internal configs so-that generic CONFIG_CLK is available for selection. This would make easy for configuration selections between SoC families with in the same SoC and even more readable. Cc: Peng Fan Signed-off-by: Jagan Teki --- configs/imx8qxp_mek_defconfig | 2 +- drivers/clk/imx/Kconfig | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/configs/imx8qxp_mek_defconfig b/configs/imx8qxp_mek_defconfig index a94998b8b5..8ad7ef4c04 100644 --- a/configs/imx8qxp_mek_defconfig +++ b/configs/imx8qxp_mek_defconfig @@ -40,7 +40,7 @@ CONFIG_DEFAULT_DEVICE_TREE="fsl-imx8qxp-mek" CONFIG_ENV_IS_IN_MMC=y CONFIG_SPL_DM=y CONFIG_SPL_CLK=y -CONFIG_CLK_IMX8=y +CONFIG_CLK=y CONFIG_CPU=y CONFIG_DM_GPIO=y CONFIG_MXC_GPIO=y diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index a6fb58d6cf..a125c23a19 100644 --- a/drivers/clk/imx/Kconfig +++ b/drivers/clk/imx/Kconfig @@ -1,6 +1,17 @@ +config CLK_IMX + bool "Clock support for i.MX SoCs" + depends on CLK && ARCH_IMX8 + default y + help + This enables support for common clock driver API on i.MX + SoCs. + +if CLK_IMX + config CLK_IMX8 bool "Clock support for i.MX8" - depends on ARCH_IMX8 - select CLK + default ARCH_IMX8 help This enables support clock driver for i.MX8 platforms. + +endif # CLK_IMX