ddr: altera: Add DDR2 support to Gen5 driver
Add DDR2 support to Gen5 DRAM driver. As the DDR2 macro names generated
by Quartus are named differently than the DDR3 ones, use anon unions to
store them in the same structures, without growing their size.
Signed-off-by:
Marek Vasut <marex@denx.de>
Cc: Ley Foon Tan <ley.foon.tan@intel.com>
Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Showing
- arch/arm/mach-socfpga/include/mach/sdram_gen5.h 37 additions, 9 deletionsarch/arm/mach-socfpga/include/mach/sdram_gen5.h
- arch/arm/mach-socfpga/qts-filter.sh 1 addition, 1 deletionarch/arm/mach-socfpga/qts-filter.sh
- arch/arm/mach-socfpga/wrap_sdram_config.c 42 additions, 22 deletionsarch/arm/mach-socfpga/wrap_sdram_config.c
- drivers/ddr/altera/sdram_gen5.c 4 additions, 2 deletionsdrivers/ddr/altera/sdram_gen5.c
- drivers/ddr/altera/sequencer.c 158 additions, 36 deletionsdrivers/ddr/altera/sequencer.c
- drivers/ddr/altera/sequencer.h 1 addition, 0 deletionsdrivers/ddr/altera/sequencer.h
Loading
Please register or sign in to comment