]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
EXYNOS5: Add function to enable XXTI clock source
authorRajeshwari Shinde <rajeshwari.s@samsung.com>
Thu, 14 Feb 2013 19:46:11 +0000 (19:46 +0000)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 8 Mar 2013 13:34:18 +0000 (22:34 +0900)
This patch adds funtion to enable XXTI clock source
required by MAX98095 codec.

Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/cpu/armv7/exynos/power.c
arch/arm/include/asm/arch-exynos/power.h

index 400c8bcfc5f2f97f623002619d69674b7ba94754..db7249ef7fd608b4eecebd30ee61b87d27f3b13f 100644 (file)
@@ -111,3 +111,20 @@ void set_ps_hold_ctrl(void)
        if (cpu_is_exynos5())
                exynos5_set_ps_hold_ctrl();
 }
+
+
+static void exynos5_set_xclkout(void)
+{
+       struct exynos5_power *power =
+               (struct exynos5_power *)samsung_get_base_power();
+
+       /* use xxti for xclk out */
+       clrsetbits_le32(&power->pmu_debug, PMU_DEBUG_CLKOUT_SEL_MASK,
+                               PMU_DEBUG_XXTI);
+}
+
+void set_xclkout(void)
+{
+       if (cpu_is_exynos5())
+               exynos5_set_xclkout();
+}
index f2f73faa759c9086a01c00fd3ac2bb5646e795ab..5f2633763c4799269880aed5a41625b41a92d966 100644 (file)
@@ -873,4 +873,15 @@ void set_dp_phy_ctrl(unsigned int enable);
  * (e.g. power button).
  */
 void set_ps_hold_ctrl(void);
+
+/* PMU_DEBUG bits [12:8] = 0x1000 selects XXTI clock source */
+#define PMU_DEBUG_XXTI                          0x1000
+/* Mask bit[12:8] for xxti clock selection */
+#define PMU_DEBUG_CLKOUT_SEL_MASK               0x1f00
+
+/*
+ * Pmu debug is used for xclkout, enable xclkout with
+ * source as XXTI
+ */
+void set_xclkout(void);
 #endif