diff options
Diffstat (limited to 'arch/arm/mach-shmobile/board-marzen.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-marzen.c | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c index 994dc7d86ae2..598f704f76ae 100644 --- a/arch/arm/mach-shmobile/board-marzen.c +++ b/arch/arm/mach-shmobile/board-marzen.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <linux/pinctrl/machine.h> | 27 | #include <linux/pinctrl/machine.h> |
28 | #include <linux/platform_data/camera-rcar.h> | 28 | #include <linux/platform_data/camera-rcar.h> |
29 | #include <linux/platform_data/gpio-rcar.h> | 29 | #include <linux/platform_data/gpio-rcar.h> |
30 | #include <linux/platform_data/rcar-du.h> | ||
31 | #include <linux/platform_data/usb-rcar-phy.h> | 30 | #include <linux/platform_data/usb-rcar-phy.h> |
32 | #include <linux/regulator/fixed.h> | 31 | #include <linux/regulator/fixed.h> |
33 | #include <linux/regulator/machine.h> | 32 | #include <linux/regulator/machine.h> |
@@ -171,62 +170,6 @@ static struct platform_device hspi_device = { | |||
171 | .num_resources = ARRAY_SIZE(hspi_resources), | 170 | .num_resources = ARRAY_SIZE(hspi_resources), |
172 | }; | 171 | }; |
173 | 172 | ||
174 | /* | ||
175 | * DU | ||
176 | * | ||
177 | * The panel only specifies the [hv]display and [hv]total values. The position | ||
178 | * and width of the sync pulses don't matter, they're copied from VESA timings. | ||
179 | */ | ||
180 | static struct rcar_du_encoder_data du_encoders[] = { | ||
181 | { | ||
182 | .type = RCAR_DU_ENCODER_VGA, | ||
183 | .output = RCAR_DU_OUTPUT_DPAD0, | ||
184 | }, { | ||
185 | .type = RCAR_DU_ENCODER_LVDS, | ||
186 | .output = RCAR_DU_OUTPUT_DPAD1, | ||
187 | .connector.lvds.panel = { | ||
188 | .width_mm = 210, | ||
189 | .height_mm = 158, | ||
190 | .mode = { | ||
191 | .pixelclock = 65000000, | ||
192 | .hactive = 1024, | ||
193 | .hfront_porch = 20, | ||
194 | .hback_porch = 160, | ||
195 | .hsync_len = 136, | ||
196 | .vactive = 768, | ||
197 | .vfront_porch = 3, | ||
198 | .vback_porch = 29, | ||
199 | .vsync_len = 6, | ||
200 | }, | ||
201 | }, | ||
202 | }, | ||
203 | }; | ||
204 | |||
205 | static const struct rcar_du_platform_data du_pdata __initconst = { | ||
206 | .encoders = du_encoders, | ||
207 | .num_encoders = ARRAY_SIZE(du_encoders), | ||
208 | }; | ||
209 | |||
210 | static const struct resource du_resources[] __initconst = { | ||
211 | DEFINE_RES_MEM(0xfff80000, 0x40000), | ||
212 | DEFINE_RES_IRQ(gic_iid(0x3f)), | ||
213 | }; | ||
214 | |||
215 | static void __init marzen_add_du_device(void) | ||
216 | { | ||
217 | struct platform_device_info info = { | ||
218 | .name = "rcar-du-r8a7779", | ||
219 | .id = -1, | ||
220 | .res = du_resources, | ||
221 | .num_res = ARRAY_SIZE(du_resources), | ||
222 | .data = &du_pdata, | ||
223 | .size_data = sizeof(du_pdata), | ||
224 | .dma_mask = DMA_BIT_MASK(32), | ||
225 | }; | ||
226 | |||
227 | platform_device_register_full(&info); | ||
228 | } | ||
229 | |||
230 | /* LEDS */ | 173 | /* LEDS */ |
231 | static struct gpio_led marzen_leds[] = { | 174 | static struct gpio_led marzen_leds[] = { |
232 | { | 175 | { |
@@ -385,7 +328,6 @@ static void __init marzen_init(void) | |||
385 | platform_device_register_full(&vin1_info); | 328 | platform_device_register_full(&vin1_info); |
386 | platform_device_register_full(&vin3_info); | 329 | platform_device_register_full(&vin3_info); |
387 | platform_add_devices(marzen_devices, ARRAY_SIZE(marzen_devices)); | 330 | platform_add_devices(marzen_devices, ARRAY_SIZE(marzen_devices)); |
388 | marzen_add_du_device(); | ||
389 | } | 331 | } |
390 | 332 | ||
391 | static const char *marzen_boards_compat_dt[] __initdata = { | 333 | static const char *marzen_boards_compat_dt[] __initdata = { |