diff options
Diffstat (limited to 'arch/arm/mach-s3c64xx/mach-smartq5.c')
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smartq5.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-smartq5.c b/arch/arm/mach-s3c64xx/mach-smartq5.c index 1d0326ead90f..82a9043d1fab 100644 --- a/arch/arm/mach-s3c64xx/mach-smartq5.c +++ b/arch/arm/mach-s3c64xx/mach-smartq5.c | |||
@@ -12,7 +12,6 @@ | |||
12 | #include <linux/fb.h> | 12 | #include <linux/fb.h> |
13 | #include <linux/gpio.h> | 13 | #include <linux/gpio.h> |
14 | #include <linux/gpio_keys.h> | 14 | #include <linux/gpio_keys.h> |
15 | #include <linux/i2c-gpio.h> | ||
16 | #include <linux/init.h> | 15 | #include <linux/init.h> |
17 | #include <linux/input.h> | 16 | #include <linux/input.h> |
18 | #include <linux/leds.h> | 17 | #include <linux/leds.h> |
@@ -33,31 +32,6 @@ | |||
33 | 32 | ||
34 | #include "mach-smartq.h" | 33 | #include "mach-smartq.h" |
35 | 34 | ||
36 | static void __init smartq5_lcd_setup_gpio(void) | ||
37 | { | ||
38 | gpio_request(S3C64XX_GPM(0), "LCD SCEN pin"); | ||
39 | gpio_request(S3C64XX_GPM(1), "LCD SCL pin"); | ||
40 | gpio_request(S3C64XX_GPM(2), "LCD SDA pin"); | ||
41 | gpio_request(S3C64XX_GPM(3), "LCD power"); | ||
42 | |||
43 | /* turn power off */ | ||
44 | gpio_direction_output(S3C64XX_GPM(0), 1); | ||
45 | gpio_direction_input(S3C64XX_GPM(1)); | ||
46 | gpio_direction_input(S3C64XX_GPM(2)); | ||
47 | gpio_direction_output(S3C64XX_GPM(3), 0); | ||
48 | } | ||
49 | |||
50 | static struct i2c_gpio_platform_data smartq5_lcd_control = { | ||
51 | .sda_pin = S3C64XX_GPM(2), | ||
52 | .scl_pin = S3C64XX_GPM(1), | ||
53 | }; | ||
54 | |||
55 | static struct platform_device smartq5_lcd_control_device = { | ||
56 | .name = "i2c-gpio", | ||
57 | .id = 1, | ||
58 | .dev.platform_data = &smartq5_lcd_control, | ||
59 | }; | ||
60 | |||
61 | static struct gpio_led smartq5_leds[] __initdata = { | 35 | static struct gpio_led smartq5_leds[] __initdata = { |
62 | { | 36 | { |
63 | .name = "smartq5:green", | 37 | .name = "smartq5:green", |
@@ -160,7 +134,6 @@ static struct s3c_fb_platdata smartq5_lcd_pdata __initdata = { | |||
160 | static struct platform_device *smartq5_devices[] __initdata = { | 134 | static struct platform_device *smartq5_devices[] __initdata = { |
161 | &smartq5_leds_device, | 135 | &smartq5_leds_device, |
162 | &smartq5_buttons_device, | 136 | &smartq5_buttons_device, |
163 | &smartq5_lcd_control_device, | ||
164 | }; | 137 | }; |
165 | 138 | ||
166 | static void __init smartq5_machine_init(void) | 139 | static void __init smartq5_machine_init(void) |
@@ -168,7 +141,6 @@ static void __init smartq5_machine_init(void) | |||
168 | s3c_fb_set_platdata(&smartq5_lcd_pdata); | 141 | s3c_fb_set_platdata(&smartq5_lcd_pdata); |
169 | 142 | ||
170 | smartq_machine_init(); | 143 | smartq_machine_init(); |
171 | smartq5_lcd_setup_gpio(); | ||
172 | 144 | ||
173 | platform_add_devices(smartq5_devices, ARRAY_SIZE(smartq5_devices)); | 145 | platform_add_devices(smartq5_devices, ARRAY_SIZE(smartq5_devices)); |
174 | } | 146 | } |