diff options
Diffstat (limited to 'firmware/target/arm/as3525/ata_sd_as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/ata_sd_as3525.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c index 65df027c30..f00badba69 100644 --- a/firmware/target/arm/as3525/ata_sd_as3525.c +++ b/firmware/target/arm/as3525/ata_sd_as3525.c | |||
@@ -129,7 +129,13 @@ static volatile unsigned int transfer_error[NUM_VOLUMES]; | |||
129 | static unsigned char aligned_buffer[UNALIGNED_NUM_SECTORS* SECTOR_SIZE] __attribute__((aligned(32))); /* align on cache line size */ | 129 | static unsigned char aligned_buffer[UNALIGNED_NUM_SECTORS* SECTOR_SIZE] __attribute__((aligned(32))); /* align on cache line size */ |
130 | static unsigned char *uncached_buffer = UNCACHED_ADDR(&aligned_buffer[0]); | 130 | static unsigned char *uncached_buffer = UNCACHED_ADDR(&aligned_buffer[0]); |
131 | 131 | ||
132 | static inline void mci_delay(void) { int i = 0xffff; while(i--) ; } | 132 | static inline void mci_delay(void) |
133 | { | ||
134 | int i = 0xffff; | ||
135 | do { | ||
136 | asm volatile("nop\n"); | ||
137 | } while (--i); | ||
138 | } | ||
133 | 139 | ||
134 | #ifdef HAVE_HOTSWAP | 140 | #ifdef HAVE_HOTSWAP |
135 | static int sd1_oneshot_callback(struct timeout *tmo) | 141 | static int sd1_oneshot_callback(struct timeout *tmo) |