Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef LCDC_H
0003 #define LCDC_H
0004 /*
0005  * Copyright (C) 2004 Nokia Corporation
0006  * Author: Imre Deak <imre.deak@nokia.com>
0007  */
0008 #define OMAP_LCDC_BASE          0xfffec000
0009 #define OMAP_LCDC_SIZE          256
0010 #define OMAP_LCDC_IRQ           INT_LCD_CTRL
0011 
0012 #define OMAP_LCDC_CONTROL       (OMAP_LCDC_BASE + 0x00)
0013 #define OMAP_LCDC_TIMING0       (OMAP_LCDC_BASE + 0x04)
0014 #define OMAP_LCDC_TIMING1       (OMAP_LCDC_BASE + 0x08)
0015 #define OMAP_LCDC_TIMING2       (OMAP_LCDC_BASE + 0x0c)
0016 #define OMAP_LCDC_STATUS        (OMAP_LCDC_BASE + 0x10)
0017 #define OMAP_LCDC_SUBPANEL      (OMAP_LCDC_BASE + 0x14)
0018 #define OMAP_LCDC_LINE_INT      (OMAP_LCDC_BASE + 0x18)
0019 #define OMAP_LCDC_DISPLAY_STATUS    (OMAP_LCDC_BASE + 0x1c)
0020 
0021 #define OMAP_LCDC_STAT_DONE     (1 << 0)
0022 #define OMAP_LCDC_STAT_VSYNC        (1 << 1)
0023 #define OMAP_LCDC_STAT_SYNC_LOST    (1 << 2)
0024 #define OMAP_LCDC_STAT_ABC      (1 << 3)
0025 #define OMAP_LCDC_STAT_LINE_INT     (1 << 4)
0026 #define OMAP_LCDC_STAT_FUF      (1 << 5)
0027 #define OMAP_LCDC_STAT_LOADED_PALETTE   (1 << 6)
0028 
0029 #define OMAP_LCDC_CTRL_LCD_EN       (1 << 0)
0030 #define OMAP_LCDC_CTRL_LCD_TFT      (1 << 7)
0031 #define OMAP_LCDC_CTRL_LINE_IRQ_CLR_SEL (1 << 10)
0032 
0033 #define OMAP_LCDC_IRQ_VSYNC     (1 << 2)
0034 #define OMAP_LCDC_IRQ_DONE      (1 << 3)
0035 #define OMAP_LCDC_IRQ_LOADED_PALETTE    (1 << 4)
0036 #define OMAP_LCDC_IRQ_LINE_NIRQ     (1 << 5)
0037 #define OMAP_LCDC_IRQ_LINE      (1 << 6)
0038 #define OMAP_LCDC_IRQ_MASK      (((1 << 5) - 1) << 2)
0039 
0040 int omap_lcdc_set_dma_callback(void (*callback)(void *data), void *data);
0041 void omap_lcdc_free_dma_callback(void);
0042 
0043 extern const struct lcd_ctrl omap1_int_ctrl;
0044 
0045 #endif