1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2000-2003
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 * Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved.
11 #include <asm/global_data.h>
12 #include <asm/immap.h>
15 DECLARE_GLOBAL_DATA_PTR;
17 int checkboard (void) {
19 puts ("Freescale MCF5272C3 EVB\n");
25 sdramctrl_t * sdp = (sdramctrl_t *)(MMAP_SDRAM);
27 out_be16(&sdp->sdram_sdtr, 0xf539);
28 out_be16(&sdp->sdram_sdcr, 0x4211);
30 /* Dummy write to start SDRAM */
31 *((volatile unsigned long *)0) = 0;
33 gd->ram_size = CFG_SYS_SDRAM_SIZE * 1024 * 1024;
40 /* TODO: XXX XXX XXX */
41 printf ("DRAM test not implemented!\n");