aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2012-09-04 19:57:11 +0200
committerPaul Kocialkowski <contact@paulk.fr>2012-09-04 19:57:11 +0200
commitd601b34b29e428f913fa5ec4d11d48cb65326fcf (patch)
tree8e86c1b03842ca263a98aced3e409a4defa839f6
parent65faf8cc7eeb2839e56aec3e840f7907eb092b27 (diff)
downloadkernel_goldelico_gta04-replicant-2.3.zip
kernel_goldelico_gta04-replicant-2.3.tar.gz
kernel_goldelico_gta04-replicant-2.3.tar.bz2
GTA04: Use RGB565 in omapfbreplicant-2.3
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r--arch/arm/mach-omap2/board-omap3gta04.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-omap3gta04.c b/arch/arm/mach-omap2/board-omap3gta04.c
index 87f8829..70ef1f9 100644
--- a/arch/arm/mach-omap2/board-omap3gta04.c
+++ b/arch/arm/mach-omap2/board-omap3gta04.c
@@ -46,6 +46,8 @@
#include <linux/leds-tca6507.h>
#endif
+#include <linux/omapfb.h>
+
#include <linux/sysfs.h>
#include <mach/hardware.h>
@@ -357,6 +359,11 @@ static struct platform_device gta04_dss_device = {
},
};
+static struct omapfb_platform_data gta04_omapfb_data = {
+ .mem_desc.region[0].format_used = 1,
+ .mem_desc.region[0].format = OMAPFB_COLOR_RGB565,
+};
+
static struct regulator_consumer_supply gta04_vdac_supply = {
.supply = "vdda_dac",
.dev = &gta04_dss_device.dev,
@@ -1226,6 +1233,8 @@ static void __init gta04_init(void)
platform_add_devices(gta04_devices,
ARRAY_SIZE(gta04_devices));
+ omapfb_set_platform_data(&gta04_omapfb_data);
+
omap2_hsmmc_init(mmc);
// #ifdef CONFIG_OMAP_MUX