2005-01-09 18:21:42 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2000-2003
|
|
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2005-01-09 18:21:42 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
2007-08-16 00:41:06 +00:00
|
|
|
#include <asm/immap.h>
|
2005-01-09 18:21:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
int checkboard (void)
|
|
|
|
{
|
|
|
|
puts ("Board: ");
|
|
|
|
puts ("senTec COBRA5272 Board\n");
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
2008-06-09 21:03:40 +00:00
|
|
|
phys_size_t initdram (int board_type)
|
2005-01-09 18:21:42 +00:00
|
|
|
{
|
2007-08-16 00:41:06 +00:00
|
|
|
volatile sdramctrl_t *sdp = (sdramctrl_t *) (MMAP_SDRAM);
|
2005-01-09 18:21:42 +00:00
|
|
|
|
|
|
|
sdp->sdram_sdtr = 0xf539;
|
|
|
|
sdp->sdram_sdcr = 0x4211;
|
|
|
|
|
|
|
|
/* Dummy write to start SDRAM */
|
|
|
|
*((volatile unsigned long *) 0) = 0;
|
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
|
2005-01-09 18:21:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
int testdram (void)
|
|
|
|
{
|
|
|
|
/* TODO: XXX XXX XXX */
|
|
|
|
printf ("DRAM test not implemented!\n");
|
|
|
|
|
|
|
|
return (0);
|
|
|
|
}
|