diff options
author | Yong Shen <yong.shen@linaro.org> | 2010-10-21 09:18:59 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-22 02:24:14 -0400 |
commit | 64f102b67f77f5054d27e58dbb26ec7ebef20e62 (patch) | |
tree | 0075f0e564fbda189c5372106b9a7287b4d536bb /arch/arm/mach-mx5/board-mx51_babbage.c | |
parent | 71e2889d9d8f2149f38bbeedfa6d9aefa0875ca6 (diff) |
cpufreq for freescale mx51
Currently, only two operating points: 160Mhz and 800Mhz.
the operating points are tested on babbage 3.0
Signed-off-by: Yong Shen <yong.shen@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/board-mx51_babbage.c')
-rw-r--r-- | arch/arm/mach-mx5/board-mx51_babbage.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c index 39304b4f0069..cbf07ff34d2b 100644 --- a/arch/arm/mach-mx5/board-mx51_babbage.c +++ b/arch/arm/mach-mx5/board-mx51_babbage.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved. | 2 | * Copyright 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved. |
3 | * Copyright (C) 2009-2010 Amit Kucheria <amit.kucheria@canonical.com> | 3 | * Copyright (C) 2009-2010 Amit Kucheria <amit.kucheria@canonical.com> |
4 | * | 4 | * |
5 | * The code contained herein is licensed under the GNU General Public | 5 | * The code contained herein is licensed under the GNU General Public |
@@ -32,6 +32,7 @@ | |||
32 | 32 | ||
33 | #include "devices-imx51.h" | 33 | #include "devices-imx51.h" |
34 | #include "devices.h" | 34 | #include "devices.h" |
35 | #include "cpu_op-mx51.h" | ||
35 | 36 | ||
36 | #define BABBAGE_USB_HUB_RESET (0*32 + 7) /* GPIO_1_7 */ | 37 | #define BABBAGE_USB_HUB_RESET (0*32 + 7) /* GPIO_1_7 */ |
37 | #define BABBAGE_USBH1_STP (0*32 + 27) /* GPIO_1_27 */ | 38 | #define BABBAGE_USBH1_STP (0*32 + 27) /* GPIO_1_27 */ |
@@ -298,6 +299,9 @@ static void __init mxc_board_init(void) | |||
298 | { | 299 | { |
299 | struct pad_desc usbh1stp = MX51_PAD_USBH1_STP__USBH1_STP; | 300 | struct pad_desc usbh1stp = MX51_PAD_USBH1_STP__USBH1_STP; |
300 | 301 | ||
302 | #if defined(CONFIG_CPU_FREQ_IMX) | ||
303 | get_cpu_op = mx51_get_cpu_op; | ||
304 | #endif | ||
301 | mxc_iomux_v3_setup_multiple_pads(mx51babbage_pads, | 305 | mxc_iomux_v3_setup_multiple_pads(mx51babbage_pads, |
302 | ARRAY_SIZE(mx51babbage_pads)); | 306 | ARRAY_SIZE(mx51babbage_pads)); |
303 | mxc_init_imx_uart(); | 307 | mxc_init_imx_uart(); |