Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74135
b: refs/heads/master
c: c3a9f43
h: refs/heads/master
i:
  74133: 0ab295b
  74131: 1889712
  74127: 5c727ab
v: v3
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Nov 21, 2007
1 parent 181e265 commit 9d312d5
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 37 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 81a487a59f246a9eba24c3622e4c964e3347239d
refs/heads/master: c3a9f435ae1b1969736a6ca695dfbc508b917b65
42 changes: 26 additions & 16 deletions trunk/arch/blackfin/kernel/cplbinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static struct cplb_desc cplb_data[] = {
#else
.valid = 0,
#endif
.name = "ZERO Pointer Saveguard",
.name = "Zero Pointer Guard Page",
},
{
.start = L1_CODE_START,
Expand Down Expand Up @@ -95,20 +95,20 @@ static struct cplb_desc cplb_data[] = {
.end = 0, /* dynamic */
.psize = 0,
.attr = INITIAL_T | SWITCH_T | I_CPLB | D_CPLB,
.i_conf = SDRAM_IGENERIC,
.d_conf = SDRAM_DGENERIC,
.i_conf = SDRAM_IGENERIC,
.d_conf = SDRAM_DGENERIC,
.valid = 1,
.name = "SDRAM Kernel",
.name = "Kernel Memory",
},
{
.start = 0, /* dynamic */
.end = 0, /* dynamic */
.psize = 0,
.attr = INITIAL_T | SWITCH_T | D_CPLB,
.i_conf = SDRAM_IGENERIC,
.d_conf = SDRAM_DNON_CHBL,
.i_conf = SDRAM_IGENERIC,
.d_conf = SDRAM_DNON_CHBL,
.valid = 1,
.name = "SDRAM RAM MTD",
.name = "uClinux MTD Memory",
},
{
.start = 0, /* dynamic */
Expand All @@ -117,7 +117,7 @@ static struct cplb_desc cplb_data[] = {
.attr = INITIAL_T | SWITCH_T | D_CPLB,
.d_conf = SDRAM_DNON_CHBL,
.valid = 1,
.name = "SDRAM Uncached DMA ZONE",
.name = "Uncached DMA Zone",
},
{
.start = 0, /* dynamic */
Expand All @@ -127,7 +127,7 @@ static struct cplb_desc cplb_data[] = {
.i_conf = 0, /* dynamic */
.d_conf = 0, /* dynamic */
.valid = 1,
.name = "SDRAM Reserved Memory",
.name = "Reserved Memory",
},
{
.start = ASYNC_BANK0_BASE,
Expand All @@ -136,22 +136,32 @@ static struct cplb_desc cplb_data[] = {
.attr = SWITCH_T | D_CPLB,
.d_conf = SDRAM_EBIU,
.valid = 1,
.name = "ASYNC Memory",
.name = "Asynchronous Memory Banks",
},
{
#if defined(CONFIG_BF561)
.start = L2_SRAM,
.end = L2_SRAM_END,
#ifdef L2_START
.start = L2_START,
.end = L2_START + L2_LENGTH,
.psize = SIZE_1M,
.attr = SWITCH_T | D_CPLB,
.attr = SWITCH_T | I_CPLB | D_CPLB,
.i_conf = L2_MEMORY,
.d_conf = L2_MEMORY,
.valid = 1,
#else
.valid = 0,
#endif
.name = "L2 Memory",
}
},
{
.start = BOOT_ROM_START,
.end = BOOT_ROM_START + BOOT_ROM_LENGTH,
.psize = SIZE_1M,
.attr = SWITCH_T | I_CPLB | D_CPLB,
.i_conf = SDRAM_IGENERIC,
.d_conf = SDRAM_DGENERIC,
.valid = 1,
.name = "On-Chip BootROM",
},
};

static u16 __init lock_kernel_check(u32 start, u32 end)
Expand Down Expand Up @@ -343,7 +353,7 @@ void __init generate_cpl_tables(void)
else
cplb_data[RES_MEM].i_conf = SDRAM_INON_CHBL;

for (i = ZERO_P; i <= L2_MEM; i++) {
for (i = ZERO_P; i < ARRAY_SIZE(cplb_data); ++i) {
if (!cplb_data[i].valid)
continue;

Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-blackfin/mach-bf527/mem_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
/* Boot ROM Memory */

#define BOOT_ROM_START 0xEF000000
#define BOOT_ROM_LENGTH 0x8000

/* Level 1 Memory */

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-blackfin/mach-bf533/mem_map.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*
* File: include/asm-blackfin/mach-bf533/mem_map.h
* Based on:
Expand Down Expand Up @@ -48,6 +47,7 @@
/* Boot ROM Memory */

#define BOOT_ROM_START 0xEF000000
#define BOOT_ROM_LENGTH 0x400

/* Level 1 Memory */

Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-blackfin/mach-bf537/mem_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
/* Boot ROM Memory */

#define BOOT_ROM_START 0xEF000000
#define BOOT_ROM_LENGTH 0x800

/* Level 1 Memory */

Expand Down
11 changes: 11 additions & 0 deletions trunk/include/asm-blackfin/mach-bf548/mem_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
/* Boot ROM Memory */

#define BOOT_ROM_START 0xEF000000
#define BOOT_ROM_LENGTH 0x1000

/* Level 1 Memory */

Expand Down Expand Up @@ -87,6 +88,16 @@
#define BFIN_DSUPBANKS 0
#endif /*CONFIG_BFIN_DCACHE*/

/* Level 2 Memory */
#if !defined(CONFIG_BF542)
# define L2_START 0xFEB00000
# if defined(CONFIG_BF544)
# define L2_LENGTH 0x10000
# else
# define L2_LENGTH 0x20000
# endif
#endif

/* Scratch Pad Memory */

#define L1_SCRATCH_START 0xFFB00000
Expand Down
19 changes: 0 additions & 19 deletions trunk/include/asm-blackfin/mach-bf561/bf561.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,6 @@
#define SUPPORTED_REVID 0x3

#define OFFSET_(x) ((x) & 0x0000FFFF)
#define L1_ISRAM 0xFFA00000
#define L1_ISRAM_END 0xFFA04000
#define DATA_BANKA_SRAM 0xFF800000
#define DATA_BANKA_SRAM_END 0xFF804000
#define DATA_BANKB_SRAM 0xFF900000
#define DATA_BANKB_SRAM_END 0xFF904000
#define L1_DSRAMA 0xFF800000
#define L1_DSRAMA_END 0xFF804000
#define L1_DSRAMB 0xFF900000
#define L1_DSRAMB_END 0xFF904000
#define L2_SRAM 0xFEB00000
#define L2_SRAM_END 0xFEB20000
#define AMB_FLASH 0x20000000
#define AMB_FLASH_END 0x21000000
#define AMB_FLASH_LENGTH 0x01000000
#define L1_ISRAM_LENGTH 0x4000
#define L1_DSRAMA_LENGTH 0x4000
#define L1_DSRAMB_LENGTH 0x4000
#define L2_SRAM_LENGTH 0x20000

/*some misc defines*/
#define IMASK_IVG15 0x8000
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/asm-blackfin/mach-bf561/mem_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
#define ASYNC_BANK0_BASE 0x20000000 /* Async Bank 0 */
#define ASYNC_BANK0_SIZE 0x04000000 /* 64M */

/* Boot ROM Memory */

#define BOOT_ROM_START 0xEF000000
#define BOOT_ROM_LENGTH 0x800

/* Level 1 Memory */

#ifdef CONFIG_BFIN_ICACHE
Expand Down

0 comments on commit 9d312d5

Please sign in to comment.