Index: trunk/softs/tsar_boot/src/spi.c
===================================================================
--- trunk/softs/tsar_boot/src/spi.c	(revision 592)
+++ trunk/softs/tsar_boot/src/spi.c	(revision 593)
@@ -96,4 +96,5 @@
 
     spi_ctrl0 = ioread32(&spi->ctrl);
+#ifdef IOC_USE_DMA
     if (count == 512 && ((int)buf & 0x3f) == 0) {
 	/* use DMA */
@@ -103,5 +104,7 @@
         _spi_wait_if_busy(spi);
 	i = count / 4;
-    } else {
+    } else
+#endif /* IOC_USE_DMA */
+    {
         /* switch to 128 bits words */
         spi_ctrl = (spi_ctrl0 & ~SPI_CTRL_CHAR_LEN_MASK) | 128;
