aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-blackfin/cplbinit.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-blackfin/cplbinit.h')
-rw-r--r--include/asm-blackfin/cplbinit.h39
1 files changed, 19 insertions, 20 deletions
diff --git a/include/asm-blackfin/cplbinit.h b/include/asm-blackfin/cplbinit.h
index bec6ecdf1bdb..0eb1c1b685a7 100644
--- a/include/asm-blackfin/cplbinit.h
+++ b/include/asm-blackfin/cplbinit.h
@@ -27,9 +27,18 @@
27 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 27 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28 */ 28 */
29 29
30#ifndef __ASM_CPLBINIT_H__
31#define __ASM_CPLBINIT_H__
32
30#include <asm/blackfin.h> 33#include <asm/blackfin.h>
31#include <asm/cplb.h> 34#include <asm/cplb.h>
32 35
36#ifdef CONFIG_MPU
37
38#include <asm/cplb-mpu.h>
39
40#else
41
33#define INITIAL_T 0x1 42#define INITIAL_T 0x1
34#define SWITCH_T 0x2 43#define SWITCH_T 0x2
35#define I_CPLB 0x4 44#define I_CPLB 0x4
@@ -57,8 +66,8 @@ struct cplb_tab {
57 u16 size; 66 u16 size;
58}; 67};
59 68
60extern u_long icplb_table[MAX_CPLBS+1]; 69extern u_long icplb_table[];
61extern u_long dcplb_table[MAX_CPLBS+1]; 70extern u_long dcplb_table[];
62 71
63/* Till here we are discussing about the static memory management model. 72/* Till here we are discussing about the static memory management model.
64 * However, the operating envoronments commonly define more CPLB 73 * However, the operating envoronments commonly define more CPLB
@@ -69,28 +78,18 @@ extern u_long dcplb_table[MAX_CPLBS+1];
69 * This is how Page descriptor Table is implemented in uClinux/Blackfin. 78 * This is how Page descriptor Table is implemented in uClinux/Blackfin.
70 */ 79 */
71 80
72#ifdef CONFIG_CPLB_SWITCH_TAB_L1 81extern u_long ipdt_table[];
73extern u_long ipdt_table[MAX_SWITCH_I_CPLBS+1]__attribute__((l1_data)); 82extern u_long dpdt_table[];
74extern u_long dpdt_table[MAX_SWITCH_D_CPLBS+1]__attribute__((l1_data));
75
76#ifdef CONFIG_CPLB_INFO 83#ifdef CONFIG_CPLB_INFO
77extern u_long ipdt_swapcount_table[MAX_SWITCH_I_CPLBS]__attribute__((l1_data)); 84extern u_long ipdt_swapcount_table[];
78extern u_long dpdt_swapcount_table[MAX_SWITCH_D_CPLBS]__attribute__((l1_data)); 85extern u_long dpdt_swapcount_table[];
79#endif /* CONFIG_CPLB_INFO */ 86#endif
80 87
81#else 88#endif /* CONFIG_MPU */
82
83extern u_long ipdt_table[MAX_SWITCH_I_CPLBS+1];
84extern u_long dpdt_table[MAX_SWITCH_D_CPLBS+1];
85
86#ifdef CONFIG_CPLB_INFO
87extern u_long ipdt_swapcount_table[MAX_SWITCH_I_CPLBS];
88extern u_long dpdt_swapcount_table[MAX_SWITCH_D_CPLBS];
89#endif /* CONFIG_CPLB_INFO */
90
91#endif /*CONFIG_CPLB_SWITCH_TAB_L1*/
92 89
93extern unsigned long reserved_mem_dcache_on; 90extern unsigned long reserved_mem_dcache_on;
94extern unsigned long reserved_mem_icache_on; 91extern unsigned long reserved_mem_icache_on;
95 92
96extern void generate_cpl_tables(void); 93extern void generate_cpl_tables(void);
94
95#endif