diff options
Diffstat (limited to 'packages/linux/linux-omap-2.6.27')
-rw-r--r-- | packages/linux/linux-omap-2.6.27/pvr/dispc.patch | 46 | ||||
-rw-r--r-- | packages/linux/linux-omap-2.6.27/pvr/pvr-add.patch | 5 |
2 files changed, 51 insertions, 0 deletions
diff --git a/packages/linux/linux-omap-2.6.27/pvr/dispc.patch b/packages/linux/linux-omap-2.6.27/pvr/dispc.patch new file mode 100644 index 0000000000..1697448e0a --- /dev/null +++ b/packages/linux/linux-omap-2.6.27/pvr/dispc.patch @@ -0,0 +1,46 @@ +--- kernel-2.6.27.orig/drivers/video/omap/dispc.c ++++ kernel-2.6.27/drivers/video/omap/dispc.c +@@ -314,6 +319,32 @@ + } + EXPORT_SYMBOL(omap_dispc_enable_digit_out); + ++extern void omap_dispc_set_plane_base(int plane, u32 paddr) ++{ ++ u32 reg; ++ u32 val; ++ ++ switch (plane) { ++ case 0: ++ reg = DISPC_GFX_BA0; ++ break; ++ case 1: ++ reg = DISPC_VID1_BASE + DISPC_VID_BA0; ++ break; ++ case 2: ++ reg = DISPC_VID2_BASE + DISPC_VID_BA0; ++ break; ++ default: ++ BUG(); ++ return; ++ } ++ ++ dispc_write_reg(reg, paddr); ++ val = dispc_read_reg(DISPC_CONTROL) | (1 << 5); /* GOLCD */ ++ dispc_write_reg(DISPC_CONTROL, val); ++} ++EXPORT_SYMBOL(omap_dispc_set_plane_base); ++ + static inline int _setup_plane(int plane, int channel_out, + u32 paddr, int screen_width, + int pos_x, int pos_y, int width, int height, +--- /tmp/dispc.h 2008-12-09 15:13:12.000000000 +0100 ++++ git/drivers/video/omap/dispc.h 2008-12-09 15:13:36.000000000 +0100 +@@ -32,6 +32,8 @@ + #define DISPC_TFT_DATA_LINES_18 2 + #define DISPC_TFT_DATA_LINES_24 3 + ++extern void omap_dispc_set_plane_base(int plane, u32 paddr); ++ + extern void omap_dispc_set_lcd_size(int width, int height); + + extern void omap_dispc_enable_lcd_out(int enable); diff --git a/packages/linux/linux-omap-2.6.27/pvr/pvr-add.patch b/packages/linux/linux-omap-2.6.27/pvr/pvr-add.patch index 9ff89fee3d..541e869506 100644 --- a/packages/linux/linux-omap-2.6.27/pvr/pvr-add.patch +++ b/packages/linux/linux-omap-2.6.27/pvr/pvr-add.patch @@ -155092,3 +155092,8 @@ diff -Nurd git/drivers/gpu/pvr/services4/system/omap3430/sysutils.c git-nokia/dr +#error "Disabling of OMAP graphics clock not supported for this environment" +#endif +} +--- /tmp/Makefile 2008-12-09 15:25:43.000000000 +0100 ++++ git/drivers/gpu/Makefile 2008-12-09 15:25:53.000000000 +0100 +@@ -1 +1 @@ +-obj-y += drm/ ++obj-y += drm-tungsten/ pvr/ |