SAMV71-XULT: Add support for SDRAM (unverified)

This commit is contained in:
Gregory Nutt 2015-03-14 11:00:46 -06:00
parent 2976594cfe
commit fe09227cd5
4 changed files with 7 additions and 3 deletions

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--;
}
}

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"

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"

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)