From 0fa7f1ca3b8d15d730933e1ff62fe5f2158bb4ca Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Wed, 15 Apr 2009 22:24:17 +0200 Subject: [PATCH 1/2] Samsa AMS with 2MB SDRAM : use IRAM for core only (codecs are already totally in IRAM) --- firmware/export/config.h | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/firmware/export/config.h b/firmware/export/config.h index 04b6b22..ad93bf9 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -625,7 +625,8 @@ Lyre prototype 1*/ (((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \ defined(CPU_COLDFIRE) || /* Coldfire: core, plugins, codecs */ \ defined(CPU_PP) || /* PortalPlayer: core, plugins, codecs */ \ - (CONFIG_CPU == AS3525 && MEMORYSIZE > 2) || \ + (CONFIG_CPU == AS3525 && MEMORYSIZE > 2) || /* AS3525 +2MB: core, plugins, codecs */ \ + (CONFIG_CPU == AS3525 && MEMORYSIZE <= 2 && !defined(PLUGIN) && !defined(CODEC)) || /* AS3525 2MB:core only */ \ (CONFIG_CPU == PNX0101) || \ (CONFIG_CPU == S5L8700)) /* Samsung S5L8700: core, plugins, codecs */ #define ICODE_ATTR __attribute__ ((section(".icode"))) @@ -633,7 +634,7 @@ Lyre prototype 1*/ #define IDATA_ATTR __attribute__ ((section(".idata"))) #define IBSS_ATTR __attribute__ ((section(".ibss"))) #define USE_IRAM -#if CONFIG_CPU != SH7034 +#if CONFIG_CPU != SH7034 && (CONFIG_CPU != AS3525 || MEMORYSIZE > 2) #define PLUGIN_USE_IRAM #endif #if defined(CPU_ARM) -- 1.6.1.3