diff options
Diffstat (limited to 'arch/arm/mach-shmobile/board-ape6evm.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-ape6evm.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-ape6evm.c b/arch/arm/mach-shmobile/board-ape6evm.c index 55b8c9fef954..5eb0caa6a7d0 100644 --- a/arch/arm/mach-shmobile/board-ape6evm.c +++ b/arch/arm/mach-shmobile/board-ape6evm.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
27 | #include <linux/regulator/fixed.h> | 27 | #include <linux/regulator/fixed.h> |
28 | #include <linux/regulator/machine.h> | 28 | #include <linux/regulator/machine.h> |
29 | #include <linux/sh_clk.h> | ||
29 | #include <linux/smsc911x.h> | 30 | #include <linux/smsc911x.h> |
30 | #include <mach/common.h> | 31 | #include <mach/common.h> |
31 | #include <mach/irqs.h> | 32 | #include <mach/irqs.h> |
@@ -65,7 +66,21 @@ static const struct pinctrl_map ape6evm_pinctrl_map[] = { | |||
65 | 66 | ||
66 | static void __init ape6evm_add_standard_devices(void) | 67 | static void __init ape6evm_add_standard_devices(void) |
67 | { | 68 | { |
69 | |||
70 | struct clk *parent; | ||
71 | struct clk *mp; | ||
72 | |||
68 | r8a73a4_clock_init(); | 73 | r8a73a4_clock_init(); |
74 | |||
75 | /* MP clock parent = extal2 */ | ||
76 | parent = clk_get(NULL, "extal2"); | ||
77 | mp = clk_get(NULL, "mp"); | ||
78 | BUG_ON(IS_ERR(parent) || IS_ERR(mp)); | ||
79 | |||
80 | clk_set_parent(mp, parent); | ||
81 | clk_put(parent); | ||
82 | clk_put(mp); | ||
83 | |||
69 | pinctrl_register_mappings(ape6evm_pinctrl_map, | 84 | pinctrl_register_mappings(ape6evm_pinctrl_map, |
70 | ARRAY_SIZE(ape6evm_pinctrl_map)); | 85 | ARRAY_SIZE(ape6evm_pinctrl_map)); |
71 | r8a73a4_pinmux_init(); | 86 | r8a73a4_pinmux_init(); |