diff options
-rw-r--r-- | arch/arm/mach-omap2/pdata-quirks.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index 04bfa647a934..3d472dbb9205 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include "common.h" | 16 | #include "common.h" |
17 | #include "common-board-devices.h" | 17 | #include "common-board-devices.h" |
18 | #include "dss-common.h" | 18 | #include "dss-common.h" |
19 | #include "control.h" | ||
19 | 20 | ||
20 | struct pdata_init { | 21 | struct pdata_init { |
21 | const char *compatible; | 22 | const char *compatible; |
@@ -64,6 +65,17 @@ static inline void legacy_init_wl12xx(unsigned ref_clock, | |||
64 | } | 65 | } |
65 | #endif | 66 | #endif |
66 | 67 | ||
68 | #ifdef CONFIG_ARCH_OMAP3 | ||
69 | static void __init hsmmc2_internal_input_clk(void) | ||
70 | { | ||
71 | u32 reg; | ||
72 | |||
73 | reg = omap_ctrl_readl(OMAP343X_CONTROL_DEVCONF1); | ||
74 | reg |= OMAP2_MMCSDIO2ADPCLKISEL; | ||
75 | omap_ctrl_writel(reg, OMAP343X_CONTROL_DEVCONF1); | ||
76 | } | ||
77 | #endif /* CONFIG_ARCH_OMAP3 */ | ||
78 | |||
67 | #ifdef CONFIG_ARCH_OMAP4 | 79 | #ifdef CONFIG_ARCH_OMAP4 |
68 | static void __init omap4_sdp_legacy_init(void) | 80 | static void __init omap4_sdp_legacy_init(void) |
69 | { | 81 | { |
@@ -88,6 +100,10 @@ static void __init omap5_uevm_legacy_init(void) | |||
88 | #endif | 100 | #endif |
89 | 101 | ||
90 | static struct pdata_init pdata_quirks[] __initdata = { | 102 | static struct pdata_init pdata_quirks[] __initdata = { |
103 | #ifdef CONFIG_ARCH_OMAP3 | ||
104 | { "nokia,omap3-n9", hsmmc2_internal_input_clk, }, | ||
105 | { "nokia,omap3-n950", hsmmc2_internal_input_clk, }, | ||
106 | #endif | ||
91 | #ifdef CONFIG_ARCH_OMAP4 | 107 | #ifdef CONFIG_ARCH_OMAP4 |
92 | { "ti,omap4-sdp", omap4_sdp_legacy_init, }, | 108 | { "ti,omap4-sdp", omap4_sdp_legacy_init, }, |
93 | { "ti,omap4-panda", omap4_panda_legacy_init, }, | 109 | { "ti,omap4-panda", omap4_panda_legacy_init, }, |