summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxs/include
diff options
context:
space:
mode:
authorFred Fan <r01011@freescale.com>2010-02-01 17:59:21 +0800
committerAlejandro Gonzalez <alex.gonzalez@digi.com>2010-05-25 11:13:36 +0200
commit98ad73d7a7f0feda04bb6f08bcb3e52d3371e291 (patch)
tree9681810d575c2e5c1c043168827119e673ccbdce /arch/arm/plat-mxs/include
parenta60bb4552efe784d8ebde51c34965c1119ac537c (diff)
ENGR00120621-2 i.MX28 LED support
1. Add platform support 2. Changed LED to control brightness by inactve couter Signed-off-by: Yao Jeremy <r65161@freescale.com> Signed-off-by: Fred.fan <r01011@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'arch/arm/plat-mxs/include')
-rw-r--r--arch/arm/plat-mxs/include/mach/device.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/plat-mxs/include/mach/device.h b/arch/arm/plat-mxs/include/mach/device.h
index a8b59a3a6c81..aaf61bfe067a 100644
--- a/arch/arm/plat-mxs/include/mach/device.h
+++ b/arch/arm/plat-mxs/include/mach/device.h
@@ -23,6 +23,7 @@
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/ioport.h>
+#include <linux/leds.h>
#include <asm/mach/time.h>
@@ -94,6 +95,17 @@ struct mxs_auart_plat_data {
const char *clk;
};
+struct mxs_pwm_led {
+ struct led_classdev dev;
+ const char *name;
+ unsigned int pwm;
+};
+
+struct mxs_pwm_leds_plat_data {
+ unsigned int num;
+ struct mxs_pwm_led *leds;
+};
+
extern void mxs_timer_init(struct mxs_sys_timer *timer);
extern void mxs_nop_release(struct device *dev);