mirror of
https://github.com/apache/nuttx.git
synced 2026-10-19 12:48:48 +00:00
Do not (re)define CONFIG_LPC17_SDRAM_32BIT to not conflict with config. If CONFIG_LPC17_SDRAM_16BIT it is defined anyway and with correct symbol redefinition suppression. From Pavel Pisa.
This commit is contained in:
parent
f4b35662ec
commit
c0881c36a3
1 changed files with 9 additions and 3 deletions
|
|
@ -78,14 +78,20 @@
|
|||
|
||||
/* Set up for 32-bit SDRAM at CS0 */
|
||||
|
||||
#define CONFIG_LPC17_SDRAM_32BIT
|
||||
#ifdef CONFIG_LPC17_EXTDRAMSIZE
|
||||
# define SDRAM_SIZE CONFIG_LPC17_EXTDRAMSIZE
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LPC17_SDRAM_16BIT
|
||||
# define SDRAM_SIZE 0x02000000 /* 256Mbit */
|
||||
# ifndef SDRAM_SIZE
|
||||
# define SDRAM_SIZE 0x02000000 /* 256Mbit */
|
||||
# endif
|
||||
#else /* if defined(CONFIG_LPC17_SDRAM_32BIT) */
|
||||
# undef CONFIG_LPC17_SDRAM_32BIT
|
||||
# define CONFIG_LPC17_SDRAM_32BIT 1
|
||||
# define SDRAM_SIZE 0x04000000 /* 512Mbit */
|
||||
# ifndef SDRAM_SIZE
|
||||
# define SDRAM_SIZE 0x04000000 /* 512Mbit */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define SDRAM_BASE 0xa0000000 /* CS0 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue