]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
driver: ddr: fsl: Fix compiling error for DDR2
authorYork Sun <york.sun@nxp.com>
Fri, 26 May 2017 00:03:23 +0000 (17:03 -0700)
committerYork Sun <york.sun@nxp.com>
Mon, 12 Jun 2017 18:30:00 +0000 (11:30 -0700)
Fix compiling error of "no member named 'taamin_ps'" for DDR2.

Signed-off-by: York Sun <york.sun@nxp.com>
drivers/ddr/fsl/interactive.c

index 202ad138f993697876809c237e2884cf1cf7769e..653bbabc95623d96244c58aa1b47353ae2b43b3f 100644 (file)
@@ -154,7 +154,9 @@ static void lowest_common_dimm_parameters_edit(fsl_ddr_info_t *pinfo,
        static const struct options_string options[] = {
                COMMON_TIMING(tckmin_x_ps),
                COMMON_TIMING(tckmax_ps),
+#if defined(CONFIG_SYS_FSL_DDR3) || defined(CONFIG_SYS_FSL_DDR4)
                COMMON_TIMING(taamin_ps),
+#endif
                COMMON_TIMING(trcd_ps),
                COMMON_TIMING(trp_ps),
                COMMON_TIMING(tras_ps),
@@ -422,7 +424,9 @@ static void print_lowest_common_dimm_parameters(
                const common_timing_params_t *plcd_dimm_params)
 {
        static const struct options_string options[] = {
+#if defined(CONFIG_SYS_FSL_DDR3) || defined(CONFIG_SYS_FSL_DDR4)
                COMMON_TIMING(taamin_ps),
+#endif
                COMMON_TIMING(trcd_ps),
                COMMON_TIMING(trp_ps),
                COMMON_TIMING(tras_ps),