Changeset 6ecad1d in rtems


Ignore:
Timestamp:
Oct 27, 2015, 11:41:50 AM (4 years ago)
Author:
Martin Aberg <maberg@…>
Branches:
master
Children:
b109add
Parents:
a48bfc0f
git-author:
Martin Aberg <maberg@…> (10/27/15 11:41:50)
git-committer:
Daniel Hellstrom <daniel@…> (03/06/17 06:54:55)
Message:

leon, grspw_pkt: Preserve DMA address enable at start.

The EN bit (enable separate node address for this channel) is preserved when
grspw_dma_start is called. This preserves any previous address configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c

    ra48bfc0f r6ecad1d  
    22102210        struct grspw_dma_regs *dregs = dma->regs;
    22112211        unsigned int ctrl;
     2212        IRQFLAGS_TYPE irqflags;
    22122213
    22132214        if (dma->started)
     
    22652266        if (dma->cfg.tx_irq_en_cnt != 0)
    22662267                ctrl |= GRSPW_DMACTRL_TI;
     2268        SPIN_LOCK_IRQ(&dma->core->devlock, irqflags);
     2269        ctrl |= REG_READ(&dma->regs->ctrl) & GRSPW_DMACTRL_EN;
    22672270        REG_WRITE(&dregs->ctrl, ctrl);
     2271        SPIN_UNLOCK_IRQ(&dma->core->devlock, irqflags);
    22682272
    22692273        dma->started = 1; /* open up other DMA interfaces */
Note: See TracChangeset for help on using the changeset viewer.