Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1878255ybl; Thu, 9 Jan 2020 03:13:51 -0800 (PST) X-Google-Smtp-Source: APXvYqzmmOUJZrRuG8I6fr+R5+Pc1py8kEYtdeHrWI8TbYhCAdygwDVRNdD7sgYwSA/YPMXe7k7t X-Received: by 2002:aca:a9c5:: with SMTP id s188mr2709738oie.154.1578568431396; Thu, 09 Jan 2020 03:13:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578568431; cv=pass; d=google.com; s=arc-20160816; b=yoFcg+3ZDW7sPYB5/J61gIdiPWGjYt99V1mZcLqEtO7tfsXTo7zQMVOpHFD0LOqCjQ GeCsERxwDX7oXufsAUXw6+XZMaaZ7YNfcf7nvV8bcMOmWf1f4MttUqTg7JClXtVtLRcH 9mUP3znLvZHh0K5HAfBolEiGvaqUA0ZtlVq7+CuLPjEDImiIsdk3lXWweiNSIRF4OQA9 1QYLUa442M0YO+4RnwqAVQeVtXs687dbHJOuP7WwOgl5Hl0ie+pPi52SPr5yU75bg2+V rTfLiFuVPYOl51QfnzrIBfGtXtrjjV9SYyHATPJ2aFiDZfAeJn2blCr/L8OvyV4Q1Hls Rrvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=Un/+aLSy2KO3Qq5mo2zg7NEW6r5/RSNGiowqM8tjHpA=; b=Bf5G++dtnHsHeq9xUx22Kj3JxoMnUAcgBMD5V9TqJzPXs/wzY2y7ZfEb50jgY2gyWm IWDpcMu0Woi2AfzGAojvpdH+M2E+AMOWegzVL7SfhBMQTX6UqOMjPyNFdKba86tgMfco g5NwmY1+plhBkAz5ajDEhphZB+kBP2QKfzJR+/xvav4pnlA6QIbBhdpIq3kxRkJl/J2d XacXAxzDYgh2I5U8dFgchLEM12lYq1UEi2RBA+FzKueIUZj9sfz5nXf49azNmIkWPhGw sz8yUuHfskaWl7ZpBvUciVx6Rlyma0PKseKrLtcTH7295hdt8B5Qi+XCp2bQMjGKMMrl Frkw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ae322fqF; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si3459710oix.197.2020.01.09.03.13.37; Thu, 09 Jan 2020 03:13:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ae322fqF; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729881AbgAIJvw (ORCPT + 99 others); Thu, 9 Jan 2020 04:51:52 -0500 Received: from mail-eopbgr140079.outbound.protection.outlook.com ([40.107.14.79]:32899 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729170AbgAIJvw (ORCPT ); Thu, 9 Jan 2020 04:51:52 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YHJhs3K8FCiVVQWqRH1JMkfzcVSu+Aq4YEizh54IXw6oLl8elKTP0qPqZ5BU56Cjml5Dgap+Savy7JU79YmHKA+VhRqpL7B/V8ie5AxuCzZY96Fy1+ouOmKlf2hhOEKFBv4rn8mPuXY+IPdemDKYomwSgeW1Z0GUbCMiIWLnvKFl6FVeQGw5++spFoRa+A+t/W47A8hwbWoD40YXqOu+awOOJkUZLEMZt4YGcLDcuSbOUksdSbaF6SZ4aqSqLaBPOhweS0wWN71oUbgFPE08z3sFEc6FtouAYRhK+nfCPAP60vfs7TeywMKW/FJdPyphmoSVLkHcQ1x0Ka974UyG3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Un/+aLSy2KO3Qq5mo2zg7NEW6r5/RSNGiowqM8tjHpA=; b=Pl59GK/bFpn+UCFrl10ZOipei+8nKWfwv3yhXa3zgH/exVZc171bkMXepsyeX8IGxtI5e6rXzvP424Q8QbvuKsGHEPVzDM945joG0SFTf4hlABXgQy9uaT0g/SHqg+SCTCXNhualPbY5XtqEl3oZNSUy3jijNX5wMWGP2qKpkP38taUSi311Jg5J9ld9zEP/+bdPMctFoC1aorZpO/2EoMG7wPzoG3ZF8eweu3z80aGJmlxMbNhCf8ApPEtdakIc7jd7dABchESZC+3aRApQgQQE9nk9x9IkQ5nmOcUe8ctRHLuJu+Fn8j+6JcJMn9FxbP7uzrFQRQ61nY4Oej+IPg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Un/+aLSy2KO3Qq5mo2zg7NEW6r5/RSNGiowqM8tjHpA=; b=ae322fqFoCdXXdcTFjFk0ti7+WnL3Dm6EOWUAsyVsG5cfwRNA8vB8vJvSdhbgMZWivY2+Tf+8OPb6SKagWTGbHe7nb+NLj58cnXtR5FmZUnFAinrWFIL8saBK1KlUH605YOL0qIK1SVtev/jlkGFyep5+tEpQBE6WipOwy8AwZk= Received: from VI1PR04MB4496.eurprd04.prod.outlook.com (20.177.54.92) by VI1PR04MB6878.eurprd04.prod.outlook.com (52.133.244.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.10; Thu, 9 Jan 2020 09:51:49 +0000 Received: from VI1PR04MB4496.eurprd04.prod.outlook.com ([fe80::25c7:9207:684a:5e2b]) by VI1PR04MB4496.eurprd04.prod.outlook.com ([fe80::25c7:9207:684a:5e2b%6]) with mapi id 15.20.2623.010; Thu, 9 Jan 2020 09:51:49 +0000 Received: from localhost.localdomain (119.31.174.67) by HK2PR02CA0172.apcprd02.prod.outlook.com (2603:1096:201:1f::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2602.12 via Frontend Transport; Thu, 9 Jan 2020 09:51:44 +0000 From: Peng Fan To: "sboyd@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "festevam@gmail.com" , Abel Vesa , Leonard Crestez CC: "kernel@pengutronix.de" , dl-linux-imx , Aisheng Dong , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Anson Huang , Jacky Bai , Peng Fan Subject: [PATCH 0/4] clk: imx: imx8m: introduce imx8m_clk_hw_core_composite Thread-Topic: [PATCH 0/4] clk: imx: imx8m: introduce imx8m_clk_hw_core_composite Thread-Index: AQHVxtJpermqa5NGzEysq2aeSusjmw== Date: Thu, 9 Jan 2020 09:51:49 +0000 Message-ID: <1578563269-32710-1-git-send-email-peng.fan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR02CA0172.apcprd02.prod.outlook.com (2603:1096:201:1f::32) To VI1PR04MB4496.eurprd04.prod.outlook.com (2603:10a6:803:69::28) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.67] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b05b16f3-b03a-4a6f-98f1-08d794e98bb5 x-ms-traffictypediagnostic: VI1PR04MB6878:|VI1PR04MB6878: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 02778BF158 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(136003)(376002)(366004)(346002)(39860400002)(189003)(199004)(6486002)(26005)(4326008)(54906003)(69590400006)(36756003)(6636002)(71200400001)(6506007)(110136005)(52116002)(478600001)(8936002)(6512007)(316002)(16526019)(186003)(86362001)(2616005)(956004)(44832011)(66946007)(66556008)(5660300002)(66446008)(64756008)(2906002)(8676002)(81166006)(66476007)(81156014)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB6878;H:VI1PR04MB4496.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Pl84RgLGQofZXzYxpO4eVtAelIPl5kttSK2Ef+DzIY6QHFbk2xjt8eYxHcG6r+SiCbPe+CAvAgwWDjuBHHqN7R/GItp13jnMg/G9feqeV2oT62afZm0xOZufN6uB5RoWO8QSobTxlxYgSFhgmMSiDL4byRViQcB8nAXReEI8B1tTMGgmeHafgAJp5OlkBHHRItxdlVm/I+8NTqvHz3yUxPGEgWlw1lZflcZePTwHHU16rGDTaaoKWrESM4Q4vQe49n7cm5uoVKlr9IP2UpJisXz11oZ3T4UKNF0V0o1aGlMVrcMatuop/jGRMAoGeD+cEj4eY1nlgPyubotd/RkVvunwuNKHSIip7HS79U/u2VIT0s/Bx6tiLwjNKAIXYsQ/emRIlf5t6r0Y3NgDvGgATxiWMCGqL6VwrtKMr1+X3pMkUw8XVuNqOXUt1gaapcAG1aexTFs3yZoKmOnldNEl+tqyIO2DRfFO+VDUwCK7MVt8wuEIT9fIdPIYuSgV+DC1ufja1NTdqT/NxrgTuKYLgQ== Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b05b16f3-b03a-4a6f-98f1-08d794e98bb5 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2020 09:51:49.2906 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: FroJh/XxzOG6yqb3mHIIYcKYtSO1NqaC0o6x5j6lt2JXt+f6MXrDTPuFkGFo8BbJS7/OnMe8jL83QqilAQlcPA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6878 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan To i.MX8M family, there are different types of clock slices, bus/core/ip and etc. Currently, the imx8m_clk_hw_composite api could only handle bus and ip clock slice, it could not handle core slice. The difference is core slice not have pre divider and the width of post divider is 3 bits. To simplify code and reuse imx8m_clk_hw_composite, introduce a flag IMX_COMPOSITE_CORE to differentiate the slices. With this new helper, we could simplify i.MX8M SoC clk drivers. Peng Fan (4): clk: imx: composite-8m: add imx8m_clk_hw_core_composite clk: imx: imx8mq: use imx8m_clk_hw_core_composite clk: imx: imx8mm: use imx8m_clk_hw_core_composite clk: imx: imx8mn: use imx8m_clk_hw_core_composite drivers/clk/imx/clk-composite-8m.c | 18 ++++++++++++++---- drivers/clk/imx/clk-imx8mm.c | 17 +++++------------ drivers/clk/imx/clk-imx8mn.c | 10 +++------- drivers/clk/imx/clk-imx8mq.c | 19 +++++-------------- drivers/clk/imx/clk.h | 12 ++++++++++-- 5 files changed, 37 insertions(+), 39 deletions(-) --=20 2.16.4