OMAPDSS: Hack code drop from Harmattan 2.6.32-20112201+0m6 sources

Idea of this hack code drop from Harmattan 2.6.32-20112201+0m6 sources is
to have work-in-progress path towards working Nokia N9 framebuffer. Note
that these patches break bisectability and very likely all other OMAP boards.

This first patch drops following files from Harmattan 2.6.32-20112201+0m6
sources:

cp -r drivers/video/omap2/* ../mer-n9-kernel/drivers/video/omap2/
cp arch/arm/mach-omap2/dss.* ../mer-n9-kernel/arch/arm/mach-omap2/
cp arch/arm/plat-omap/fb.c ../mer-n9-kernel/arch/arm/plat-omap/

cp arch/arm/plat-omap/include/plat/control.h ../mer-n9-kernel/arch/arm/plat-omap/include/plat/
cp arch/arm/plat-omap/include/plat/display.h ../mer-n9-kernel/arch/arm/plat-omap/include/plat/
cp arch/arm/plat-omap/include/plat/mux.h ../mer-n9-kernel/arch/arm/plat-omap/include/plat/
cp arch/arm/plat-omap/include/plat/panel-nokia-dsi.h ../mer-n9-kernel/arch/arm/plat-omap/include/plat/
cp arch/arm/plat-omap/include/plat/vram.h ../mer-n9-kernel/arch/arm/plat-omap/include/plat/
cp arch/arm/plat-omap/include/plat/vrfb.h ../mer-n9-kernel/arch/arm/plat-omap/include/plat/
cp include/linux/omapfb.h ../mer-n9-kernel/include/linux/

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
OMAPDSS: Update include statements

Add/revert back include statements that are needed when compiling old
Harmattan 2.6.32-20112201+0m OMAPDSS sources on a newer kernel.

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
OMAPDSS: panel-nokia-dsi: Update backlight_device_register arguments

Update backlight_device_register call in panel-nokia-dsi according to
commits a19a6ee ("backlight: Allow properties to be passed at registration")
and bb7ca74 ("backlight: add backlight type").

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
OMAPDSS: Remove pm_optimizer_enable_dss_lpm call

Module pm-optimizer is missing from mainline so remove references to it.

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
OMAPDSS: Use __raw_writel/__raw_readl instead of omap_writel/omap_readl

Drivers should not use omap_read/write functions since commit acea7c7
("ARM: OMAP2+: Limit omap_read/write usage to legacy USB drivers").
Update dss.c accordingly.

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
ARM: OMAP3: Hack add clocks needed with older OMAPDSS

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
ARM: OMAP2+: Add dss.o for CONFIG_OMAP2_DSS build

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
OMAPDSS: Revert omap_vram_early_vram changes

Revert omap_vram_early_vram changes back to state before commit 8f5005
("OMAPDSS: Hack code drop from Harmattan 2.6.32-20112201+0m6 sources")
due early_param API changes upstream and since the function implementation
is otherwise the same.

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
ARM: OMAP: board-rm680: Add framebuffer support to Nokia N9

This adds framebuffer support to Nokia N9. Code is mostly copied from
board-rm696-* files in Harmattan 2.6.32-20112201+0m6 sources.

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
N9: n9_mer_defconfig: Remove unnecessary panel drivers

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
N9: n9_mer_defconfig: Enable Nokia N9 framebuffer on Nokia DSI panel

Use built-in omapfb, Disable unused DSS interfaces and keep only DSI active.

Signed-off-by: Jarkko Nikula <jarkko.nikula@jollamobile.com>
Merge pull request #2 from jhnikula/fb

Pull request for Nokia N9 framebuffer

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>