aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/s3c-idma.h
blob: 351c3c37751ded9a75b6ad3b98419b67683404cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * s3c-idma.h  --  I2S0's Internal Dma driver
 *
 * Copyright (c) 2010 Samsung Electronics Co. Ltd
 *	Jaswinder Singh <jassi.brar@samsung.com>
 *
 *  This program is free software; you can redistribute  it and/or modify it
 *  under  the terms of  the GNU General  Public License as published by the
 *  Free Software Foundation;  either version 2 of the  License, or (at your
 *  option) any later version.
 *
 */

#ifndef __S3C_IDMA_H_
#define __S3C_IDMA_H_

#ifdef CONFIG_ARCH_S5PC1XX /* S5PC100 */
#define MAX_LP_BUFF	(128 * 1024)
#define LP_DMA_PERIOD (105 * 1024)
#else
#define MAX_LP_BUFF	(160 * 1024)
#define LP_DMA_PERIOD (128 * 1024)
#endif

#define LP_TXBUFF_ADDR    (0xC0000000)
#define S5P_IISLVLINTMASK (0xf<<20)

/* dma_state */
#define LPAM_DMA_STOP    0
#define LPAM_DMA_START   1

extern struct snd_soc_platform_driver idma_soc_platform;
extern int i2s_trigger_stop;
extern bool audio_clk_gated ;
void s5p_idma_init(void *regs);

#endif /* __S3C_IDMA_H_ */