Ignore:
Timestamp:
Dec 5, 2013, 5:44:14 PM (11 years ago)
Author:
bouyer
Message:

Really use DMA only if IOC_USE_DMA is defined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/src/spi.c

    r590 r593  
    9696
    9797    spi_ctrl0 = ioread32(&spi->ctrl);
     98#ifdef IOC_USE_DMA
    9899    if (count == 512 && ((int)buf & 0x3f) == 0) {
    99100        /* use DMA */
     
    103104        _spi_wait_if_busy(spi);
    104105        i = count / 4;
    105     } else {
     106    } else
     107#endif /* IOC_USE_DMA */
     108    {
    106109        /* switch to 128 bits words */
    107110        spi_ctrl = (spi_ctrl0 & ~SPI_CTRL_CHAR_LEN_MASK) | 128;
Note: See TracChangeset for help on using the changeset viewer.