From patchwork Fri Dec 14 14:20:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 10731235 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A0033746 for ; Fri, 14 Dec 2018 14:20:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C4322D513 for ; Fri, 14 Dec 2018 14:20:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 306EC2D519; Fri, 14 Dec 2018 14:20:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B3BF42D513 for ; Fri, 14 Dec 2018 14:20:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=khtsajRKiGIg6TfODhDl+4S/p+B7sCjmM4dIFvFCc20=; b=M+bOKIXYGdRYYo caiBGntOQpL3d3bxJsswCZwfVWZnYfeBwwpazaYaJ7kGqheJt0sQLHXWyH9NCW99MasZZnQ4jvzOo f6uF4oY07Z5ShYyBa3L535wqykr3+gAiUSbnK0aMPmxfi1WE3WePMfoy3aFdqInqMvNzJxTZT6vb/ 68z30okv/FY7ywDK/f99du7x59d06Tg6VIWQpUjcSPEr3ljmBLaURD48p4AINpCpvhsbzp0OnQvWO B+FNuAauM/ss4d2Bca/wzYFR+AE8ZR1TRm7YLAOgs1oVbwu0rG1f8q0ZsytWYHqK/55Yz7VecRaxP aGtEMF/fzd/59BstLf/g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gXoKg-000424-L3; Fri, 14 Dec 2018 14:20:50 +0000 Received: from mail-eopbgr140048.outbound.protection.outlook.com ([40.107.14.48] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gXoKd-00041R-W8 for linux-arm-kernel@lists.infradead.org; Fri, 14 Dec 2018 14:20:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8gaQWIMpEiCoarHeeEfnIFeQgBJka3/9lnAXxdRZkgc=; b=UjlCrx+hbxgJQsgYJ6MBtGwf9kIgVjkurkbNLTL3jZcCLrIbQBXUbaXK3zVKEuiN3FIiwDJLf/sfJ7i26G5VCSTWySocKMSpmB2Xix/AHBkQiu0xx70CbHWQQMR5+tlQdUF5OdXouUHgcjlB3QJ7mdTpuN0hQirbTZW+XiD9JXw= Received: from DB3PR0402MB3658.eurprd04.prod.outlook.com (52.134.65.28) by DB3PR0402MB3787.eurprd04.prod.outlook.com (52.134.73.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.18; Fri, 14 Dec 2018 14:20:34 +0000 Received: from DB3PR0402MB3658.eurprd04.prod.outlook.com ([fe80::ce5:fddb:6290:c5eb]) by DB3PR0402MB3658.eurprd04.prod.outlook.com ([fe80::ce5:fddb:6290:c5eb%5]) with mapi id 15.20.1425.016; Fri, 14 Dec 2018 14:20:34 +0000 From: Abel Vesa To: Shawn Guo , Stephen Boyd , Aisheng Dong , Daniel Baluta Subject: [PATCH v2] clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant Thread-Topic: [PATCH v2] clk: imx: Make the i.MX8MQ CCM clock driver CLK_IMX8MQ dependant Thread-Index: AQHUk7gtj2BLOwHD5kqejAfjSVm07Q== Date: Fri, 14 Dec 2018 14:20:34 +0000 Message-ID: <1544797224-26627-1-git-send-email-abel.vesa@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5PR0502CA0012.eurprd05.prod.outlook.com (2603:10a6:203:91::22) To DB3PR0402MB3658.eurprd04.prod.outlook.com (2603:10a6:8:2::28) x-originating-ip: [95.76.156.53] authentication-results: spf=none (sender IP is ) smtp.mailfrom=abel.vesa@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB3PR0402MB3787; 6:bxRryIA/F1pD/nh2cXgxZ3LJELpeBmK+GwqVtiBuoGYR8DWW5oJnD0us5GZg1xcvJpef8BX01XTo4fYsYxQ2gYL5+GdLwQQm0PH54ZmITWTupJcll+dPCx1jLqyYjn+ASohwvjqKDw8Lr7qzFxQ06YghFkp+VIZMgCoLgkepmu7fVFGeZVj+lV4c1xTwgws8vuGGYqJjvRk4uV+oenO1eB2qDmCcWOKCmvLs6P9JqOcMV6R+nwScVxNlOWgs0/sA3SYhm3HfJPJMioSRTsL/sxOPq70EaMP3X73ExeazaKFmAH14zq+0kwkEqiKfi0nzNp3tdoGsXRlo7XG53ZU/pdyRxWpDs4P2RPT2RVT7NtS0JHphydwD/tCYp0z1BHk0GFhpczqxbUSsuc0qcp7M6xZ85spC+HbOU7wGoyVfXg4RJ5wh6MC1Bjg3fPIo1HT45jQlM04g0go18C4C62SVEg==; 5:BmjgBj+r73JVhB4jeqA0yqHwJfHQHdYaBlMhWxm8r33ZZJfki/NO7uE63/6UW/YhHDn5k9/bcxvbQJkMNzTxAtf3nyeFPltP76ophy1mSJWx6owtfQwJALNz6E4stWQLRzBtiVZknmmTXPC+Ss7hiHNoFzve5jIhDXht+joyXvs=; 7:NYLcYwBcg73zpXW+r71vqyQo6KBBeG6yyGVCpfX//69UgBP31WITkVcl3/oNxs/4+WwAAeuPIAR5KfIjXLbseqj6APAdMQw7Zr/cwBtAgogWrSTlXECId6GcuZmx0u9AnWJJX09vIqhdKKnrtl44PA== x-ms-office365-filtering-correlation-id: d8f458a5-59dc-4058-6ec5-08d661cf4f87 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB3PR0402MB3787; x-ms-traffictypediagnostic: DB3PR0402MB3787: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(999002)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231475)(944501520)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:DB3PR0402MB3787; BCL:0; PCL:0; RULEID:; SRVR:DB3PR0402MB3787; x-forefront-prvs: 08864C38AC x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(39860400002)(376002)(396003)(136003)(346002)(189003)(199004)(81166006)(478600001)(575784001)(14454004)(110136005)(106356001)(14444005)(6636002)(7736002)(105586002)(256004)(2906002)(6436002)(316002)(8676002)(81156014)(54906003)(99286004)(6116002)(305945005)(6512007)(6486002)(5660300001)(3846002)(36756003)(97736004)(66066001)(53936002)(2616005)(486006)(44832011)(71190400001)(71200400001)(386003)(6506007)(68736007)(8936002)(86362001)(4326008)(52116002)(102836004)(26005)(186003)(476003)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0402MB3787; H:DB3PR0402MB3658.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: pG7c5dMqLtx+WulC9mDv+FD8omI+FjV4jsCxhyYHRxqkytAQtU2SL1VZStWmHSrmAaJCTqYSq/IIhbhAcOmAhQa2mADKMUcWAVJETet8y3Z/7GxnzePNP1/0DH5LZy+JL2oT5xzt5EAfWAEn6uTz1zlFwXE2dQiu3hq0x6jVh++QyObRwaD/Osfs8rG4qcogUFGwYQnDv660asJhI9M2+2wiSf3bH3P8Nflrcbj705eHo/R3N5WExf9A3gKN0Hc9nyLUuw70yH4wmPdIvGCFgBYmVdmL32NHJyXsSPLEGTPM+6hfqj9Mx4N0n6TnIpwE spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d8f458a5-59dc-4058-6ec5-08d661cf4f87 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Dec 2018 14:20:34.3957 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3787 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181214_062048_030547_54E42625 X-CRM114-Status: GOOD ( 14.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Abel Vesa , Linux Kernel Mailing List , Fabio Estevam , dl-linux-imx , Pengutronix Kernel Team , Olof Johansson , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Lucas Stach Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the dependency between the i.MX8MQ CCM clock driver and the CONFIG_SOC_IMX8MQ and use CONFIG_CLK_IMX8MQ instead. CONFIG_CLK_IMX8MQ depends on ARCH_MXC && ARM64. Signed-off-by: Abel Vesa --- Changes since v1: * reordered the CONFIGs in clk/imx/Makefile as suggested by Daniel and Shawn drivers/clk/Kconfig | 1 + drivers/clk/imx/Kconfig | 5 +++++ drivers/clk/imx/Makefile | 4 +++- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 drivers/clk/imx/Kconfig diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 2dc12bf..833353c 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -293,6 +293,7 @@ config COMMON_CLK_BD718XX source "drivers/clk/actions/Kconfig" source "drivers/clk/bcm/Kconfig" source "drivers/clk/hisilicon/Kconfig" +source "drivers/clk/imx/Kconfig" source "drivers/clk/imgtec/Kconfig" source "drivers/clk/ingenic/Kconfig" source "drivers/clk/keystone/Kconfig" diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig new file mode 100644 index 0000000..98ede6a --- /dev/null +++ b/drivers/clk/imx/Kconfig @@ -0,0 +1,5 @@ +config CLK_IMX8MQ + bool "IMX8MQ CCM Clock Driver" + depends on ARCH_MXC && ARM64 + help + Build the driver for i.MX8MQ CCM Clock Driver diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile index 5c0b11e..7e55a4b 100644 --- a/drivers/clk/imx/Makefile +++ b/drivers/clk/imx/Makefile @@ -20,6 +20,8 @@ obj-y += \ clk-pllv4.o \ clk-sccg-pll.o +obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o + obj-$(CONFIG_SOC_IMX1) += clk-imx1.o obj-$(CONFIG_SOC_IMX21) += clk-imx21.o obj-$(CONFIG_SOC_IMX25) += clk-imx25.o @@ -34,5 +36,5 @@ obj-$(CONFIG_SOC_IMX6SX) += clk-imx6sx.o obj-$(CONFIG_SOC_IMX6UL) += clk-imx6ul.o obj-$(CONFIG_SOC_IMX7D) += clk-imx7d.o obj-$(CONFIG_SOC_IMX7ULP) += clk-imx7ulp.o -obj-$(CONFIG_SOC_IMX8MQ) += clk-imx8mq.o obj-$(CONFIG_SOC_VF610) += clk-vf610.o +