diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2012-09-04 19:57:11 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2012-09-04 19:57:11 +0200 |
commit | d601b34b29e428f913fa5ec4d11d48cb65326fcf (patch) | |
tree | 8e86c1b03842ca263a98aced3e409a4defa839f6 | |
parent | 65faf8cc7eeb2839e56aec3e840f7907eb092b27 (diff) | |
download | kernel_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.c | 9 |
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 = >a04_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(>a04_omapfb_data); + omap2_hsmmc_init(mmc); // #ifdef CONFIG_OMAP_MUX |