diff options
author | Nancy Chen <Nancy.Chen@freescale.com> | 2010-04-06 23:12:19 -0500 |
---|---|---|
committer | Alejandro Gonzalez <alex.gonzalez@digi.com> | 2010-05-25 11:20:22 +0200 |
commit | 1711eb5cd1f217ba759cdfe211f38244b459110a (patch) | |
tree | 0f6be6c2e41df1af6d68d8a89daa16200ee49cbc /arch/arm/plat-mxs/device.c | |
parent | 1b86778c6746d9173d8d00dd615318472f72ce60 (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/device.c')
-rw-r--r-- | arch/arm/plat-mxs/device.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/plat-mxs/device.c b/arch/arm/plat-mxs/device.c index 67520cd767ef..684ffd8e2afa 100644 --- a/arch/arm/plat-mxs/device.c +++ b/arch/arm/plat-mxs/device.c @@ -433,6 +433,18 @@ static struct platform_device mxs_adc = { }; #endif +static struct platform_device busfreq_device = { + .name = "busfreq", + .id = 0, + .dev = { + .release = mxs_nop_release, + }, +}; + +static inline void mxs_init_busfreq(void) +{ + (void)platform_device_register(&busfreq_device); +} static struct mxs_dev_lookup dev_lookup[] = { #if defined(CONFIG_SERIAL_MXS_DUART) || \ @@ -706,6 +718,8 @@ int mxs_device_init(void) defined(CONFIG_BACKLIGHT_MXS_MODULE) platform_device_register(&mxs_bl); #endif + + mxs_init_busfreq(); return ret; } |