All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rajeshwari Shinde <rajeshwari.s@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/7] EXYNOS5: Add function to enable XXTI clock source
Date: Mon, 21 Jan 2013 16:22:33 +0530	[thread overview]
Message-ID: <1358765559-32709-2-git-send-email-rajeshwari.s@samsung.com> (raw)
In-Reply-To: <1358765559-32709-1-git-send-email-rajeshwari.s@samsung.com>

This patch adds funtion to enable XXTI clock source
required by MAX98095 codec.

Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
---
 arch/arm/cpu/armv7/exynos/power.c        |   11 +++++++++++
 arch/arm/include/asm/arch-exynos/power.h |   10 ++++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/arch/arm/cpu/armv7/exynos/power.c b/arch/arm/cpu/armv7/exynos/power.c
index 8572cfd..8de30c1 100644
--- a/arch/arm/cpu/armv7/exynos/power.c
+++ b/arch/arm/cpu/armv7/exynos/power.c
@@ -105,3 +105,14 @@ void power_ps_hold_setup(void)
 	setbits_le32(&power->ps_hold_control,
 			EXYNOS_PS_HOLD_CONTROL_DATA_HIGH);
 }
+
+
+void power_enable_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);
+}
diff --git a/arch/arm/include/asm/arch-exynos/power.h b/arch/arm/include/asm/arch-exynos/power.h
index 85e2cd9..f0eab16 100644
--- a/arch/arm/include/asm/arch-exynos/power.h
+++ b/arch/arm/include/asm/arch-exynos/power.h
@@ -872,4 +872,14 @@ void set_dp_phy_ctrl(unsigned int enable);
  * (e.g. power button).
  */
 void power_ps_hold_setup(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 power_enable_xclkout(void);
 #endif
-- 
1.7.4.4

  reply	other threads:[~2013-01-21 10:52 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-21 10:52 [U-Boot] [PATCH 0/7] EXYNOS5: Add audio support for Snow Rajeshwari Shinde
2013-01-21 10:52 ` Rajeshwari Shinde [this message]
2013-01-22 14:51   ` [U-Boot] [PATCH 1/7] EXYNOS5: Add function to enable XXTI clock source Simon Glass
2013-01-21 10:52 ` [U-Boot] [PATCH 2/7] Sound: MAX98095: Add the driver for codec Rajeshwari Shinde
2013-01-21 10:52 ` [U-Boot] [PATCH 3/7] Sound: Support for MAX98095 codec in driver Rajeshwari Shinde
2013-01-21 10:52 ` [U-Boot] [PATCH 4/7] EXYNOS5: GPIO to enable MAX98095 Rajeshwari Shinde
2013-01-22 14:55   ` Simon Glass
2013-01-23 10:05     ` Rajeshwari Birje
2013-01-25 20:40       ` Simon Glass
2013-01-21 10:52 ` [U-Boot] [PATCH 5/7] EXYNOS5: FDT: Add compatible strings for MAX98095 Rajeshwari Shinde
2013-01-21 10:52 ` [U-Boot] [PATCH 6/7] EXYNOS5: Add initial DTS file for Snow Rajeshwari Shinde
2013-01-22 14:56   ` Simon Glass
2013-01-25 20:42   ` Simon Glass
2013-01-21 10:52 ` [U-Boot] [PATCH 7/7] EXYNOS5: Snow: Add a configuration file Rajeshwari Shinde
2013-01-22 14:58   ` Simon Glass
2013-01-23 10:13     ` Rajeshwari Birje
2013-01-25 21:03       ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1358765559-32709-2-git-send-email-rajeshwari.s@samsung.com \
    --to=rajeshwari.s@samsung.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.