diff options
| author | Tony Lindgren <tony@atomide.com> | 2011-11-07 12:27:23 -0800 | 
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2011-11-07 12:27:23 -0800 | 
| commit | d30cc16c8e48368e0518f4975a78711e53e14a0f (patch) | |
| tree | 26b57f7ab5a963cc3d6c57dff6951bd930875583 /arch/arm/plat-samsung/pwm-clock.c | |
| parent | 41eb2d813f558900884e240c2f723e36c7bd151f (diff) | |
| parent | a1bcc1dcef8451b4291ea2a1b2677cb194102952 (diff) | |
| download | olio-linux-3.10-d30cc16c8e48368e0518f4975a78711e53e14a0f.tar.xz olio-linux-3.10-d30cc16c8e48368e0518f4975a78711e53e14a0f.zip  | |
Merge branch 'fixes-modulesplit' into fixes
Diffstat (limited to 'arch/arm/plat-samsung/pwm-clock.c')
| -rw-r--r-- | arch/arm/plat-samsung/pwm-clock.c | 13 | 
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/arm/plat-samsung/pwm-clock.c b/arch/arm/plat-samsung/pwm-clock.c index f1bba88ed2f..a35ff3bcffe 100644 --- a/arch/arm/plat-samsung/pwm-clock.c +++ b/arch/arm/plat-samsung/pwm-clock.c @@ -27,7 +27,7 @@  #include <plat/cpu.h>  #include <plat/regs-timer.h> -#include <mach/pwm-clock.h> +#include <plat/pwm-clock.h>  /* Each of the timers 0 through 5 go through the following   * clock tree, with the inputs depending on the timers. @@ -339,8 +339,17 @@ static int clk_pwm_tin_set_parent(struct clk *clk, struct clk *parent)  	unsigned long bits;  	unsigned long shift = S3C2410_TCFG1_SHIFT(id); +	unsigned long mux_tclk; + +	if (soc_is_s3c24xx()) +		mux_tclk = S3C2410_TCFG1_MUX_TCLK; +	else if (soc_is_s5p6440() || soc_is_s5p6450()) +		mux_tclk = 0; +	else +		mux_tclk = S3C64XX_TCFG1_MUX_TCLK; +  	if (parent == s3c24xx_pwmclk_tclk(id)) -		bits = S3C_TCFG1_MUX_TCLK << shift; +		bits = mux_tclk << shift;  	else if (parent == s3c24xx_pwmclk_tdiv(id))  		bits = clk_pwm_tdiv_bits(to_tdiv(parent)) << shift;  	else  |