From: Benoît Thébaudeau Date: Thu, 11 Apr 2013 09:35:38 +0000 (+0000) Subject: imx: mx5: lowlevel_init: Simplify code X-Git-Tag: v2013.04-rc3~1^2~44 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e78b14080112af75cb287e5a6eac28f728d036ed;p=u-boot imx: mx5: lowlevel_init: Simplify code Don't use several instructions to build constant values. Signed-off-by: Benoît Thébaudeau Acked-by: Stefano Babic --- diff --git a/arch/arm/cpu/armv7/mx5/lowlevel_init.S b/arch/arm/cpu/armv7/mx5/lowlevel_init.S index 6d9396a976..dfce0ca83e 100644 --- a/arch/arm/cpu/armv7/mx5/lowlevel_init.S +++ b/arch/arm/cpu/armv7/mx5/lowlevel_init.S @@ -309,8 +309,7 @@ setup_pll_func: ldr r0, =CCM_BASE_ADDR ldr r1, =0x00015154 str r1, [r0, #CLKCTL_CBCMR] - ldr r1, =0x02888945 - orr r1, r1, #(1 << 16) + ldr r1, =0x02898945 str r1, [r0, #CLKCTL_CBCDR] /* make sure change is effective */ 1: ldr r1, [r0, #CLKCTL_CDHIPR] @@ -321,10 +320,7 @@ setup_pll_func: /* Switch peripheral to PLL2 */ ldr r0, =CCM_BASE_ADDR - ldr r1, =0x00808145 - orr r1, r1, #(2 << 10) - orr r1, r1, #(0 << 16) - orr r1, r1, #(1 << 19) + ldr r1, =0x00888945 str r1, [r0, #CLKCTL_CBCDR] ldr r1, =0x00016154