]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
ARM: mx5: use 'bic' instead of 'and' and mask with shift
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 22 Aug 2013 13:54:04 +0000 (15:54 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 22 Aug 2013 13:54:04 +0000 (15:54 +0200)
arch/arm/cpu/armv7/mx5/lowlevel_init.S

index 17a2bdbf1d267d25d652edc32c07ed6ba94c0691..c448b6e858b30d28e9b567334d29e3b2037cac0d 100644 (file)
@@ -309,8 +309,8 @@ setup_pll_func:
 
        /* change uart clk parent to pll2 */
        ldr r1, [r0, #CLKCTL_CSCMR1]
-       and r1, r1, #0xfcffffff
-       orr r1, r1, #0x01000000
+       bic r1, #(0x3 << 24)
+       orr r1, r1, #(0x1 << 24)
        str r1, [r0, #CLKCTL_CSCMR1]
 
        /* make sure change is effective */
@@ -337,7 +337,7 @@ setup_pll_func:
 
        /* make uart div=6 */
        ldr r1, [r0, #CLKCTL_CSCDR1]
-       and r1, r1, #0xffffffc0
+       bic r1, #(0x3f << 0)
        orr r1, r1, #0x0a
        str r1, [r0, #CLKCTL_CSCDR1]