From: Alif Zakuan Yuslaimi <[email protected]>
This patch set updates the boot support for the Altera SoCFPGA Gen5/Arria10
platform in U-Boot. The changes include:
1. Update MMU/dcache setup across Gen5/Arria10 using common driver
2. Add ECC scrubbing support for Gen5/Arria10
3. Add DRAM size checking for Gen5/Arria10
This patch set has been tested on CycloneV devkit with SDMMC boot and RAM boot
(TFTP & ARM DS debugger).
Tested on Arria10 devkit with RAM boot as well
Changes in v3:
- Removed 'select SPL_CACHE if SPL' Kconfig guard from this patch and
applied this condition alongside SOCFPGA_ECC_SUPPORT on patch 3
- Move the bdata declaration and gd->bd = &bdata assignment from spl_gen5.c
in patch 3 into this patch, making this patch self-contained
- Updated commit message
- Removed legacy HW watchdog check in favor of current WDT DM for Gen5/Arria10
- Dead code cleanups, indentation fixes
Changes in v2:
- Shared dram_bank_mmu_setup() is set as optional via Kconfig and defaulted
on only for the reference Arria10/CycloneV boards to avoid SPL overflows
on size-limited Gen5 defconfigs.
- DRAM size checking is set as optional via Kconfig and defaulted on only
for the reference Arria10/CycloneV boards to avoid SPL overflows on
size-limited Gen5 defconfigs.
- ECC scrubbing is set as optional via Kconfig and defaulted on only for
the reference Arria10/CycloneV boards to avoid SPL overflows on
size-limited Gen5 defconfigs.
Alif Zakuan Yuslaimi (3):
arm: socfpga: Consolidate dram_bank_mmu_setup()
ddr: altera: gen5: Add DRAM size checking
ddr: socfpga: Implement ECC DRAM scrubbing support for both
Gen5/Arria10
arch/arm/mach-socfpga/Kconfig | 21 +++++++
arch/arm/mach-socfpga/misc.c | 31 ++++++++++
arch/arm/mach-socfpga/misc_arria10.c | 26 ---------
arch/arm/mach-socfpga/spl_a10.c | 11 +---
arch/arm/mach-socfpga/spl_gen5.c | 17 ++++++
drivers/ddr/altera/Makefile | 4 +-
drivers/ddr/altera/sdram_arria10.c | 31 ++++------
drivers/ddr/altera/sdram_gen5.c | 62 +++++++++++++++++++-
drivers/ddr/altera/sdram_soc32.c | 85 ++++++++++++++++++++++++++++
drivers/ddr/altera/sdram_soc32.h | 15 +++++
10 files changed, 246 insertions(+), 57 deletions(-)
create mode 100644 drivers/ddr/altera/sdram_soc32.c
create mode 100644 drivers/ddr/altera/sdram_soc32.h
--
2.43.7
base-commit: ae8987f4e690f397f507c4b1efabd68b3ed08db6
branch: master_soc32_dram_mmu_setup_v3