SAMV7: Costmetic changes to SDRAM logic

This commit is contained in:
Gregory Nutt 2015-03-14 13:58:34 -06:00
parent 3b0615ece8
commit 85b9a7f1a5
1 changed files with 14 additions and 12 deletions

View File

@ -206,6 +206,8 @@ void sam_sdram_config(void)
* the Low Power Register.
*/
putreg32(0, SAM_SDRAMC_LPR);
/* 3. The SDRAM memory type must be set in the Memory Device Register.*/
putreg32(SDRAMC_MDR_SDRAM, SAM_SDRAMC_MDR);
@ -237,7 +239,7 @@ void sam_sdram_config(void)
* any SDRAM location eight times.
*/
for (i = 0 ; i< 8; i++)
for (i = 0 ; i < 8; i++)
{
putreg32(SDRAMC_MR_MODE_AUTOREFRESH, SAM_SDRAMC_MR);
*psdram = 0;