diff options
author | Marek Vasut <marex@denx.de> | 2015-07-12 18:05:54 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-08 12:14:11 (GMT) |
commit | 17fdc9167fd8598d49f8edc930a5e5e649bd1299 (patch) | |
tree | de7505106d5b3a71523f82158ca79c4395151638 /drivers/ddr/altera/sdram.c | |
parent | c4815f76715c20dd64f4fd988f57ccb9bc84d79b (diff) | |
download | u-boot-17fdc9167fd8598d49f8edc930a5e5e649bd1299.tar.xz |
ddr: altera: Wrap SOCFPGA_SDR_ADDRESS into SDR_PHYGRP.*ADDRESS
Just trim down the constant SOCFPGA_SDR_ADDRESS + SDR_PHYGRP.*ADDRESS
in the code.
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/ddr/altera/sdram.c')
-rw-r--r-- | drivers/ddr/altera/sdram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c index 90a4b2c..474df42 100644 --- a/drivers/ddr/altera/sdram.c +++ b/drivers/ddr/altera/sdram.c @@ -38,7 +38,7 @@ struct sdram_prot_rule { static struct socfpga_system_manager *sysmgr_regs = (struct socfpga_system_manager *)SOCFPGA_SYSMGR_ADDRESS; static struct socfpga_sdr_ctrl *sdr_ctrl = - (struct socfpga_sdr_ctrl *)(SOCFPGA_SDR_ADDRESS + SDR_CTRLGRP_ADDRESS); + (struct socfpga_sdr_ctrl *)SDR_CTRLGRP_ADDRESS; static int compute_errata_rows(unsigned long long memsize, int cs, int width, int rows, int banks, int cols) |