diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2008-10-09 02:11:57 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-10-09 02:11:57 -0400 |
commit | f099f39acf7575eff3dee3c562cec4e592876c33 (patch) | |
tree | 57beb28f62712f061789626ad15eabbe31cc5286 /arch/blackfin/kernel | |
parent | 8606801b0361e0f8520892c9bf524df89c35e690 (diff) |
Blackfin arch: Make L2 SRAM cacheable
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/kernel')
-rw-r--r-- | arch/blackfin/kernel/cplb-mpu/cplbinit.c | 10 | ||||
-rw-r--r-- | arch/blackfin/kernel/cplb-nompu/cplbinit.c | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/arch/blackfin/kernel/cplb-mpu/cplbinit.c b/arch/blackfin/kernel/cplb-mpu/cplbinit.c index d4257d0ad6a8..55af729f8495 100644 --- a/arch/blackfin/kernel/cplb-mpu/cplbinit.c +++ b/arch/blackfin/kernel/cplb-mpu/cplbinit.c | |||
@@ -83,8 +83,18 @@ void __init generate_cplb_tables(void) | |||
83 | dcplb_tbl[i_d].addr = L1_DATA_A_START; | 83 | dcplb_tbl[i_d].addr = L1_DATA_A_START; |
84 | dcplb_tbl[i_d++].data = L1_DMEMORY | PAGE_SIZE_4MB; | 84 | dcplb_tbl[i_d++].data = L1_DMEMORY | PAGE_SIZE_4MB; |
85 | #endif | 85 | #endif |
86 | #if L1_CODE_LENGTH > 0 | ||
86 | icplb_tbl[i_i].addr = L1_CODE_START; | 87 | icplb_tbl[i_i].addr = L1_CODE_START; |
87 | icplb_tbl[i_i++].data = L1_IMEMORY | PAGE_SIZE_4MB; | 88 | icplb_tbl[i_i++].data = L1_IMEMORY | PAGE_SIZE_4MB; |
89 | #endif | ||
90 | |||
91 | /* Cover L2 memory */ | ||
92 | #if L2_LENGTH > 0 | ||
93 | dcplb_tbl[i_d].addr = L2_START; | ||
94 | dcplb_tbl[i_d++].data = L2_DMEMORY | PAGE_SIZE_1MB; | ||
95 | icplb_tbl[i_i].addr = L2_START; | ||
96 | icplb_tbl[i_i++].data = L2_IMEMORY | PAGE_SIZE_1MB; | ||
97 | #endif | ||
88 | 98 | ||
89 | first_mask_dcplb = i_d; | 99 | first_mask_dcplb = i_d; |
90 | first_switched_dcplb = i_d + (1 << page_mask_order); | 100 | first_switched_dcplb = i_d + (1 << page_mask_order); |
diff --git a/arch/blackfin/kernel/cplb-nompu/cplbinit.c b/arch/blackfin/kernel/cplb-nompu/cplbinit.c index 2c45c16c3520..301252e84441 100644 --- a/arch/blackfin/kernel/cplb-nompu/cplbinit.c +++ b/arch/blackfin/kernel/cplb-nompu/cplbinit.c | |||
@@ -168,8 +168,8 @@ static struct cplb_desc cplb_data[] = { | |||
168 | .end = L2_START + L2_LENGTH, | 168 | .end = L2_START + L2_LENGTH, |
169 | .psize = SIZE_1M, | 169 | .psize = SIZE_1M, |
170 | .attr = SWITCH_T | I_CPLB | D_CPLB, | 170 | .attr = SWITCH_T | I_CPLB | D_CPLB, |
171 | .i_conf = L2_MEMORY, | 171 | .i_conf = L2_IMEMORY, |
172 | .d_conf = L2_MEMORY, | 172 | .d_conf = L2_DMEMORY, |
173 | .valid = (L2_LENGTH > 0), | 173 | .valid = (L2_LENGTH > 0), |
174 | .name = "L2 Memory", | 174 | .name = "L2 Memory", |
175 | }, | 175 | }, |