Re: [PATCH v2 1/3] ARM: OMAP2: pdata-quirks: set internal clock source for MMC2 on N950/N9

2013-09-25 Thread Tony Lindgren
* Aaro Koskinen aaro.koski...@iki.fi [130924 12:36]:
 Set internal clock source for MMC2 on N950/N9.
 
 Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi

Thanks applied into omap-for-v3.13/quirk and pushed
out.

I'll apply the board file removal later on into a separate
branch, and Benoit can pick the .dts changes.

Regards,

Tony

  arch/arm/mach-omap2/pdata-quirks.c | 16 
  1 file changed, 16 insertions(+)
 
 diff --git a/arch/arm/mach-omap2/pdata-quirks.c 
 b/arch/arm/mach-omap2/pdata-quirks.c
 index 52b4bc3..1a7f492 100644
 --- a/arch/arm/mach-omap2/pdata-quirks.c
 +++ b/arch/arm/mach-omap2/pdata-quirks.c
 @@ -16,6 +16,7 @@
  #include common.h
  #include common-board-devices.h
  #include dss-common.h
 +#include control.h
  
  struct pdata_init {
   const char *compatible;
 @@ -62,6 +63,17 @@ static inline void omap_init_wl12xx_of(void)
  }
  #endif
  
 +#ifdef CONFIG_ARCH_OMAP3
 +static void __init hsmmc2_internal_input_clk(void)
 +{
 + u32 reg;
 +
 + reg = omap_ctrl_readl(OMAP343X_CONTROL_DEVCONF1);
 + reg |= OMAP2_MMCSDIO2ADPCLKISEL;
 + omap_ctrl_writel(reg, OMAP343X_CONTROL_DEVCONF1);
 +}
 +#endif /* CONFIG_ARCH_OMAP3 */
 +
  #ifdef CONFIG_ARCH_OMAP4
  static void __init omap4_sdp_legacy_init(void)
  {
 @@ -86,6 +98,10 @@ static void __init omap5_uevm_legacy_init(void)
  #endif
  
  static struct pdata_init pdata_quirks[] __initdata = {
 +#ifdef CONFIG_ARCH_OMAP3
 + { nokia,omap3-n9, hsmmc2_internal_input_clk, },
 + { nokia,omap3-n950, hsmmc2_internal_input_clk, },
 +#endif
  #ifdef CONFIG_ARCH_OMAP4
   { ti,omap4-sdp, omap4_sdp_legacy_init, },
   { ti,omap4-panda, omap4_panda_legacy_init, },
 -- 
 1.8.4.rc3
 
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v2 1/3] ARM: OMAP2: pdata-quirks: set internal clock source for MMC2 on N950/N9

2013-09-24 Thread Aaro Koskinen
Set internal clock source for MMC2 on N950/N9.

Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi
---
 arch/arm/mach-omap2/pdata-quirks.c | 16 
 1 file changed, 16 insertions(+)

diff --git a/arch/arm/mach-omap2/pdata-quirks.c 
b/arch/arm/mach-omap2/pdata-quirks.c
index 52b4bc3..1a7f492 100644
--- a/arch/arm/mach-omap2/pdata-quirks.c
+++ b/arch/arm/mach-omap2/pdata-quirks.c
@@ -16,6 +16,7 @@
 #include common.h
 #include common-board-devices.h
 #include dss-common.h
+#include control.h
 
 struct pdata_init {
const char *compatible;
@@ -62,6 +63,17 @@ static inline void omap_init_wl12xx_of(void)
 }
 #endif
 
+#ifdef CONFIG_ARCH_OMAP3
+static void __init hsmmc2_internal_input_clk(void)
+{
+   u32 reg;
+
+   reg = omap_ctrl_readl(OMAP343X_CONTROL_DEVCONF1);
+   reg |= OMAP2_MMCSDIO2ADPCLKISEL;
+   omap_ctrl_writel(reg, OMAP343X_CONTROL_DEVCONF1);
+}
+#endif /* CONFIG_ARCH_OMAP3 */
+
 #ifdef CONFIG_ARCH_OMAP4
 static void __init omap4_sdp_legacy_init(void)
 {
@@ -86,6 +98,10 @@ static void __init omap5_uevm_legacy_init(void)
 #endif
 
 static struct pdata_init pdata_quirks[] __initdata = {
+#ifdef CONFIG_ARCH_OMAP3
+   { nokia,omap3-n9, hsmmc2_internal_input_clk, },
+   { nokia,omap3-n950, hsmmc2_internal_input_clk, },
+#endif
 #ifdef CONFIG_ARCH_OMAP4
{ ti,omap4-sdp, omap4_sdp_legacy_init, },
{ ti,omap4-panda, omap4_panda_legacy_init, },
-- 
1.8.4.rc3

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html