Message ID | 1474036587-13819-1-git-send-email-fabio.estevam@nxp.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Stephen Boyd |
Headers | show
Return-Path: <linux-clk-owner@kernel.org> 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 E46556077F for <patchwork-linux-clk@patchwork.kernel.org>; Fri, 16 Sep 2016 14:47:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4F2B29FE7 for <patchwork-linux-clk@patchwork.kernel.org>; Fri, 16 Sep 2016 14:47:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C987F29FF5; Fri, 16 Sep 2016 14:47:29 +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 72F9B29FE7 for <patchwork-linux-clk@patchwork.kernel.org>; Fri, 16 Sep 2016 14:47:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933894AbcIPOrP (ORCPT <rfc822;patchwork-linux-clk@patchwork.kernel.org>); Fri, 16 Sep 2016 10:47:15 -0400 Received: from mail-dm3nam03on0053.outbound.protection.outlook.com ([104.47.41.53]:33056 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935038AbcIPOrD (ORCPT <rfc822;linux-clk@vger.kernel.org>); Fri, 16 Sep 2016 10:47:03 -0400 Received: from BN3PR0301CA0068.namprd03.prod.outlook.com (10.160.152.164) by CY4PR03MB2438.namprd03.prod.outlook.com (10.168.163.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.619.10; Fri, 16 Sep 2016 14:32:45 +0000 Received: from BY2FFO11FD025.protection.gbl (2a01:111:f400:7c0c::199) by BN3PR0301CA0068.outlook.office365.com (2a01:111:e400:401e::36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.629.8 via Frontend Transport; Fri, 16 Sep 2016 14:32:45 +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 BY2FFO11FD025.mail.protection.outlook.com (10.1.15.214) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.619.6 via Frontend Transport; Fri, 16 Sep 2016 14:32:43 +0000 Received: from fabio-OptiPlex-7010.am.freescale.net (fabio-OptiPlex-7010.am.freescale.net [10.29.244.178]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u8GEWeFp026994; Fri, 16 Sep 2016 07:32:40 -0700 From: Fabio Estevam <fabio.estevam@nxp.com> To: <sboyd@codeaurora.org> CC: <mturquette@baylibre.com>, <shawnguo@kernel.org>, <kernel@pengutronix.de>, <p.zabel@pengutronix.de>, <akshay.bhat@timesys.com>, <stillcompiling@gmail.com>, <Charles.Kang@advantech.com.tw>, <linux-clk@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, "Fabio Estevam" <fabio.estevam@nxp.com> Subject: [PATCH 1/3] clk: imx6: Mask mmdc_ch1 handshake for periph2_sel and mmdc_ch1_axi_podf Date: Fri, 16 Sep 2016 11:36:25 -0300 Message-ID: <1474036587-13819-1-git-send-email-fabio.estevam@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131185099645397582; (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)(1110001)(1109001)(339900001)(189002)(199003)(105606002)(106466001)(92566002)(104016004)(50986999)(5003940100001)(86362001)(33646002)(2351001)(110136003)(97736004)(229853001)(47776003)(586003)(305945005)(36756003)(5660300001)(626004)(8936002)(81166006)(50226002)(85426001)(19580395003)(8676002)(11100500001)(356003)(87936001)(68736007)(50466002)(77096005)(7846002)(48376002)(2906002)(189998001)(81156014)(7416002)(4326007)(19580405001)(8666005)(15760500001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2438; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD025; 1:crp7Raphemz6vTMnyadNgzdgS0/TWslnVcmx/+GqLWMmC5GcgU2MnKoQS0FHhLwJ344bwlzFfB8ApSK92SOItaWWJwVqw+ls1isvlVqUfGLLxilhJXFAp69LB+r2sUWn+fyv/y8JNfsAl2SiQeZRm2mCOkQT4cMozLjhnrftOtorPElC0DZAv/BACrHyhtLSUmeiYjl3NGrV6Tl6fo0CuVVDDPLhFFHnibfqBjK+F9LhnTYrHdIY39lXkkq3ayct/XSHz4v7hKOii3WFpP5c8KmrIrjYGGJxPXL+oXyUCDBj1vRwRz5igRZ0XD+0BLJSP7m5L4yec+A6Q8MYG8xcV5E+o1PRxC+9brLbgZ1SnjkzCzWbM0Q2kFUw4kLEI9A+doJjm4JNJelmA/h/C57d/egp2t/itpWDPX1pEe2ldOa3IT9lkKc+/zNoTAcTOBHFtuzJJN7TjDmZlzcWe8tFdEtb+JQJ+A6DLpJJgPtBVaAnQbeOLeQJclr/bPDB7lBJln7SPklNToBwB8xJqfklpzIQlC6swM17mvnfFkrzk1UOmscQ5LGf03oV+H0jyTqdCBmxf5qQG7nsoq2DOvu6H4+sLaOjfS49ePXmz6wUfDvYe6eEl3O2Zt7i8Ose4oGytGD4uVHcHEU7cYmjOatIDE1W4xhSzsWpdJ/sKTHA5sY8b1WWE8kk/Ducr+rGFGX+BOD4RE8BRFgHjL+6MYrQrwYCXv44k392+hnYza+LwUU= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 0506b2fe-ac66-4053-bdf7-08d3de3e5291 X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2438; 2:UkURdq5pT4Tofvn1BDQwB4TwSwR9+YLd8+5zUqEuVX58u0deRhxCcB/xHpLt3tJTSnKz9wef5kDLcMkiK3YQDxVXZAlz215noMLr0pC7aJjx0ZaqSEGLv1arPMtFZfyBG/rROlgBrh3eZ2cf7eExGXYSqeYlAB65b7/p3+5yhoEmNMfwHjGUvnRloB9HKP9l; 3:srnco8gE+YLRAQcZS7+g+6dBgF7hSSWQTbBOxv3DQMoy+9ORdYOGkYwBeanz3gjaF0zUa26EC9zgCFc+TeDJ5GzXC/73LHyP017TyIezQj5taKWPF2QOdBHQivqWeBCYpniXjnN3SqRrG7HMaINQxGavAXrwyBzny6gFPxk0B9JGebXbfb2RFkfMZtvPgTYPO1fPJ0kZKx3uWUkyy9zJHfvtRT9MWa8puDH52gRqUSM= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY4PR03MB2438; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2438; 25:GzdSoEbN1KSlaAffPeFnILKOr8e6u3oMBjU82X82cgNr7TTWOGABardEG4AgSQ9DO7MXvxVKg8Bwf9UFlFPvVTCcxfszZ6HkMxGI/M/3iVwC8SeXbpiWB95UB2DuoV3x23t1hSMlddofIqODF+yr0i4INzlDuyEJZd+DnjmWPCGg6nelBAEiQSEUT63vMxWi2i1PcCcVLKKKUrme8eADfV15Ne7M1lcY+zpEBJw/2aBbCseyGkFDTPCzTDZb+Zj6V6abGAmazuokoeYTUbzSE3mENLOt5VAO0AfF0Zlg6YkCKhShEYSdiwwFj6MHV0loua7V8iXgcaVBJaqJ3qratWhb74cHQ6gp5dsBFtTj2V86FD8xoM7zdxtsllHpjMiOVGUsrYOxV5UAywdNNXe8XigzBLK7LNONH5DgoEu3ikPNnkf4/O3LvQ5WkPL4+lJ/BdeVVmiSg7eBBIsC9iowt2H7BvGP7Vh0GDjGqqPN+j3p4SK5TxFlLsxlpERCoX8cqq7ILMf7AERG8GToAkeZ48uZ0qPCLMm/ZOwrIKKwA3vkkBizoEhpzDj/LiL1n4gQY9miE14ENjPpS0QK+e+eaD2df6oWhSVI/olOeD1fF2k0urhcL42HVm3f95L4/Nq7yoBc2tx2FtLyZQwDhqAcuC99D11NpYDi7k2maaFES44WmuHSq6kLiRDEty4bsu0X3KiehuRS1GtOgGM/mUhhtQ==; 31:yp8UtTMk3Ow74yY6Fr/XL9HntOdrk6PMauinTmsRtrC2Ef6hD+TicSeCvjqv6ddVeQJaEXlrAOs6jQpkh2HRRiu7nVu1Nqh+ZVoWFW7nRBQYUKrzp8JjeFF9Z5jOiSxLS84ivVRaPnrJnKVpH43L9THxi4Wj/cRQ2I37t9JrJQAFugXDWrOhw26Z+DioTNhR/z4MGHQn/M/2B NPrnha0ZvIatpv3ayUIUqg8OVKSNCo= X-Microsoft-Antispam-PRVS: <CY4PR03MB24389D1A8C3BAA43A9E6A6D8E3F30@CY4PR03MB2438.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(13017025)(13015025)(13024025)(13018025)(13023025)(10201501046)(3002001)(6055026); SRVR:CY4PR03MB2438; BCL:0; PCL:0; RULEID:(400006); SRVR:CY4PR03MB2438; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2438; 4:aQIJfP3wjgd5XaP6/Eaai/wBmTJ9nKGR9TPa16sCHD20Tp/ZjBI3KKovD1+6HUf2BwQ1zk4JdNsrXGgcgk5VqkuqKqG2gj9Haft/xRyV8sgte0nekv5lqXzijHj5MewPokFB1NiBUjBin6rIlkhL+hdQxAarfB4r+oFDkU906pbUsF2xeoWr0bCCeJQliTKwemcrsgJwB/Ziw21Ro+3Wag8tY61iXTjSibnLDzTqUKQE385jZVB4ZwXktsEG0doSjfrq666J+KcW25NFIxyZNEwf4ZbNRbfKkldoZvedNNeFakaz/rDi34DIkIsCLreC3hUJyAcH3cRGqJAAjQao3QxFiRZitJhVUEoHgoNER93PJWTymMIadjaxgffzN/JDvZcq/bspn3uqKvcJSadJOaEir5CHZwrlO5IeTCZBKPmzUM5xYHYT9u+tMVjOkAN5UQe0302AML3XZnT4V806HpaXx4jxnxSMfqJz3wa172oezH2mFvnfpMFqeoyZH49OsNM3we6+BiDPxQKPWXEaA7uLY8D5+aT+GQMWVXf41tE= X-Forefront-PRVS: 0067A8BA2A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB2438; 23:w5kw6zqCKvBtirUH6fbWYCE1HhxsrH8tDJRKHQsZ9?= =?us-ascii?Q?h0oPRPkk26SXn4RwzWSWBVGDsbTkXCbgsjVWaJD0NNxiqyICeZyubm6B3enI?= =?us-ascii?Q?4xVmyS9tjG0UHEKjlXTkNMxleCCWckMkpu/KFIUsCUH9+3vc5Tt2Eg0p2YzI?= =?us-ascii?Q?wra1mYZw2O3D+Edp37sFNEuOLbef5QRxS3tMrL3SR4K+RbUsacKcrX2AKmrY?= =?us-ascii?Q?xIxl0qP/ZvoJGZRPA8hND8LaiKShq1jXgyBqmobMPGz+ABp+jLAOJAdcnb33?= =?us-ascii?Q?WvDIRg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+PTBug6ig?= =?us-ascii?Q?uUibKB5eaonOXc=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2438; 6:ffEi9c2saJ7r7PtOSNG9ihF2GdXPTXDbFsLIzDB8IfQQ34bStoW6LyxlOIvtSpNZPRRenzMuHRjz3tLvhsP3GZx+lwbyn+CUzkBbXl/2lMjPnJy3wfa8tHVyLLgctRqi+l0lqtraSKgo+suMo71TbYd07zxuX9nE1MZIhHFCYdA0EFYC4gTvif4KGFQIVI+vaX4uy0sVEertNsPPo3hcox+RN/cpdR34A3J42LLoJRDvIFRlJq2iCuQrXmtA+Qf+CR+p0MnZhbJSwQpA3nvDYqk8Tbw1W0NyViIrb3SlQ/k=; 5:ExEFAF8VN5eS3zhpDqTF9vtKaBVfhKBZhau/v34mGv46eyhQXmgSFUIHZl04mcKq0Nm/k2WzOqkgxALj6Vk4vSF1Z9lGYpI8BCEx2sDatIK/YSi1xk3FDyimRTYQ7l+JCcGHNLEtfwm8o/R6HcdldoLBde42SUsDO9DHtVZA2qs=; 24:Vjsf4efswBDK72t5Bjb0NH+f/rr6lC6gaMBzH4loQBB34sukcYItCHUouua6sk675JN35Euiv7jJA1/PyRots4Coca+FkwNcz4RZO36JPuE=; 7:gJnZVSUo0FO0cGDkR3JlLBU0hWbrasWARqgOvH/GhJKHKF6jpi7sQSmNPS4HpYb4j8FI1zdup4WpV8f7TjwxXVux4qOSS9iFgeu+2NQzTBDwMwzJtwbfslK9yNt3iWswwTN4HOTtfpTaZanQLSaQoafogWrzJuyoz0BZwHzkVDsoolhRRMJqRpn8rUfKhJ8dih/Akh13GXDZ8xlQMVwoiPT21PmBf7Q8dbeJjw/TcTf6k0qV6GABMPvPp7OAJrEk SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2016 14:32:43.3853 (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: CY4PR03MB2438 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: <linux-clk.vger.kernel.org> X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index ba1c1ae..dd33ebc 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c @@ -156,6 +156,19 @@ static struct clk ** const uart_clks[] __initconst = { NULL }; +#define CCM_CCDR 0x04 + +#define CCDR_MMDC_CH1_MASK BIT(16) + +static void __init imx6q_mmdc_ch1_mask_handshake(void __iomem *ccm_base) +{ + unsigned int reg; + + reg = readl_relaxed(ccm_base + CCM_CCDR); + reg |= CCDR_MMDC_CH1_MASK; + writel_relaxed(reg, ccm_base + CCM_CCDR); +} + static void __init imx6q_clocks_init(struct device_node *ccm_node) { struct device_node *np; @@ -297,6 +310,8 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) base = of_iomap(np, 0); WARN_ON(!base); + imx6q_mmdc_ch1_mask_handshake(base); + /* name reg shift width parent_names num_parents */ clk[IMX6QDL_CLK_STEP] = imx_clk_mux("step", base + 0xc, 8, 1, step_sels, ARRAY_SIZE(step_sels)); clk[IMX6QDL_CLK_PLL1_SW] = imx_clk_mux("pll1_sw", base + 0xc, 2, 1, pll1_sw_sels, ARRAY_SIZE(pll1_sw_sels));