mv-common.h: fix DRAM banks configuration

The asm/arch/config.h header define CONFIG_NR_DRAM_BANKS_MAX, which is
needed to configure DRAM banks.

This patch move the asm/arch/config.h header inclusion above the DRAM
banks configuration.

Additionally this patch fix a typo.

Signed-off-by: Simon Guinot <sguinot@lacie.com>
This commit is contained in:
Simon Guinot 2011-05-03 21:17:34 +05:30 committed by Albert ARIBAUD
parent 29d53d19f3
commit 2f795ac74e
1 changed files with 4 additions and 4 deletions

View File

@ -113,6 +113,9 @@
#define CONFIG_SYS_RESET_ADDRESS 0xffff0000 /* Rst Vector Adr */
#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
/* ====> Include platform Common Definitions */
#include <asm/arch/config.h>
/*
* DRAM Banks configuration, Custom config can be done in <board>.h
*/
@ -124,10 +127,7 @@
#endif
#endif /* CONFIG_NR_DRAM_BANKS */
/* ====> Include platform Common Definations */
#include <asm/arch/config.h>
/* ====> Include driver Common Definations */
/* ====> Include driver Common Definitions */
/*
* Common NAND configuration
*/