Rockbox Development > New Ports
SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
ranma:
--- Quote from: funman on March 03, 2010, 07:15:42 PM ---CGU_PERI &= ~0x7f should be alright for i2c, I am not too sure about DBOP since now we run it at 62MHz. Perhaps we'll need to modify the timing registers.
--- End quote ---
Bootup status on CGU_PERI is already 0x0f810000 (after the 'enable GPIO clock code'),
so &= ~0x7f should be unecessary, but can't hurt. :)
I added 'infinite loop if right pressed' to my bootloader to verify this:
--- Code: ---> halt
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x60000053 pc: 0x00000084
MMU: disabled, D-Cache: disabled, I-Cache: disabled
> arm disassemble 0x70 6
0x00000070 0xe59f0164 LDR r0, [r15, #0x164]
0x00000074 0xe3a01000 MOV r1, #0x0
0x00000078 0xe5801400 STR r1, [r0, #0x400]
0x0000007c 0xe5901100 LDR r1, [r0, #0x100]
0x00000080 0xe3510000 CMP r1, #0x0
0x00000084 0x0afffffe BEQ 0x00000084
> reg r0
r0 (/32): 0xC80D0000
> mdw phys 0xC80F0000 0x20
0xc80f0000: 00002630 00006a2f 00000000 00000008 00000051 0f810000 0000010d 00000011
0xc80f0020: 00000001 00000001 00000020 00000020 000000cd 00000191 00000000 00000000
0xc80f0040: 00002630 00006a2f 00000000 00000008 00000051 0f810000 0000010d 00000011
0xc80f0060: 00000001 00000000 00000020 00000020 000000cd 00000191 00000000 00000000
--- End code ---
funman:
Can you post a patch (without DBOP modifications since it's unrelated) on flyspray so we can test on each model before committing ?
ranma:
--- Quote from: funman on March 07, 2010, 07:55:14 PM ---Can you post a patch (without DBOP modifications since it's unrelated) on flyspray so we can test on each model before committing ?
--- End quote ---
Here you go:
http://www.rockbox.org/tracker/task/11085
http://www.rockbox.org/tracker/task/11085?getfile=21542
Tested on my C240v2.
funman:
thanks! i committed it for c200v2 only, I'll try on my devices so we can remove the USB pin and use this code on all devices.
mc2739:
--- Quote from: funman on March 09, 2010, 11:31:34 AM ---thanks! i committed it for c200v2 only, I'll try on my devices so we can remove the USB pin and use this code on all devices.
--- End quote ---
Tested on e200v2 - no problems noted
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version