aboutsummaryrefslogtreecommitdiff
path: root/drivers/ddr/marvell
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2024-06-18 17:34:36 +0200
committerStefan Roese <sr@denx.de>2024-07-08 08:20:58 +0200
commitaf6c737807ac99aed804bb93a8f15e50fc321106 (patch)
treee3ce7e9fed43606c5150e401980027d3a14f2b5a /drivers/ddr/marvell
parentcae6e8993c8eaed7c520b1046766b658e0f97b90 (diff)
downloadu-boot-af6c737807ac99aed804bb93a8f15e50fc321106.zip
u-boot-af6c737807ac99aed804bb93a8f15e50fc321106.tar.gz
u-boot-af6c737807ac99aed804bb93a8f15e50fc321106.tar.bz2
ddr: marvell: a38x: old: Fix some compiler warning of the old code
Fix some compilation warning in the old DDR training code. Signed-off-by: Marek BehĂșn <kabel@kernel.org>
Diffstat (limited to 'drivers/ddr/marvell')
-rw-r--r--drivers/ddr/marvell/a38x/old/ddr3_a38x.c1
-rw-r--r--drivers/ddr/marvell/a38x/old/ddr3_init.h2
-rw-r--r--drivers/ddr/marvell/a38x/old/ddr3_training.c1
-rw-r--r--drivers/ddr/marvell/a38x/old/ddr3_training_ip_engine.c1
-rw-r--r--drivers/ddr/marvell/a38x/old/ddr3_training_leveling.c1
5 files changed, 6 insertions, 0 deletions
diff --git a/drivers/ddr/marvell/a38x/old/ddr3_a38x.c b/drivers/ddr/marvell/a38x/old/ddr3_a38x.c
index cc2e498..8504b9b 100644
--- a/drivers/ddr/marvell/a38x/old/ddr3_a38x.c
+++ b/drivers/ddr/marvell/a38x/old/ddr3_a38x.c
@@ -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"
diff --git a/drivers/ddr/marvell/a38x/old/ddr3_init.h b/drivers/ddr/marvell/a38x/old/ddr3_init.h
index 8cb0886..ad95cc9 100644
--- a/drivers/ddr/marvell/a38x/old/ddr3_init.h
+++ b/drivers/ddr/marvell/a38x/old/ddr3_init.h
@@ -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;
diff --git a/drivers/ddr/marvell/a38x/old/ddr3_training.c b/drivers/ddr/marvell/a38x/old/ddr3_training.c
index c5ebd7c..29b31a0 100644
--- a/drivers/ddr/marvell/a38x/old/ddr3_training.c
+++ b/drivers/ddr/marvell/a38x/old/ddr3_training.c
@@ -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"
diff --git a/drivers/ddr/marvell/a38x/old/ddr3_training_ip_engine.c b/drivers/ddr/marvell/a38x/old/ddr3_training_ip_engine.c
index 7ac23ae..869f397 100644
--- a/drivers/ddr/marvell/a38x/old/ddr3_training_ip_engine.c
+++ b/drivers/ddr/marvell/a38x/old/ddr3_training_ip_engine.c
@@ -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"
diff --git a/drivers/ddr/marvell/a38x/old/ddr3_training_leveling.c b/drivers/ddr/marvell/a38x/old/ddr3_training_leveling.c
index 8073c2b..d41845a 100644
--- a/drivers/ddr/marvell/a38x/old/ddr3_training_leveling.c
+++ b/drivers/ddr/marvell/a38x/old/ddr3_training_leveling.c
@@ -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"