SAMV71-XULT: Add support for SDRAM (unverified)

This commit is contained in:
Gregory Nutt
2015-03-14 11:00:46 -06:00
parent d5377842ea
commit cc497202ed
8 changed files with 298 additions and 5 deletions
+4
View File
@@ -100,6 +100,7 @@ void up_udelay(useconds_t microseconds)
for (i = 0; i < CONFIG_BOARD_LOOPSPERMSEC; i++)
{
}
microseconds -= 1000;
}
@@ -108,6 +109,7 @@ void up_udelay(useconds_t microseconds)
for (i = 0; i < CONFIG_BOARD_LOOPSPER100USEC; i++)
{
}
microseconds -= 100;
}
@@ -116,6 +118,7 @@ void up_udelay(useconds_t microseconds)
for (i = 0; i < CONFIG_BOARD_LOOPSPER10USEC; i++)
{
}
microseconds -= 10;
}
@@ -124,6 +127,7 @@ void up_udelay(useconds_t microseconds)
for (i = 0; i < CONFIG_BOARD_LOOPSPERUSEC; i++)
{
}
microseconds--;
}
}
+1 -1
View File
@@ -42,7 +42,7 @@
****************************************************************************************/
#include <nuttx/config.h>
#include <arch/armv7/chip.h>
#include <arch/samv7/chip.h>
#include "chip/sam_memorymap.h"
+1 -1
View File
@@ -42,7 +42,7 @@
****************************************************************************************/
#include <nuttx/config.h>
#include <arch/armv7/chip.h>
#include <arch/samv7/chip.h>
#include "chip/sam_memorymap.h"
+1 -1
View File
@@ -333,7 +333,7 @@
#define GPIO_SDRAMC_RAS (GPIO_PERIPHC | GPIO_CFG_DEFAULT | GPIO_PORT_PIOD | GPIO_PIN16)
#define GPIO_SDRAMC_WE (GPIO_PERIPHC | GPIO_CFG_DEFAULT | GPIO_PORT_PIOD | GPIO_PIN29)
/* Static Memory Controller (SMC) */
/* Static Memory Controller (SMC). Many pins shared with SDRAMC */
#define GPIO_SMC_A0 (GPIO_PERIPHA | GPIO_CFG_PULLUP | GPIO_PORT_PIOC | GPIO_PIN18)
#define GPIO_SMC_A1 (GPIO_PERIPHA | GPIO_CFG_PULLUP | GPIO_PORT_PIOC | GPIO_PIN19)
+1 -1
View File
@@ -42,7 +42,7 @@ AOBJS = $(ASRCS:.S=$(OBJEXT))
CSRCS = sam_boot.c
ifeq ($(CONFIG_SAMA5_SDRAMC),y)
ifeq ($(CONFIG_SAMV7_SDRAMC),y)
CSRCS += sam_sdram.c
endif
+8
View File
@@ -71,6 +71,14 @@
void sam_boardinitialize(void)
{
#ifdef CONFIG_SAMV7_SDRAMC
/* Configure SDRAM if it has been enabled in the NuttX configuration. Here we
* assume, of course, that we are not running out SDRAM.
*/
sam_sdram_config();
#endif
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function
* sam_spiinitialize() has been brought into the link.
*/
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -286,7 +286,7 @@
*
************************************************************************************/
#ifdef CONFIG_SAMA5_SDRAMC
#ifdef CONFIG_SAMV7_SDRAMC
void sam_sdram_config(void);
#else
# define sam_sdram_config(t)