]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ddr: marvell: a38x: old: Fix some compiler warning of the old code
authorMarek Behún <kabel@kernel.org>
Tue, 18 Jun 2024 15:34:36 +0000 (17:34 +0200)
committerStefan Roese <sr@denx.de>
Mon, 8 Jul 2024 06:20:58 +0000 (08:20 +0200)
Fix some compilation warning in the old DDR training code.

Signed-off-by: Marek Behún <kabel@kernel.org>
drivers/ddr/marvell/a38x/old/ddr3_a38x.c
drivers/ddr/marvell/a38x/old/ddr3_init.h
drivers/ddr/marvell/a38x/old/ddr3_training.c
drivers/ddr/marvell/a38x/old/ddr3_training_ip_engine.c
drivers/ddr/marvell/a38x/old/ddr3_training_leveling.c

index cc2e498d50dbb4a34c42f060028bb0e8cc4e0389..8504b9b40c5d1541a5ad76c34ce69624c0261e83 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 #include "ddr3_init.h"
 
index 8cb08864c292bb43e0ff113643517fda44ab52b3..ad95cc9ef8b04a169fa73f163618bcefd82d8d10 100644 (file)
@@ -291,7 +291,9 @@ extern struct cl_val_per_freq cas_latency_table[];
 extern u32 target_freq;
 extern struct hws_tip_config_func_db config_func_info[HWS_MAX_DEVICE_NUM];
 extern u32 clamp_tbl[];
+#if 0
 extern u32 init_freq;
+#endif
 /* list of allowed frequency listed in order of enum hws_ddr_freq */
 extern u32 freq_val[];
 extern u8 debug_training_static;
index c5ebd7c16d549c9e516e07b5f0257a80d1b38964..29b31a059a7cfc16349d60c814a9484bb6af0bee 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 #include "ddr3_init.h"
 
index 7ac23aedc6ba823416715a0f2b5a361870baf386..869f397b7fa8547cd7e78bf3fc21480a49f79a34 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 #include "ddr3_init.h"
 
index 8073c2baaf8432eba76cc3b1b72f64bc0c0f0d7e..d41845a4f4a9e084bfc5ee5c702d52dd85bf4193 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <linux/delay.h>
 
 #include "ddr3_init.h"