Skip to content
Snippets Groups Projects
Commit 06caac01 authored by patacongo's avatar patacongo
Browse files

Don't initialize SDRAM if it is not being used

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2456 42af7a65-404d-4744-a932-0658087f49c3
parent 33043234
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,9 @@
*
****************************************************************************/
#ifdef CONFIG_LPC313X_EXTSDRAM
extern void lpc313x_sdraminitialize(void);
#endif
/************************************************************************************
* Name: lpc313x_spiinitialize
......
......@@ -75,7 +75,9 @@ void lpc313x_boardinitialize(void)
{
/* Configure Micron MT48LC32M16A2 SDRAM on the EA3131 board */
#ifdef CONFIG_LPC313X_EXTSDRAM
lpc313x_sdraminitialize();
#endif
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function
* lpc313x_spiinitialize() has been brought into the link.
......
......@@ -55,6 +55,8 @@
#include "lpc313x_cgudrvr.h"
#include "ea3131_internal.h"
#ifdef CONFIG_LPC313X_EXTSDRAM
/****************************************************************************
* Definitions
****************************************************************************/
......@@ -265,3 +267,4 @@ void lpc313x_sdraminitialize(void)
putreg32((MPMC_DYNCONTROL_INORMAL|MPMC_DYNCONTROL_CS), LPC313X_MPMC_DYNCONTROL);
}
#endif /* CONFIG_LPC313X_EXTSDRAM */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment