Skip to content

ddr: altera: arria10: Convert SDRAM driver to DM

Ley Foon Tan u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 0 repliesNew
  2. v17 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Update Patch[1] commit description
- Change debug() to printf() if failed to probe SDRAM driver in SPL. [Patch 2]
- Change to use MACRO(n) to calculate register address. [Patch 2]
- Call to reset_assert_bulk() if failed in _probe(). [Patch 3]
- Change SZ_1G to full SDRAM size in get_ram_size() argument. [Patch 5]
- Patch 4, 6 and 7 unchanged.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ddr: altera: arria10: Fix incorrect address for mpu1drivers/ddr/altera/sdram_arria10.c+0 -10 replies
2/7ddr: altera: arria10: Move SDRAM driver to DMarch/arm/dts/socfpga_arria10-u-boot.dtsi arch/arm/mach-socfpga/include/mach/sdram_arria10.h arch/arm/mach-socfpga/spl_a10.c +2 more+251 -3340 replies
3/7ddr: altera: arria10: Change to use reset DM functionarch/arm/mach-socfpga/include/mach/reset_manager_arria10.h arch/arm/mach-socfpga/reset_manager_arria10.c drivers/ddr/altera/sdram_arria10.c+14 -200 replies
4/7arm: socfpga: arria10: Move sdram_arria10.h to drivers/ddr/alteraarch/arm/mach-socfpga/include/mach/sdram.h arch/arm/mach-socfpga/misc_arria10.c drivers/ddr/altera/sdram_arria10.c +1 more+4 -30 replies
5/7ddr: altera: arria10: Add RAM size checkdrivers/ddr/altera/sdram_arria10.c+18 -10 replies
6/7ddr: altera: arria10: Change %i to %u for printfdrivers/ddr/altera/sdram_arria10.c+1 -10 replies
7/7ddr: altera: arria10: Remove call to dram_init_banksize()drivers/ddr/altera/sdram_arria10.c+0 -32 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchTom Rini
1/7
2/7
3/7
4/7
5/7
6/7R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] ddr: altera: arria10: Convert SDRAM driver to DM

This patchset mainly to covert Arria 10 SDRAM driver to device model and fixes few bugs in driver. It also added RAM size check function to check valid RAM.

v1->v2:
- Update Patch[1] commit description
- Change debug() to printf() if failed to probe SDRAM driver in SPL. [Patch 2]
- Change to use MACRO(n) to calculate register address. [Patch 2]
- Call to reset_assert_bulk() if failed in _probe(). [Patch 3]
- Change SZ_1G to full SDRAM size in get_ram_size() argument. [Patch 5]
- Patch 4, 6 and 7 unchanged.

Ley Foon Tan (7):
ddr: altera: arria10: Fix incorrect address for mpu1
ddr: altera: arria10: Move SDRAM driver to DM
ddr: altera: arria10: Change to use reset DM function
arm: socfpga: arria10: Move sdram_arria10.h to drivers/ddr/altera
ddr: altera: arria10: Add RAM size check
ddr: altera: arria10: Change %i to %u for printf
ddr: altera: arria10: Remove call to dram_init_banksize()

 arch/arm/dts/socfpga_arria10-u-boot.dtsi      |   8 +
 .../include/mach/reset_manager_arria10.h      |   1 -
 arch/arm/mach-socfpga/include/mach/sdram.h    |   2 +-
 arch/arm/mach-socfpga/misc_arria10.c          |   2 +-
 arch/arm/mach-socfpga/reset_manager_arria10.c |   7 -
 arch/arm/mach-socfpga/spl_a10.c               |  14 +-
 drivers/ddr/altera/Kconfig                    |   4 +-
 drivers/ddr/altera/sdram_arria10.c            | 382 ++++++++++--------
 .../ddr/altera}/sdram_arria10.h               | 225 ++---------
 9 files changed, 285 insertions(+), 360 deletions(-)
 rename {arch/arm/mach-socfpga/include/mach => drivers/ddr/altera}/sdram_arria10.h (72%)
Signature · 1 line
2.19.0