summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-10-31 21:25:04 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-10-31 21:25:04 +0000
commit19d1cacb1a63c306d842f81127d382512c49a062 (patch)
treebac051d18aae2c9f201744890177e0021e5269be /bootloader
parent3aa58328080ab9a254d9f2329696fa4309a30d50 (diff)
downloadrockbox-19d1cacb1a63c306d842f81127d382512c49a062.tar.gz
rockbox-19d1cacb1a63c306d842f81127d382512c49a062.tar.bz2
rockbox-19d1cacb1a63c306d842f81127d382512c49a062.zip
cleanup storage defines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18950 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/main-pp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bootloader/main-pp.c b/bootloader/main-pp.c
index 5e20142a59..c1aad5ce11 100644
--- a/bootloader/main-pp.c
+++ b/bootloader/main-pp.c
@@ -80,7 +80,7 @@ unsigned char *loadbuffer = (unsigned char *)DRAM_START;
char version[] = APPSVERSION;
/* Locations and sizes in hidden partition on Sansa */
-#if defined(HAVE_ATA_SD)
+#if (CONFIG_STORAGE & STORAGE_SD)
#define PPMI_SECTOR_OFFSET 1024
#define PPMI_SECTORS 1
#define MI4_HEADER_SECTORS 1
@@ -361,7 +361,7 @@ int load_mi4(unsigned char* buf, char* firmware, unsigned int buffer_size)
return EOK;
}
-#if defined(HAVE_ATA_SD)
+#if (CONFIG_STORAGE & STORAGE_SD)
/* Load mi4 firmware from a hidden disk partition */
int load_mi4_part(unsigned char* buf, struct partinfo* pinfo,
unsigned int buffer_size, bool disable_rebuild)
@@ -506,7 +506,7 @@ void* main(void)
printf(MODEL_NAME);
i=ata_init();
-#if !defined(HAVE_ATA_SD)
+#if !(CONFIG_STORAGE & STORAGE_SD)
if (i==0) {
identify_info=ata_get_identify();
/* Show model */
@@ -550,7 +550,7 @@ void* main(void)
*/
printf("Loading original firmware...");
-#if defined(HAVE_ATA_SD)
+#if (CONFIG_STORAGE & STORAGE_SD)
/* First try a (hidden) firmware partition */
printf("Trying firmware partition");
pinfo = disk_partinfo(1);