diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2013-05-09 22:19:01 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-06-17 03:45:10 -0400 |
commit | c1e31d126b4db6a3a8d96883fae40fe22d5eba65 (patch) | |
tree | 88dc2c60a53d0f6ad84545de3975f43b6b7b7b51 /arch/arm/mach-imx/imx51-dt.c | |
parent | 18cb680f1a003a1a1ec0e6097d7b763516a27f04 (diff) |
ARM: imx: create mxc_arch_reset_init_dt() for DT boot
The mxc_arch_reset_init() uses static mapping and calls clk_get_sys() to
get clock. It's suitable for non-DT boot but not for DT boot where
dynamic mapping and of_clk_get() should be used instead. Create
mxc_arch_reset_init_dt() as the DT variant of mxc_arch_reset_init(),
and change DT platforms to use it.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/imx51-dt.c')
-rw-r--r-- | arch/arm/mach-imx/imx51-dt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/imx51-dt.c b/arch/arm/mach-imx/imx51-dt.c index 55f47a0f98c0..53e43e579dd7 100644 --- a/arch/arm/mach-imx/imx51-dt.c +++ b/arch/arm/mach-imx/imx51-dt.c | |||
@@ -17,14 +17,13 @@ | |||
17 | #include <asm/mach/time.h> | 17 | #include <asm/mach/time.h> |
18 | 18 | ||
19 | #include "common.h" | 19 | #include "common.h" |
20 | #include "hardware.h" | ||
21 | #include "mx51.h" | 20 | #include "mx51.h" |
22 | 21 | ||
23 | static void __init imx51_dt_init(void) | 22 | static void __init imx51_dt_init(void) |
24 | { | 23 | { |
25 | struct platform_device_info devinfo = { .name = "cpufreq-cpu0", }; | 24 | struct platform_device_info devinfo = { .name = "cpufreq-cpu0", }; |
26 | 25 | ||
27 | mxc_arch_reset_init(MX51_IO_ADDRESS(MX51_WDOG1_BASE_ADDR)); | 26 | mxc_arch_reset_init_dt(); |
28 | 27 | ||
29 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 28 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
30 | platform_device_register_full(&devinfo); | 29 | platform_device_register_full(&devinfo); |