lkml.org 
[lkml]   [2018]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 06/14] dmaengine: dma-jz4780: Add support for the JZ4725B SoC
    On 03-07-18, 14:32, Paul Cercueil wrote:
    > The JZ4725B has one DMA core starring six DMA channels.
    > As for the JZ4770, each DMA channel's clock can be enabled with
    > a register write, the difference here being that once started, it
    > is not possible to turn it off.

    ok so disable for this, right..

    > @@ -204,6 +205,8 @@ static inline void jz4780_dma_chan_enable(struct jz4780_dma_dev *jzdma,
    > {
    > if (jzdma->version == ID_JZ4770)
    > jz4780_dma_ctrl_writel(jzdma, JZ_DMA_REG_DCKES, BIT(chn));
    > + else if (jzdma->version == ID_JZ4725B)
    > + jz4780_dma_ctrl_writel(jzdma, JZ_DMA_REG_DCKE, BIT(chn));

    but you are writing to a different register here..

    --
    ~Vinod

    \
     
     \ /
      Last update: 2018-07-09 19:15    [W:4.130 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site