From patchwork Fri Jun 26 17:10:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 6682561 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7905CC05AC for ; Fri, 26 Jun 2015 17:13:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9EA3120647 for ; Fri, 26 Jun 2015 17:13:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BDFAF20640 for ; Fri, 26 Jun 2015 17:13:53 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z8XAN-0003R5-Pf; Fri, 26 Jun 2015 17:11:51 +0000 Received: from mail-by2on0101.outbound.protection.outlook.com ([207.46.100.101] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z8XAA-0003L0-P6 for linux-arm-kernel@lists.infradead.org; Fri, 26 Jun 2015 17:11:39 +0000 Received: from BLUPR0301CA0019.namprd03.prod.outlook.com (10.162.113.157) by CY1PR0301MB1546.namprd03.prod.outlook.com (10.162.165.156) with Microsoft SMTP Server (TLS) id 15.1.195.15; Fri, 26 Jun 2015 17:11:16 +0000 Received: from BN1AFFO11FD010.protection.gbl (2a01:111:f400:7c10::134) by BLUPR0301CA0019.outlook.office365.com (2a01:111:e400:5259::29) with Microsoft SMTP Server (TLS) id 15.1.201.16 via Frontend Transport; Fri, 26 Jun 2015 17:11:16 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.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 BN1AFFO11FD010.mail.protection.outlook.com (10.58.52.70) with Microsoft SMTP Server (TLS) id 15.1.201.10 via Frontend Transport; Fri, 26 Jun 2015 17:11:13 +0000 Received: from fabio-Latitude-E6410.am.freescale.net ([10.29.244.59]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t5QHB5EX011145; Fri, 26 Jun 2015 10:11:10 -0700 From: Fabio Estevam To: Subject: [PATCH v3 2/2] clk: imx: clk-imx6q: Provide initial IPU clock settings for mx6dl Date: Fri, 26 Jun 2015 14:10:54 -0300 Message-ID: <1435338654-9098-2-git-send-email-fabio.estevam@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435338654-9098-1-git-send-email-fabio.estevam@freescale.com> References: <1435338654-9098-1-git-send-email-fabio.estevam@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD010; 1:OSAfu+SVmTs+xfpxIePh1RzjOcUI0dFMaUm4Mjb2MVH2z8KnCAtHppqUgk2BmvpLDFUzyaSm6ea4zn7uGeJlsfq10kRux7+Z7KD2CXuuvaKFbETZNWUyJKqGPuO0qufBTQLuH93UMRt5GsVNGCWae3s+r7MUUBF5jGT0qrs3p8ZqxHMBJpfsGccdWGyERguytKNM+mSOzKDP9TbbhyZn4V5iXmhVfJwh/eBoInlMB5C1yljIvQsomiE08icBOtud+Xeats7X9VmOJy+wDGs121/IBJqJ6LkFpoWi98Xnue5XSnRbEy/zjkSDuycuakDTgOnmA30ioH+OfLcYRN5+8A== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(76176999)(50986999)(62966003)(6806004)(107886002)(189998001)(110136002)(5001960100002)(19580395003)(47776003)(50226001)(105606002)(77156002)(77096005)(2950100001)(19580405001)(87936001)(86362001)(85426001)(50466002)(48376002)(46102003)(33646002)(104016003)(106466001)(2351001)(229853001)(92566002)(36756003)(32563001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB1546; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1546; 2:NlzYHZpRl6sQLpKtFswE9TqmDSwzWMDkLYMrDJ7AtxQqIwaJnNJkLL8bjmw0i20m; 3:O+cPeyEOvKwe+BvFD7V1+UXVGv2PhHTtftrLUvCG0bI5mkkJeREHmcNViEPr8qt5welJN9lajvYL8jFXm4e2ueB7Hy+muQoviekMH9MhIcd5f22bcJuXjxBdLWU76VE4EfqCihRJO2Mo7IIIQiu+InMSLOEr/z5nNU8490go4MHDKhGrf9gFM9rDWVDIP661JsZjhQMy4zdbdX4+ajt8UnETvuF01Cxlp3WtegLm0ec=; 20:uZ1rfu+LV9WT+v3o17C7jAX8g9gIG2E11EJMQY2bA0F7g2EAp8dCkqN4j+1DKOSWofRjdmf6DlIPCVOvN4iIOFmBqkt5/d8ve7b9BFWos8RpiKTreFPUkgVxbEwl4ypeGxrQp8Oln7+usZZXTQbI+8zseuNX+KPd5gQA/SoZLu3Um6vOM6iNmO96zA9mMpe3fI+C+LHXEdsyW4jnk+OO/k9pqv0+0wUebkUHvU+fIGdGy0L6naNgxf4voamtcPcM28JJtuYKa487mZ6GQgaQHgvYsdRXAPowbkF98BOGd+gxUat61x/378NXsXrYP/lEFacKqqRzZl+unSPChky4mSJi2SXD0pFHrd/WdoQbC/o= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1546; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:CY1PR0301MB1546; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1546; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1546; 4:fHEp2EAFbbasvVvClcjOZdRlhiWmF3QkWoh6R9bHRH/diwOK/i0s5UisRhPUwHCw1v0TL63QKlP0RkJTHmu/lZjbTqUpVj1uV4pc2Kdb5fK902f+8JXM5uEkfaFeWhMh590CWm6413W9W67xekJPf/Z/0ubIHF6giNHVEca1+QuS+UfgJsWWNgTxn2appKsqbxMGpyKDmfbQd6GaCmqTz2twAyI3NrwggaCqqZcMySP6wlR6Id+I2pFkYXtIUa+q2hRaBuzPuq723b+Naag11TkGwYkcaqb3o45Ny8XM8jI= X-Forefront-PRVS: 0619D53754 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1546; 23:MJAiBgz1UtmB18/MxGK5apTZH8JGElHAXZ9qCi7Nz3C9bggDL6EOpL+Jb34CV9GUQqICXWGrth9o8BGTAO2alF3n1MeMu5bLVTjatrcsAfZuPut5/paP+8TwmFtynUxUpBWgkEuOYS5Y7a0p0OO6j4xZ12ftPnW1vAICCJz0gufPud7EOdLTlsyBxnvHHrRUvK/MuxGh2i5wwsGeVv0J8UNrOn3QNOYIVXXjaywKZsFCeWQdkMeEf7/8c2LG24z8riP10swh+WeoTUxx1PhgvtoXUVfbiRH0rkeW9iQTD2ykPHetdXvWwx3XNZLMszjicltBy5vjbfmS3QFeMwt42OLb6VN/E5IB+XEAcfxU69Z9luArmcatdJAAJhlMnlcOGHF6hLRdqFR/DprOY10SvFo0eNjmsKnRlY5dqK9E+ID9t70Fie+Sg7ba6pa3c+JzxVuq0tdufqaelho+lne85HKvtOc3aKss2B4h4reHapwATlCj2s41NaeRY6lK9mMzyn2mkihYg0speUVqEkwpNjSUDrkQABirr24kKrOGRy0sTIuOlA7kuA1LJ0upofJzsgLhq7aCKO1m1hWI1mTqjlClyqX/DgAx/z2DCIbOTO4BNQl0KJsaHGEokL47pr9FBNIt3CfEWLFcehgocu4SjpjbpXO8LkihWXouAm8JGmk5VWsyLBuQ6oA4teVF0m3DmPfFXYUUSZ4vR474+c7zIJ+d/hYvGreK90EdhZmWvS2y9JJgOkpWehN1+D50YfSd/x8eiNuroN4sZ9I9HeAT+QpDg3aS+1hdrsKMgI9ChQkFFmNpwxQWRo126MqVcKd3osUuUGWFbfGmX6j2RwFJIlcNoHZ1mImoyQYYB7nn1RJLVWJTOlYnZBkNEM5es6md5V+11F6oUAMy3PAPyfSYSLmxYHxJ2jBImZK6qyodgK6u/aMgymf8WuZnf8dXLFXX X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1546; 5:6PVU6H7jemOmoxIYUeQrD9kczu4zxf5FJHrIVcp2gYamGs6+V2wcVqlXetAh6nJ29oF+UhM2/iXVvl6E0YOCGbHAAx4U9wSdbucja4R9NUvvsSdIqJrfvql4rg6yAXnSPgVKfPjZRJcZJWYvSnJHnQ==; 24:cNR4V/Tw8pX/N6j1VWqpiYqkCe+BE2i8PM+ZqznvLa9QNdMIZo6+oIdZNyQrdMjbemnByQPFcm6f10kMmHMvku/T6pXmOXfCFKFdQgm9D/Q=; 20:VoF3naBwUhG7BlU5A+54C8+8P8gokVCsL1/J7jNr6kbJXZIM6nhVmHn9H0RfiKFSmjgsaIkeQXY7MLn8bssYEg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2015 17:11:13.0877 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1546 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150626_101138_857620_C8CC6505 X-CRM114-Status: GOOD ( 16.54 ) X-Spam-Score: -1.9 (-) Cc: Fabio Estevam , linux@arm.linux.org.uk, mturquette@baylibre.com, eric.nelson@boundarydevices.com, vladimir_zapolskiy@mentor.com, kernel@pengutronix.de, Ying.liu@freescale.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently it is not possible to use HDMI and LVDS at the same time on a imx6dl-sabresd board. Fix this usecase by setting IMX6QDL_CLK_PLL3_PFD1_540M to 540MHz and also by setting it as the parent of IMX6QDL_CLK_IPU1_SEL. Based on the configuration done in the FSL kernel. Signed-off-by: Fabio Estevam --- Changes since v2: - Move clk_set_rate for PLL3_PFD1_540M outside the if block as suggested by Vladimir Zapolskiy. drivers/clk/imx/clk-imx6q.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index d046f8e..c507bca 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c @@ -494,6 +494,10 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) clk_set_parent(clk[IMX6QDL_CLK_LDB_DI1_SEL], clk[IMX6QDL_CLK_PLL5_VIDEO_DIV]); } + clk_set_rate(clk[IMX6QDL_CLK_PLL3_PFD1_540M], 540000000); + if (clk_on_imx6dl()) + clk_set_parent(clk[IMX6QDL_CLK_IPU1_SEL], clk[IMX6QDL_CLK_PLL3_PFD1_540M]); + clk_set_parent(clk[IMX6QDL_CLK_IPU1_DI0_PRE_SEL], clk[IMX6QDL_CLK_PLL5_VIDEO_DIV]); clk_set_parent(clk[IMX6QDL_CLK_IPU1_DI1_PRE_SEL], clk[IMX6QDL_CLK_PLL5_VIDEO_DIV]); clk_set_parent(clk[IMX6QDL_CLK_IPU2_DI0_PRE_SEL], clk[IMX6QDL_CLK_PLL5_VIDEO_DIV]);