ehci: msm: Add missing platdata
[oweals/u-boot.git] / board / freescale / t104xrdb / ddr.c
index 22d6a5f617693c71bca2050627aa46788a4b66a3..2b1b28da8856d3f266a28838468533144b263ab0 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2013 Freescale Semiconductor, Inc.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -77,6 +76,8 @@ found:
         */
 #ifdef CONFIG_SYS_FSL_DDR4
        popts->half_strength_driver_enable = 1;
+       /* optimize cpo for erratum A-009942 */
+       popts->cpo_sample = 0x59;
 #else
        popts->half_strength_driver_enable = 0;
 #endif
@@ -118,7 +119,7 @@ void board_mem_sleep_setup(void)
 }
 #endif
 
-phys_size_t initdram(int board_type)
+int dram_init(void)
 {
        phys_size_t dram_size;
 
@@ -135,5 +136,7 @@ phys_size_t initdram(int board_type)
        fsl_dp_resume();
 #endif
 
-       return dram_size;
+       gd->ram_size = dram_size;
+
+       return 0;
 }