From 0f93ae5da0de8671521d9cd1cc532591fc0b6a91 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Thu, 21 May 2009 11:46:52 +0000 Subject: 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 --- firmware/target/arm/as3525/ata_sd_as3525.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'firmware/target/arm/as3525/ata_sd_as3525.c') 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 @@ /* TODO: Find the real capacity of >2GB models (will be useful for USB) */ -#include "config.h" /* for HAVE_MULTIVOLUME */ +#include "config.h" /* for HAVE_MULTIVOLUME & AMS_OF_SIZE */ #include "fat.h" #include "thread.h" #include "hotswap.h" @@ -632,11 +632,7 @@ static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start, /* skip SanDisk OF */ if (drive == INTERNAL_AS3525) -#if defined(SANSA_E200V2) || defined(SANSA_FUZE) - start += 0xf000; -#else - start += 0x5000; -#endif + start += AMS_OF_SIZE; mutex_lock(&sd_mtx); #ifndef BOOTLOADER -- cgit v1.2.3