blob: 0f3bcc592a5ff60d1f6f78ac1f43f8cac404093c [file] [log] [blame]
wdenkc4cbd342005-01-09 18:21:42 +00001/*
2 * (C) Copyright 2000-2003
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenkc4cbd342005-01-09 18:21:42 +00006 */
7
8#include <common.h>
TsiChungLiewcfa2b482007-08-15 19:41:06 -05009#include <asm/immap.h>
wdenkc4cbd342005-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 Brucebd99ae72008-06-09 16:03:40 -050019phys_size_t initdram (int board_type)
wdenkc4cbd342005-01-09 18:21:42 +000020{
TsiChungLiewcfa2b482007-08-15 19:41:06 -050021 volatile sdramctrl_t *sdp = (sdramctrl_t *) (MMAP_SDRAM);
wdenkc4cbd342005-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-VILLARD03836942008-10-16 15:01:15 +020029 return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
wdenkc4cbd342005-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}