linux/arch/arm/plat-samsung/include/plat/dma-pl330.h
<<
>>
Prefs
   1/*
   2 * Copyright (C) 2010 Samsung Electronics Co. Ltd.
   3 *      Jaswinder Singh <jassi.brar@samsung.com>
   4 *
   5 * This program is free software; you can redistribute it and/or modify
   6 * it under the terms of the GNU General Public License as published by
   7 * the Free Software Foundation; either version 2 of the License, or
   8 * (at your option) any later version.
   9 */
  10
  11#ifndef __DMA_PL330_H_
  12#define __DMA_PL330_H_ __FILE__
  13
  14/*
  15 * PL330 can assign any channel to communicate with
  16 * any of the peripherals attched to the DMAC.
  17 * For the sake of consistency across client drivers,
  18 * We keep the channel names unchanged and only add
  19 * missing peripherals are added.
  20 * Order is not important since DMA PL330 API driver
  21 * use these just as IDs.
  22 */
  23enum dma_ch {
  24        DMACH_UART0_RX = 0,
  25        DMACH_UART0_TX,
  26        DMACH_UART1_RX,
  27        DMACH_UART1_TX,
  28        DMACH_UART2_RX,
  29        DMACH_UART2_TX,
  30        DMACH_UART3_RX,
  31        DMACH_UART3_TX,
  32        DMACH_UART4_RX,
  33        DMACH_UART4_TX,
  34        DMACH_UART5_RX,
  35        DMACH_UART5_TX,
  36        DMACH_USI_RX,
  37        DMACH_USI_TX,
  38        DMACH_IRDA,
  39        DMACH_I2S0_RX,
  40        DMACH_I2S0_TX,
  41        DMACH_I2S0S_TX,
  42        DMACH_I2S1_RX,
  43        DMACH_I2S1_TX,
  44        DMACH_I2S2_RX,
  45        DMACH_I2S2_TX,
  46        DMACH_SPI0_RX,
  47        DMACH_SPI0_TX,
  48        DMACH_SPI1_RX,
  49        DMACH_SPI1_TX,
  50        DMACH_SPI2_RX,
  51        DMACH_SPI2_TX,
  52        DMACH_AC97_MICIN,
  53        DMACH_AC97_PCMIN,
  54        DMACH_AC97_PCMOUT,
  55        DMACH_EXTERNAL,
  56        DMACH_PWM,
  57        DMACH_SPDIF,
  58        DMACH_HSI_RX,
  59        DMACH_HSI_TX,
  60        DMACH_PCM0_TX,
  61        DMACH_PCM0_RX,
  62        DMACH_PCM1_TX,
  63        DMACH_PCM1_RX,
  64        DMACH_PCM2_TX,
  65        DMACH_PCM2_RX,
  66        DMACH_MSM_REQ3,
  67        DMACH_MSM_REQ2,
  68        DMACH_MSM_REQ1,
  69        DMACH_MSM_REQ0,
  70        DMACH_SLIMBUS0_RX,
  71        DMACH_SLIMBUS0_TX,
  72        DMACH_SLIMBUS0AUX_RX,
  73        DMACH_SLIMBUS0AUX_TX,
  74        DMACH_SLIMBUS1_RX,
  75        DMACH_SLIMBUS1_TX,
  76        DMACH_SLIMBUS2_RX,
  77        DMACH_SLIMBUS2_TX,
  78        DMACH_SLIMBUS3_RX,
  79        DMACH_SLIMBUS3_TX,
  80        DMACH_SLIMBUS4_RX,
  81        DMACH_SLIMBUS4_TX,
  82        DMACH_SLIMBUS5_RX,
  83        DMACH_SLIMBUS5_TX,
  84        DMACH_MIPI_HSI0,
  85        DMACH_MIPI_HSI1,
  86        DMACH_MIPI_HSI2,
  87        DMACH_MIPI_HSI3,
  88        DMACH_MIPI_HSI4,
  89        DMACH_MIPI_HSI5,
  90        DMACH_MIPI_HSI6,
  91        DMACH_MIPI_HSI7,
  92        DMACH_DISP1,
  93        DMACH_MTOM_0,
  94        DMACH_MTOM_1,
  95        DMACH_MTOM_2,
  96        DMACH_MTOM_3,
  97        DMACH_MTOM_4,
  98        DMACH_MTOM_5,
  99        DMACH_MTOM_6,
 100        DMACH_MTOM_7,
 101        /* END Marker, also used to denote a reserved channel */
 102        DMACH_MAX,
 103};
 104
 105struct s3c2410_dma_client {
 106        char    *name;
 107};
 108
 109static inline bool samsung_dma_has_circular(void)
 110{
 111        return true;
 112}
 113
 114static inline bool samsung_dma_is_dmadev(void)
 115{
 116        return true;
 117}
 118
 119#include <plat/dma-ops.h>
 120
 121#endif  /* __DMA_PL330_H_ */
 122