]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/imgtec/xilfpga/xilfpga.c
board_f: Drop return value from initdram()
[people/ms/u-boot.git] / board / imgtec / xilfpga / xilfpga.c
index dc0a088ecb8bb37d83c8143dce7042d8fc2b72f9..8aa7c10bffce3e849133be17e3c55ba17dec5a29 100644 (file)
 
 #include <common.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /* initialize the DDR Controller and PHY */
-phys_size_t initdram(void)
+int initdram(void)
 {
        /* MIG IP block is smart and doesn't need SW
         * to do any init */
-       return CONFIG_SYS_SDRAM_SIZE;   /* in bytes */
+       gd->ram_size = CONFIG_SYS_SDRAM_SIZE;   /* in bytes */
+
+       return 0;
 }