diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-01-13 03:05:29 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-01-13 03:05:29 +0000 |
commit | 8b926e98f82a8b6ffccc40a65388b6bbcd1c2538 (patch) | |
tree | d4e2c1794138b589276e8f61a54580038a161c67 /rbutil/mkamsboot/dualboot/dualboot.S | |
parent | c2dae8742cdd9724fcd0189a762df684c0fed2bd (diff) |
Add Sansa Clip+ target to test mkamsboot
UNTESTED, could ver well brick your Clip+
If it works, booting should just be delayed by a small delay (perhaps
not noticeable)
Hopefully the Clipv2 checks will work for Clip+ and then we'll be able
to test the other Clipv2 code (LCD/button)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24219 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/mkamsboot/dualboot/dualboot.S')
-rw-r--r-- | rbutil/mkamsboot/dualboot/dualboot.S | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rbutil/mkamsboot/dualboot/dualboot.S b/rbutil/mkamsboot/dualboot/dualboot.S index 5210ba5160..fe1a64befb 100644 --- a/rbutil/mkamsboot/dualboot/dualboot.S +++ b/rbutil/mkamsboot/dualboot/dualboot.S @@ -21,7 +21,7 @@ .text - #if defined(SANSA_CLIPV2) +#if defined(SANSA_CLIPV2) || defined(SANSA_CLIPPLUS) .set RAM_SIZE, 0x100000 /* Use 1MB of SDRAM on v2 firmwares (bigger firmware) */ #else .set RAM_SIZE, 0x50000 /* Use full IRAM on v1 firmwares */ @@ -156,6 +156,12 @@ uclcopy: cmp r1, #0 /* C3 = #0 means button pressed */ beq boot_of +#elif defined(SANSA_CLIPPLUS) + /* TODO */ + mov r0, #0x500000 /* Approximately 5 seconds */ +1: subs r0, r0, #1 /* just to prove we are running */ + bne 1b + b boot_of /* branch to OF */ #elif defined(SANSA_C200V2) /* check for RIGHT on C6, should changed to LEFT as soon as it * known in which pin that is in order for consistency */ |