summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/include
diff options
context:
space:
mode:
authorAndrew Victor2008-09-18 20:42:37 +0200
committerRussell King2008-09-21 23:58:37 +0200
commitbb1ad68b96a68e577a87ad62fe1aa26d052a52b5 (patch)
treea98d65d54a4f441329f83988ffb9bea16e7d396e /arch/arm/mach-at91/include
parent[ARM] 5257/2: [AT91] Use SZ_ definitions and MTDPART_OFS_NXTBLK instead of he... (diff)
downloadkernel-qcow2-linux-bb1ad68b96a68e577a87ad62fe1aa26d052a52b5.tar.gz
kernel-qcow2-linux-bb1ad68b96a68e577a87ad62fe1aa26d052a52b5.tar.xz
kernel-qcow2-linux-bb1ad68b96a68e577a87ad62fe1aa26d052a52b5.zip
[ARM] 5258/1: [AT91] PWM controller initialization
Add platform_devices and configuration of the PWM controller found on Atmel AT91CAP9, SAM9263 and SAM9RL processors. SAM9263 support by Sedji Gaouaou. Signed-off-by: Andrew Victor <linux@maxim.org.za> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/include')
-rw-r--r--arch/arm/mach-at91/include/mach/board.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h
index acd60f2a0724..9df4608b5f6a 100644
--- a/arch/arm/mach-at91/include/mach/board.h
+++ b/arch/arm/mach-at91/include/mach/board.h
@@ -133,6 +133,16 @@ struct atmel_uart_data {
extern void __init at91_add_device_serial(void);
/*
+ * PWM
+ */
+#define AT91_PWM0 0
+#define AT91_PWM1 1
+#define AT91_PWM2 2
+#define AT91_PWM3 3
+
+extern void __init at91_add_device_pwm(u32 mask);
+
+/*
* SSC -- accessed through ssc_request(id). Drivers don't bind to SSC
* platform devices. Their SSC ID is part of their configuration data,
* along with information about which SSC signals they should use.