aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-apollon.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-05-09 03:13:20 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-09-30 09:21:05 -0400
commitda91e89fb2f582d75324a64fbf0b6aa91a5e6280 (patch)
tree443ac273f3964d5e7b8720c776393b399948d39e /arch/arm/mach-omap2/board-apollon.c
parentcbf1455bfc9fcec9b937c0d09bd49383334600be (diff)
OMAP: Apollon: Port the display driver to new DSS2
Port the old omapfb panel driver to DSS2. This patch changes the board file only, the driver is ported in separate patch. Cc: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-apollon.c')
-rw-r--r--arch/arm/mach-omap2/board-apollon.c35
1 files changed, 23 insertions, 12 deletions
diff --git a/arch/arm/mach-omap2/board-apollon.c b/arch/arm/mach-omap2/board-apollon.c
index 70211703ff9f..d8eb81e7d318 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",
270}; 267};
271 268
272static struct omap_board_config_kernel apollon_config[] __initdata = { 269static struct omap_dss_device apollon_lcd_device = {
273 { OMAP_TAG_LCD, &apollon_lcd_config }, 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,
279};
280
281static struct omap_dss_board_info apollon_dss_data = {
282 .num_devices = ARRAY_SIZE(apollon_dss_devices),
283 .devices = apollon_dss_devices,
284 .default_device = &apollon_lcd_device,
274}; 285};
275 286
276static void __init omap_apollon_init_early(void) 287static void __init omap_apollon_init_early(void)
@@ -314,8 +325,6 @@ static void __init omap_apollon_init(void)
314 u32 v; 325 u32 v;
315 326
316 omap2420_mux_init(board_mux, OMAP_PACKAGE_ZAC); 327 omap2420_mux_init(board_mux, OMAP_PACKAGE_ZAC);
317 omap_board_config = apollon_config;
318 omap_board_config_size = ARRAY_SIZE(apollon_config);
319 328
320 apollon_init_smc91x(); 329 apollon_init_smc91x();
321 apollon_led_init(); 330 apollon_led_init();
@@ -340,6 +349,8 @@ static void __init omap_apollon_init(void)
340 */ 349 */
341 platform_add_devices(apollon_devices, ARRAY_SIZE(apollon_devices)); 350 platform_add_devices(apollon_devices, ARRAY_SIZE(apollon_devices));
342 omap_serial_init(); 351 omap_serial_init();
352
353 omap_display_init(&apollon_dss_data);
343} 354}
344 355
345static void __init omap_apollon_map_io(void) 356static void __init omap_apollon_map_io(void)