blob: 0f3bcc592a5ff60d1f6f78ac1f43f8cac404093c [file] [log] [blame]
wdenka562e1b2005-01-09 18:21:42 +00001/*
2 * (C) Copyright 2000-2003
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenka562e1b2005-01-09 18:21:42 +00006 */
7
8#include <common.h>
TsiChungLiew67064242007-08-15 19:41:06 -05009#include <asm/immap.h>
wdenka562e1b2005-01-09 18:21:42 +000010
11
12int checkboard (void)
13{
14 puts ("Board: ");
15 puts ("senTec COBRA5272 Board\n");
16 return 0;
17};
18
Becky Bruce9973e3c2008-06-09 16:03:40 -050019phys_size_t initdram (int board_type)
wdenka562e1b2005-01-09 18:21:42 +000020{
TsiChungLiew67064242007-08-15 19:41:06 -050021 volatile sdramctrl_t *sdp = (sdramctrl_t *) (MMAP_SDRAM);
wdenka562e1b2005-01-09 18:21:42 +000022
23 sdp->sdram_sdtr = 0xf539;
24 sdp->sdram_sdcr = 0x4211;
25
26 /* Dummy write to start SDRAM */
27 *((volatile unsigned long *) 0) = 0;
28
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020029 return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
wdenka562e1b2005-01-09 18:21:42 +000030};
31
32int testdram (void)
33{
34 /* TODO: XXX XXX XXX */
35 printf ("DRAM test not implemented!\n");
36
37 return (0);
38}