diff options
author | Rajeshwari Shinde <rajeshwari.s@samsung.com> | 2013-02-14 19:46:11 +0000 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2013-03-08 22:34:18 +0900 |
commit | a006076b15c32e2f9c2c133697b5c662f7d1294e (patch) | |
tree | 743d22c1fe2e87f757b119def82c6daaf0eb3a9a /arch/arm/cpu/armv7/exynos | |
parent | b278c4095b59c40ff512c5433b735b000e547554 (diff) | |
download | u-boot-imx-a006076b15c32e2f9c2c133697b5c662f7d1294e.zip u-boot-imx-a006076b15c32e2f9c2c133697b5c662f7d1294e.tar.gz u-boot-imx-a006076b15c32e2f9c2c133697b5c662f7d1294e.tar.bz2 |
EXYNOS5: Add function to enable XXTI clock source
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>
Diffstat (limited to 'arch/arm/cpu/armv7/exynos')
-rw-r--r-- | arch/arm/cpu/armv7/exynos/power.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/exynos/power.c b/arch/arm/cpu/armv7/exynos/power.c index 400c8bc..db7249e 100644 --- a/arch/arm/cpu/armv7/exynos/power.c +++ b/arch/arm/cpu/armv7/exynos/power.c @@ -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(); +} |