diff options
author | Tomasz Figa <t.figa@samsung.com> | 2013-04-12 15:17:22 -0400 |
---|---|---|
committer | Tomasz Figa <tomasz.figa@gmail.com> | 2013-08-05 19:21:46 -0400 |
commit | 1c161fd0d453ff63c8bb3a703d46d10ac5eba7a4 (patch) | |
tree | 9e97777321ec67219ca9cc42b4ad593b0593da86 /arch/arm/mach-s5pc100 | |
parent | 95e43d4640b9891482c46470389fe8bf7267079d (diff) |
ARM: SAMSUNG: Set PWM platform data
This patch adds PWM platform data needed for legacy (non-DT) platforms
to handle SoC-specific bits of the PWM/timer block.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Mark Brown <broonie@linaro.org>
Tested-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-s5pc100')
-rw-r--r-- | arch/arm/mach-s5pc100/common.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pc100/common.c b/arch/arm/mach-s5pc100/common.c index 4bdfecf6d024..e0600afc587e 100644 --- a/arch/arm/mach-s5pc100/common.c +++ b/arch/arm/mach-s5pc100/common.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/io.h> | 22 | #include <linux/io.h> |
23 | #include <linux/device.h> | 23 | #include <linux/device.h> |
24 | #include <linux/serial_core.h> | 24 | #include <linux/serial_core.h> |
25 | #include <clocksource/samsung_pwm.h> | ||
25 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
26 | #include <linux/sched.h> | 27 | #include <linux/sched.h> |
27 | #include <linux/reboot.h> | 28 | #include <linux/reboot.h> |
@@ -46,6 +47,7 @@ | |||
46 | #include <plat/fb-core.h> | 47 | #include <plat/fb-core.h> |
47 | #include <plat/iic-core.h> | 48 | #include <plat/iic-core.h> |
48 | #include <plat/onenand-core.h> | 49 | #include <plat/onenand-core.h> |
50 | #include <plat/pwm-core.h> | ||
49 | #include <plat/spi-core.h> | 51 | #include <plat/spi-core.h> |
50 | #include <plat/regs-serial.h> | 52 | #include <plat/regs-serial.h> |
51 | #include <plat/watchdog-reset.h> | 53 | #include <plat/watchdog-reset.h> |
@@ -132,6 +134,13 @@ static struct map_desc s5pc100_iodesc[] __initdata = { | |||
132 | } | 134 | } |
133 | }; | 135 | }; |
134 | 136 | ||
137 | static struct samsung_pwm_variant s5pc100_pwm_variant = { | ||
138 | .bits = 32, | ||
139 | .div_base = 0, | ||
140 | .has_tint_cstat = true, | ||
141 | .tclk_mask = (1 << 5), | ||
142 | }; | ||
143 | |||
135 | /* | 144 | /* |
136 | * s5pc100_map_io | 145 | * s5pc100_map_io |
137 | * | 146 | * |
@@ -149,6 +158,8 @@ void __init s5pc100_init_io(struct map_desc *mach_desc, int size) | |||
149 | s5p_init_cpu(S5P_VA_CHIPID); | 158 | s5p_init_cpu(S5P_VA_CHIPID); |
150 | 159 | ||
151 | s3c_init_cpu(samsung_cpu_id, cpu_ids, ARRAY_SIZE(cpu_ids)); | 160 | s3c_init_cpu(samsung_cpu_id, cpu_ids, ARRAY_SIZE(cpu_ids)); |
161 | |||
162 | samsung_pwm_set_platdata(&s5pc100_pwm_variant); | ||
152 | } | 163 | } |
153 | 164 | ||
154 | void __init s5pc100_map_io(void) | 165 | void __init s5pc100_map_io(void) |