]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00174897 i.mx6: clock: fix axi clock mux setting
authorJason Liu <r64343@freescale.com>
Mon, 20 Feb 2012 03:18:40 +0000 (11:18 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:11:00 +0000 (14:11 +0200)
Fix the error in the axi clock mux setting,
- reg = ((mux - 1) << MXC_CCM_CBCDR_AXI_ALT_SEL_OFFSET);
+ reg |= ((mux - 1) << MXC_CCM_CBCDR_AXI_ALT_SEL_OFFSET);

Signed-off-by: Jason Liu <r64343@freescale.com>
arch/arm/mach-mx6/clock.c

index 84e0176b280a888b3769b4cfca5d6bd3bf333039..26ced126ac4d3d200e8f7f37701c9f9038617fe6 100644 (file)
@@ -1257,7 +1257,7 @@ static int _clk_axi_set_parent(struct clk *clk, struct clk *parent)
                /* Set the AXI_ALT_SEL mux. */
                reg = __raw_readl(MXC_CCM_CBCDR)
                        & ~MXC_CCM_CBCDR_AXI_ALT_SEL_MASK;
-               reg = ((mux - 1) << MXC_CCM_CBCDR_AXI_ALT_SEL_OFFSET);
+               reg |= ((mux - 1) << MXC_CCM_CBCDR_AXI_ALT_SEL_OFFSET);
                __raw_writel(reg, MXC_CCM_CBCDR);
 
                /* Set the AXI_SEL mux */