]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/p1022ds/ddr.c
nios2: move altera_pio_init to board_early_init_r
[u-boot] / board / freescale / p1022ds / ddr.c
index 455e5e725f7349bb2a814b6e9f94fdfc585fb87b..09212bcee8cfd61064cf5cc488ab20fa57fdd243 100644 (file)
@@ -3,16 +3,13 @@
  * Authors: Srikanth Srinivasan <srikanth.srinivasan@freescale.com>
  *          Timur Tabi <timur@freescale.com>
  *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option)
- * any later version.
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 
-#include <asm/fsl_ddr_sdram.h>
-#include <asm/fsl_ddr_dimm_params.h>
+#include <fsl_ddr_sdram.h>
+#include <fsl_ddr_dimm_params.h>
 
 struct board_specific_parameters {
        u32 n_ranks;
@@ -20,7 +17,7 @@ struct board_specific_parameters {
        u32 clk_adjust;         /* Range: 0-8 */
        u32 cpo;                /* Range: 2-31 */
        u32 write_data_delay;   /* Range: 0-6 */
-       u32 force_2T;
+       u32 force_2t;
 };
 
 /*
@@ -75,7 +72,7 @@ void fsl_ddr_board_options(memctl_options_t *popts, dimm_params_t *pdimm,
                                popts->cpo_override = pbsp->cpo;
                                popts->write_data_delay =
                                        pbsp->write_data_delay;
-                               popts->twoT_en = pbsp->force_2T;
+                               popts->twot_en = pbsp->force_2t;
                                goto found;
                        }
                        pbsp_highest = pbsp;
@@ -91,7 +88,7 @@ void fsl_ddr_board_options(memctl_options_t *popts, dimm_params_t *pdimm,
                popts->clk_adjust = pbsp->clk_adjust;
                popts->cpo_override = pbsp->cpo;
                popts->write_data_delay = pbsp->write_data_delay;
-               popts->twoT_en = pbsp->force_2T;
+               popts->twot_en = pbsp->force_2t;
        } else {
                panic("DIMM is not supported by this board");
        }