summaryrefslogtreecommitdiff
path: root/firmware/rolo.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/rolo.c')
-rw-r--r--firmware/rolo.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c
index 846cebff6f..057c4820eb 100644
--- a/firmware/rolo.c
+++ b/firmware/rolo.c
@@ -32,8 +32,10 @@
32 32
33#if !defined(IRIVER_IFP7XX_SERIES) && \ 33#if !defined(IRIVER_IFP7XX_SERIES) && \
34 (CONFIG_CPU != PP5002) && !defined(IRIVER_H10) && \ 34 (CONFIG_CPU != PP5002) && !defined(IRIVER_H10) && \
35 !defined(IRIVER_H10_5GB) && (CONFIG_CPU != S3C2440) 35 !defined(IRIVER_H10_5GB) && (CONFIG_CPU != S3C2440) && \
36 !defined(SANSA_E200)
36/* FIX: this doesn't work on iFP, 3rd Gen ipods, or H10 yet */ 37/* FIX: this doesn't work on iFP, 3rd Gen ipods, or H10 yet */
38/* TODO: Test on the Sansa */
37 39
38#define IRQ0_EDGE_TRIGGER 0x80 40#define IRQ0_EDGE_TRIGGER 0x80
39 41
@@ -111,7 +113,7 @@ int rolo_load(const char* filename)
111{ 113{
112 int fd; 114 int fd;
113 long length; 115 long length;
114#if defined(CPU_COLDFIRE) || (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) 116#if defined(CPU_COLDFIRE) || defined(CPU_PP)
115 int i; 117 int i;
116 unsigned long checksum,file_checksum; 118 unsigned long checksum,file_checksum;
117#else 119#else
@@ -141,7 +143,7 @@ int rolo_load(const char* filename)
141 143
142 length = filesize(fd) - FIRMWARE_OFFSET_FILE_DATA; 144 length = filesize(fd) - FIRMWARE_OFFSET_FILE_DATA;
143 145
144#if defined(CPU_COLDFIRE) || (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) 146#if defined(CPU_COLDFIRE) || defined(CPU_PP)
145 /* Read and save checksum */ 147 /* Read and save checksum */
146 lseek(fd, FIRMWARE_OFFSET_FILE_CRC, SEEK_SET); 148 lseek(fd, FIRMWARE_OFFSET_FILE_CRC, SEEK_SET);
147 if (read(fd, &file_checksum, 4) != 4) { 149 if (read(fd, &file_checksum, 4) != 4) {