Skip to contentSkip to conversation

backlight: mxs: Add backlight support for i.MX23

PATCH In review Gregory CLEMENT 1 participant 1 message Oct 6, 2011

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 backlight: mxs: Add backlight support for i.MX23

May work on i.MX28 but only tested on i.MX23 base board

---
 arch/arm/mach-mxs/include/mach/backlight.h |   19 ++++
 drivers/video/backlight/Kconfig            |    8 ++
 drivers/video/backlight/Makefile           |    4 +-
 drivers/video/backlight/backlight-mxs.c    |  136 ++++++++++++++++++++++++++++
 4 files changed, 166 insertions(+), 1 deletions(-)
 create mode 100644 arch/arm/mach-mxs/include/mach/backlight.h
 create mode 100644 drivers/video/backlight/backlight-mxs.c
arch/arm/mach-mxs/include/mach/backlight.h new file +19 -0
new file mode 100644
index 0000000..7afc165
@@ -0,0 +1,19 @@
+/*
+ * backlight.h - plateform definitions for the mxs backlight driver
+ *
+ * Copyright (C) 2011 Gregory Clement, Free Electrons
+ *
+ * This file is released under the GPLv2 or later
+ *
+ */
+
+#ifndef BACKLIGHT_MXS_H
+#define BACKLIGHT_MXS_H
+
+struct mxs_backlight_platformdata {
+	int channel;
+	int period;
+	int cdiv;
+};
+
+#endif /* BACKLIGHT__H */
drivers/video/backlight/Kconfig +8 -0
index b593a82..9a8d2e1 100644
@@ -6,3 +6,11 @@ menuconfig BACKLIGHT
 	bool "Backlight support"
 	help
 	  Add support for backlight
+
+if BACKLIGHT
+
+config BACKLIGHT_MXS
+	bool "i.MX23 Backlight driver"
+	depends on BACKLIGHT && ARCH_MXS
+
+endif
drivers/video/backlight/Makefile +3 -1
index 3c63230..fe97ac6 100644
@@ -1 +1,3 @@
-obj-$(CONFIG_BACKLIGHT) += backlight.o
\ No newline at end of file
+obj-$(CONFIG_BACKLIGHT) += backlight.o
+
+obj-$(CONFIG_BACKLIGHT_MSX) += backlight-mxs.o
drivers/video/backlight/backlight-mxs.c new file +136 -0

136 lines not on this page · raw message

Signature · 8 lines
1.7.4.1



_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox