comparison gsm-fw/sysglue/flashboot.S @ 634:1f54d2ba42c2

gsm-fw/sysglue/flashboot.S: be consistent with fc-xram for CS4/ADD22 switch
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 01 Sep 2014 18:38:57 +0000
parents 7cf154cd3891
children 658a83ff7221
comparison
equal deleted inserted replaced
633:da72b51c0572 634:1f54d2ba42c2
51 mov r0, #0x00A3 51 mov r0, #0x00A3
52 strh r0, [r2, #0] 52 strh r0, [r2, #0]
53 strh r0, [r2, #2] 53 strh r0, [r2, #2]
54 #endif 54 #endif
55 /* 55 /*
56 * Switch the CS4/ADD22 pin to the ADD22 function. We only need this 56 * On targets with 8 MiB flash (or XRAM) banks we need to switch the
57 * setting on targets with 8 MiB flash (or XRAM) banks, but it doesn't 57 * CS4/ADD22 pin to the ADD22 function. We could do it for all targets
58 * hurt to do it on all targets (like TI's original code does), 58 * (not aware of any that need the pin to be CS4), but we strongly
59 * until and unless we encounter a target that uses the CS4 function. 59 * prefer to have a consistent execution environment between flashImage
60 * and ramImage, so let's only do this setting on those targets
61 * on which we do it in ../../loadtools/scripts/*.init (for fc-xram).
60 */ 62 */
63 #if CONFIG_TARGET_PIRELLI || CONFIG_TARGET_C156
61 ldr r1, =0xFFFEF006 64 ldr r1, =0xFFFEF006
62 mov r2, #0x0008 65 mov r2, #0x0008
63 strh r2, [r1] 66 strh r2, [r1]
67 #endif
64 /* we now have full access to all flash and RAM on the device */ 68 /* we now have full access to all flash and RAM on the device */
65 /* copy iram.text to where it's supposed to be */ 69 /* copy iram.text to where it's supposed to be */
66 ldr r8, =__iramtext_flash_addr 70 ldr r8, =__iramtext_flash_addr
67 ldr r9, =__iramtext_ram_addr 71 ldr r9, =__iramtext_ram_addr
68 ldr r10, =__iramtext_size 72 ldr r10, =__iramtext_size