From patchwork Tue Nov 22 08:14:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tang yuantian X-Patchwork-Id: 9440637 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 272EF60235 for ; Tue, 22 Nov 2016 09:01:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2172E28470 for ; Tue, 22 Nov 2016 09:01:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15C1E28483; Tue, 22 Nov 2016 09:01:48 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E96228470 for ; Tue, 22 Nov 2016 09:01:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754703AbcKVJBp (ORCPT ); Tue, 22 Nov 2016 04:01:45 -0500 Received: from mail-bn3nam01on0086.outbound.protection.outlook.com ([104.47.33.86]:19136 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751952AbcKVJBo (ORCPT ); Tue, 22 Nov 2016 04:01:44 -0500 X-Greylist: delayed 2009 seconds by postgrey-1.27 at vger.kernel.org; Tue, 22 Nov 2016 04:01:44 EST Received: from CY4PR03CA0018.namprd03.prod.outlook.com (10.168.162.28) by MWHPR03MB2478.namprd03.prod.outlook.com (10.169.200.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8; Tue, 22 Nov 2016 08:28:13 +0000 Received: from BL2FFO11FD054.protection.gbl (2a01:111:f400:7c09::171) by CY4PR03CA0018.outlook.office365.com (2603:10b6:903:33::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8 via Frontend Transport; Tue, 22 Nov 2016 08:28:13 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=fail action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD054.mail.protection.outlook.com (10.173.161.182) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.721.5 via Frontend Transport; Tue, 22 Nov 2016 08:28:07 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:705; Count:8 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id uAM8S2xW019327; Tue, 22 Nov 2016 01:28:03 -0700 From: To: CC: , , , , , Tang Yuantian , Tang Yuantian Subject: [PATCH v2] clk: qoriq: added ls1012a clock configuration Date: Tue, 22 Nov 2016 16:14:59 +0800 Message-ID: <1479802499-9083-1-git-send-email-yuantian.tang@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-IncomingHeaderCount: 8 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131242768934494803; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(336004)(199003)(189002)(5003940100001)(50466002)(8676002)(36756003)(5660300001)(48376002)(50986999)(77096005)(104016004)(626004)(6666003)(110136003)(38730400001)(33646002)(6916009)(97736004)(305945005)(189998001)(356003)(4326007)(8666005)(87936001)(2906002)(2876002)(92566002)(7846002)(8936002)(86362001)(105606002)(575784001)(81166006)(106466001)(85426001)(68736007)(50226002)(81156014)(2351001)(86152002)(47776003)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2478; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD054; 1:dKNh/j6ghDrNZzdZ5dvow8G/7VpDKGIwgGxbu+44Jyd6KxWPMrliNyTvE/ZZHYwyy+VkHpuOPEHGLR2YkB3+eJDNJXAKfkRPX2IXOKZTgSonEGqtvgZMQlFXJ8yZpsmuO8ECyGI7omtQJlEaXdOGnNEiT0H/m7ILgB4UCGXpwfk7wfF7LDbvIFWSAjlGhk+gCjD6pAjb9GeqeP3y+k/PhTIioO+ITv9zbtUO0+IW5s9rkIbAm1FU4P3u36bWaoHRKZgq70jxcbcc5+tnsTDRTOoCmE2J2srmt4Fdt4rZB/erS7pWmx97xjBM9jGAh4HBo2SbAtuOBxA3viDFOSpWLO6huo5cHsbhJZ6pl+ugNyttIsC3BeuDyRVqznUz6UDFhcqT63W/ifUH51ztwl7pDFf+nIXCgjOQZ2FwK7t/ouh6P0GtGvxqldLRsiQ61xDAlZVnGwzwhfyDfhsAxa/5hbs9z04HpxUtDAoRg95ntERJgjsSulWqEU5V3VPTMBZOBcut8VeuJJM/bw+E8S86N0GiCpnXXshsLYvs50DebP/cUy+O8MXCTXqZBy4rHXApJ/YWu+y1JvQakV3AeICG9cAMXh2ybfHcnaboq6paviJe3YRI1lmwKkYz3LO9M1+TDttzQKyQJotxFdqTVrP5ckuO/t2firJ/UETVcVf/RQxD+kCP8mC5B34yzc1JeCIk6JOIhRmCcdZ7cG4Ov7jN4RnhRCIjy9RkoowG2LLKvts= MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2478; 2:viqIqH2eiEd/sX4Tpi4ACD54GSJihB1oZuMIYlW1b3UQx56zHAMCyCBSY4zHqb6gTcOfwEmHPGQjO3e4xFOX5krZVamRh1T50N4lvUv5EGJ/jbJ2kLF2kj2YnebgBR42SDV+7UxH8kLKMMeWkCt6AVEm9QyDpko+dHs43T+s0b4=; 3:n0XzlIzL4XAAVdP9T7JFPAUrb9dgGBLi9h3DlocoYF5HZet/9YFtLyPwgA7fiHGiHIy4KaXthXttqI9FcpWW3LT972S0gC3ZVRtDD4VayfbRl9UNUWUeM2uBKoj0uvrNaAf+xrJoYuDpQQpGv4vo7tqc0HpSKKfgtlJv6ZDb8dg1FewsWK72FN4KorXerFmd0U8JYDfAyrXa0WUQDdqqEQDZDSzDxUhnZlp8oS4i5HwO8gs530qKP2X8kPQL2vXSM6p2/43pUYKiUzgbbeZ75w== X-MS-Office365-Filtering-Correlation-Id: af5c95eb-5641-4bc6-80f4-08d412b18022 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:MWHPR03MB2478; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2478; 25:D8JgDwmq32NYZtRSgIBefsvP+OOHq8KyXHYL4SkBOMFURwTLzPC5rCFRBxkn1JhshL00Cu7O/cw98zO4lT8nUjqq8HJ5GUNwU6/579ki5rzAl0pidW/0VB2RaLheEYDYVTZTiC9NdOrf1BujLtlS9aH1+Fl8s4zlGIYBF5yWVT/UV10bquirR6gdlRbWQMPOQKZp37+0ubRbfwTtgfZrInhpu9zyjMUv0DjGQSPf6ly7YcCgdT/7UGj9zZLfc0+y4kWhi9aOZgxV54YAJsDNodWyUrvg2RH6SP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b+01Bw+Jo6kLn6+z63s4x6x+rPbZq0MePUrBlJypMcWI2vxcenB8ilUcxGqo1pEhVvdxfZ5Ytsm1y5tpsH54ObSLrgVIAoSOUNXNTS3gLaKls+gNdzWo2VexH0a1qBJAdjEMyGMJCSQwaU/dLm0kL4fbFKBEyM0rzwN2/nKj2pr9+DcSXCJvSA0wa0tchMbfJ4lo69TqtqYlHA+GNZ/4FsM7V+NRROiMtsWLrA93A2kG3rUTMcKqZ9i3yLOzY33J+vTa9nPuShSl/8SC/IOpYGobyBRwigunsI5+N4xVEA3RwdSdFI20rMwsNrEvBK4eM X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095035)(601004)(2401047)(13023025)(13024025)(8121501046)(13017025)(5005006)(13015025)(13018025)(3002001)(10201501046)(6055026)(6096035); SRVR:MWHPR03MB2478; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2478; X-Forefront-PRVS: 0134AD334F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2478; 23:Z1bLbyOSXHRiYOtZU16ihTbTJ/xM32xo2FUVRIvJF?= =?us-ascii?Q?9edns5pBa3AmZiPdJkwH9apuAorRR7Stf2HAsNXDZusZ6tIdIg3+Cn/eT4ay?= =?us-ascii?Q?5ovE9P9Z4pZsKMQOru4ZIPoKLPwUsskyYrGQYiQsfL0HpgV9/qHIMbrHXJtE?= =?us-ascii?Q?v0KeKQuqQPmh0W8n7AhwqXAFUUY3vfgMxNIRXTRj+2IoRJHfYpMQHkYGYZc6?= =?us-ascii?Q?gZrQi17Cif8mT36rFGEw2kHxhK+QXBB9fZfpk42ws42RUrEYGKnBKNdBhc5T?= =?us-ascii?Q?SIeAh0H+5IakN4dE+XcOFuPkg0/qfgRb2FCGRNjHgciEb7JTvUpeREakcelC?= =?us-ascii?Q?LdmeqZsRXTRg+6pBQfU/KpLgnWZ0J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g3jdXvYHwteuYO651VodKbuvOd5jT0CIEKpJcv+eZdLn8/xhXENjw7H9BwJQoPzD4SpYpz6JN0PfnXPePrhFOU10UwRknBwEJ1FPYCxj7AHEeBCGeUjtYYrZi2lm3xCzuhQv1KFHXtK4tEvswGz0pqnUcXEPCrDLTAxt35m+47H54YfGQkP7yWFQSogtOXg/Ak7nXsFAS69SGhHGLJLtNO59T/9UPGObGa8gLEpNFgkHD1pf+MiF2cojZl0IBvhZKrqBetcaYNXBD1/nUVFbLeBmRVXjy8OO9PHfAiQ==; 5:YaT4gXj+w0sWlSD3AIP+paSBsoK1ghKQlgVsoMGtRuDTqAQg/sjtkFwMnOIp6I8VnBcbDnvbd5Ka9q1FiStKwN1LSrnWDSv7HW9Lz2T0b7SIHuUGhHFmdctfw0PMlIWOV63dHsxJfZ/dDD+QVBbDs4WoIG1b5FATXH0birmgqtgayUvP/cesbOsxKNsgorxq; 24:TCyJMEKCPXSToXASoaTSCpue1EFJle5/c5bGk5KFlOv3VOPPVmmFauZqV3fS4PB87QxI0BxZJjUfymX/N4emt4E42XZ1w1KITzBIQGHAZjA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2478; 7:yBV3Jvca+SuWep0OZXopVoBLZhWV9Jvy6/LFpwvKr+v4AI+F6oyImtyBMbQgd+FJHwx33+9dHqxqL2dEGAejMOtJ4fztyx+WE7P1dgLdJj4Z3yOQW+MfpWLfR6ziLtwOdVYcVgML6cD0PLg0WrhUTO7KkOnRC/q5ZSUStXjVt8DBi80JWhna1lmZoxqDsPf9VFSpg5UDMa+8XJIUxWgALgV2apz9Tba5qJ+uPCukYcRCDop+R7UzwFCrPIIbyHhQQNHcuVBeWQUAE5P58IidOfVuqN1fNXMerqSxa5XLW8CMIb6mrrwRs54JXwsZJUiRmGx+ZkxCxS8u/XFz3lsJODDFs8clu06u89WKTSccWYE= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2016 08:28:07.7555 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2478 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Tang Yuantian Signed-off-by: Tang Yuantian --- v2: - remove commit message as it is duplicated to title drivers/clk/clk-qoriq.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c index 1bece0f..65c21d7 100644 --- a/drivers/clk/clk-qoriq.c +++ b/drivers/clk/clk-qoriq.c @@ -202,6 +202,14 @@ static const struct clockgen_muxinfo ls1021a_cmux = { } }; +static const struct clockgen_muxinfo ls1012a_cmux = { + { + [0] = { CLKSEL_VALID, CGA_PLL1, PLL_DIV1 }, + {}, + [2] = { CLKSEL_VALID, CGA_PLL1, PLL_DIV2 }, + } +}; + static const struct clockgen_muxinfo t1040_cmux = { { [0] = { CLKSEL_VALID, CGA_PLL1, PLL_DIV1 }, @@ -482,6 +490,16 @@ static const struct clockgen_chipinfo chipinfo[] = { .pll_mask = 0x03, }, { + .compat = "fsl,ls1012a-clockgen", + .cmux_groups = { + &ls1012a_cmux + }, + .cmux_to_group = { + 0, -1 + }, + .pll_mask = 0x03, + }, + { .compat = "fsl,ls1043a-clockgen", .init_periph = t2080_init_periph, .cmux_groups = { @@ -1282,6 +1300,7 @@ static void __init clockgen_init(struct device_node *np) CLK_OF_DECLARE(qoriq_clockgen_1, "fsl,qoriq-clockgen-1.0", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_2, "fsl,qoriq-clockgen-2.0", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_ls1021a, "fsl,ls1021a-clockgen", clockgen_init); +CLK_OF_DECLARE(qoriq_clockgen_ls1012a, "fsl,ls1012a-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_ls1043a, "fsl,ls1043a-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_ls2080a, "fsl,ls2080a-clockgen", clockgen_init);