X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=inline;f=board%2Ffreescale%2Fp1022ds%2Fddr.c;h=09212bcee8cfd61064cf5cc488ab20fa57fdd243;hb=84f24ac8278d287581e5a559a7299e1dc2b53481;hp=455e5e725f7349bb2a814b6e9f94fdfc585fb87b;hpb=f6d99aa9471bd5aa396d28bb3709162523cc4adb;p=oweals%2Fu-boot.git diff --git a/board/freescale/p1022ds/ddr.c b/board/freescale/p1022ds/ddr.c index 455e5e725f..09212bcee8 100644 --- a/board/freescale/p1022ds/ddr.c +++ b/board/freescale/p1022ds/ddr.c @@ -3,16 +3,13 @@ * Authors: Srikanth Srinivasan * Timur Tabi * - * 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 -#include -#include +#include +#include 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"); }