mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:22:32 +08:00
SAMV7: Costmetic changes to SDRAM logic
This commit is contained in:
@@ -206,6 +206,8 @@ void sam_sdram_config(void)
|
|||||||
* the Low Power Register.
|
* the Low Power Register.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
putreg32(0, SAM_SDRAMC_LPR);
|
||||||
|
|
||||||
/* 3. The SDRAM memory type must be set in the Memory Device Register.*/
|
/* 3. The SDRAM memory type must be set in the Memory Device Register.*/
|
||||||
|
|
||||||
putreg32(SDRAMC_MDR_SDRAM, SAM_SDRAMC_MDR);
|
putreg32(SDRAMC_MDR_SDRAM, SAM_SDRAMC_MDR);
|
||||||
@@ -237,7 +239,7 @@ void sam_sdram_config(void)
|
|||||||
* any SDRAM location eight times.
|
* 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);
|
putreg32(SDRAMC_MR_MODE_AUTOREFRESH, SAM_SDRAMC_MR);
|
||||||
*psdram = 0;
|
*psdram = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user