Skip to content

Commit

Permalink
ARM: Allow Kconfig to control the definition of NR_BANKS
Browse files Browse the repository at this point in the history
Move the sizing of NR_BANKS to a Kconfig control instead of selecting
it in a header file depending on platform selection.  This allows new
additions to its dependencies to be handled more gracefully.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Dec 13, 2011
1 parent b424473 commit 958cab0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,11 @@ config ARM_TIMER_SP804

source arch/arm/mm/Kconfig

config ARM_NR_BANKS
int
default 16 if ARCH_EP93XX
default 8

config IWMMXT
bool "Enable iWMMXt support"
depends on CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_PJ4
Expand Down
6 changes: 1 addition & 5 deletions arch/arm/include/asm/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,7 @@ static const struct tagtable __tagtable_##fn __tag = { tag, fn }
/*
* Memory map description
*/
#ifdef CONFIG_ARCH_EP93XX
# define NR_BANKS 16
#else
# define NR_BANKS 8
#endif
#define NR_BANKS CONFIG_ARM_NR_BANKS

struct membank {
phys_addr_t start;
Expand Down

0 comments on commit 958cab0

Please sign in to comment.