]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/t208xrdb/ddr.c
board: ls2080a: Add "mcinitcmd" env for MC & DPL deployment
[u-boot] / board / freescale / t208xrdb / ddr.c
index 8a26276273566fff4268950bc76cdba930eafe20..f6c8ca30ac44388f35d2579e37cb2fb8c3c91098 100644 (file)
@@ -1,9 +1,7 @@
 /*
  * Copyright 2014 Freescale Semiconductor, Inc.
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * Version 2 or later as published by the Free Software Foundation.
+ * SPDX-License-Identifier:    GPL-2.0
  */
 
 #include <common.h>
@@ -103,12 +101,12 @@ phys_size_t initdram(int board_type)
 #if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_RAMBOOT_PBL)
        puts("Initializing....using SPD\n");
        dram_size = fsl_ddr_sdram();
-
-       dram_size = setup_ddr_tlbs(dram_size / 0x100000);
-       dram_size *= 0x100000;
 #else
        /* DDR has been initialised by first stage boot loader */
        dram_size = fsl_ddr_sdram_size();
 #endif
+       dram_size = setup_ddr_tlbs(dram_size / 0x100000);
+       dram_size *= 0x100000;
+
        return dram_size;
 }