SAMV7-XULT: Build support for SDRAM (SDRAM init still missing)

This commit is contained in:
Gregory Nutt 2015-03-14 09:16:27 -06:00
parent cbdaa0dc77
commit d5377842ea
2 changed files with 28 additions and 0 deletions

View File

@ -42,6 +42,10 @@ AOBJS = $(ASRCS:.S=$(OBJEXT))
CSRCS = sam_boot.c CSRCS = sam_boot.c
ifeq ($(CONFIG_SAMA5_SDRAMC),y)
CSRCS += sam_sdram.c
endif
ifeq ($(CONFIG_NSH_ARCHINIT),y) ifeq ($(CONFIG_NSH_ARCHINIT),y)
CSRCS += sam_nsh.c sam_bringup.c CSRCS += sam_nsh.c sam_bringup.c
else ifeq ($(CONFIG_BOARD_INITIALIZE),y) else ifeq ($(CONFIG_BOARD_INITIALIZE),y)

View File

@ -268,6 +268,30 @@
* Public Functions * Public Functions
************************************************************************************/ ************************************************************************************/
/************************************************************************************
* Name: sam_sdram_config
*
* Description:
* Configures the on-board SDRAM. SAMV71 Xplained Ultra features one external
* IS42S16100E-7BLI, 512Kx16x2, 10ns, SDRAM. SDRAM0 is connected to chip select
* NCS1.
*
* Input Parameters:
* None
*
* Assumptions:
* The DDR memory regions is configured as strongly ordered memory. When we
* complete initialization of SDRAM and it is ready for use, we will make DRAM
* into normal memory.
*
************************************************************************************/
#ifdef CONFIG_SAMA5_SDRAMC
void sam_sdram_config(void);
#else
# define sam_sdram_config(t)
#endif
/************************************************************************************ /************************************************************************************
* Name: sam_bringup * Name: sam_bringup
* *