m5208evbe.c (52c411805c090999f015df8bdf8016fb684746d0) m5208evbe.c (088454cde245b4d431ce0181be8b3cbceea059d6)
1/*
2 * (C) Copyright 2000-2003
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * Copyright (C) 2004-2008, 2012 Freescale Semiconductor, Inc.
6 * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
7 *
8 * SPDX-License-Identifier: GPL-2.0+

--- 8 unchanged lines hidden (view full) ---

17
18int checkboard(void)
19{
20 puts("Board: ");
21 puts("Freescale M5208EVBe\n");
22 return 0;
23};
24
1/*
2 * (C) Copyright 2000-2003
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * Copyright (C) 2004-2008, 2012 Freescale Semiconductor, Inc.
6 * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
7 *
8 * SPDX-License-Identifier: GPL-2.0+

--- 8 unchanged lines hidden (view full) ---

17
18int checkboard(void)
19{
20 puts("Board: ");
21 puts("Freescale M5208EVBe\n");
22 return 0;
23};
24
25phys_size_t initdram(void)
25int initdram(void)
26{
27 sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
28 u32 dramsize, i;
29
30 dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
31
32 for (i = 0x13; i < 0x20; i++) {
33 if (dramsize == (1 << i))

--- 29 unchanged lines hidden (view full) ---

63 asm("nop");
64
65 out_be32(&sdram->ctrl,
66 (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000F00);
67 asm("nop");
68
69 udelay(100);
70
26{
27 sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
28 u32 dramsize, i;
29
30 dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
31
32 for (i = 0x13; i < 0x20; i++) {
33 if (dramsize == (1 << i))

--- 29 unchanged lines hidden (view full) ---

63 asm("nop");
64
65 out_be32(&sdram->ctrl,
66 (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000F00);
67 asm("nop");
68
69 udelay(100);
70
71 return dramsize;
71 gd->ram_size = dramsize;
72
73 return 0;
72};
73
74int testdram(void)
75{
76 /* TODO: XXX XXX XXX */
77 printf("DRAM test not implemented!\n");
78
79 return (0);
80}
74};
75
76int testdram(void)
77{
78 /* TODO: XXX XXX XXX */
79 printf("DRAM test not implemented!\n");
80
81 return (0);
82}