diff options
Diffstat (limited to 'drivers/video/omap/lcdc.c')
-rw-r--r-- | drivers/video/omap/lcdc.c | 41 |
1 files changed, 6 insertions, 35 deletions
diff --git a/drivers/video/omap/lcdc.c b/drivers/video/omap/lcdc.c index ab3949256677..43ab7d8b66b2 100644 --- a/drivers/video/omap/lcdc.c +++ b/drivers/video/omap/lcdc.c | |||
@@ -28,48 +28,19 @@ | |||
28 | #include <linux/dma-mapping.h> | 28 | #include <linux/dma-mapping.h> |
29 | #include <linux/vmalloc.h> | 29 | #include <linux/vmalloc.h> |
30 | #include <linux/clk.h> | 30 | #include <linux/clk.h> |
31 | #include <linux/gfp.h> | ||
31 | 32 | ||
32 | #include <mach/dma.h> | 33 | #include <mach/lcdc.h> |
33 | #include <mach/omapfb.h> | 34 | #include <plat/dma.h> |
34 | 35 | ||
35 | #include <asm/mach-types.h> | 36 | #include <asm/mach-types.h> |
36 | 37 | ||
38 | #include "omapfb.h" | ||
39 | |||
37 | #include "lcdc.h" | 40 | #include "lcdc.h" |
38 | 41 | ||
39 | #define MODULE_NAME "lcdc" | 42 | #define MODULE_NAME "lcdc" |
40 | 43 | ||
41 | #define OMAP_LCDC_BASE 0xfffec000 | ||
42 | #define OMAP_LCDC_SIZE 256 | ||
43 | #define OMAP_LCDC_IRQ INT_LCD_CTRL | ||
44 | |||
45 | #define OMAP_LCDC_CONTROL (OMAP_LCDC_BASE + 0x00) | ||
46 | #define OMAP_LCDC_TIMING0 (OMAP_LCDC_BASE + 0x04) | ||
47 | #define OMAP_LCDC_TIMING1 (OMAP_LCDC_BASE + 0x08) | ||
48 | #define OMAP_LCDC_TIMING2 (OMAP_LCDC_BASE + 0x0c) | ||
49 | #define OMAP_LCDC_STATUS (OMAP_LCDC_BASE + 0x10) | ||
50 | #define OMAP_LCDC_SUBPANEL (OMAP_LCDC_BASE + 0x14) | ||
51 | #define OMAP_LCDC_LINE_INT (OMAP_LCDC_BASE + 0x18) | ||
52 | #define OMAP_LCDC_DISPLAY_STATUS (OMAP_LCDC_BASE + 0x1c) | ||
53 | |||
54 | #define OMAP_LCDC_STAT_DONE (1 << 0) | ||
55 | #define OMAP_LCDC_STAT_VSYNC (1 << 1) | ||
56 | #define OMAP_LCDC_STAT_SYNC_LOST (1 << 2) | ||
57 | #define OMAP_LCDC_STAT_ABC (1 << 3) | ||
58 | #define OMAP_LCDC_STAT_LINE_INT (1 << 4) | ||
59 | #define OMAP_LCDC_STAT_FUF (1 << 5) | ||
60 | #define OMAP_LCDC_STAT_LOADED_PALETTE (1 << 6) | ||
61 | |||
62 | #define OMAP_LCDC_CTRL_LCD_EN (1 << 0) | ||
63 | #define OMAP_LCDC_CTRL_LCD_TFT (1 << 7) | ||
64 | #define OMAP_LCDC_CTRL_LINE_IRQ_CLR_SEL (1 << 10) | ||
65 | |||
66 | #define OMAP_LCDC_IRQ_VSYNC (1 << 2) | ||
67 | #define OMAP_LCDC_IRQ_DONE (1 << 3) | ||
68 | #define OMAP_LCDC_IRQ_LOADED_PALETTE (1 << 4) | ||
69 | #define OMAP_LCDC_IRQ_LINE_NIRQ (1 << 5) | ||
70 | #define OMAP_LCDC_IRQ_LINE (1 << 6) | ||
71 | #define OMAP_LCDC_IRQ_MASK (((1 << 5) - 1) << 2) | ||
72 | |||
73 | #define MAX_PALETTE_SIZE PAGE_SIZE | 44 | #define MAX_PALETTE_SIZE PAGE_SIZE |
74 | 45 | ||
75 | enum lcdc_load_mode { | 46 | enum lcdc_load_mode { |
@@ -419,7 +390,7 @@ static int omap_lcdc_enable_plane(int plane, int enable) | |||
419 | /* | 390 | /* |
420 | * Configure the LCD DMA for a palette load operation and do the palette | 391 | * Configure the LCD DMA for a palette load operation and do the palette |
421 | * downloading synchronously. We don't use the frame+palette load mode of | 392 | * downloading synchronously. We don't use the frame+palette load mode of |
422 | * the controller, since the palette can always be downloaded seperately. | 393 | * the controller, since the palette can always be downloaded separately. |
423 | */ | 394 | */ |
424 | static void load_palette(void) | 395 | static void load_palette(void) |
425 | { | 396 | { |