From patchwork Fri Feb 15 17:48:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 10815633 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 9BDBE13BF for ; Fri, 15 Feb 2019 17:49:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8943D2FB5A for ; Fri, 15 Feb 2019 17:49:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7AEA02FB61; Fri, 15 Feb 2019 17:49:32 +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=BAD_ENC_HEADER,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 07D2B2FB5A for ; Fri, 15 Feb 2019 17:49:32 +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:In-Reply-To:References: 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=8Vqu35v0OgzM3LR9GSLBzu8q/l4Hyi+P3MMwsQybrmg=; b=r+rtM426T+VHD8 2TVPmCmd7M/IjrULlcq3yyxj8AqevJNU5SUD4zQovRp4Od8I8vJKOoFaRUxo0q6/mh9Hlx/+3o/BA SmpkL3Pf5iBJQl4+DBBI9JYifwHzO9hT3aF7MavsEe3xOAYBXxmZx/ek0B7WRBeASn9b3GNkmvQ6n yfehrivHU6q+Anp2Iuqu/DcVbh1bNQTKGGYE4B9WeQUawm1mGpRjR+j6n7D3FSbhW2Av+GgDyw2Ag JDg8d5Rc0BYA0PknIsaF80X8NWJ3dOCIq8DfBtui/TD9jv78sRp3mzn3s780K2/e5fx9ZS6SHtR76 5QGLmeikX0KoXVeIp1XA==; 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 1guhc5-0002Mg-6Q; Fri, 15 Feb 2019 17:49:25 +0000 Received: from mail-he1eur01on0625.outbound.protection.outlook.com ([2a01:111:f400:fe1e::625] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guhbb-0001Y8-O8 for linux-arm-kernel@lists.infradead.org; Fri, 15 Feb 2019 17:48:59 +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=dIp1/4qU7H5VkwyXcWHI140IWKCAnVvYk8dEvmy+bTI=; b=Y82AD0FwMYpQZ/QYXjW5QQu68jfXY693UiD/QcdxW+quL8DT91EhvhWsVoWyOz6f/vxG6KNGTHxlDtfmsVKF2F1mAnj1ArNAzNbhmN/18yA702AR/1SUpTnPXIUJoyFcFJmQwuGzcscvIWONtcGRJ5oMx6Qf52VzFgh9Ine2QOY= Received: from AM0PR04MB5779.eurprd04.prod.outlook.com (20.178.202.151) by AM0PR04MB5330.eurprd04.prod.outlook.com (52.134.93.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.19; Fri, 15 Feb 2019 17:48:46 +0000 Received: from AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::ec4e:4756:a9dc:914c]) by AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::ec4e:4756:a9dc:914c%3]) with mapi id 15.20.1601.023; Fri, 15 Feb 2019 17:48:46 +0000 From: Abel Vesa To: Mike Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Lucas Stach , Angus Ainslie , Rob Herring Subject: [PATCH v2 3/3] clk: imx8mq: Add the missing ARM clock Thread-Topic: [PATCH v2 3/3] clk: imx8mq: Add the missing ARM clock Thread-Index: AQHUxVaygt4K7Vtjfk6EnO4JuLEpZw== Date: Fri, 15 Feb 2019 17:48:46 +0000 Message-ID: <1550252913-24532-4-git-send-email-abel.vesa@nxp.com> References: <1550252913-24532-1-git-send-email-abel.vesa@nxp.com> In-Reply-To: <1550252913-24532-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: AM6PR0502CA0009.eurprd05.prod.outlook.com (2603:10a6:209:1::22) To AM0PR04MB5779.eurprd04.prod.outlook.com (2603:10a6:208:131::23) 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-mailer: git-send-email 2.7.4 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5d96a003-087a-4786-60c3-08d6936dd533 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB5330; x-ms-traffictypediagnostic: AM0PR04MB5330: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; AM0PR04MB5330; 23:DN/dbthU+h7HIO9Daf5np6YLy7Wazu0I81SUj30?= =?iso-8859-1?q?zebH7n+VxTeke9D?= =?iso-8859-1?q?XIfD9E0HO8a4p9rXOynpsq1yubnUGt6eMasYLOflDXG45D8G9zzJhgfjzGb9?= =?iso-8859-1?q?vtWn+0TMPUGSpXi+fLtAg/UmvvsaUWFdpXkGD960Zr0N2X09Let0wKaQZVDl?= =?iso-8859-1?q?9IXdH/mY2k2R6zR4YjGTm8rJErWaQBveTB5f4R93zqctu+52TqmcML1E9+c0?= =?iso-8859-1?q?keMUUmWy+btaBofrr64+AG/VS7DNDF2k1Usclet+H/owQoIIN46aH91jNP+O?= =?iso-8859-1?q?gfDJy3O84ApYEGvLsceUTmQuExuZB8ckHJR8CbiPBpJxxhOM8SYSPn6MDfgc?= =?iso-8859-1?q?YSNKmNxzbYiFMknQes/lFV8IFu1X1wZUzx+m9KFUYy3cWj5U4rTo+ZFsYFUT?= =?iso-8859-1?q?2ZKfXUCSF5kOK+fKtoao7H7KT3vSs7OfbjqjiIwldbSvdY+RhN450F9U4g9q?= =?iso-8859-1?q?E5zi1/K2DjEyk1IejrNgY2lplb1s2vNld1YOftMDEvfFBhd6j8W4nOPqx0/E?= =?iso-8859-1?q?r6Hi/H/VLkndJNG3zkpu7RObzfx5L1wWYtu6/hYvWsSALsvzYnPIWmd46J5w?= =?iso-8859-1?q?LbpQQBjLhvJ1U/Potf6lRFpJ+iA0vOgWELZx0zmSayJWM2+kOhy7cP4YHPAm?= =?iso-8859-1?q?Lmz9ITZ+2VULwW4bo45hUCLSlcDKPU1mX7+4ZCkN7qe/w43+zOk5bT6NO3iX?= =?iso-8859-1?q?NwGupVxcSew8ipL810sShladF4DADgahxlAWL5Xl98H7yJxl8Sh/eBOVNiL8?= =?iso-8859-1?q?DV1yZNARON6VTxL8roJxv7IAgOSAL0JmJQdTkZFzY1NSAAPaYw6txLDQ2ng7?= =?iso-8859-1?q?qjnKUc8CAttLfD/SvWztdfp/yFHwiopU8adJ1HPTckWANcssv4/kwlBxdInz?= =?iso-8859-1?q?Q/IG6a8IgJDTSjg1svF7+lWtjhpToMmBZZGOjmdwLjnxQ5o2AZ30nxmiU+X6?= =?iso-8859-1?q?lIP4o0sCylY2FC1TVglg1wbYRdCWJtGdb+4upyIbG0c/jehkPJY6Ekos0Jsg?= =?iso-8859-1?q?PfeLCj+Im1UOVMvbINmVUjVupDae0xEB7YXfPaQhTDrmYMRjCmuShvhs5HvA?= =?iso-8859-1?q?ZcM3yIExPi3OFxv42kLePdTOz3VWrhuTzsU7mGIJznn+4YEsVDBVhzO1Ww/B?= =?iso-8859-1?q?/iC68zu6JDqAhHdXRK2rOwJNx0+G0FB4aIdrHuVe0pngnk7mYb4kGBtdgHwn?= =?iso-8859-1?q?8/jRQsG1ncneIl1pQ5BLiYH1yNzRG6PRphGoBveGMISQgMzWHjpmAteU00hd?= =?iso-8859-1?q?31Vlg=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09497C15EB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(136003)(366004)(346002)(396003)(376002)(199004)(189003)(6436002)(14454004)(6116002)(3846002)(97736004)(186003)(478600001)(476003)(110136005)(71200400001)(105586002)(106356001)(26005)(71190400001)(11346002)(68736007)(2616005)(86362001)(446003)(6486002)(50226002)(54906003)(316002)(44832011)(486006)(7416002)(99286004)(81166006)(81156014)(8676002)(53936002)(76176011)(8936002)(66066001)(386003)(6506007)(4326008)(36756003)(25786009)(52116002)(2906002)(305945005)(6512007)(256004)(102836004)(4744005)(7736002)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB5330; H:AM0PR04MB5779.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: oOwAhWkzNwd/nRxqcUwruzeSLTLf9Xa81YnC+bROtY8QJinfJglIwOZmD1zQkaNbXQ0sgVzhjUwh2R8eTsww6IsFpaHw/t1aPkdkNK8H58dJLD6h/rHVX7ossLTfoih4FvOM5++L6XR9ETcc4nFkQzl0kUX8/r5fDjN/LLChqcu5bxM6Sp5gPLFvgklMApJn7aF2rzZ/NlXgAiuJTQmHY2VoV54QxsVurp4EUwbYLrO+8eW2qdbynQW2a3lPCQkIU/hcy43n0OXNzsNJLyRL/vkDfpNlmgFceQZhop68hvs142AEjee4XDd6ZvTzb76GWnDG1uRYR5oV/TScXHxxZPOmwDELWO44AXv8d4imsy2CoAlyek1CAwNjH3By00qcDldIoKdQhufbTjIHDejX+9JFoUpf7+8Jb/uu6LelbtM= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5d96a003-087a-4786-60c3-08d6936dd533 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2019 17:48:45.0921 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5330 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190215_094856_178505_D4EEC793 X-CRM114-Status: GOOD ( 11.17 ) 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 , Anson Huang , Linux Kernel Mailing List , dl-linux-imx , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" 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 Add the ARM clock as imx_clk_cpu type. Will be used by cpufreq. Signed-off-by: Abel Vesa Reviewed-by: Lucas Stach --- drivers/clk/imx/clk-imx8mq.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index 57499ed..8a283cb 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -558,6 +558,12 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) clks[IMX8MQ_GPT_3M_CLK] = imx_clk_fixed_factor("gpt_3m", "osc_25m", 1, 8); clks[IMX8MQ_CLK_DRAM_ALT_ROOT] = imx_clk_fixed_factor("dram_alt_root", "dram_alt", 1, 4); + clks[IMX8MQ_CLK_ARM] = imx_clk_cpu("arm", "arm_a53_div", + clks[IMX8MQ_CLK_A53_DIV], + clks[IMX8MQ_CLK_A53_SRC], + clks[IMX8MQ_ARM_PLL_OUT], + clks[IMX8MQ_SYS1_PLL_800M]); + for (i = 0; i < IMX8MQ_CLK_END; i++) if (IS_ERR(clks[i])) pr_err("i.MX8mq clk %u register failed with %ld\n",