aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-apollon.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/board-apollon.c')
-rw-r--r--arch/arm/mach-omap2/board-apollon.c34
1 files changed, 22 insertions, 12 deletions
diff --git a/arch/arm/mach-omap2/board-apollon.c b/arch/arm/mach-omap2/board-apollon.c
index 29c409b68b52..de8134b7f580 100644
--- a/arch/arm/mach-omap2/board-apollon.c
+++ b/arch/arm/mach-omap2/board-apollon.c
@@ -40,6 +40,9 @@
40#include <plat/common.h> 40#include <plat/common.h>
41#include <plat/gpmc.h> 41#include <plat/gpmc.h>
42 42
43#include <video/omapdss.h>
44#include <video/omap-panel-generic-dpi.h>
45
43#include "mux.h" 46#include "mux.h"
44#include "control.h" 47#include "control.h"
45 48
@@ -149,11 +152,6 @@ static struct platform_device apollon_smc91x_device = {
149 .resource = apollon_smc91x_resources, 152 .resource = apollon_smc91x_resources,
150}; 153};
151 154
152static struct platform_device apollon_lcd_device = {
153 .name = "apollon_lcd",
154 .id = -1,
155};
156
157static struct omap_led_config apollon_led_config[] = { 155static struct omap_led_config apollon_led_config[] = {
158 { 156 {
159 .cdev = { 157 .cdev = {
@@ -191,7 +189,6 @@ static struct platform_device apollon_led_device = {
191static struct platform_device *apollon_devices[] __initdata = { 189static struct platform_device *apollon_devices[] __initdata = {
192 &apollon_onenand_device, 190 &apollon_onenand_device,
193 &apollon_smc91x_device, 191 &apollon_smc91x_device,
194 &apollon_lcd_device,
195 &apollon_led_device, 192 &apollon_led_device,
196}; 193};
197 194
@@ -265,12 +262,26 @@ static struct omap_usb_config apollon_usb_config __initdata = {
265 .pins[0] = 6, 262 .pins[0] = 6,
266}; 263};
267 264
268static struct omap_lcd_config apollon_lcd_config __initdata = { 265static struct panel_generic_dpi_data apollon_panel_data = {
269 .ctrl_name = "internal", 266 .name = "apollon",
267};
268
269static struct omap_dss_device apollon_lcd_device = {
270 .name = "lcd",
271 .driver_name = "generic_dpi_panel",
272 .type = OMAP_DISPLAY_TYPE_DPI,
273 .phy.dpi.data_lines = 18,
274 .data = &apollon_panel_data,
275};
276
277static struct omap_dss_device *apollon_dss_devices[] = {
278 &apollon_lcd_device,
270}; 279};
271 280
272static struct omap_board_config_kernel apollon_config[] __initdata = { 281static struct omap_dss_board_info apollon_dss_data = {
273 { OMAP_TAG_LCD, &apollon_lcd_config }, 282 .num_devices = ARRAY_SIZE(apollon_dss_devices),
283 .devices = apollon_dss_devices,
284 .default_device = &apollon_lcd_device,
274}; 285};
275 286
276static struct gpio apollon_gpio_leds[] __initdata = { 287static struct gpio apollon_gpio_leds[] __initdata = {
@@ -308,8 +319,6 @@ static void __init omap_apollon_init(void)
308 u32 v; 319 u32 v;
309 320
310 omap2420_mux_init(board_mux, OMAP_PACKAGE_ZAC); 321 omap2420_mux_init(board_mux, OMAP_PACKAGE_ZAC);
311 omap_board_config = apollon_config;
312 omap_board_config_size = ARRAY_SIZE(apollon_config);
313 322
314 apollon_init_smc91x(); 323 apollon_init_smc91x();
315 apollon_led_init(); 324 apollon_led_init();
@@ -335,6 +344,7 @@ static void __init omap_apollon_init(void)
335 platform_add_devices(apollon_devices, ARRAY_SIZE(apollon_devices)); 344 platform_add_devices(apollon_devices, ARRAY_SIZE(apollon_devices));
336 omap_serial_init(); 345 omap_serial_init();
337 omap_sdrc_init(NULL, NULL); 346 omap_sdrc_init(NULL, NULL);
347 omap_display_init(&apollon_dss_data);
338} 348}
339 349
340MACHINE_START(OMAP_APOLLON, "OMAP24xx Apollon") 350MACHINE_START(OMAP_APOLLON, "OMAP24xx Apollon")