summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx28
diff options
context:
space:
mode:
authorNancy Chen <Nancy.Chen@freescale.com>2010-04-08 10:23:32 -0500
committerAlejandro Gonzalez <alex.gonzalez@digi.com>2010-05-25 11:20:21 +0200
commitf2b3f8090638f26827d75d83ed96b8faea2d0b4a (patch)
tree6d3c3fe23c167e4b6d133fa30bfaac75385cc65d /arch/arm/mach-mx28
parentc7bc95433254c656fba7aaabd789f3ba09149a06 (diff)
ENGR00122370 MX28 EMI: Fix build break
Fix build break Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'arch/arm/mach-mx28')
-rw-r--r--arch/arm/mach-mx28/clock.c4
-rw-r--r--arch/arm/mach-mx28/emi_settings.c5
-rw-r--r--arch/arm/mach-mx28/emi_settings.h8
3 files changed, 5 insertions, 12 deletions
diff --git a/arch/arm/mach-mx28/clock.c b/arch/arm/mach-mx28/clock.c
index 9e342fd7f049..2439fbfd92e3 100644
--- a/arch/arm/mach-mx28/clock.c
+++ b/arch/arm/mach-mx28/clock.c
@@ -820,8 +820,8 @@ static unsigned long emi_round_rate(struct clk *clk, unsigned long rate)
static int emi_set_rate(struct clk *clk, unsigned long rate)
{
int i;
- struct emi_change emi;
- void (*f) (struct emi_change *, unsigned int *);
+ struct mxs_emi_scaling_data emi;
+ void (*f) (struct mxs_emi_scaling_data *, unsigned int *);
f = (void *)MX28_OCRAM_BASE;
memcpy(f, mxs_ram_freq_scale,
(unsigned int)mxs_ram_freq_scale_end -
diff --git a/arch/arm/mach-mx28/emi_settings.c b/arch/arm/mach-mx28/emi_settings.c
index c70687d1a004..7dd62b9dd65a 100644
--- a/arch/arm/mach-mx28/emi_settings.c
+++ b/arch/arm/mach-mx28/emi_settings.c
@@ -32,6 +32,7 @@
#include <asm/mach/map.h>
#include <mach/mx28.h>
+#include <mach/clock.h>
#include "emi_settings.h"
static unsigned int DRAM_REG[MX28_DRAMCTRLREGNUM];
@@ -42,8 +43,8 @@ unsigned int *get_current_emidata()
void test_emi_change()
{
- struct emi_change emi;
- void (*f) (struct emi_change *, unsigned int *);
+ struct mxs_emi_scaling_data emi;
+ void (*f) (struct mxs_emi_scaling_data *, unsigned int *);
f = (void *)MX28_OCRAM_BASE;
memcpy(f, mxs_ram_freq_scale,
(unsigned int)mxs_ram_freq_scale_end -
diff --git a/arch/arm/mach-mx28/emi_settings.h b/arch/arm/mach-mx28/emi_settings.h
index b7cb0e2f7fe3..745bf5df352b 100644
--- a/arch/arm/mach-mx28/emi_settings.h
+++ b/arch/arm/mach-mx28/emi_settings.h
@@ -27,14 +27,6 @@
#define SCALING_DATA_NEW_FREQ_OFFSET 12
#ifndef __ASSEMBLER__
-struct emi_change {
- unsigned int emi_div;
- unsigned int frac_div;
- unsigned cur_freq;
- unsigned new_freq;
-};
-
-int mxs_ram_freq_scale(struct emi_change *emi);
void mxs_ram_freq_scale_end();
void DDR2EmiController_EDE1116_133MHz();
void DDR2EmiController_EDE1116_166MHz();