forked from len0rd/rockbox
Make the codecs use more IRAM on S5L870x, as we have plenty of it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23594 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cc4d92c270
commit
099df2fb71
4 changed files with 7 additions and 3 deletions
|
@ -54,6 +54,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
|
||||||
#define ICODE_SECTION_DEMAC_ARM .text
|
#define ICODE_SECTION_DEMAC_ARM .text
|
||||||
#define ICODE_ATTR_DEMAC
|
#define ICODE_ATTR_DEMAC
|
||||||
#define IBSS_ATTR_DEMAC_INSANEBUF
|
#define IBSS_ATTR_DEMAC_INSANEBUF
|
||||||
|
#elif defined(CPU_S5L870X)
|
||||||
|
#define ICODE_SECTION_DEMAC_ARM .icode
|
||||||
|
#define ICODE_ATTR_DEMAC ICODE_ATTR
|
||||||
|
#define IBSS_ATTR_DEMAC_INSANEBUF IBSS_ATTR
|
||||||
#else
|
#else
|
||||||
#define ICODE_SECTION_DEMAC_ARM .text
|
#define ICODE_SECTION_DEMAC_ARM .text
|
||||||
#define ICODE_ATTR_DEMAC
|
#define ICODE_ATTR_DEMAC
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
#define IRAM_IBSS_SIZE 37376
|
#define IRAM_IBSS_SIZE 37376
|
||||||
|
|
||||||
/* Define CPU of large IRAM (PP5022/5024) */
|
/* Define CPU of large IRAM (PP5022/5024) */
|
||||||
#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024)
|
#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X)
|
||||||
/* PCM_BUFFER : 32768 byte (4096*2*4 or 2048*4*4) *
|
/* PCM_BUFFER : 32768 byte (4096*2*4 or 2048*4*4) *
|
||||||
* WINDOW_LOOKUP : 9216 Byte (256*4 + 2048*4) *
|
* WINDOW_LOOKUP : 9216 Byte (256*4 + 2048*4) *
|
||||||
* TOTAL : 41984 */
|
* TOTAL : 41984 */
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
/*define IRAM for targets with 48k/80k IRAM split*/
|
/*define IRAM for targets with 48k/80k IRAM split*/
|
||||||
#ifndef IBSS_ATTR_WMA_LARGE_IRAM
|
#ifndef IBSS_ATTR_WMA_LARGE_IRAM
|
||||||
#if (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024)
|
#if (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X)
|
||||||
/* PP5022/24 and MCF5250 have 128KB of IRAM, but only PP5022+ have 80KB allocated for codecs */
|
/* PP5022/24 and MCF5250 have 128KB of IRAM, but only PP5022+ have 80KB allocated for codecs */
|
||||||
#define IBSS_ATTR_WMA_LARGE_IRAM IBSS_ATTR
|
#define IBSS_ATTR_WMA_LARGE_IRAM IBSS_ATTR
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -58,7 +58,7 @@ static unsigned char mad_main_data[MAD_BUFFER_MDLEN];
|
||||||
is for Coldfire. */
|
is for Coldfire. */
|
||||||
|
|
||||||
/* 4608 bytes */
|
/* 4608 bytes */
|
||||||
#ifdef CPU_COLDFIRE
|
#if defined(CPU_COLDFIRE) || defined(CPU_S5L870X)
|
||||||
static mad_fixed_t mad_frame_overlap[2][32][18] IBSS_ATTR;
|
static mad_fixed_t mad_frame_overlap[2][32][18] IBSS_ATTR;
|
||||||
#else
|
#else
|
||||||
static mad_fixed_t mad_frame_overlap[2][32][18];
|
static mad_fixed_t mad_frame_overlap[2][32][18];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue