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
|
|
|
|
2017-03-31 14:40:25 +00:00
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
2005-01-09 18:21:42 +00:00
|
|
|
|
|
|
|
int checkboard (void)
|
|
|
|
{
|
|
|
|
puts ("Board: ");
|
|
|
|
puts ("senTec COBRA5272 Board\n");
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
2017-03-31 14:40:25 +00:00
|
|
|
int initdram(void)
|
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;
|
|
|
|
|
2017-03-31 14:40:25 +00:00
|
|
|
gd->ram_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
|
|
|
|
|
|
|
|
return 0;
|
2005-01-09 18:21:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
int testdram (void)
|
|
|
|
{
|
|
|
|
/* TODO: XXX XXX XXX */
|
|
|
|
printf ("DRAM test not implemented!\n");
|
|
|
|
|
|
|
|
return (0);
|
|
|
|
}
|