diff options
author | Tom Rini <trini@konsulko.com> | 2019-04-21 18:59:30 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-04-21 18:59:30 -0400 |
commit | b4fde1633e67bb618fd33aad6e6322b7cecf1154 (patch) | |
tree | d427acfe3e80e6614a6b9312cb91892dd3dfd8ac /drivers/ddr/altera/sequencer.c | |
parent | 1f4ae66eaab29bfb5d1eb44996f7826c9cd01ed1 (diff) | |
parent | e09c1a133155724d3369e150f3ab7b63c875101c (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-socfpga
- Various stratix10, gen5 updates
Diffstat (limited to 'drivers/ddr/altera/sequencer.c')
-rw-r--r-- | drivers/ddr/altera/sequencer.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c index 5e7a943b68..0e4526288e 100644 --- a/drivers/ddr/altera/sequencer.c +++ b/drivers/ddr/altera/sequencer.c @@ -3705,12 +3705,19 @@ static void initialize_tracking(void) &sdr_reg_file->trk_rfsh); } -int sdram_calibration_full(void) +int sdram_calibration_full(struct socfpga_sdr *sdr) { struct param_type my_param; struct gbl_type my_gbl; u32 pass; + /* + * For size reasons, this file uses hard coded addresses. + * Check if we are called with the correct address. + */ + if (sdr != (struct socfpga_sdr *)SOCFPGA_SDR_ADDRESS) + return -ENODEV; + memset(&my_param, 0, sizeof(my_param)); memset(&my_gbl, 0, sizeof(my_gbl)); |