ddr: altera: Add SDRAM driver for Intel N5X device
authorTien Fong Chee <tien.fong.chee@intel.com>
Tue, 10 Aug 2021 03:26:37 +0000 (11:26 +0800)
committerTien Fong Chee <tien.fong.chee@intel.com>
Wed, 25 Aug 2021 05:47:05 +0000 (13:47 +0800)
commit59d423042934e95b6e2989c0a5acd6c23525c541
tree00f174bef1a2827839ca24cec01c671c0bd716a3
parent1b378cc95addaf3d8d6928069b84c7a5c4e73f24
ddr: altera: Add SDRAM driver for Intel N5X device

The DDR subsystem in Diamond Mesa is consisted of controller, PHY,
memory reset manager and memory clock manager.

Configuration settings of controller, PHY and  memory reset manager
is come from DDR handoff data in bitstream, which contain the register
base addresses and user settings from tool.

Configuration settings of memory clock manager is come from the HPS
handoff data in bitstream, however the register base address is defined
in device tree.

The calibration is fully done in HPS, which requires IMEM and DMEM
binaries loading to PHY SRAM for running this calibration, both
IMEM and DMEM binaries are also part of bitstream, this bitstream
would be loaded to OCRAM by SDM, and configured by DDR driver.

Signed-off-by: Siew Chin Lim <elly.siew.chin.lim@intel.com>
Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
arch/arm/mach-socfpga/include/mach/firewall.h
arch/arm/mach-socfpga/include/mach/system_manager_soc64.h
drivers/ddr/altera/Makefile
drivers/ddr/altera/sdram_n5x.c [new file with mode: 0644]
drivers/ddr/altera/sdram_soc64.c
drivers/ddr/altera/sdram_soc64.h