From patchwork Wed Sep 19 06:04:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10605355 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 F1B04112B for ; Wed, 19 Sep 2018 06:12:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD91A2B5B3 for ; Wed, 19 Sep 2018 06:12:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D03D62B5C1; Wed, 19 Sep 2018 06:12:03 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 5171A2B5B3 for ; Wed, 19 Sep 2018 06:12:03 +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:References:In-Reply-To: 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: List-Owner; bh=JeY7KaR+U3U6Ness06wt0wuTnxkuQHsBmEFTfEDm8tg=; b=K3JcdoMxohslJJ MUhjF73nRHglhUmz7UFASeyI3jB14AFsQgf+hEmKFFO236BERprNKqvhEC9k4uwk5kAnjOegUU2mq 9fkKREZw6I4+sem3JNGWX6vcjFSXlad5XNwrqbKSp7eF6UMOIEXGbFsLnh7Zp6HMK6fgLdS6UocQL jqxvBOjnusfwdp+5w6pqWchmp7COEk3ic8Vihs0+5JcEgZRcWQxsHrAXIwJLl885orl5uX7mQ3RIx S0f69SWTRCjd4rJtr4NpDao+upiNt3qt9VlsFxZCptE1d6G5KzIgEvCE0h3WYQoZ/7ENXz3e6jc+G n7ER08jJjkVNeP9S3xqg==; 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 1g2ViH-0004Tw-8R; Wed, 19 Sep 2018 06:11:49 +0000 Received: from mail-eopbgr10046.outbound.protection.outlook.com ([40.107.1.46] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g2Vgc-0002Rv-O6 for linux-arm-kernel@lists.infradead.org; Wed, 19 Sep 2018 06:10:15 +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=0KzZb6S2yciXf3W0EO6IdVNP5Zz8IzXObnLQF4G2G8Q=; b=Bav6YBCofvMuYPkEiZC1KUb6rabRj4RYCcaCf+ewl+VIFI9rhetlwjrpJPwIBx+K9seh+lsGYwtYwEQSFMfpYHNozJyA5H7bStJUK+VxoV7zgvQe97fYgN3Yl6xHp0czEGkhSr+KQ8exVzynyqIoVzSj24ijPfpx44tzpInG0LI= Received: from anson-OptiPlex-790.ap.freescale.net (119.31.174.66) by VI1PR0402MB3919.eurprd04.prod.outlook.com (2603:10a6:803:22::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Wed, 19 Sep 2018 06:09:52 +0000 From: Anson Huang To: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, fabio.estevam@nxp.com, linux@armlinux.org.uk, mturquette@baylibre.com, sboyd@kernel.org, ping.bai@nxp.com, Aisheng.dong@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH V2 2/4] clk: imx6ul: add i.mx6ulz support Date: Wed, 19 Sep 2018 14:04:46 +0800 Message-Id: <1537337088-28819-3-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537337088-28819-1-git-send-email-Anson.Huang@nxp.com> References: <1537337088-28819-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK0PR03CA0026.apcprd03.prod.outlook.com (2603:1096:203:2f::14) To VI1PR0402MB3919.eurprd04.prod.outlook.com (2603:10a6:803:22::32) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4ad0c0fe-1725-4c4a-e544-08d61df6870d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0402MB3919; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB3919; 3:WA+G+eB7Vv0Knp5214/cqBXl0w6ujoK5aSygRFvezE4SoKi/woelZlInZHlklfeke2yjYSkHMS+UI0e1NthEPqeD4CM+hkTCdh9ffO6osH0vEGBGjQbZTXVKF8xwz7V5RfvsotZJ/QJlCC9vhDyYezFtvkDx5oZDA3AWiSjtW1MWqSdXlSxuLjt4psm5DHgOfQsGk1/tG4VWo8brtH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IJ+ZA1lLb2GKegA+yMS+p1XwAO2S1bwiOmNIMl9KVUkrDaGMZnFcDGA8VKFYdSr3ihpvXe2sdCmD12fSDa5lI1dCBkLugAavorlKcCJIZ34V2NHd7Sj+BbyDOsqB8PzWftMbLdHm87F; 4:SxpGKpztd/1ZqnsYQwxaPSkuRfQfdq24Qr7W+Jj9msr276PqFlGFe7RyZjUDJeGndbRn3i2M3jJy5HgdLPpMmHQsRsyHeSa5FvrhwhqR0xNEIsbdhNcAr6Me2ts8gKY88/8bFZWDIQs8o3x4X0OtwbMLZBW7XhBejtGsEuMUFI+p/Ijcea7GbiHoBikH2Oq2lg7bI0wyt5l5tpwOPSQLH8+mUO+lsyYEicdmdoW2yIAX1O9P+fq89T9L/+wni0ucxZLD8TiAwZ1FkWc/kJVcqSM/HIBdXZBHorgl25c16ONNK2SlBRZjqFX/sh1D0gbW X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231355)(944501410)(52105095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699050)(76991041); SRVR:VI1PR0402MB3919; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0402MB3919; X-Forefront-PRVS: 0800C0C167 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(366004)(376002)(136003)(396003)(189003)(199004)(6506007)(51416003)(26005)(486006)(4326008)(16526019)(36756003)(52116002)(476003)(956004)(11346002)(105586002)(25786009)(6512007)(386003)(53936002)(2616005)(47776003)(6346003)(186003)(68736007)(81166006)(81156014)(446003)(8936002)(76176011)(50226002)(66066001)(106356001)(6486002)(5660300001)(6666003)(86362001)(305945005)(7416002)(7736002)(478600001)(2906002)(16586007)(6116002)(3846002)(316002)(48376002)(50466002)(97736004)(14444005)(8676002)(32563001)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB3919; H:anson-OptiPlex-790.ap.freescale.net; 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) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0402MB3919; 23:vR1OavGN1OeiBmO4Z/MbqqcpTeEq86to+EI6vnr?= k12X6laOBAuoDteGu9ZIb4K/ja4jJ2RYFwKDVXHvtpMCJr05IkWl4EDJ6hAzGe3Z2oWucEbLoq698PmHIWqI+HFuRLtUgHfYwBV4GXrl98ZPoEcOptLjTS7Y/Mm64eWIagk7sFxEGyfkSw2jsQIKEghN6fdSoEgIUc41K8L3ApJFGO7AtQsLakmaJbEcVvelBTEoeyfI2LXbt9nsnzcxcggxxjhEvq5H5fOVvBNuMIqz9ZNw0Y5sggCUCwH+qzwHoefmQ+43W47xDcQ3LqNzy+IcQB5eLT82lp0NXyuVlmQy+JBcOX0EANn6/N5RysSLk/nvb4hV7i1GOiNEQTAUPgUkivxSc5mmU41QuUzFEoZVjb6EwmKZ/gj6xfYDcqnzyZGgYBY7b5rklZ0lRZcbX22fWOefw++pu734qhuow+0+TJY/ogW1jfbLE4HyVruxnl+oc/PEte4zRynYTJcHorNVqeWSPItIDTW3Sy4JIMB7h1Z1q/g4pptLAbog8J6F726xphmeNMy7X8couygs0YYwGuJ/PjdYv3CE9SW312sIrNsiN4px/FeF4w2vY8a2/q2iomhvUte9hN1Kv7/XT6dlhC5x7I8BINNpq9KAgkcl+2294YrywpBOe7KQo4Ucy0dK7fKTRrQNIXKwYnKWCLg/coUNvtSTF3LWXIyilDrayf1iEIcBVUIgAyCLjLsP2qj29w131qVNUODmb0CIJxq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GJAp0UG7Hl4uLhFWcHSw6P11Ie4etNnzFkKniCXWGSQTjYqI/KidfrMCSWEoIpLNsB+/06+S+m3++rZvtT8qCTiYGRrTPSIq7/OyvpCRMxfWwvOZ9qLIz2/MHaJJzQXtpuya/mb1uBSsnN5PkwCC8fj5WSOq+vocRDuF9OkJvN1gUweOZP7LJ4VSXYHhcUvbSV+9raJbXz7D7US41uQdmjnv1Ck38Kj6IGaUqJYC3xgx1qrPeEvRhvuPjFGdcw22VtAAeMykH9S4Wt5XVuZcvowOoXlfljz2+m96B+aSRw1nY9LtrU0/278Tt1HhG2LhlQTs3oY1A==; 5:M5HF1lRmOTyvKJSVxpEKVIpVqy9/wqa4fMFhp4uavdi7aUkOPscVLnJC5E7T0NZ0ryfYYbKacACAeWzLqpL+lz0wWMtGbbadbROVVEH1seFUy20NmmkDdUIIGX1rf10e/tOiG4Qrqh5GbqaVQIMSmGS9nunL8Qo8Z88xUryVkIc=; 7:WHESvO4lwPX48ZTGQye31nnftMzrAowNWmWn/YrON5MIXw77VM0VU6mqq3Tle+f4CpwrP344zcyd2EsvfOnPGmsiXcHe2/Xaxk0KiszAt1dDraoYytfcy3cpLVDwAbEzQJc3XKM1E1LkO0xFhlU5YsNZFba3al/55OZ74xayBnr5u6ZiNuVDUbygOo2kphcVbpuaXiT+YRPuzQxteooqkFpBt4qic3mox8vHIjjKZ4SptkfdpRKa98g/mEBNQTDu SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2018 06:09:52.1774 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4ad0c0fe-1725-4c4a-e544-08d61df6870d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3919 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180918_231006_870064_CE4A522E X-CRM114-Status: GOOD ( 13.73 ) 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: Linux-imx@nxp.com 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 i.MX6ULZ has same CCM IP as i.MX6ULL, and it reuses i.MX6UL clock driver, this patch adds support for it. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx6ul.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx6ul.c b/drivers/clk/imx/clk-imx6ul.c index 361b43f..42b857e 100644 --- a/drivers/clk/imx/clk-imx6ul.c +++ b/drivers/clk/imx/clk-imx6ul.c @@ -116,7 +116,8 @@ static inline int clk_on_imx6ul(void) static inline int clk_on_imx6ull(void) { - return of_machine_is_compatible("fsl,imx6ull"); + return of_machine_is_compatible("fsl,imx6ull") || + of_machine_is_compatible("fsl,imx6ulz"); } static void __init imx6ul_clocks_init(struct device_node *ccm_node)