u-boot/drivers/ddr/marvell/a38x
Tony Dinh 54a08c4139 ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository
This syncs drivers/ddr/marvell/a38x/ with the master branch of repository
https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git

up to the commit "mv_ddr: a3700: Use the right size for memset to not overflow"
d5acc10c287e40cc2feeb28710b92e45c93c702c

This patch was created by following steps:

	1. Replace all a38x files in U-Boot tree by files from upstream github
	Marvell mv-ddr-marvell repository.

	2. Run following command to omit portions not relevant for a38x, ddr3, and ddr4:

	files=drivers/ddr/marvell/a38x/*
	unifdef -m -UMV_DDR -UMV_DDR_ATF -UCONFIG_APN806 \
		-UCONFIG_MC_STATIC -UCONFIG_MC_STATIC_PRINT -UCONFIG_PHY_STATIC \
		-UCONFIG_PHY_STATIC_PRINT -UCONFIG_CUSTOMER_BOARD_SUPPORT \
		-UCONFIG_A3700 -UA3900 -UA80X0 -UA70X0 -DCONFIG_ARMADA_38X -UCONFIG_ARMADA_39X \
		-UCONFIG_64BIT $files

	3. Manually change license to SPDX-License-Identifier
	(upstream license in  upstream github repository contains long license
	texts and U-Boot is using just SPDX-License-Identifier.

After applying this patch, a38x, ddr3, and ddr4 code in upstream Marvell github
repository and in U-Boot would be fully identical. So in future applying
above steps could be used to sync code again.

The only change in this patch are:
	1. Some fixes with include files.
	2. Some function return and basic type defines changes in
	mv_ddr_plat.c (to correct Marvell bug).
	3. Remove of dead code in newly copied files (as a result of the
	filter script stripping out everything other than a38x, dd3, and ddr4).

Reference:
    "ddr: marvell: a38x: Sync code with Marvell mv-ddr-marvell repository"
    107c3391b9

Signed-off-by: Tony Dinh <mibodhi@gmail.com>
Reviewed-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
2023-01-26 07:30:20 +01:00
..
ddr3_debug.c ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
ddr3_init.c ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
ddr3_init.h ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
ddr3_logging_def.h ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
ddr3_patterns_64bit.h ARM: mvebu: a38x: sync ddr training code with upstream 2018-05-14 10:01:56 +02:00
ddr3_training.c ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
ddr3_training_bist.c ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
ddr3_training_centralization.c ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
ddr3_training_db.c ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
ddr3_training_hw_algo.c mv_ddr: ddr3: Update {min,max}_read_sample calculation 2020-07-09 06:49:44 +02:00
ddr3_training_hw_algo.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr3_training_ip.h ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
ddr3_training_ip_bist.h ARM: mvebu: a38x: sync ddr training code with upstream 2018-05-14 10:01:56 +02:00
ddr3_training_ip_centralization.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr3_training_ip_db.h ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
ddr3_training_ip_def.h ddr: marvell: a38x: add 16Gbit memory devices support 2021-02-26 10:22:29 +01:00
ddr3_training_ip_engine.c ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
ddr3_training_ip_engine.h ARM: mvebu: a38x: sync ddr training code with mv_ddr-armada-18.09.02 2018-12-08 16:19:40 +01:00
ddr3_training_ip_flow.h ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
ddr3_training_ip_pbs.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr3_training_ip_prv_if.h ARM: mvebu: a38x: sync ddr training code with mv_ddr-armada-18.09.02 2018-12-08 16:19:40 +01:00
ddr3_training_leveling.c ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
ddr3_training_leveling.h ARM: mvebu: a38x: sync ddr training code with mv_ddr-armada-18.09.02 2018-12-08 16:19:40 +01:00
ddr3_training_pbs.c ARM: mvebu: a38x: sync ddr training code with mv_ddr-armada-18.09.02 2018-12-08 16:19:40 +01:00
ddr_ml_wrapper.h ddr: marvell: a38x: Sync code with Marvell mv-ddr-marvell repository 2021-03-12 07:42:37 +01:00
ddr_topology_def.h ddr: marvell: a38x: enum mv_ddr_twin_die: change order 2021-02-26 10:22:29 +01:00
ddr_training_ip_db.h ARM: mvebu: a38x: sync ddr training code with mv_ddr-armada-18.09.02 2018-12-08 16:19:40 +01:00
dram_if.h ARM: mvebu: a38x: sync ddr training code with mv_ddr-armada-18.09.02 2018-12-08 16:19:40 +01:00
Makefile ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
mv_ddr4_mpr_pda_if.c ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
mv_ddr4_mpr_pda_if.h ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
mv_ddr4_training.c ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
mv_ddr4_training.h ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
mv_ddr4_training_calibration.c ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
mv_ddr4_training_calibration.h ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
mv_ddr4_training_db.c ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
mv_ddr4_training_leveling.c ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
mv_ddr4_training_leveling.h ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
mv_ddr_build_message.c ddr: marvell: a38x: bump version to 14.0.0 2021-02-26 10:22:29 +01:00
mv_ddr_common.c ARM: mvebu: a38x: sync ddr training code with upstream 2018-05-14 10:01:56 +02:00
mv_ddr_common.h ARM: mvebu: a38x: sync ddr training code with mv_ddr-armada-18.09.02 2018-12-08 16:19:40 +01:00
mv_ddr_plat.c ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
mv_ddr_plat.h ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
mv_ddr_regs.h ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
mv_ddr_spd.c ddr: marvell: a38x: fix memory size calculation using 32bit bus width 2021-02-26 10:22:29 +01:00
mv_ddr_spd.h ddr: marvell: a38x: Add more space for additional info from SPD 2021-03-12 07:42:37 +01:00
mv_ddr_sys_env_lib.c ARM: mvebu: a38x: sync ddr training code with upstream 2018-05-14 10:01:56 +02:00
mv_ddr_sys_env_lib.h arm: mvebu: a38x: Remove dead code ARMADA_39X 2021-03-12 07:44:21 +01:00
mv_ddr_topology.c ddr: marvell: a38x: add support for twin-die combined memory device 2021-02-26 10:22:29 +01:00
mv_ddr_topology.h ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository 2023-01-26 07:30:20 +01:00
mv_ddr_training_db.h ARM: mvebu: a38x: sync ddr training code with mv_ddr-armada-18.09.02 2018-12-08 16:19:40 +01:00
seq_exec.h ARM: mvebu: a38x: sync ddr training code with upstream 2018-05-14 10:01:56 +02:00
xor.c ddr: marvell: a38x: Sync code with Marvell mv-ddr-marvell repository 2021-03-12 07:42:37 +01:00
xor.h ARM: mvebu: a38x: sync ddr training code with upstream 2018-05-14 10:01:56 +02:00
xor_regs.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00