From 70fc52dfaa04a1ec70188dadec794b45fca48628 Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Thu, 10 Mar 2011 20:05:58 +0900 Subject: S5P: timer: Use pwm functions Use pwm functions for timer that is PWM timer 4. Signed-off-by: Minkyu Kang --- arch/arm/include/asm/arch-s5pc1xx/pwm.h | 8 +------- arch/arm/include/asm/arch-s5pc2xx/pwm.h | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) (limited to 'arch/arm/include/asm') diff --git a/arch/arm/include/asm/arch-s5pc1xx/pwm.h b/arch/arm/include/asm/arch-s5pc1xx/pwm.h index de4dbce..d0cf3cb 100644 --- a/arch/arm/include/asm/arch-s5pc1xx/pwm.h +++ b/arch/arm/include/asm/arch-s5pc1xx/pwm.h @@ -34,19 +34,13 @@ #define MUX_DIV_SHIFT(x) (x * 4) -/* Interval mode(Auto Reload) of PWM Timer 4 */ -#define TCON4_AUTO_RELOAD (1 << 22) -/* Update TCNTB4 */ -#define TCON4_UPDATE (1 << 21) -/* start bit of PWM Timer 4 */ -#define TCON4_START (1 << 20) - #define TCON_OFFSET(x) ((x + 1) * (!!x) << 2) #define TCON_START(x) (1 << TCON_OFFSET(x)) #define TCON_UPDATE(x) (1 << (TCON_OFFSET(x) + 1)) #define TCON_INVERTER(x) (1 << (TCON_OFFSET(x) + 2)) #define TCON_AUTO_RELOAD(x) (1 << (TCON_OFFSET(x) + 3)) +#define TCON4_AUTO_RELOAD (1 << 22) #ifndef __ASSEMBLY__ struct s5p_timer { diff --git a/arch/arm/include/asm/arch-s5pc2xx/pwm.h b/arch/arm/include/asm/arch-s5pc2xx/pwm.h index de4dbce..d0cf3cb 100644 --- a/arch/arm/include/asm/arch-s5pc2xx/pwm.h +++ b/arch/arm/include/asm/arch-s5pc2xx/pwm.h @@ -34,19 +34,13 @@ #define MUX_DIV_SHIFT(x) (x * 4) -/* Interval mode(Auto Reload) of PWM Timer 4 */ -#define TCON4_AUTO_RELOAD (1 << 22) -/* Update TCNTB4 */ -#define TCON4_UPDATE (1 << 21) -/* start bit of PWM Timer 4 */ -#define TCON4_START (1 << 20) - #define TCON_OFFSET(x) ((x + 1) * (!!x) << 2) #define TCON_START(x) (1 << TCON_OFFSET(x)) #define TCON_UPDATE(x) (1 << (TCON_OFFSET(x) + 1)) #define TCON_INVERTER(x) (1 << (TCON_OFFSET(x) + 2)) #define TCON_AUTO_RELOAD(x) (1 << (TCON_OFFSET(x) + 3)) +#define TCON4_AUTO_RELOAD (1 << 22) #ifndef __ASSEMBLY__ struct s5p_timer { -- cgit v1.1