~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to sound/soc/omap/abe/abe_ext.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * ALSA SoC OMAP ABE driver
3
 
 *
4
 
 * Author:      Laurent Le Faucheur <l-le-faucheur@ti.com>
5
 
 *      Liam Girdwood <lrg@slimlogic.co.uk>
6
 
 *
7
 
 * This program is free software; you can redistribute it and/or
8
 
 * modify it under the terms of the GNU General Public License
9
 
 * version 2 as published by the Free Software Foundation.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful, but
12
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
 
 * General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19
 
 * 02110-1301 USA
20
 
 */
 
2
 
 
3
  This file is provided under a dual BSD/GPLv2 license.  When using or
 
4
  redistributing this file, you may do so under either license.
 
5
 
 
6
  GPL LICENSE SUMMARY
 
7
 
 
8
  Copyright(c) 2010-2011 Texas Instruments Incorporated,
 
9
  All rights reserved.
 
10
 
 
11
  This program is free software; you can redistribute it and/or modify
 
12
  it under the terms of version 2 of the GNU General Public License as
 
13
  published by the Free Software Foundation.
 
14
 
 
15
  This program is distributed in the hope that it will be useful, but
 
16
  WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18
  General Public License for more details.
 
19
 
 
20
  You should have received a copy of the GNU General Public License
 
21
  along with this program; if not, write to the Free Software
 
22
  Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
 
23
  The full GNU General Public License is included in this distribution
 
24
  in the file called LICENSE.GPL.
 
25
 
 
26
  BSD LICENSE
 
27
 
 
28
  Copyright(c) 2010-2011 Texas Instruments Incorporated,
 
29
  All rights reserved.
 
30
 
 
31
  Redistribution and use in source and binary forms, with or without
 
32
  modification, are permitted provided that the following conditions
 
33
  are met:
 
34
 
 
35
    * Redistributions of source code must retain the above copyright
 
36
      notice, this list of conditions and the following disclaimer.
 
37
    * Redistributions in binary form must reproduce the above copyright
 
38
      notice, this list of conditions and the following disclaimer in
 
39
      the documentation and/or other materials provided with the
 
40
      distribution.
 
41
    * Neither the name of Texas Instruments Incorporated nor the names of
 
42
      its contributors may be used to endorse or promote products derived
 
43
      from this software without specific prior written permission.
 
44
 
 
45
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 
46
  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 
47
  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 
48
  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 
49
  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 
50
  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 
51
  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 
52
  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 
53
  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 
54
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 
55
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
56
 
 
57
*/
 
58
 
21
59
#ifndef _ABE_EXT_H_
22
60
#define _ABE_EXT_H_
23
 
/* Tuning is done on PC ? */
24
 
#define PC_SIMULATION 0
 
61
 
25
62
/*
26
63
 * OS DEPENDENT MMU CONFIGURATION
27
64
 */
28
 
#define _lock_enter
29
 
#define _lock_exit
30
65
#define ABE_PMEM_BASE_OFFSET_MPU        0xe0000
31
66
#define ABE_CMEM_BASE_OFFSET_MPU        0xa0000
32
67
#define ABE_SMEM_BASE_OFFSET_MPU        0xc0000
34
69
#define ABE_ATC_BASE_OFFSET_MPU         0xf1000
35
70
/* default base address for io_base */
36
71
#define ABE_DEFAULT_BASE_ADDRESS_L3 0x49000000L
37
 
/* base address used for L3/DMA access */
38
 
#define ABE_ATC_BASE_ADDRESS_L3 0x490F1000L
39
 
/* base address used for L4/MCU access */
40
 
#define ABE_ATC_BASE_ADDRESS_L4 0x401F1000L
41
 
/* 64kB as seen from DMA access */
42
 
#define ABE_DMEM_BASE_ADDRESS_L3 0x49080000L
43
 
/* 64kB as seen from MCU access */
44
 
#define ABE_DMEM_BASE_ADDRESS_L4 0x40180000L
45
 
/* 8kB as seen from MPU access */
46
 
#define ABE_PMEM_BASE_ADDRESS_MPU 0x490E0000L
47
 
/* 8kB */
48
 
#define ABE_CMEM_BASE_ADDRESS_MPU 0x490A0000L
49
 
/* 24kB */
50
 
#define ABE_SMEM_BASE_ADDRESS_MPU 0x490C0000L
51
 
/* 64kB */
52
 
#define ABE_DMEM_BASE_ADDRESS_MPU 0x49080000L
53
 
#define ABE_ATC_BASE_ADDRESS_MPU 0x490F1000L
 
72
#define ABE_DEFAULT_BASE_ADDRESS_L4 0x40100000L
 
73
#define ABE_DEFAULT_BASE_ADDRESS_DEFAULT ABE_DEFAULT_BASE_ADDRESS_L3
54
74
/*
55
75
 * HARDWARE AND PERIPHERAL DEFINITIONS
56
76
 */
74
94
#define ABE_DMASTATUS_RAW 0x84
75
95
#define EVENT_GENERATOR_COUNTER 0x68
76
96
/* PLL output/desired sampling rate = (32768 * 6000)/96000 */
77
 
#define EVENT_GENERATOR_COUNTER_DEFAULT 2048
 
97
#define EVENT_GENERATOR_COUNTER_DEFAULT (2048-1)
78
98
/* PLL output/desired sampling rate = (32768 * 6000)/88200 */
79
 
#define EVENT_GENERATOR_COUNTER_44100 2228
 
99
#define EVENT_GENERATOR_COUNTER_44100 (2228-1)
80
100
/* start / stop the EVENT generator */
81
101
#define EVENT_GENERATOR_START 0x6C
82
102
#define EVENT_GENERATOR_ON 1