diff options
Diffstat (limited to 'apps/codecs/libmad/mad_iram.h')
-rw-r--r-- | apps/codecs/libmad/mad_iram.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/apps/codecs/libmad/mad_iram.h b/apps/codecs/libmad/mad_iram.h new file mode 100644 index 0000000000..b4dadd8a23 --- /dev/null +++ b/apps/codecs/libmad/mad_iram.h | |||
@@ -0,0 +1,52 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 Dave Chapman | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | /* Define how IRAM is used on the various targets. Note that this | ||
21 | file is included by both .c and .S files so must not contain any C | ||
22 | code. | ||
23 | */ | ||
24 | |||
25 | #ifndef _LIBMAD_IRAM_H | ||
26 | #define _LIBMAD_IRAM_H | ||
27 | |||
28 | #include "config.h" | ||
29 | |||
30 | /* Code performs slower in IRAM on PP502x and there is no space in | ||
31 | mpegplayer on the PP5002. S3C2440 doesn't have any IRAM available for | ||
32 | codecs */ | ||
33 | #if defined(CPU_PP502x) || (CONFIG_CPU == PP5002 && defined(MPEGPLAYER)) || \ | ||
34 | (CONFIG_CPU==S3C2440) | ||
35 | #define ICODE_SECTION_MPA_ARM .text | ||
36 | #define ICODE_ATTR_MPA_SYNTH | ||
37 | #else | ||
38 | #define ICODE_SECTION_MPA_ARM .icode | ||
39 | #define ICODE_ATTR_MPA_SYNTH ICODE_ATTR | ||
40 | #endif | ||
41 | |||
42 | #if CONFIG_CPU == S3C2440 | ||
43 | #define IBSS_SECTION_MPA_ARM .bss | ||
44 | #else | ||
45 | #define IBSS_SECTION_MPA_ARM .ibss | ||
46 | #endif | ||
47 | |||
48 | #ifndef ICONST_ATTR_MPA_HUFFMAN | ||
49 | #define ICONST_ATTR_MPA_HUFFMAN ICONST_ATTR | ||
50 | #endif | ||
51 | |||
52 | #endif /* MAD_IRAM_H */ | ||