From 3f2546b2ef55b661fd8dd69682b38992225e86f6 Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Mon, 29 Apr 2019 01:17:54 +0100 Subject: Initial import of qemu-2.4.1 --- roms/u-boot/board/freescale/m5272c3/m5272c3.c | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 roms/u-boot/board/freescale/m5272c3/m5272c3.c (limited to 'roms/u-boot/board/freescale/m5272c3/m5272c3.c') diff --git a/roms/u-boot/board/freescale/m5272c3/m5272c3.c b/roms/u-boot/board/freescale/m5272c3/m5272c3.c new file mode 100644 index 00000000..3ed4a7da --- /dev/null +++ b/roms/u-boot/board/freescale/m5272c3/m5272c3.c @@ -0,0 +1,38 @@ +/* + * (C) Copyright 2000-2003 + * Wolfgang Denk, DENX Software Engineering, wd@denx.de. + * + * Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include +#include +#include + + +int checkboard (void) { + puts ("Board: "); + puts ("Freescale MCF5272C3 EVB\n"); + return 0; + }; + +phys_size_t initdram (int board_type) { + sdramctrl_t * sdp = (sdramctrl_t *)(MMAP_SDRAM); + + out_be16(&sdp->sdram_sdtr, 0xf539); + out_be16(&sdp->sdram_sdcr, 0x4211); + + /* Dummy write to start SDRAM */ + *((volatile unsigned long *)0) = 0; + + return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024; + }; + +int testdram (void) { + /* TODO: XXX XXX XXX */ + printf ("DRAM test not implemented!\n"); + + return (0); +} -- cgit v1.2.3