diff options
author | Marek Vasut <marex@denx.de> | 2015-08-02 19:18:47 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-08 14:14:29 +0200 |
commit | 042ff2d0facaa520f1bc02b0695eb6a4e1d30b7a (patch) | |
tree | 1d5651fb1f7588087c1ea95487de020a3069a986 /drivers/ddr/altera | |
parent | 160695d88612d1e1c094fef33d279c297796b881 (diff) | |
download | u-boot-042ff2d0facaa520f1bc02b0695eb6a4e1d30b7a.tar.gz u-boot-042ff2d0facaa520f1bc02b0695eb6a4e1d30b7a.tar.xz u-boot-042ff2d0facaa520f1bc02b0695eb6a4e1d30b7a.zip |
ddr: altera: sequencer: Wrap misc remaining macros
Introduce structure socfpga_sdram_misc_config to wrap the remaining
misc configuration values in board file. Again, introduce a function,
socfpga_get_sdram_misc_config(), which returns this the structure. This
is almost the final 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')
-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 4596f552b3..70956fa3bd 100644 --- a/drivers/ddr/altera/sequencer.c +++ b/drivers/ddr/altera/sequencer.c @@ -43,6 +43,7 @@ static struct socfpga_sdr_ctrl *sdr_ctrl = const struct socfpga_sdram_rw_mgr_config *rwcfg; const struct socfpga_sdram_io_config *iocfg; +const struct socfpga_sdram_misc_config *misccfg; #define DELTA_D 1 @@ -3700,6 +3701,7 @@ int sdram_calibration_full(void) rwcfg = socfpga_get_sdram_rwmgr_config(); iocfg = socfpga_get_sdram_io_config(); + misccfg = socfpga_get_sdram_misc_config(); /* Set the calibration enabled by default */ gbl->phy_debug_mode_flags |= PHY_DEBUG_ENABLE_CAL_RPT; |