1. 28 8月, 2017 2 次提交
    • A
      dmaengine: qcom: bam_dma: wrapper functions for command descriptor · dfebb055
      Abhishek Sahu 提交于
      QCOM BAM also supports command descriptor which allows the SW to
      create descriptors of type command which does not generate any
      data transmissions but configures registers in the peripheral.
      In command descriptor the 32bit address point to the start of
      the command block which holds the command elements and the
      16bit size define the size of the command block.
      
      Each Command Element is structured by 4 words:
          Write command: address + cmd
                         register data
                         register mask
                         reserved
      
          Read command: address + cmd
                        read data result address,
                        reserved
                        reserved
      
      This patch creates a new header file for BAM driver which contains the
      structures and wrapper functions for command descriptor. This file will
      be used by different QCOM peripheral drivers for forming the command
      descriptor
      Signed-off-by: NAbhishek Sahu <absahu@codeaurora.org>
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      dfebb055
    • A
      dmaengine: add DMA_PREP_CMD for non-Data descriptors. · 3e00ab4a
      Abhishek Sahu 提交于
      Some of the DMA controllers are capable of issuing the commands
      to peripheral by the DMA. These commands can be list of register
      reads/writes and its different from normal data reads/writes.
      This patch adds new flag DMA_PREP_CMD in DMA API which tells
      the driver that the data passed to DMA API is command data
      and DMA controller driver will form descriptor in the required
      format.
      
      This flag can be used by any DMA controller driver which requires
      the descriptor in different format for non-Data descriptors.
      Signed-off-by: NAbhishek Sahu <absahu@codeaurora.org>
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      3e00ab4a
  2. 15 7月, 2017 2 次提交
  3. 14 7月, 2017 20 次提交
  4. 13 7月, 2017 16 次提交