diff options
author | Balaji Rao <balajirrao@openmoko.org> | 2009-02-22 04:39:57 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-02-22 04:39:57 +0000 |
commit | 4082bc2934bf1e6363e2a5c4c98b3836e54d8695 (patch) | |
tree | ec56ac151eb32f5b2de4bf94c5e99e21d9447356 /arch/arm/mach-s3c2410/include/mach | |
parent | d7617452eb27c1054ff67c4c9db4b63053d20125 (diff) |
move_pwm_code_to_plat_s3c.patch
Since the pwm code in mach-2410 can be reused for 6410, move it to plat-s3c.
Signed-off-by: Balaji Rao <balajirrao@openmoko.org>
Diffstat (limited to 'arch/arm/mach-s3c2410/include/mach')
-rw-r--r-- | arch/arm/mach-s3c2410/include/mach/fiq_ipc_gta02.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c2410/include/mach/pwm.h | 46 |
2 files changed, 1 insertions, 47 deletions
diff --git a/arch/arm/mach-s3c2410/include/mach/fiq_ipc_gta02.h b/arch/arm/mach-s3c2410/include/mach/fiq_ipc_gta02.h index e74aa2ccc40..401d1fbc050 100644 --- a/arch/arm/mach-s3c2410/include/mach/fiq_ipc_gta02.h +++ b/arch/arm/mach-s3c2410/include/mach/fiq_ipc_gta02.h @@ -16,7 +16,7 @@ * for testing */ -#include <mach/pwm.h> +#include <plat/pwm.h> #include <plat/regs-timer.h> extern u8 fiq_ready; diff --git a/arch/arm/mach-s3c2410/include/mach/pwm.h b/arch/arm/mach-s3c2410/include/mach/pwm.h deleted file mode 100644 index 18c1bac8851..00000000000 --- a/arch/arm/mach-s3c2410/include/mach/pwm.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef __S3C2410_PWM_H -#define __S3C2410_PWM_H - -#include <linux/err.h> -#include <linux/platform_device.h> -#include <linux/clk.h> - -#include <mach/io.h> -#include <mach/hardware.h> -#include <asm/mach-types.h> -#include <plat/regs-timer.h> -#include <mach/gta01.h> - -enum pwm_timer { - PWM0, - PWM1, - PWM2, - PWM3, - PWM4 -}; - -struct s3c2410_pwm { - enum pwm_timer timerid; - struct clk *pclk; - unsigned long pclk_rate; - unsigned long prescaler; - unsigned long divider; - unsigned long counter; - unsigned long comparer; -}; - -struct s3c24xx_pwm_platform_data{ - /* callback to attach platform children (to enforce suspend / resume - * ordering */ - void (*attach_child_devices)(struct device *parent_device); -}; - -int s3c2410_pwm_init(struct s3c2410_pwm *s3c2410_pwm); -int s3c2410_pwm_enable(struct s3c2410_pwm *s3c2410_pwm); -int s3c2410_pwm_disable(struct s3c2410_pwm *s3c2410_pwm); -int s3c2410_pwm_start(struct s3c2410_pwm *s3c2410_pwm); -int s3c2410_pwm_stop(struct s3c2410_pwm *s3c2410_pwm); -int s3c2410_pwm_duty_cycle(int reg_value, struct s3c2410_pwm *s3c2410_pwm); -int s3c2410_pwm_dumpregs(void); - -#endif /* __S3C2410_PWM_H */ |