]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mvebu: a38x: Add optional support for using old DDR3 training code
authorMarek Behún <kabel@kernel.org>
Tue, 18 Jun 2024 15:34:38 +0000 (17:34 +0200)
committerStefan Roese <sr@denx.de>
Mon, 8 Jul 2024 06:20:58 +0000 (08:20 +0200)
commitaff4ea11d18d71fd5c87b5503e99284cc2927502
tree0a188fed04bd9c9569d50146a246dd432e2349e9
parent667ffbfa907b45b1796bb408e77c5df56a1c1891
arm: mvebu: a38x: Add optional support for using old DDR3 training code

Add optional support for using old DDR3 training code from 2017.

The code lives in drivers/ddr/marvell/a38x/old/. To prevent symbol
clashing with new DDR3 training code, a special header which renames all
clashing symbols via macros is included and the symbols are prefixed
with 'old_'.

If old DDR3 training support is selected for a board, then the SPL
initialization code calls a new function
  board_use_old_ddr3_training()
to check whether it should use old DDR3 training code. The default
weak implementation returns false, defaulting to new DDR3 training code.

Boards that wish to support this need to select the
  ARMADA_38X_SUPPORT_OLD_DDR3_TRAINING
config option and implement the old version of DDR topology provider,
ddr3_get_topology_map().

Signed-off-by: Marek Behún <kabel@kernel.org>
arch/arm/mach-mvebu/Kconfig
arch/arm/mach-mvebu/include/mach/cpu.h
arch/arm/mach-mvebu/spl.c
drivers/ddr/marvell/a38x/Makefile
drivers/ddr/marvell/a38x/old/Makefile
drivers/ddr/marvell/a38x/old/glue_symbol_renames.h [new file with mode: 0644]