summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/ata_sd_as3525.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-05-21 11:46:52 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-05-21 11:46:52 +0000
commit0f93ae5da0de8671521d9cd1cc532591fc0b6a91 (patch)
tree463bba6aa4d19377c8b9726c1a50150f6eda5554 /firmware/target/arm/as3525/ata_sd_as3525.c
parentc7b698119d7eaa90aacc39f32c2fa54b446141b6 (diff)
downloadrockbox-0f93ae5da0de8671521d9cd1cc532591fc0b6a91.tar.gz
rockbox-0f93ae5da0de8671521d9cd1cc532591fc0b6a91.zip
Sansa AMS: move OF size declaration in model specific config
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21008 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/ata_sd_as3525.c')
-rw-r--r--firmware/target/arm/as3525/ata_sd_as3525.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c
index 342be613c5..6d6b275fba 100644
--- a/firmware/target/arm/as3525/ata_sd_as3525.c
+++ b/firmware/target/arm/as3525/ata_sd_as3525.c
@@ -24,7 +24,7 @@
24 24
25/* TODO: Find the real capacity of >2GB models (will be useful for USB) */ 25/* TODO: Find the real capacity of >2GB models (will be useful for USB) */
26 26
27#include "config.h" /* for HAVE_MULTIVOLUME */ 27#include "config.h" /* for HAVE_MULTIVOLUME & AMS_OF_SIZE */
28#include "fat.h" 28#include "fat.h"
29#include "thread.h" 29#include "thread.h"
30#include "hotswap.h" 30#include "hotswap.h"
@@ -632,11 +632,7 @@ static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start,
632 632
633 /* skip SanDisk OF */ 633 /* skip SanDisk OF */
634 if (drive == INTERNAL_AS3525) 634 if (drive == INTERNAL_AS3525)
635#if defined(SANSA_E200V2) || defined(SANSA_FUZE) 635 start += AMS_OF_SIZE;
636 start += 0xf000;
637#else
638 start += 0x5000;
639#endif
640 636
641 mutex_lock(&sd_mtx); 637 mutex_lock(&sd_mtx);
642#ifndef BOOTLOADER 638#ifndef BOOTLOADER