diff options
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/cm-x300.c | 30 | ||||
-rw-r--r-- | arch/arm/mach-pxa/devices.c | 1 |
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 | ||
245 | config MACH_COLIBRI320 | 244 | config 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 | ||
170 | static mfp_cfg_t cm_x3xx_rev_lt130_mfp_cfg[] __initdata = { | 165 | static mfp_cfg_t cm_x3xx_rev_lt130_mfp_cfg[] __initdata = { |
@@ -295,30 +290,6 @@ static void __init cm_x300_init_lcd(void) | |||
295 | static inline void cm_x300_init_lcd(void) {} | 290 | static inline void cm_x300_init_lcd(void) {} |
296 | #endif | 291 | #endif |
297 | 292 | ||
298 | #if defined(CONFIG_BACKLIGHT_PWM) || defined(CONFIG_BACKLIGHT_PWM_MODULE) | ||
299 | static 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 | |||
306 | static 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 | |||
314 | static void cm_x300_init_bl(void) | ||
315 | { | ||
316 | platform_device_register(&cm_x300_backlight_device); | ||
317 | } | ||
318 | #else | ||
319 | static 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 | ||
689 | static void __init cm_x300_fixup(struct machine_desc *mdesc, struct tag *tags, | 659 | static 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> |