Skip to content
Snippets Groups Projects
Commit 7a1ac419 authored by Haiying Wang's avatar Haiying Wang Committed by Andrew Fleming-AFLEMING
Browse files

Enable L2 cache for MPC8568MDS board


The L2 cache size is 512KB for 8568, print out the correct informaiton.

Signed-off-by: default avatarHaiying Wang <Haiying.Wang@freescale.com>
parent 94c47fda
No related branches found
No related tags found
No related merge requests found
...@@ -247,7 +247,7 @@ int cpu_init_r(void) ...@@ -247,7 +247,7 @@ int cpu_init_r(void)
switch (cache_ctl & 0x30000000) { switch (cache_ctl & 0x30000000) {
case 0x20000000: case 0x20000000:
if (ver == SVR_8548 || ver == SVR_8548_E || if (ver == SVR_8548 || ver == SVR_8548_E ||
ver == SVR_8544) { ver == SVR_8544 || ver == SVR_8568_E) {
printf ("L2 cache 512KB:"); printf ("L2 cache 512KB:");
/* set L2E=1, L2I=1, & L2SRAM=0 */ /* set L2E=1, L2I=1, & L2SRAM=0 */
cache_ctl = 0xc0000000; cache_ctl = 0xc0000000;
......
...@@ -63,9 +63,9 @@ extern unsigned long get_clock_freq(void); ...@@ -63,9 +63,9 @@ extern unsigned long get_clock_freq(void);
/* /*
* These can be toggled for performance analysis, otherwise use default. * These can be toggled for performance analysis, otherwise use default.
*/ */
/*#define CONFIG_L2_CACHE*/ /* toggle L2 cache */ #define CONFIG_L2_CACHE /* toggle L2 cache */
#define CONFIG_BTB /* toggle branch predition */ #define CONFIG_BTB /* toggle branch predition */
#define CONFIG_ADDR_STREAMING /* toggle addr streaming */ #define CONFIG_ADDR_STREAMING /* toggle addr streaming */
/* /*
* Only possible on E500 Version 2 or newer cores. * Only possible on E500 Version 2 or newer cores.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment