summaryrefslogtreecommitdiff
path: root/drivers/clk/imx/clk-imx6sll.c
diff options
context:
space:
mode:
authorAnson Huang <anson.huang@nxp.com>2019-05-12 10:24:19 +0000
committerShawn Guo <shawnguo@kernel.org>2019-05-23 21:14:41 +0800
commitc129b6fe81cd9667ff3cef56388f0f952865ab41 (patch)
treedcdc5f32a49f0adbad350c63d5013af646b215fc /drivers/clk/imx/clk-imx6sll.c
parentefdb279033ad4fa830e330a071d1e434235aa153 (diff)
clk: imx: Use imx_mmdc_mask_handshake() API for masking MMDC channel
Use imx_mmdc_mask_handshake() API instead of programming CCM register directly in each platform to mask unused MMDC channel's handshake. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/clk/imx/clk-imx6sll.c')
-rw-r--r--drivers/clk/imx/clk-imx6sll.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/imx/clk-imx6sll.c b/drivers/clk/imx/clk-imx6sll.c
index 7eea448cb9a9..3aa71c9d300c 100644
--- a/drivers/clk/imx/clk-imx6sll.c
+++ b/drivers/clk/imx/clk-imx6sll.c
@@ -16,7 +16,6 @@
#include "clk.h"
#define CCM_ANALOG_PLL_BYPASS (0x1 << 16)
-#define BM_CCM_CCDR_MMDC_CH0_MASK (0x2 << 16)
#define xPLL_CLR(offset) (offset + 0x8)
static const char *pll_bypass_src_sels[] = { "osc", "dummy", };
@@ -340,7 +339,7 @@ static void __init imx6sll_clocks_init(struct device_node *ccm_node)
clks[IMX6SLL_CLK_USDHC3] = imx_clk_gate2("usdhc3", "usdhc3_podf", base + 0x80, 6);
/* mask handshake of mmdc */
- writel_relaxed(BM_CCM_CCDR_MMDC_CH0_MASK, base + 0x4);
+ imx_mmdc_mask_handshake(base, 0);
imx_check_clocks(clks, ARRAY_SIZE(clks));