aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-05-09 03:12:42 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-09-30 09:21:05 -0400
commitcbf1455bfc9fcec9b937c0d09bd49383334600be (patch)
tree9f1fcf1ec7392796b9ecd562934c0084c67d5715
parent14dd72d8542f2bbfd49a0e709b5966829b841c16 (diff)
OMAP: H4: 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. Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--arch/arm/mach-omap2/board-h4.c42
1 files changed, 26 insertions, 16 deletions
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c
index 45de2b319ec..f7c09de2ed1 100644
--- a/arch/arm/mach-omap2/board-h4.c
+++ b/arch/arm/mach-omap2/board-h4.c
@@ -40,6 +40,9 @@
40#include <plat/dma.h> 40#include <plat/dma.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
@@ -157,17 +160,33 @@ static struct platform_device h4_kp_device = {
157 }, 160 },
158}; 161};
159 162
160static struct platform_device h4_lcd_device = {
161 .name = "lcd_h4",
162 .id = -1,
163};
164
165static struct platform_device *h4_devices[] __initdata = { 163static struct platform_device *h4_devices[] __initdata = {
166 &h4_flash_device, 164 &h4_flash_device,
167 &h4_kp_device, 165 &h4_kp_device,
166};
167
168static struct panel_generic_dpi_data h4_panel_data = {
169 .name = "h4",
170};
171
172static struct omap_dss_device h4_lcd_device = {
173 .name = "lcd",
174 .driver_name = "generic_dpi_panel",
175 .type = OMAP_DISPLAY_TYPE_DPI,
176 .phy.dpi.data_lines = 16,
177 .data = &h4_panel_data,
178};
179
180static struct omap_dss_device *h4_dss_devices[] = {
168 &h4_lcd_device, 181 &h4_lcd_device,
169}; 182};
170 183
184static struct omap_dss_board_info h4_dss_data = {
185 .num_devices = ARRAY_SIZE(h4_dss_devices),
186 .devices = h4_dss_devices,
187 .default_device = &h4_lcd_device,
188};
189
171/* 2420 Sysboot setup (2430 is different) */ 190/* 2420 Sysboot setup (2430 is different) */
172static u32 get_sysboot_value(void) 191static u32 get_sysboot_value(void)
173{ 192{
@@ -271,10 +290,6 @@ static void __init h4_init_flash(void)
271 h4_flash_resource.end = base + SZ_64M - 1; 290 h4_flash_resource.end = base + SZ_64M - 1;
272} 291}
273 292
274static struct omap_lcd_config h4_lcd_config __initdata = {
275 .ctrl_name = "internal",
276};
277
278static struct omap_usb_config h4_usb_config __initdata = { 293static struct omap_usb_config h4_usb_config __initdata = {
279 /* S1.10 OFF -- usb "download port" 294 /* S1.10 OFF -- usb "download port"
280 * usb0 switched to Mini-B port and isp1105 transceiver; 295 * usb0 switched to Mini-B port and isp1105 transceiver;
@@ -286,10 +301,6 @@ static struct omap_usb_config h4_usb_config __initdata = {
286 .hmc_mode = 0x00, /* 0:dev|otg 1:disable 2:disable */ 301 .hmc_mode = 0x00, /* 0:dev|otg 1:disable 2:disable */
287}; 302};
288 303
289static struct omap_board_config_kernel h4_config[] __initdata = {
290 { OMAP_TAG_LCD, &h4_lcd_config },
291};
292
293static void __init omap_h4_init_early(void) 304static void __init omap_h4_init_early(void)
294{ 305{
295 omap2_init_common_infrastructure(); 306 omap2_init_common_infrastructure();
@@ -331,9 +342,6 @@ static void __init omap_h4_init(void)
331{ 342{
332 omap2420_mux_init(board_mux, OMAP_PACKAGE_ZAF); 343 omap2420_mux_init(board_mux, OMAP_PACKAGE_ZAF);
333 344
334 omap_board_config = h4_config;
335 omap_board_config_size = ARRAY_SIZE(h4_config);
336
337 /* 345 /*
338 * Make sure the serial ports are muxed on at this point. 346 * Make sure the serial ports are muxed on at this point.
339 * You have to mux them off in device drivers later on 347 * You have to mux them off in device drivers later on
@@ -372,6 +380,8 @@ static void __init omap_h4_init(void)
372 omap2_usbfs_init(&h4_usb_config); 380 omap2_usbfs_init(&h4_usb_config);
373 omap_serial_init(); 381 omap_serial_init();
374 h4_init_flash(); 382 h4_init_flash();
383
384 omap_display_init(&h4_dss_data);
375} 385}
376 386
377static void __init omap_h4_map_io(void) 387static void __init omap_h4_map_io(void)