blob: 495aa6907cbce23f56528e00629a087b84ecef99 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Hebbar, Gururaja896f66b2012-08-27 18:56:41 +05302/*
3 * TI DaVinci Audio definitions
4 */
5#ifndef __ASM_ARCH_DAVINCI_ASP_H
6#define __ASM_ARCH_DAVINCI_ASP_H
7
8/* Bases of dm644x and dm355 register banks */
9#define DAVINCI_ASP0_BASE 0x01E02000
10#define DAVINCI_ASP1_BASE 0x01E04000
11
12/* Bases of dm365 register banks */
13#define DAVINCI_DM365_ASP0_BASE 0x01D02000
14
15/* Bases of dm646x register banks */
16#define DAVINCI_DM646X_MCASP0_REG_BASE 0x01D01000
17#define DAVINCI_DM646X_MCASP1_REG_BASE 0x01D01800
18
19/* Bases of da850/da830 McASP0 register banks */
20#define DAVINCI_DA8XX_MCASP0_REG_BASE 0x01D00000
21
22/* Bases of da830 McASP1 register banks */
23#define DAVINCI_DA830_MCASP1_REG_BASE 0x01D04000
24
Peter Ujfalusi3775c312015-03-12 10:06:28 +020025/* Bases of da830 McASP2 register banks */
26#define DAVINCI_DA830_MCASP2_REG_BASE 0x01D08000
27
Hebbar, Gururaja896f66b2012-08-27 18:56:41 +053028/* EDMA channels of dm644x and dm355 */
29#define DAVINCI_DMA_ASP0_TX 2
30#define DAVINCI_DMA_ASP0_RX 3
31#define DAVINCI_DMA_ASP1_TX 8
32#define DAVINCI_DMA_ASP1_RX 9
33
34/* EDMA channels of dm646x */
35#define DAVINCI_DM646X_DMA_MCASP0_AXEVT0 6
36#define DAVINCI_DM646X_DMA_MCASP0_AREVT0 9
37#define DAVINCI_DM646X_DMA_MCASP1_AXEVT1 12
38
39/* EDMA channels of da850/da830 McASP0 */
40#define DAVINCI_DA8XX_DMA_MCASP0_AREVT 0
41#define DAVINCI_DA8XX_DMA_MCASP0_AXEVT 1
42
43/* EDMA channels of da830 McASP1 */
44#define DAVINCI_DA830_DMA_MCASP1_AREVT 2
45#define DAVINCI_DA830_DMA_MCASP1_AXEVT 3
46
Peter Ujfalusi3775c312015-03-12 10:06:28 +020047/* EDMA channels of da830 McASP2 */
48#define DAVINCI_DA830_DMA_MCASP2_AREVT 4
49#define DAVINCI_DA830_DMA_MCASP2_AXEVT 5
50
Hebbar, Gururaja896f66b2012-08-27 18:56:41 +053051/* Interrupts */
52#define DAVINCI_ASP0_RX_INT IRQ_MBRINT
53#define DAVINCI_ASP0_TX_INT IRQ_MBXINT
54#define DAVINCI_ASP1_RX_INT IRQ_MBRINT
55#define DAVINCI_ASP1_TX_INT IRQ_MBXINT
56
57#endif /* __ASM_ARCH_DAVINCI_ASP_H */