summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/ata_sd_as3525.c
diff options
context:
space:
mode:
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, 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];
129static unsigned char aligned_buffer[UNALIGNED_NUM_SECTORS* SECTOR_SIZE] __attribute__((aligned(32))); /* align on cache line size */ 129static unsigned char aligned_buffer[UNALIGNED_NUM_SECTORS* SECTOR_SIZE] __attribute__((aligned(32))); /* align on cache line size */
130static unsigned char *uncached_buffer = UNCACHED_ADDR(&aligned_buffer[0]); 130static unsigned char *uncached_buffer = UNCACHED_ADDR(&aligned_buffer[0]);
131 131
132static inline void mci_delay(void) { int i = 0xffff; while(i--) ; } 132static 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
135static int sd1_oneshot_callback(struct timeout *tmo) 141static int sd1_oneshot_callback(struct timeout *tmo)