diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/net/smc91x.h | 15 | ||||
| -rw-r--r-- | drivers/video/omap/lcdc.c | 33 |
2 files changed, 1 insertions, 47 deletions
diff --git a/drivers/net/smc91x.h b/drivers/net/smc91x.h index 7815bfc300f5..54799544bda3 100644 --- a/drivers/net/smc91x.h +++ b/drivers/net/smc91x.h | |||
| @@ -206,21 +206,6 @@ SMC_outw(u16 val, void __iomem *ioaddr, int reg) | |||
| 206 | } | 206 | } |
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | #elif defined(CONFIG_ARCH_OMAP) | ||
| 210 | |||
| 211 | /* We can only do 16-bit reads and writes in the static memory space. */ | ||
| 212 | #define SMC_CAN_USE_8BIT 0 | ||
| 213 | #define SMC_CAN_USE_16BIT 1 | ||
| 214 | #define SMC_CAN_USE_32BIT 0 | ||
| 215 | #define SMC_IO_SHIFT 0 | ||
| 216 | #define SMC_NOWAIT 1 | ||
| 217 | |||
| 218 | #define SMC_inw(a, r) readw((a) + (r)) | ||
| 219 | #define SMC_outw(v, a, r) writew(v, (a) + (r)) | ||
| 220 | #define SMC_insw(a, r, p, l) readsw((a) + (r), p, l) | ||
| 221 | #define SMC_outsw(a, r, p, l) writesw((a) + (r), p, l) | ||
| 222 | #define SMC_IRQ_FLAGS (-1) /* from resource */ | ||
| 223 | |||
| 224 | #elif defined(CONFIG_SH_SH4202_MICRODEV) | 209 | #elif defined(CONFIG_SH_SH4202_MICRODEV) |
| 225 | 210 | ||
| 226 | #define SMC_CAN_USE_8BIT 0 | 211 | #define SMC_CAN_USE_8BIT 0 |
diff --git a/drivers/video/omap/lcdc.c b/drivers/video/omap/lcdc.c index b831e1df629e..a33483910dc8 100644 --- a/drivers/video/omap/lcdc.c +++ b/drivers/video/omap/lcdc.c | |||
| @@ -29,6 +29,7 @@ | |||
| 29 | #include <linux/vmalloc.h> | 29 | #include <linux/vmalloc.h> |
| 30 | #include <linux/clk.h> | 30 | #include <linux/clk.h> |
| 31 | 31 | ||
| 32 | #include <mach/lcdc.h> | ||
| 32 | #include <plat/dma.h> | 33 | #include <plat/dma.h> |
| 33 | 34 | ||
| 34 | #include <asm/mach-types.h> | 35 | #include <asm/mach-types.h> |
| @@ -39,38 +40,6 @@ | |||
| 39 | 40 | ||
| 40 | #define MODULE_NAME "lcdc" | 41 | #define MODULE_NAME "lcdc" |
| 41 | 42 | ||
| 42 | #define OMAP_LCDC_BASE 0xfffec000 | ||
| 43 | #define OMAP_LCDC_SIZE 256 | ||
| 44 | #define OMAP_LCDC_IRQ INT_LCD_CTRL | ||
| 45 | |||
| 46 | #define OMAP_LCDC_CONTROL (OMAP_LCDC_BASE + 0x00) | ||
| 47 | #define OMAP_LCDC_TIMING0 (OMAP_LCDC_BASE + 0x04) | ||
| 48 | #define OMAP_LCDC_TIMING1 (OMAP_LCDC_BASE + 0x08) | ||
| 49 | #define OMAP_LCDC_TIMING2 (OMAP_LCDC_BASE + 0x0c) | ||
| 50 | #define OMAP_LCDC_STATUS (OMAP_LCDC_BASE + 0x10) | ||
| 51 | #define OMAP_LCDC_SUBPANEL (OMAP_LCDC_BASE + 0x14) | ||
| 52 | #define OMAP_LCDC_LINE_INT (OMAP_LCDC_BASE + 0x18) | ||
| 53 | #define OMAP_LCDC_DISPLAY_STATUS (OMAP_LCDC_BASE + 0x1c) | ||
| 54 | |||
| 55 | #define OMAP_LCDC_STAT_DONE (1 << 0) | ||
| 56 | #define OMAP_LCDC_STAT_VSYNC (1 << 1) | ||
| 57 | #define OMAP_LCDC_STAT_SYNC_LOST (1 << 2) | ||
| 58 | #define OMAP_LCDC_STAT_ABC (1 << 3) | ||
| 59 | #define OMAP_LCDC_STAT_LINE_INT (1 << 4) | ||
| 60 | #define OMAP_LCDC_STAT_FUF (1 << 5) | ||
| 61 | #define OMAP_LCDC_STAT_LOADED_PALETTE (1 << 6) | ||
| 62 | |||
| 63 | #define OMAP_LCDC_CTRL_LCD_EN (1 << 0) | ||
| 64 | #define OMAP_LCDC_CTRL_LCD_TFT (1 << 7) | ||
| 65 | #define OMAP_LCDC_CTRL_LINE_IRQ_CLR_SEL (1 << 10) | ||
| 66 | |||
| 67 | #define OMAP_LCDC_IRQ_VSYNC (1 << 2) | ||
| 68 | #define OMAP_LCDC_IRQ_DONE (1 << 3) | ||
| 69 | #define OMAP_LCDC_IRQ_LOADED_PALETTE (1 << 4) | ||
| 70 | #define OMAP_LCDC_IRQ_LINE_NIRQ (1 << 5) | ||
| 71 | #define OMAP_LCDC_IRQ_LINE (1 << 6) | ||
| 72 | #define OMAP_LCDC_IRQ_MASK (((1 << 5) - 1) << 2) | ||
| 73 | |||
| 74 | #define MAX_PALETTE_SIZE PAGE_SIZE | 43 | #define MAX_PALETTE_SIZE PAGE_SIZE |
| 75 | 44 | ||
| 76 | enum lcdc_load_mode { | 45 | enum lcdc_load_mode { |
