forked from Minki/linux
c6ff132d42
A lot of header files are only used internally now, so they can be moved to mach-s3c, out of the visibility of drivers. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20200806182059.2431-40-krzk@kernel.org [krzk: Rebase and fixup leds-s3c24xx driver] Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
52 lines
1.2 KiB
C
52 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2003-2006 Simtec Electronics
|
|
* Ben Dooks <ben@simtec.co.uk>
|
|
*
|
|
* Samsung S3C24XX DMA support
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_DMA_H
|
|
#define __ASM_ARCH_DMA_H __FILE__
|
|
|
|
#include <linux/device.h>
|
|
|
|
/* We use `virtual` dma channels to hide the fact we have only a limited
|
|
* number of DMA channels, and not of all of them (dependent on the device)
|
|
* can be attached to any DMA source. We therefore let the DMA core handle
|
|
* the allocation of hardware channels to clients.
|
|
*/
|
|
|
|
enum dma_ch {
|
|
DMACH_XD0 = 0,
|
|
DMACH_XD1,
|
|
DMACH_SDI,
|
|
DMACH_SPI0,
|
|
DMACH_SPI1,
|
|
DMACH_UART0,
|
|
DMACH_UART1,
|
|
DMACH_UART2,
|
|
DMACH_TIMER,
|
|
DMACH_I2S_IN,
|
|
DMACH_I2S_OUT,
|
|
DMACH_PCM_IN,
|
|
DMACH_PCM_OUT,
|
|
DMACH_MIC_IN,
|
|
DMACH_USB_EP1,
|
|
DMACH_USB_EP2,
|
|
DMACH_USB_EP3,
|
|
DMACH_USB_EP4,
|
|
DMACH_UART0_SRC2, /* s3c2412 second uart sources */
|
|
DMACH_UART1_SRC2,
|
|
DMACH_UART2_SRC2,
|
|
DMACH_UART3, /* s3c2443 has extra uart */
|
|
DMACH_UART3_SRC2,
|
|
DMACH_SPI0_TX, /* s3c2443/2416/2450 hsspi0 */
|
|
DMACH_SPI0_RX, /* s3c2443/2416/2450 hsspi0 */
|
|
DMACH_SPI1_TX, /* s3c2443/2450 hsspi1 */
|
|
DMACH_SPI1_RX, /* s3c2443/2450 hsspi1 */
|
|
DMACH_MAX, /* the end entry */
|
|
};
|
|
|
|
#endif /* __ASM_ARCH_DMA_H */
|