# HG changeset patch # User Mychaela Falconia # Date 1513979459 0 # Node ID 452ea81450e1b463283ea69dc68819dc9717da98 # Parent 9ee2d1d91f7eeaf43e4788fa060cba4643f192be pirelli/fw-disasm: more l1_cust stuff diff -r 9ee2d1d91f7e -r 452ea81450e1 pirelli/fw-disasm --- a/pirelli/fw-disasm Fri Dec 22 06:10:26 2017 +0000 +++ b/pirelli/fw-disasm Fri Dec 22 21:50:59 2017 +0000 @@ -918,10 +918,37 @@ IRAM data: +0x801550: beginning of the .bss section from the l1_cust module + 0x801550: rf +0x801734: adc_cal (offset matches TCS211) +0x801758: temperature (ditto) +0x801964: ser_cfg_info (moved here, not in TCS211) +0x801ac8: adc IRAM code: +; default adc_cal table loaded by Pirelli's get_cal_from_nvmem() + + 83c1d0: 1ac2 + 83c1d2: 222e + 83c1d4: 1b58 + 83c1d6: 1b58 + 83c1d8: 1b58 + 83c1da: 1b58 + 83c1dc: 1b58 + 83c1de: 0100 + 83c1e0: 1b58 + 83c1e2: 0000 + 83c1e4: 0000 + 83c1e6: 0000 + 83c1e8: 0000 + 83c1ea: 0000 + 83c1ec: 0000 + 83c1ee: 0000 + 83c1f0: 0000 + 83c1f2: 0000 + $Cust_Init_Layer1: 83ca64: b500 push {lr} 83ca66: b084 sub sp, #16 ; 0x10 @@ -1033,3 +1060,41 @@ 83cb44: bc04 pop {r2} 83cb46: 4690 mov r8, r2 83cb48: bdf0 pop {r4, r5, r6, r7, pc} + 83cb4a: 46c0 nop (mov r8, r8) + + 83cb4c: 008016ec + +$get_cal_from_nvmem: + 83cb50: b530 push {r4, r5, lr} + 83cb52: 1c0c add r4, r1, #0 + 83cb54: 1c05 add r5, r0, #0 + 83cb56: 2a01 cmp r2, #1 + 83cb58: d00e beq 0x83cb78 + 83cb5a: 2a02 cmp r2, #2 + 83cb5c: d118 bne 0x83cb90 + 83cb5e: a0c7 add r0, pc, #796 ; 0x31c + 83cb60: 1c29 add r1, r5, #0 + 83cb62: 1c22 add r2, r4, #0 + 83cb64: f707 fd98 bl 0x744698 + 83cb68: 2800 cmp r0, #0 + 83cb6a: d511 bpl 0x83cb90 + 83cb6c: 4842 ldr r0, =0x801964 ; via 0x83cc78 + 83cb6e: 2152 mov r1, #82 ; 0x52 + 83cb70: 7001 strb r1, [r0, #0] + 83cb72: 2144 mov r1, #68 ; 0x44 + 83cb74: 7041 strb r1, [r0, #1] + 83cb76: bd30 pop {r4, r5, pc} + 83cb78: a0c4 add r0, pc, #784 ; 0x310 + 83cb7a: 1c29 add r1, r5, #0 + 83cb7c: 1c22 add r2, r4, #0 + 83cb7e: f707 fd8b bl 0x744698 + 83cb82: 2800 cmp r0, #0 + 83cb84: d504 bpl 0x83cb90 + 83cb86: 1c28 add r0, r5, #0 + 83cb88: 49c5 ldr r1, =0x83c1d0 ; via 0x83cea0 + 83cb8a: 1c22 add r2, r4, #0 + 83cb8c: f002 fe86 bl 0x83f89c ; C$MEMCPY + 83cb90: bd30 pop {r4, r5, pc} + 83cb92: 2000 mov r0, #0 + 83cb94: 4770 bx lr + 83cb96: 46c0 nop (mov r8, r8)