summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxs/include
diff options
context:
space:
mode:
authorNancy Chen <Nancy.Chen@freescale.com>2010-04-06 23:12:19 -0500
committerAlejandro Gonzalez <alex.gonzalez@digi.com>2010-05-25 11:20:22 +0200
commit1711eb5cd1f217ba759cdfe211f38244b459110a (patch)
tree0f6be6c2e41df1af6d68d8a89daa16200ee49cbc /arch/arm/plat-mxs/include
parent1b86778c6746d9173d8d00dd615318472f72ce60 (diff)
ENGR00121905-2 MX28: Restructure cpufreq driver
Restructure cpufreq driver. Fix clock count not right. Fix cpu frequency can not be changed from 64 MHz. Add cpufreq trig update feature. Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'arch/arm/plat-mxs/include')
-rw-r--r--arch/arm/plat-mxs/include/mach/bus_freq.h2
-rw-r--r--arch/arm/plat-mxs/include/mach/clock.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/plat-mxs/include/mach/bus_freq.h b/arch/arm/plat-mxs/include/mach/bus_freq.h
index 0d3406671d88..a0254e84ca5c 100644
--- a/arch/arm/plat-mxs/include/mach/bus_freq.h
+++ b/arch/arm/plat-mxs/include/mach/bus_freq.h
@@ -20,7 +20,7 @@
#define BUS_FREQ_H__
#define VERY_HI_RATE 2000000000
-#define LCD_ON_CPU_FREQ_KHZ 261820
+#define LCD_ON_CPU_FREQ_KHZ 261818
#define OPERATION_WP_SUPPORTED 6
struct profile {
diff --git a/arch/arm/plat-mxs/include/mach/clock.h b/arch/arm/plat-mxs/include/mach/clock.h
index 82fd70853692..744a031b42b6 100644
--- a/arch/arm/plat-mxs/include/mach/clock.h
+++ b/arch/arm/plat-mxs/include/mach/clock.h
@@ -30,7 +30,7 @@ struct clk {
struct clk *secondary;
unsigned long flags;
- unsigned int ref;
+ __s8 ref;
unsigned int scale_bits;
unsigned int enable_bits;
unsigned int bypass_bits;
@@ -103,6 +103,7 @@ static u32 mxs_ram_funcs_sz;
/* 0 ~ 16 attribute flags */
#define ALWAYS_ENABLED (1 << 0) /* Clock cannot be disabled */
#define RATE_FIXED (1 << 1) /* Fixed clock rate */
+#define CPU_FREQ_TRIG_UPDATE (1 << 2) /* CPUFREQ trig update */
/* 16 ~ 23 reservied */
/* 24 ~ 31 run time flags */