aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/include
diff options
context:
space:
mode:
authorChaithrika U S <chaithrika@ti.com>2009-08-11 17:01:59 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-08-26 04:55:52 -0400
commite33ef5e3b368b31705d3024ee6a326f2a85a78fb (patch)
treed42ede5148b7c4dd0a9245d12eaff33d46e2302f /arch/arm/mach-davinci/include
parent5a8d5441f4aac3ef0478d5de723422304c611926 (diff)
davinci: Audio support for DA830 EVM
Define resources for McASP1 used on DA830/OMAP-L137 EVM, add platform device defintion, initialization function. Additionally, this patch also adds version and FIFO related members to platform data structure. Signed-off-by: Chaithrika U S <chaithrika@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/include')
-rw-r--r--arch/arm/mach-davinci/include/mach/asp.h15
-rw-r--r--arch/arm/mach-davinci/include/mach/da8xx.h3
2 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/asp.h b/arch/arm/mach-davinci/include/mach/asp.h
index cdf1f4442330..f3c97ac3425c 100644
--- a/arch/arm/mach-davinci/include/mach/asp.h
+++ b/arch/arm/mach-davinci/include/mach/asp.h
@@ -15,6 +15,9 @@
15#define DAVINCI_DM646X_MCASP0_REG_BASE 0x01D01000 15#define DAVINCI_DM646X_MCASP0_REG_BASE 0x01D01000
16#define DAVINCI_DM646X_MCASP1_REG_BASE 0x01D01800 16#define DAVINCI_DM646X_MCASP1_REG_BASE 0x01D01800
17 17
18/* Bases of da830 McASP1 register banks */
19#define DAVINCI_DA830_MCASP1_REG_BASE 0x01D04000
20
18/* EDMA channels of dm644x and dm355 */ 21/* EDMA channels of dm644x and dm355 */
19#define DAVINCI_DMA_ASP0_TX 2 22#define DAVINCI_DMA_ASP0_TX 2
20#define DAVINCI_DMA_ASP0_RX 3 23#define DAVINCI_DMA_ASP0_RX 3
@@ -26,6 +29,10 @@
26#define DAVINCI_DM646X_DMA_MCASP0_AREVT0 9 29#define DAVINCI_DM646X_DMA_MCASP0_AREVT0 9
27#define DAVINCI_DM646X_DMA_MCASP1_AXEVT1 12 30#define DAVINCI_DM646X_DMA_MCASP1_AXEVT1 12
28 31
32/* EDMA channels of da830 McASP1 */
33#define DAVINCI_DA830_DMA_MCASP1_AREVT 2
34#define DAVINCI_DA830_DMA_MCASP1_AXEVT 3
35
29/* Interrupts */ 36/* Interrupts */
30#define DAVINCI_ASP0_RX_INT IRQ_MBRINT 37#define DAVINCI_ASP0_RX_INT IRQ_MBRINT
31#define DAVINCI_ASP0_TX_INT IRQ_MBXINT 38#define DAVINCI_ASP0_TX_INT IRQ_MBXINT
@@ -43,6 +50,14 @@ struct snd_platform_data {
43 u8 op_mode; 50 u8 op_mode;
44 u8 num_serializer; 51 u8 num_serializer;
45 u8 *serial_dir; 52 u8 *serial_dir;
53 u8 version;
54 u8 txnumevt;
55 u8 rxnumevt;
56};
57
58enum {
59 MCASP_VERSION_1 = 0, /* DM646x */
60 MCASP_VERSION_2, /* DA8xx/OMAPL1x */
46}; 61};
47 62
48#define INACTIVE_MODE 0 63#define INACTIVE_MODE 0
diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h b/arch/arm/mach-davinci/include/mach/da8xx.h
index a8cb5709848d..30c5c407ea85 100644
--- a/arch/arm/mach-davinci/include/mach/da8xx.h
+++ b/arch/arm/mach-davinci/include/mach/da8xx.h
@@ -15,6 +15,7 @@
15#include <mach/edma.h> 15#include <mach/edma.h>
16#include <mach/i2c.h> 16#include <mach/i2c.h>
17#include <mach/emac.h> 17#include <mach/emac.h>
18#include <mach/asp.h>
18 19
19/* 20/*
20 * The cp_intc interrupt controller for the da8xx isn't in the same 21 * The cp_intc interrupt controller for the da8xx isn't in the same
@@ -65,6 +66,7 @@ int da8xx_register_edma(void);
65int da8xx_register_i2c(int instance, struct davinci_i2c_platform_data *pdata); 66int da8xx_register_i2c(int instance, struct davinci_i2c_platform_data *pdata);
66int da8xx_register_watchdog(void); 67int da8xx_register_watchdog(void);
67int da8xx_register_emac(void); 68int da8xx_register_emac(void);
69void __init da8xx_init_mcasp(int id, struct snd_platform_data *pdata);
68 70
69extern struct platform_device da8xx_serial_device; 71extern struct platform_device da8xx_serial_device;
70extern struct emac_platform_data da8xx_emac_pdata; 72extern struct emac_platform_data da8xx_emac_pdata;
@@ -100,6 +102,7 @@ extern const short da850_uart2_pins[];
100extern const short da850_i2c0_pins[]; 102extern const short da850_i2c0_pins[];
101extern const short da850_i2c1_pins[]; 103extern const short da850_i2c1_pins[];
102extern const short da850_cpgmac_pins[]; 104extern const short da850_cpgmac_pins[];
105extern const short da850_mcasp_pins[];
103 106
104int da8xx_pinmux_setup(const short pins[]); 107int da8xx_pinmux_setup(const short pins[]);
105 108