Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106279
b: refs/heads/master
c: 99d95bb
h: refs/heads/master
i:
  106277: 12ef23b
  106275: d439305
  106271: fe2fab7
v: v3
  • Loading branch information
Michael Hennerich authored and Bryan Wu committed Jul 14, 2008
1 parent e017fa0 commit 9dbf3f2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 27 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: 96b86e94bcf7eadbd8c959c0474d2971b3695478
refs/heads/master: 99d95bbd48f43dafdcd0540eb0da26c5655d7f33
7 changes: 1 addition & 6 deletions trunk/arch/blackfin/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,6 @@ config BFIN_KERNEL_CLOCK
are also not changed, and the Bootloader does 100% of the hardware
configuration.

config MEM_SIZE
int "SDRAM Memory Size in MBytes"
depends on BFIN_KERNEL_CLOCK
default 64

config PLL_BYPASS
bool "Bypass PLL"
depends on BFIN_KERNEL_CLOCK
Expand Down Expand Up @@ -376,7 +371,7 @@ config SCLK_DIV

config MAX_MEM_SIZE
int "Max SDRAM Memory Size in MBytes"
depends on !BFIN_KERNEL_CLOCK && !MPU
depends on !MPU
default 512
help
This is the max memory size that the kernel will create CPLB
Expand Down
6 changes: 1 addition & 5 deletions trunk/arch/blackfin/kernel/cplb-nompu/cplbinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@
#include <asm/cplb.h>
#include <asm/cplbinit.h>

#ifdef CONFIG_MAX_MEM_SIZE
# define CPLB_MEM CONFIG_MAX_MEM_SIZE
#else
# define CPLB_MEM CONFIG_MEM_SIZE
#endif
#define CPLB_MEM CONFIG_MAX_MEM_SIZE

/*
* Number of required data CPLB switchtable entries
Expand Down
14 changes: 5 additions & 9 deletions trunk/arch/blackfin/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,22 +664,19 @@ static __init void setup_bootmem_allocator(void)
})
static inline int __init get_mem_size(void)
{
#ifdef CONFIG_MEM_SIZE
return CONFIG_MEM_SIZE;
#else
# if defined(EBIU_SDBCTL)
# if defined(BF561_FAMILY)
#if defined(EBIU_SDBCTL)
# if defined(BF561_FAMILY)
int ret = 0;
u32 sdbctl = bfin_read_EBIU_SDBCTL();
ret += EBSZ_TO_MEG(sdbctl >> 0);
ret += EBSZ_TO_MEG(sdbctl >> 8);
ret += EBSZ_TO_MEG(sdbctl >> 16);
ret += EBSZ_TO_MEG(sdbctl >> 24);
return ret;
# else
# else
return EBSZ_TO_MEG(bfin_read_EBIU_SDBCTL());
# endif
# elif defined(EBIU_DDRCTL1)
# endif
#elif defined(EBIU_DDRCTL1)
u32 ddrctl = bfin_read_EBIU_DDRCTL1();
int ret = 0;
switch (ddrctl & 0xc0000) {
Expand All @@ -694,7 +691,6 @@ static inline int __init get_mem_size(void)
case DEVWD_16: break;
}
return ret;
# endif
#endif
BUG();
}
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/blackfin/mach-common/arch_checks.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,3 @@
# endif

#endif /* CONFIG_BFIN_KERNEL_CLOCK */

#ifdef CONFIG_MEM_SIZE
#if (CONFIG_MEM_SIZE % 4)
#error "SDRAM mem size must be multible of 4MB"
#endif
#endif

0 comments on commit 9dbf3f2

Please sign in to comment.