2 * Copyright 2009-2010 eXMeritus, A Boeing Company
3 * Copyright 2008-2009 Freescale Semiconductor, Inc.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * Version 2 as published by the Free Software Foundation.
12 #include <asm/fsl_ddr_sdram.h>
13 #include <asm/fsl_ddr_dimm_params.h>
15 void fsl_ddr_board_options(memctl_options_t *popts,
17 unsigned int ctrl_num)
20 * We only support one DIMM, so according to the P2020 docs we should
21 * set the options as follows:
23 popts->cs_local_opts[0].odt_rd_cfg = 0;
24 popts->cs_local_opts[0].odt_wr_cfg = 4;
25 popts->cs_local_opts[1].odt_rd_cfg = 0;
26 popts->cs_local_opts[1].odt_wr_cfg = 0;
27 popts->half_strength_driver_enable = 0;
29 /* Manually configured for our static clock rate */
30 popts->clk_adjust = 4;
31 popts->cpo_override = 4;
32 popts->write_data_delay = 2;