summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAkshay Saraswat <akshay.s@samsung.com>2013-03-28 04:32:24 +0000
committerMinkyu Kang <mk7.kang@samsung.com>2013-04-01 14:02:08 +0900
commit07cd5c7495379bc791f226afca1ac244fc916c52 (patch)
tree390d2287875851eba770c64ab2e7d4766ff3bbc2 /arch
parente2338704c0ac63c73d295f941ac0cfd8e05bd076 (diff)
downloadu-boot-imx-07cd5c7495379bc791f226afca1ac244fc916c52.zip
u-boot-imx-07cd5c7495379bc791f226afca1ac244fc916c52.tar.gz
u-boot-imx-07cd5c7495379bc791f226afca1ac244fc916c52.tar.bz2
Exynos: pwm: Remove dead code of function exynos5_get_pwm_clk
As we shall now be using clock_get_periph_rate function. We find no reason for keeping code in function exynos5_get_pwm_clk. Hence, removing it. Signed-off-by: Akshay Saraswat <akshay.s@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/exynos/clock.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/arm/cpu/armv7/exynos/clock.c b/arch/arm/cpu/armv7/exynos/clock.c
index 1e54e47..223660a 100644
--- a/arch/arm/cpu/armv7/exynos/clock.c
+++ b/arch/arm/cpu/armv7/exynos/clock.c
@@ -468,27 +468,6 @@ static unsigned long exynos4x12_get_pwm_clk(void)
return pclk;
}
-/* exynos5: return pwm clock frequency */
-static unsigned long exynos5_get_pwm_clk(void)
-{
- struct exynos5_clock *clk =
- (struct exynos5_clock *)samsung_get_base_clock();
- unsigned long pclk, sclk;
- unsigned int ratio;
-
- /*
- * CLK_DIV_PERIC3
- * PWM_RATIO [3:0]
- */
- ratio = readl(&clk->div_peric3);
- ratio = ratio & 0xf;
- sclk = get_pll_clk(MPLL);
-
- pclk = sclk / (ratio + 1);
-
- return pclk;
-}
-
/* exynos4: return uart clock frequency */
static unsigned long exynos4_get_uart_clk(int dev_index)
{