Path: blob/master/arch/blackfin/mach-bf533/include/mach/mem_map.h
10820 views
/*1* BF533 memory map2*3* Copyright 2004-2009 Analog Devices Inc.4* Licensed under the GPL-2 or later.5*/67#ifndef __BFIN_MACH_MEM_MAP_H__8#define __BFIN_MACH_MEM_MAP_H__910#ifndef __BFIN_MEM_MAP_H__11# error "do not include mach/mem_map.h directly -- use asm/mem_map.h"12#endif1314/* Async Memory Banks */15#define ASYNC_BANK3_BASE 0x20300000 /* Async Bank 3 */16#define ASYNC_BANK3_SIZE 0x00100000 /* 1M */17#define ASYNC_BANK2_BASE 0x20200000 /* Async Bank 2 */18#define ASYNC_BANK2_SIZE 0x00100000 /* 1M */19#define ASYNC_BANK1_BASE 0x20100000 /* Async Bank 1 */20#define ASYNC_BANK1_SIZE 0x00100000 /* 1M */21#define ASYNC_BANK0_BASE 0x20000000 /* Async Bank 0 */22#define ASYNC_BANK0_SIZE 0x00100000 /* 1M */2324/* Boot ROM Memory */2526#define BOOT_ROM_START 0xEF00000027#define BOOT_ROM_LENGTH 0x4002829/* Level 1 Memory */3031#ifdef CONFIG_BFIN_ICACHE32#define BFIN_ICACHESIZE (16*1024)33#else34#define BFIN_ICACHESIZE (0*1024)35#endif3637/* Memory Map for ADSP-BF533 processors */3839#ifdef CONFIG_BF53340#define L1_CODE_START 0xFFA0000041#define L1_DATA_A_START 0xFF80000042#define L1_DATA_B_START 0xFF9000004344#ifdef CONFIG_BFIN_ICACHE45#define L1_CODE_LENGTH (0x14000 - 0x4000)46#else47#define L1_CODE_LENGTH 0x1400048#endif4950#ifdef CONFIG_BFIN_DCACHE5152#ifdef CONFIG_BFIN_DCACHE_BANKA53#define DMEM_CNTR (ACACHE_BSRAM | ENDCPLB | PORT_PREF0)54#define L1_DATA_A_LENGTH (0x8000 - 0x4000)55#define L1_DATA_B_LENGTH 0x800056#define BFIN_DCACHESIZE (16*1024)57#define BFIN_DSUPBANKS 158#else59#define DMEM_CNTR (ACACHE_BCACHE | ENDCPLB | PORT_PREF0)60#define L1_DATA_A_LENGTH (0x8000 - 0x4000)61#define L1_DATA_B_LENGTH (0x8000 - 0x4000)62#define BFIN_DCACHESIZE (32*1024)63#define BFIN_DSUPBANKS 264#endif6566#else67#define DMEM_CNTR (ASRAM_BSRAM | ENDCPLB | PORT_PREF0)68#define L1_DATA_A_LENGTH 0x800069#define L1_DATA_B_LENGTH 0x800070#define BFIN_DCACHESIZE (0*1024)71#define BFIN_DSUPBANKS 072#endif /*CONFIG_BFIN_DCACHE*/73#endif7475/* Memory Map for ADSP-BF532 processors */7677#ifdef CONFIG_BF53278#define L1_CODE_START 0xFFA0800079#define L1_DATA_A_START 0xFF80400080#define L1_DATA_B_START 0xFF9040008182#ifdef CONFIG_BFIN_ICACHE83#define L1_CODE_LENGTH (0xC000 - 0x4000)84#else85#define L1_CODE_LENGTH 0xC00086#endif8788#ifdef CONFIG_BFIN_DCACHE8990#ifdef CONFIG_BFIN_DCACHE_BANKA91#define DMEM_CNTR (ACACHE_BSRAM | ENDCPLB | PORT_PREF0)92#define L1_DATA_A_LENGTH (0x4000 - 0x4000)93#define L1_DATA_B_LENGTH 0x400094#define BFIN_DCACHESIZE (16*1024)95#define BFIN_DSUPBANKS 19697#else98#define DMEM_CNTR (ACACHE_BCACHE | ENDCPLB | PORT_PREF0)99#define L1_DATA_A_LENGTH (0x4000 - 0x4000)100#define L1_DATA_B_LENGTH (0x4000 - 0x4000)101#define BFIN_DCACHESIZE (32*1024)102#define BFIN_DSUPBANKS 2103#endif104105#else106#define DMEM_CNTR (ASRAM_BSRAM | ENDCPLB | PORT_PREF0)107#define L1_DATA_A_LENGTH 0x4000108#define L1_DATA_B_LENGTH 0x4000109#define BFIN_DCACHESIZE (0*1024)110#define BFIN_DSUPBANKS 0111#endif /*CONFIG_BFIN_DCACHE*/112#endif113114/* Memory Map for ADSP-BF531 processors */115116#ifdef CONFIG_BF531117#define L1_CODE_START 0xFFA08000118#define L1_DATA_A_START 0xFF804000119#define L1_DATA_B_START 0xFF904000120#define L1_CODE_LENGTH 0x4000121#define L1_DATA_B_LENGTH 0x0000122123124#ifdef CONFIG_BFIN_DCACHE125#define DMEM_CNTR (ACACHE_BSRAM | ENDCPLB | PORT_PREF0)126#define L1_DATA_A_LENGTH (0x4000 - 0x4000)127#define BFIN_DCACHESIZE (16*1024)128#define BFIN_DSUPBANKS 1129#else130#define DMEM_CNTR (ASRAM_BSRAM | ENDCPLB | PORT_PREF0)131#define L1_DATA_A_LENGTH 0x4000132#define BFIN_DCACHESIZE (0*1024)133#define BFIN_DSUPBANKS 0134#endif135136#endif137138#endif139140141