diff options
author | Marek Vasut <marex@denx.de> | 2015-08-02 17:00:23 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-08 12:14:29 (GMT) |
commit | 10c14261f3c0644d2ae21785701f5aa3898d98e9 (patch) | |
tree | eb9b939cfeecbfc8ca007c891db3e246b5cf9e4f /drivers/ddr/altera/sequencer.c | |
parent | 1fa0c8c4e30c4aae67b79263c749a66a67d42e5e (diff) | |
download | u-boot-10c14261f3c0644d2ae21785701f5aa3898d98e9.tar.xz |
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/altera/sequencer.c')
-rw-r--r-- | drivers/ddr/altera/sequencer.c | 2 |
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; |