diff options
Diffstat (limited to 'roms/u-boot/board/freescale/m5272c3')
-rw-r--r-- | roms/u-boot/board/freescale/m5272c3/Kconfig | 15 | ||||
-rw-r--r-- | roms/u-boot/board/freescale/m5272c3/MAINTAINERS | 6 | ||||
-rw-r--r-- | roms/u-boot/board/freescale/m5272c3/Makefile | 6 | ||||
-rw-r--r-- | roms/u-boot/board/freescale/m5272c3/m5272c3.c | 44 |
4 files changed, 71 insertions, 0 deletions
diff --git a/roms/u-boot/board/freescale/m5272c3/Kconfig b/roms/u-boot/board/freescale/m5272c3/Kconfig new file mode 100644 index 000000000..aee0b239b --- /dev/null +++ b/roms/u-boot/board/freescale/m5272c3/Kconfig @@ -0,0 +1,15 @@ +if TARGET_M5272C3 + +config SYS_CPU + default "mcf52x2" + +config SYS_BOARD + default "m5272c3" + +config SYS_VENDOR + default "freescale" + +config SYS_CONFIG_NAME + default "M5272C3" + +endif diff --git a/roms/u-boot/board/freescale/m5272c3/MAINTAINERS b/roms/u-boot/board/freescale/m5272c3/MAINTAINERS new file mode 100644 index 000000000..e58663096 --- /dev/null +++ b/roms/u-boot/board/freescale/m5272c3/MAINTAINERS @@ -0,0 +1,6 @@ +M5272C3 BOARD +#M: - +S: Maintained +F: board/freescale/m5272c3/ +F: include/configs/M5272C3.h +F: configs/M5272C3_defconfig diff --git a/roms/u-boot/board/freescale/m5272c3/Makefile b/roms/u-boot/board/freescale/m5272c3/Makefile new file mode 100644 index 000000000..1df8f7003 --- /dev/null +++ b/roms/u-boot/board/freescale/m5272c3/Makefile @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# (C) Copyright 2000-2006 +# Wolfgang Denk, DENX Software Engineering, wd@denx.de. + +obj-y = m5272c3.o 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 000000000..9580cf2a0 --- /dev/null +++ b/roms/u-boot/board/freescale/m5272c3/m5272c3.c @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2000-2003 + * Wolfgang Denk, DENX Software Engineering, wd@denx.de. + * + * Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved. + */ + +#include <common.h> +#include <init.h> +#include <asm/global_data.h> +#include <asm/immap.h> +#include <asm/io.h> + +DECLARE_GLOBAL_DATA_PTR; + +int checkboard (void) { + puts ("Board: "); + puts ("Freescale MCF5272C3 EVB\n"); + return 0; + }; + +int dram_init(void) +{ + 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; + + gd->ram_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024; + + return 0; + }; + +int testdram(void) +{ + /* TODO: XXX XXX XXX */ + printf ("DRAM test not implemented!\n"); + + return (0); +} |