X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Ffreescale%2Fm5329evb%2Fm5329evb.c;h=531894f65161cd338895a86041730405270f912d;hb=c05ed00afb95fa5237f16962fccf5810437317bf;hp=1f77adf4c22a3001004edf70bbb3fa32b2cd6f6f;hpb=3be2bdf5dc69b3142c1162a59bc67191c9077567;p=oweals%2Fu-boot.git diff --git a/board/freescale/m5329evb/m5329evb.c b/board/freescale/m5329evb/m5329evb.c index 1f77adf4c2..531894f651 100644 --- a/board/freescale/m5329evb/m5329evb.c +++ b/board/freescale/m5329evb/m5329evb.c @@ -1,17 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000-2003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * * Copyright (C) 2004-2007, 2012 Freescale Semiconductor, Inc. * TsiChung Liew (Tsi-Chung.Liew@freescale.com) - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include +#include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -22,7 +23,7 @@ int checkboard(void) return 0; }; -phys_size_t initdram(int board_type) +int dram_init(void) { sdram_t *sdram = (sdram_t *)(MMAP_SDRAM); u32 dramsize, i; @@ -62,7 +63,9 @@ phys_size_t initdram(int board_type) udelay(100); - return dramsize; + gd->ram_size = dramsize; + + return 0; }; int testdram(void)