summaryrefslogtreecommitdiff
path: root/drivers/ddr
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-08-02 19:00:23 +0200
committerMarek Vasut <marex@denx.de>2015-08-08 14:14:29 +0200
commit10c14261f3c0644d2ae21785701f5aa3898d98e9 (patch)
treeeb9b939cfeecbfc8ca007c891db3e246b5cf9e4f /drivers/ddr
parent1fa0c8c4e30c4aae67b79263c749a66a67d42e5e (diff)
downloadu-boot-imx-10c14261f3c0644d2ae21785701f5aa3898d98e9.zip
u-boot-imx-10c14261f3c0644d2ae21785701f5aa3898d98e9.tar.gz
u-boot-imx-10c14261f3c0644d2ae21785701f5aa3898d98e9.tar.bz2
ddr: altera: sequencer: Wrap IO_* macros
Introduce structure socfpga_sdram_io_config to wrap the IO configuration values in board file. Introduce socfpga_get_sdram_io_config() function, which returns this the structure. This is another step toward wrapping the nasty QTS generated macros in board files and reducing the pollution of the namespace. Signed-off-by: Marek Vasut <marex@denx.de> Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Diffstat (limited to 'drivers/ddr')
-rw-r--r--drivers/ddr/altera/sequencer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c
index 41af859..754eaa8 100644
--- a/drivers/ddr/altera/sequencer.c
+++ b/drivers/ddr/altera/sequencer.c
@@ -42,6 +42,7 @@ static struct socfpga_sdr_ctrl *sdr_ctrl =
(struct socfpga_sdr_ctrl *)SDR_CTRLGRP_ADDRESS;
const struct socfpga_sdram_rw_mgr_config *rwcfg;
+const struct socfpga_sdram_io_config *iocfg;
#define DELTA_D 1
@@ -3699,6 +3700,7 @@ int sdram_calibration_full(void)
gbl = &my_gbl;
rwcfg = socfpga_get_sdram_rwmgr_config();
+ iocfg = socfpga_get_sdram_io_config();
/* Set the calibration enabled by default */
gbl->phy_debug_mode_flags |= PHY_DEBUG_ENABLE_CAL_RPT;