Commit 8dc50ec7 authored by Tomi Valkeinen's avatar Tomi Valkeinen

OMAPFB: Remove OMAP2/3 support from old omapfb driver

Old omapfb driver (drivers/video/omap/) is no longer used for OMAP2+
devices, and thus we can remove OMAP2+ support from it and make it an
OMAP1 omapfb driver.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent fdcb6888
config FB_OMAP config FB_OMAP
tristate "OMAP frame buffer support (EXPERIMENTAL)" tristate "OMAP frame buffer support (EXPERIMENTAL)"
depends on FB && (OMAP2_DSS = "n") depends on FB
depends on ARCH_OMAP1 || ARCH_OMAP2 || ARCH_OMAP3 depends on ARCH_OMAP1
select FB_CFB_FILLRECT select FB_CFB_FILLRECT
select FB_CFB_COPYAREA select FB_CFB_COPYAREA
select FB_CFB_IMAGEBLIT select FB_CFB_IMAGEBLIT
select TWL4030_CORE if MACH_OMAP_2430SDP
help help
Frame buffer driver for OMAP based boards. Frame buffer driver for OMAP based boards.
...@@ -42,7 +41,7 @@ config FB_OMAP_LCD_MIPID ...@@ -42,7 +41,7 @@ config FB_OMAP_LCD_MIPID
config FB_OMAP_BOOTLOADER_INIT config FB_OMAP_BOOTLOADER_INIT
bool "Check bootloader initialization" bool "Check bootloader initialization"
depends on FB_OMAP || FB_OMAP2 depends on FB_OMAP
help help
Say Y here if you want to enable checking if the bootloader has Say Y here if you want to enable checking if the bootloader has
already initialized the display controller. In this case the already initialized the display controller. In this case the
...@@ -61,7 +60,7 @@ config FB_OMAP_CONSISTENT_DMA_SIZE ...@@ -61,7 +60,7 @@ config FB_OMAP_CONSISTENT_DMA_SIZE
config FB_OMAP_DMA_TUNE config FB_OMAP_DMA_TUNE
bool "Set DMA SDRAM access priority high" bool "Set DMA SDRAM access priority high"
depends on FB_OMAP && ARCH_OMAP1 depends on FB_OMAP
help help
On systems in which video memory is in system memory On systems in which video memory is in system memory
(SDRAM) this will speed up graphics DMA operations. (SDRAM) this will speed up graphics DMA operations.
......
# #
# Makefile for the new OMAP framebuffer device driver # Makefile for the OMAP1 framebuffer device driver
# #
obj-$(CONFIG_FB_OMAP) += omapfb.o obj-$(CONFIG_FB_OMAP) += omapfb.o
...@@ -7,11 +7,8 @@ obj-$(CONFIG_FB_OMAP) += omapfb.o ...@@ -7,11 +7,8 @@ obj-$(CONFIG_FB_OMAP) += omapfb.o
objs-yy := omapfb_main.o objs-yy := omapfb_main.o
objs-y$(CONFIG_ARCH_OMAP1) += lcdc.o objs-y$(CONFIG_ARCH_OMAP1) += lcdc.o
objs-y$(CONFIG_ARCH_OMAP2) += dispc.o
objs-y$(CONFIG_ARCH_OMAP3) += dispc.o
objs-$(CONFIG_ARCH_OMAP1)$(CONFIG_FB_OMAP_LCDC_EXTERNAL) += sossi.o objs-$(CONFIG_ARCH_OMAP1)$(CONFIG_FB_OMAP_LCDC_EXTERNAL) += sossi.o
objs-$(CONFIG_ARCH_OMAP2)$(CONFIG_FB_OMAP_LCDC_EXTERNAL) += rfbi.o
objs-y$(CONFIG_FB_OMAP_LCDC_HWA742) += hwa742.o objs-y$(CONFIG_FB_OMAP_LCDC_HWA742) += hwa742.o
......
This diff is collapsed.
#ifndef _DISPC_H
#define _DISPC_H
#include <linux/interrupt.h>
#define DISPC_PLANE_GFX 0
#define DISPC_PLANE_VID1 1
#define DISPC_PLANE_VID2 2
#define DISPC_RGB_1_BPP 0x00
#define DISPC_RGB_2_BPP 0x01
#define DISPC_RGB_4_BPP 0x02
#define DISPC_RGB_8_BPP 0x03
#define DISPC_RGB_12_BPP 0x04
#define DISPC_RGB_16_BPP 0x06
#define DISPC_RGB_24_BPP 0x08
#define DISPC_RGB_24_BPP_UNPACK_32 0x09
#define DISPC_YUV2_422 0x0a
#define DISPC_UYVY_422 0x0b
#define DISPC_BURST_4x32 0
#define DISPC_BURST_8x32 1
#define DISPC_BURST_16x32 2
#define DISPC_LOAD_CLUT_AND_FRAME 0x00
#define DISPC_LOAD_CLUT_ONLY 0x01
#define DISPC_LOAD_FRAME_ONLY 0x02
#define DISPC_LOAD_CLUT_ONCE_FRAME 0x03
#define DISPC_TFT_DATA_LINES_12 0
#define DISPC_TFT_DATA_LINES_16 1
#define DISPC_TFT_DATA_LINES_18 2
#define DISPC_TFT_DATA_LINES_24 3
extern void omap_dispc_set_lcd_size(int width, int height);
extern void omap_dispc_enable_lcd_out(int enable);
extern void omap_dispc_enable_digit_out(int enable);
extern int omap_dispc_request_irq(unsigned long irq_mask,
void (*callback)(void *data), void *data);
extern void omap_dispc_free_irq(unsigned long irq_mask,
void (*callback)(void *data), void *data);
extern const struct lcd_ctrl omap2_int_ctrl;
#endif
...@@ -207,11 +207,7 @@ struct omapfb_device { ...@@ -207,11 +207,7 @@ struct omapfb_device {
struct platform_device *dssdev; /* dummy dev for clocks */ struct platform_device *dssdev; /* dummy dev for clocks */
}; };
#ifdef CONFIG_ARCH_OMAP1
extern struct lcd_ctrl omap1_lcd_ctrl; extern struct lcd_ctrl omap1_lcd_ctrl;
#else
extern struct lcd_ctrl omap2_disp_ctrl;
#endif
extern void omapfb_register_panel(struct lcd_panel *panel); extern void omapfb_register_panel(struct lcd_panel *panel);
extern void omapfb_write_first_pixel(struct omapfb_device *fbdev, u16 pixval); extern void omapfb_write_first_pixel(struct omapfb_device *fbdev, u16 pixval);
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "omapfb.h" #include "omapfb.h"
#include "lcdc.h" #include "lcdc.h"
#include "dispc.h"
#define MODULE_NAME "omapfb" #define MODULE_NAME "omapfb"
...@@ -106,11 +105,7 @@ static struct platform_device omapdss_device = { ...@@ -106,11 +105,7 @@ static struct platform_device omapdss_device = {
extern struct lcd_ctrl hwa742_ctrl; extern struct lcd_ctrl hwa742_ctrl;
static const struct lcd_ctrl *ctrls[] = { static const struct lcd_ctrl *ctrls[] = {
#ifdef CONFIG_ARCH_OMAP1
&omap1_int_ctrl, &omap1_int_ctrl,
#else
&omap2_int_ctrl,
#endif
#ifdef CONFIG_FB_OMAP_LCDC_HWA742 #ifdef CONFIG_FB_OMAP_LCDC_HWA742
&hwa742_ctrl, &hwa742_ctrl,
...@@ -118,11 +113,7 @@ static const struct lcd_ctrl *ctrls[] = { ...@@ -118,11 +113,7 @@ static const struct lcd_ctrl *ctrls[] = {
}; };
#ifdef CONFIG_FB_OMAP_LCDC_EXTERNAL #ifdef CONFIG_FB_OMAP_LCDC_EXTERNAL
#ifdef CONFIG_ARCH_OMAP1
extern struct lcd_ctrl_extif omap1_ext_if; extern struct lcd_ctrl_extif omap1_ext_if;
#else
extern struct lcd_ctrl_extif omap2_ext_if;
#endif
#endif #endif
static void omapfb_rqueue_lock(struct omapfb_device *fbdev) static void omapfb_rqueue_lock(struct omapfb_device *fbdev)
...@@ -1717,16 +1708,9 @@ static int omapfb_do_probe(struct platform_device *pdev, ...@@ -1717,16 +1708,9 @@ static int omapfb_do_probe(struct platform_device *pdev,
mutex_init(&fbdev->rqueue_mutex); mutex_init(&fbdev->rqueue_mutex);
#ifdef CONFIG_ARCH_OMAP1
fbdev->int_ctrl = &omap1_int_ctrl; fbdev->int_ctrl = &omap1_int_ctrl;
#ifdef CONFIG_FB_OMAP_LCDC_EXTERNAL #ifdef CONFIG_FB_OMAP_LCDC_EXTERNAL
fbdev->ext_if = &omap1_ext_if; fbdev->ext_if = &omap1_ext_if;
#endif
#else /* OMAP2 */
fbdev->int_ctrl = &omap2_int_ctrl;
#ifdef CONFIG_FB_OMAP_LCDC_EXTERNAL
fbdev->ext_if = &omap2_ext_if;
#endif
#endif #endif
if (omapfb_find_ctrl(fbdev) < 0) { if (omapfb_find_ctrl(fbdev) < 0) {
dev_err(fbdev->dev, dev_err(fbdev->dev,
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment