From patchwork Wed Nov 16 05:58:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tang yuantian X-Patchwork-Id: 9430933 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 B7C3860469 for ; Wed, 16 Nov 2016 06:13:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5507286B9 for ; Wed, 16 Nov 2016 06:13:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96AF728DC3; Wed, 16 Nov 2016 06:13:50 +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=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3735A286B9 for ; Wed, 16 Nov 2016 06:13:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c6tRr-0006CR-O3; Wed, 16 Nov 2016 06:11:55 +0000 Received: from mail-co1nam03on0041.outbound.protection.outlook.com ([104.47.40.41] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c6tRm-00069j-Qh for linux-arm-kernel@lists.infradead.org; Wed, 16 Nov 2016 06:11:52 +0000 Received: from BY2PR03CA038.namprd03.prod.outlook.com (10.141.249.11) by MWHPR03MB2477.namprd03.prod.outlook.com (10.169.200.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.721.10; Wed, 16 Nov 2016 06:11:28 +0000 Received: from BL2FFO11FD032.protection.gbl (2a01:111:f400:7c09::169) by BY2PR03CA038.outlook.office365.com (2a01:111:e400:2c5d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.721.10 via Frontend Transport; Wed, 16 Nov 2016 06:11:28 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD032.mail.protection.outlook.com (10.173.160.73) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.721.5 via Frontend Transport; Wed, 16 Nov 2016 06:11:22 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:700; Count:8 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id uAG6BHSu011087; Tue, 15 Nov 2016 23:11:19 -0700 From: To: Subject: [PATCH] clk: qoriq: added ls1012a clock configuration Date: Wed, 16 Nov 2016 13:58:20 +0800 Message-ID: <1479275900-42365-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: 131237502876391464; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(336004)(339900001)(199003)(189002)(86362001)(575784001)(85426001)(36756003)(86152002)(8676002)(5660300001)(5003940100001)(77096005)(50226002)(104016004)(189998001)(8936002)(626004)(92566002)(110136003)(47776003)(81166006)(6666003)(97736004)(6916009)(81156014)(305945005)(50466002)(48376002)(33646002)(7846002)(4326007)(2876002)(2351001)(68736007)(8666005)(105606002)(106466001)(50986999)(87936001)(69596002)(356003)(2906002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2477; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD032; 1:EhCnuc82/DpaeRhrsoy2sNoahgpc6Ov7jh4unJT7NdqxsmSVblqw04zJ9iG+dKWvtGmy1cjkiZP1d4vcaG1mwvPP3l31OC7IQlkMvuzHlIcOWeejOOFmakAw+Skd4PmlOm/YsBm3Go/b4yeuE1wgjwObWLRFqXkaPEWWvbz6ewAhFyJnSyspxviiCHy7GzHUzemcbVm9IIrWsP1jZQZxDXDoZGv9JGwLFK4aep+kuVSTAjOw/5QlRMXvXRgmrBoafP1STL4Yhba5uoR/f4UPtavAVqnXBvb0AlZGPUoBWfk7UV9vUhR5r2KG2JuZQExTrel7DKSXn9r7NdU1Wf3J1J7dkxmlihK8dYXgYBtpDg+2cgvEK1C6mrqLzxAkW4ZcC7rTb1POaCb3SDSo/laXtGx+rYgjMDhdxWsNSu7eD/QJXMwUVoGo3vu+zX8U1+rLpbcGoSNOmUAT6O+hs1VRLf5I3Ofk/PXquQKsILgsG9/YsCZNznbOTN9hMCeOofOK5ReGT5LUUwZdcYYCepBck8/olx+Mz4g4jYtUHpe55DLWMOuJiLQX1lHPIUx7IfuNexoyKxfvDITQu6l5+8lfMboVzMS6VV7dZThuPhLw+4xdAQgQ9eb3i6xg2jA1w/p7frzbfW/1o9jsRULoeqaYTCJlOYjB/ruehND1AUTAUSpZEgUzNVsfSJZIRF6Wy0fWpU9fmmJ0zsqC/7VJh9/iBj42lN9w2FUFS0CKurOv0Xk= MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2477; 2:JXFGietydr0+iJiQbzGDNCfND5hktSNLoMcR1AwCWd0voxUzyolzBSz/uGoDFb1YkClcKgl7fZZS+WmEVOFV8ZrMCXGVWF4blGU10AA/oCUsYiHfHKgZBPA2vLCdFlvrmp4LrlhHakWdVgkSWQX/jaOh+XoL+1/7lnHahSZ5GQ4=; 3:aVsPriUmlqXGVM+/A3NcDxOSTaMl8OnOzHwmiHRypanYeeLTCLvj2kug1nc5DhFmHKwJUjBdUOzkn74zgwIUSVo0CnWEwPQmUBEPdhT2iuxCu8VncUoDC2J4T69RtAKHgHQQzTl1iE8holpyBtgEI4P8B71tGSQyiQZr1qHQNhbgGgwfL4bOC6/kZUT9Y7fdulWGDOV26Diy0OjLy1hdBV/U5JilMcNS8LYicSXi78R/8jaQRcIm+xxaul4DrBiRjmc/UY3BERrm7xUwblLcwQ== X-MS-Office365-Filtering-Correlation-Id: e32d02f9-6f66-4a6c-1828-08d40de7669f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:MWHPR03MB2477; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2477; 25:B/Aa5CmNM9s6kFlPCt9JKOcVuqKZiRxp+Klk353hyejzF70gOlSe2THWYSGugCgspn200Z2EK55NbyUB1GcfaQuaKV3xrHmb/kyWb/S061o0XqWEWwYuHttuVzUiXSFhxHLio0eCzFbP3DJrYSonGnd4hBymuAAjX2n9PezVhP9awAdGC62Jz+sOBRULYMq52YoUgYXwDnvB64Il4w1w4fnX/d7tWFG1uy2+6ZsejJShaQq/MujQG5yoTToF3IDbMWHYCY98dHlsqMZtdObCXb0dCM8G5xynMl/5yGzSvDcSJMQ9wP3oC+pz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xaKAZfBrm4y7uYgizjlPPZ3XTKoivaHWjKY0VCKCTLyqoeURnggxW5s7wYwqHUe+31dEHouNclGSLBViS2DtoGdKtZ3Huf2VZaOHX6H565R+ppa2Y4rQuNCTfJ4CUx2D4/Sv4gG2SiEH9Pg13KdzmeyMZwgezaFGp9S+fDIaLwa+pQ2BYbMDTjP4gR0PaWvI71/qFtUaAjAnp5xhOFNVQaM2nRv1fI1+frvMFJe4vA7IAhQbNBDReLOYFTeCglqccMZvz 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)(13024025)(13015025)(13023025)(13017025)(5005006)(8121501046)(13018025)(10201501046)(3002001)(6055026)(6096035); SRVR:MWHPR03MB2477; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2477; X-Forefront-PRVS: 01283822F8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2477; 23:5MDds7ZVclA+ZWIEzqKcT7xCVkZUg7XNu2Q4QRpga?= =?us-ascii?Q?DBek37YnvnP8cePeZr9fC7q8tewrYGsvgGqKbvP/4vMUm21CvFcOtnlk5Qhu?= =?us-ascii?Q?LJWyTkWYlEvy34bJOADE1tsfHMmvBthSZVR3aERdaHNhukR7++ol2oSAW3zA?= =?us-ascii?Q?hPbR0b/VISnw/R6U2svvYwyjtejON9m9wbGHuOJyVwokO1wkpgF0fi+ukumY?= =?us-ascii?Q?Dpplmy0AqETTrmacfHF22JEMiJvU//65NzIg9u8wb0BnKBpQHis1aMtSqi/1?= =?us-ascii?Q?a9S1i72rAqS7oFkronyqoen21xLpujTR7zF7IWFU8evsG+RI6M11aLOfPs2x?= =?us-ascii?Q?jk/rFO0TJuZo/5dfaGpVLcLh3O25pCgHsh9kbqXRcneZRMmWfv53X4ARTjMa?= =?us-ascii?Q?QoxJKsaYBgOHkCyDUi2Cl9PN43EmswcwXkdCF32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hJxeBvvVgtOsXNuJoDF2m4OJohWDUEvfpbIsX2BT0LZyALWmXeJJ1cDTqbaV6XdxnD8e242Gj1153Gp8n3AdfgjGRgytZX/pImtyDkfTsNoIVtnW5J7P/TCttcXEyH42J0F0RwdlbfafkS14YbCn5L5ebFx3xLOlb04aapRJmwh8qvFdcJ0Pw==; 5:yraAFpLQNnkm5JozTlUXedW/+z99Kt28v5XzTDfAJnyHUgSvUfUWgY2QNkI/G41O984bRXROj/BXqZsqzegYoBsjMsgsfj2pt6NagS28Um/cmi3deLwGZdVjaaZ5E6/fqzxvOxkRTNlh7W/m3Rn4m57KbHEhk32jdvw7nrtrPcHOcfS0FBHxAyETIOyIsb+A; 24:Pw1k/0LmoZx8RiGNfVMk04oGHej9Pjg78tKYyA9aeBrWaD6zTeA9HzHrEKH7k9ROFw++qPA/wsPGoov3l7/+Dj2PFQRpbQCM6WiPZcTzXbE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2477; 7:m0jcVD/YWEbrwEcqzhWcsIVkBNPUS8m48hPx4kj7V8Mpl0rMhnST/I+5d8b15Wdg48Hdj5Knc0rS3j26AaDV7x43WOqXE9kRsDCy3Mmx6Qg0gPWfGPVrmBO+THfAxHqPC7Qz+oNgm8vfsAymydfsnrcv6dQEQB0Vr1Q7XfuT781lZ6e6sk62epY44sA/K9sQI26UGR2cHGXY4op71DjZhgY+RiPT5GQUBcQE1GQTAF5C5Ivj9PLP+M2xDHFSi4wm46qY3IHXNINl1qMeTcV65kUn26VXA0hdj8qkHPjTu/B4uHs1Y8j/ikGz0u7gDUXgI76hqzgIdCuEqeJsbwFCciWFRyKS7/tNk9kqdDsZlPU= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2016 06:11:22.4599 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2477 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161115_221151_003444_8F46ADD0 X-CRM114-Status: UNSURE ( 8.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sboyd@codeaurora.org, linux-kernel@vger.kernel.org, scott.wood@nxp.com, Tang Yuantian , 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 From: Tang Yuantian Added ls1012a clock configuation information. Signed-off-by: Tang Yuantian --- 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..563d874 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 = { @@ -1284,6 +1302,7 @@ 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_ls1043a, "fsl,ls1043a-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_ls2080a, "fsl,ls2080a-clockgen", clockgen_init); +CLK_OF_DECLARE(qoriq_clockgen_ls1012a, "fsl,ls1012a-clockgen", clockgen_init); /* Legacy nodes */ CLK_OF_DECLARE(qoriq_sysclk_1, "fsl,qoriq-sysclk-1.0", sysclk_init);