aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorEric Miao <eric.y.miao@gmail.com>2009-12-16 03:41:30 -0500
committerEric Miao <eric.y.miao@gmail.com>2009-12-16 03:45:06 -0500
commit5c3804629e69bf48474bb53038d5dcc5a8d25959 (patch)
treeca72bb3d33780ee94c14bb373546936d300da491 /arch/arm/mach-pxa
parent3ea6b3d0e6d0ffd91c0f8cadeb69b7133c038b32 (diff)
revert "[ARM] pxa/cm-x300: add PWM backlight support"
Commit db205463fd24c0972ad2c4e4fafb1c76e51b4380 was incorrectly applied, and reverted here to re-apply. Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/Kconfig1
-rw-r--r--arch/arm/mach-pxa/cm-x300.c30
-rw-r--r--arch/arm/mach-pxa/devices.c1
3 files changed, 0 insertions, 32 deletions
diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig
index e6d8e10ae5d1..6f4f475bbc3d 100644
--- a/arch/arm/mach-pxa/Kconfig
+++ b/arch/arm/mach-pxa/Kconfig
@@ -240,7 +240,6 @@ config MACH_COLIBRI300
240 select PXA3xx 240 select PXA3xx
241 select CPU_PXA300 241 select CPU_PXA300
242 select CPU_PXA310 242 select CPU_PXA310
243 select HAVE_PWM
244 243
245config MACH_COLIBRI320 244config MACH_COLIBRI320
246 bool "Toradex Colibri PXA320" 245 bool "Toradex Colibri PXA320"
diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c
index d37cfa132a65..d564d8ea5a33 100644
--- a/arch/arm/mach-pxa/cm-x300.c
+++ b/arch/arm/mach-pxa/cm-x300.c
@@ -24,7 +24,6 @@
24#include <linux/dm9000.h> 24#include <linux/dm9000.h>
25#include <linux/leds.h> 25#include <linux/leds.h>
26#include <linux/rtc-v3020.h> 26#include <linux/rtc-v3020.h>
27#include <linux/pwm_backlight.h>
28 27
29#include <linux/i2c.h> 28#include <linux/i2c.h>
30#include <linux/i2c/pca953x.h> 29#include <linux/i2c/pca953x.h>
@@ -51,7 +50,6 @@
51#include <asm/mach/map.h> 50#include <asm/mach/map.h>
52 51
53#include "generic.h" 52#include "generic.h"
54#include "devices.h"
55 53
56#define CM_X300_ETH_PHYS 0x08000010 54#define CM_X300_ETH_PHYS 0x08000010
57 55
@@ -162,9 +160,6 @@ static mfp_cfg_t cm_x3xx_mfp_cfg[] __initdata = {
162 /* Standard I2C */ 160 /* Standard I2C */
163 GPIO21_I2C_SCL, 161 GPIO21_I2C_SCL,
164 GPIO22_I2C_SDA, 162 GPIO22_I2C_SDA,
165
166 /* PWM Backlight */
167 GPIO19_PWM2_OUT,
168}; 163};
169 164
170static mfp_cfg_t cm_x3xx_rev_lt130_mfp_cfg[] __initdata = { 165static mfp_cfg_t cm_x3xx_rev_lt130_mfp_cfg[] __initdata = {
@@ -295,30 +290,6 @@ static void __init cm_x300_init_lcd(void)
295static inline void cm_x300_init_lcd(void) {} 290static inline void cm_x300_init_lcd(void) {}
296#endif 291#endif
297 292
298#if defined(CONFIG_BACKLIGHT_PWM) || defined(CONFIG_BACKLIGHT_PWM_MODULE)
299static struct platform_pwm_backlight_data cm_x300_backlight_data = {
300 .pwm_id = 2,
301 .max_brightness = 100,
302 .dft_brightness = 100,
303 .pwm_period_ns = 10000,
304};
305
306static struct platform_device cm_x300_backlight_device = {
307 .name = "pwm-backlight",
308 .dev = {
309 .parent = &pxa27x_device_pwm0.dev,
310 .platform_data = &cm_x300_backlight_data,
311 },
312};
313
314static void cm_x300_init_bl(void)
315{
316 platform_device_register(&cm_x300_backlight_device);
317}
318#else
319static inline void cm_x300_init_bl(void) {}
320#endif
321
322#if defined(CONFIG_SPI_GPIO) || defined(CONFIG_SPI_GPIO_MODULE) 293#if defined(CONFIG_SPI_GPIO) || defined(CONFIG_SPI_GPIO_MODULE)
323#define GPIO_LCD_BASE (144) 294#define GPIO_LCD_BASE (144)
324#define GPIO_LCD_DIN (GPIO_LCD_BASE + 8) /* aux_gpio3_0 */ 295#define GPIO_LCD_DIN (GPIO_LCD_BASE + 8) /* aux_gpio3_0 */
@@ -683,7 +654,6 @@ static void __init cm_x300_init(void)
683 cm_x300_init_rtc(); 654 cm_x300_init_rtc();
684 cm_x300_init_ac97(); 655 cm_x300_init_ac97();
685 cm_x300_init_wi2wi(); 656 cm_x300_init_wi2wi();
686 cm_x300_init_bl();
687} 657}
688 658
689static void __init cm_x300_fixup(struct machine_desc *mdesc, struct tag *tags, 659static void __init cm_x300_fixup(struct machine_desc *mdesc, struct tag *tags,
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c
index 3395463bb5a6..d4cc41d04b25 100644
--- a/arch/arm/mach-pxa/devices.c
+++ b/arch/arm/mach-pxa/devices.c
@@ -4,7 +4,6 @@
4#include <linux/platform_device.h> 4#include <linux/platform_device.h>
5#include <linux/dma-mapping.h> 5#include <linux/dma-mapping.h>
6 6
7#include <mach/hardware.h>
8#include <mach/udc.h> 7#include <mach/udc.h>
9#include <mach/pxafb.h> 8#include <mach/pxafb.h>
10#include <mach/mmc.h> 9#include <mach/mmc.h>