Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
sh_mobile_lcdc.h File Reference
#include <linux/fb.h>
#include <video/sh_mobile_meram.h>

Go to the source code of this file.

Data Structures

struct  sh_mobile_lcdc_sys_bus_cfg
 
struct  sh_mobile_lcdc_sys_bus_ops
 
struct  sh_mobile_lcdc_panel_cfg
 
struct  sh_mobile_lcdc_bl_info
 
struct  sh_mobile_lcdc_overlay_cfg
 
struct  sh_mobile_lcdc_chan_cfg
 
struct  sh_mobile_lcdc_info
 

Macros

#define _LDDCKR   0x410
 
#define LDDCKR_ICKSEL_BUS   (0 << 16)
 
#define LDDCKR_ICKSEL_MIPI   (1 << 16)
 
#define LDDCKR_ICKSEL_HDMI   (2 << 16)
 
#define LDDCKR_ICKSEL_EXT   (3 << 16)
 
#define LDDCKR_ICKSEL_MASK   (7 << 16)
 
#define LDDCKR_MOSEL   (1 << 6)
 
#define _LDDCKSTPR   0x414
 
#define _LDINTR   0x468
 
#define LDINTR_FE   (1 << 10)
 
#define LDINTR_VSE   (1 << 9)
 
#define LDINTR_VEE   (1 << 8)
 
#define LDINTR_FS   (1 << 2)
 
#define LDINTR_VSS   (1 << 1)
 
#define LDINTR_VES   (1 << 0)
 
#define LDINTR_STATUS_MASK   (0xff << 0)
 
#define _LDSR   0x46c
 
#define LDSR_MSS   (1 << 10)
 
#define LDSR_MRS   (1 << 8)
 
#define LDSR_AS   (1 << 1)
 
#define _LDCNT1R   0x470
 
#define LDCNT1R_DE   (1 << 0)
 
#define _LDCNT2R   0x474
 
#define LDCNT2R_BR   (1 << 8)
 
#define LDCNT2R_MD   (1 << 3)
 
#define LDCNT2R_SE   (1 << 2)
 
#define LDCNT2R_ME   (1 << 1)
 
#define LDCNT2R_DO   (1 << 0)
 
#define _LDRCNTR   0x478
 
#define LDRCNTR_SRS   (1 << 17)
 
#define LDRCNTR_SRC   (1 << 16)
 
#define LDRCNTR_MRS   (1 << 1)
 
#define LDRCNTR_MRC   (1 << 0)
 
#define _LDDDSR   0x47c
 
#define LDDDSR_LS   (1 << 2)
 
#define LDDDSR_WS   (1 << 1)
 
#define LDDDSR_BS   (1 << 0)
 
#define LDMT1R_VPOL   (1 << 28)
 
#define LDMT1R_HPOL   (1 << 27)
 
#define LDMT1R_DWPOL   (1 << 26)
 
#define LDMT1R_DIPOL   (1 << 25)
 
#define LDMT1R_DAPOL   (1 << 24)
 
#define LDMT1R_HSCNT   (1 << 17)
 
#define LDMT1R_DWCNT   (1 << 16)
 
#define LDMT1R_IFM   (1 << 12)
 
#define LDMT1R_MIFTYP_RGB8   (0x0 << 0)
 
#define LDMT1R_MIFTYP_RGB9   (0x4 << 0)
 
#define LDMT1R_MIFTYP_RGB12A   (0x5 << 0)
 
#define LDMT1R_MIFTYP_RGB12B   (0x6 << 0)
 
#define LDMT1R_MIFTYP_RGB16   (0x7 << 0)
 
#define LDMT1R_MIFTYP_RGB18   (0xa << 0)
 
#define LDMT1R_MIFTYP_RGB24   (0xb << 0)
 
#define LDMT1R_MIFTYP_YCBCR   (0xf << 0)
 
#define LDMT1R_MIFTYP_SYS8A   (0x0 << 0)
 
#define LDMT1R_MIFTYP_SYS8B   (0x1 << 0)
 
#define LDMT1R_MIFTYP_SYS8C   (0x2 << 0)
 
#define LDMT1R_MIFTYP_SYS8D   (0x3 << 0)
 
#define LDMT1R_MIFTYP_SYS9   (0x4 << 0)
 
#define LDMT1R_MIFTYP_SYS12   (0x5 << 0)
 
#define LDMT1R_MIFTYP_SYS16A   (0x7 << 0)
 
#define LDMT1R_MIFTYP_SYS16B   (0x8 << 0)
 
#define LDMT1R_MIFTYP_SYS16C   (0x9 << 0)
 
#define LDMT1R_MIFTYP_SYS18   (0xa << 0)
 
#define LDMT1R_MIFTYP_SYS24   (0xb << 0)
 
#define LDMT1R_MIFTYP_MASK   (0xf << 0)
 
#define LDDFR_CF1   (1 << 18)
 
#define LDDFR_CF0   (1 << 17)
 
#define LDDFR_CC   (1 << 16)
 
#define LDDFR_YF_420   (0 << 8)
 
#define LDDFR_YF_422   (1 << 8)
 
#define LDDFR_YF_444   (2 << 8)
 
#define LDDFR_YF_MASK   (3 << 8)
 
#define LDDFR_PKF_ARGB32   (0x00 << 0)
 
#define LDDFR_PKF_RGB16   (0x03 << 0)
 
#define LDDFR_PKF_RGB24   (0x0b << 0)
 
#define LDDFR_PKF_MASK   (0x1f << 0)
 
#define LDSM1R_OS   (1 << 0)
 
#define LDSM2R_OSTRG   (1 << 0)
 
#define LDPMR_LPS   (3 << 0)
 
#define _LDDWD0R   0x800
 
#define LDDWDxR_WDACT   (1 << 28)
 
#define LDDWDxR_RSW   (1 << 24)
 
#define _LDDRDR   0x840
 
#define LDDRDR_RSR   (1 << 24)
 
#define LDDRDR_DRD_MASK   (0x3ffff << 0)
 
#define _LDDWAR   0x900
 
#define LDDWAR_WA   (1 << 0)
 
#define _LDDRAR   0x904
 
#define LDDRAR_RA   (1 << 0)
 
#define LCDC_FLAGS_DWPOL   (1 << 0) /* Rising edge dot clock data latch */
 
#define LCDC_FLAGS_DIPOL   (1 << 1) /* Active low display enable polarity */
 
#define LCDC_FLAGS_DAPOL   (1 << 2) /* Active low display data polarity */
 
#define LCDC_FLAGS_HSCNT   (1 << 3) /* Disable HSYNC during VBLANK */
 
#define LCDC_FLAGS_DWCNT   (1 << 4) /* Disable dotclock during blanking */
 

Enumerations

enum  {
  RGB8 = LDMT1R_MIFTYP_RGB8, RGB9 = LDMT1R_MIFTYP_RGB9, RGB12A = LDMT1R_MIFTYP_RGB12A, RGB12B = LDMT1R_MIFTYP_RGB12B,
  RGB16 = LDMT1R_MIFTYP_RGB16, RGB18 = LDMT1R_MIFTYP_RGB18, RGB24 = LDMT1R_MIFTYP_RGB24, YUV422 = LDMT1R_MIFTYP_YCBCR,
  SYS8A = LDMT1R_IFM | LDMT1R_MIFTYP_SYS8A, SYS8B = LDMT1R_IFM | LDMT1R_MIFTYP_SYS8B, SYS8C = LDMT1R_IFM | LDMT1R_MIFTYP_SYS8C, SYS8D = LDMT1R_IFM | LDMT1R_MIFTYP_SYS8D,
  SYS9 = LDMT1R_IFM | LDMT1R_MIFTYP_SYS9, SYS12 = LDMT1R_IFM | LDMT1R_MIFTYP_SYS12, SYS16A = LDMT1R_IFM | LDMT1R_MIFTYP_SYS16A, SYS16B = LDMT1R_IFM | LDMT1R_MIFTYP_SYS16B,
  SYS16C = LDMT1R_IFM | LDMT1R_MIFTYP_SYS16C, SYS18 = LDMT1R_IFM | LDMT1R_MIFTYP_SYS18, SYS24 = LDMT1R_IFM | LDMT1R_MIFTYP_SYS24
}
 
enum  { LCDC_CHAN_DISABLED = 0, LCDC_CHAN_MAINLCD, LCDC_CHAN_SUBLCD }
 
enum  { LCDC_CLK_BUS, LCDC_CLK_PERIPHERAL, LCDC_CLK_EXTERNAL }
 

Macro Definition Documentation

#define _LDCNT1R   0x470

Definition at line 28 of file sh_mobile_lcdc.h.

#define _LDCNT2R   0x474

Definition at line 30 of file sh_mobile_lcdc.h.

#define _LDDCKR   0x410

Definition at line 8 of file sh_mobile_lcdc.h.

#define _LDDCKSTPR   0x414

Definition at line 15 of file sh_mobile_lcdc.h.

#define _LDDDSR   0x47c

Definition at line 41 of file sh_mobile_lcdc.h.

#define _LDDRAR   0x904

Definition at line 101 of file sh_mobile_lcdc.h.

#define _LDDRDR   0x840

Definition at line 96 of file sh_mobile_lcdc.h.

#define _LDDWAR   0x900

Definition at line 99 of file sh_mobile_lcdc.h.

#define _LDDWD0R   0x800

Definition at line 93 of file sh_mobile_lcdc.h.

#define _LDINTR   0x468

Definition at line 16 of file sh_mobile_lcdc.h.

#define _LDRCNTR   0x478

Definition at line 36 of file sh_mobile_lcdc.h.

#define _LDSR   0x46c

Definition at line 24 of file sh_mobile_lcdc.h.

#define LCDC_FLAGS_DAPOL   (1 << 2) /* Active low display data polarity */

Definition at line 134 of file sh_mobile_lcdc.h.

#define LCDC_FLAGS_DIPOL   (1 << 1) /* Active low display enable polarity */

Definition at line 133 of file sh_mobile_lcdc.h.

#define LCDC_FLAGS_DWCNT   (1 << 4) /* Disable dotclock during blanking */

Definition at line 136 of file sh_mobile_lcdc.h.

#define LCDC_FLAGS_DWPOL   (1 << 0) /* Rising edge dot clock data latch */

Definition at line 132 of file sh_mobile_lcdc.h.

#define LCDC_FLAGS_HSCNT   (1 << 3) /* Disable HSYNC during VBLANK */

Definition at line 135 of file sh_mobile_lcdc.h.

#define LDCNT1R_DE   (1 << 0)

Definition at line 29 of file sh_mobile_lcdc.h.

#define LDCNT2R_BR   (1 << 8)

Definition at line 31 of file sh_mobile_lcdc.h.

#define LDCNT2R_DO   (1 << 0)

Definition at line 35 of file sh_mobile_lcdc.h.

#define LDCNT2R_MD   (1 << 3)

Definition at line 32 of file sh_mobile_lcdc.h.

#define LDCNT2R_ME   (1 << 1)

Definition at line 34 of file sh_mobile_lcdc.h.

#define LDCNT2R_SE   (1 << 2)

Definition at line 33 of file sh_mobile_lcdc.h.

#define LDDCKR_ICKSEL_BUS   (0 << 16)

Definition at line 9 of file sh_mobile_lcdc.h.

#define LDDCKR_ICKSEL_EXT   (3 << 16)

Definition at line 12 of file sh_mobile_lcdc.h.

#define LDDCKR_ICKSEL_HDMI   (2 << 16)

Definition at line 11 of file sh_mobile_lcdc.h.

#define LDDCKR_ICKSEL_MASK   (7 << 16)

Definition at line 13 of file sh_mobile_lcdc.h.

#define LDDCKR_ICKSEL_MIPI   (1 << 16)

Definition at line 10 of file sh_mobile_lcdc.h.

#define LDDCKR_MOSEL   (1 << 6)

Definition at line 14 of file sh_mobile_lcdc.h.

#define LDDDSR_BS   (1 << 0)

Definition at line 44 of file sh_mobile_lcdc.h.

#define LDDDSR_LS   (1 << 2)

Definition at line 42 of file sh_mobile_lcdc.h.

#define LDDDSR_WS   (1 << 1)

Definition at line 43 of file sh_mobile_lcdc.h.

#define LDDFR_CC   (1 << 16)

Definition at line 77 of file sh_mobile_lcdc.h.

#define LDDFR_CF0   (1 << 17)

Definition at line 76 of file sh_mobile_lcdc.h.

#define LDDFR_CF1   (1 << 18)

Definition at line 75 of file sh_mobile_lcdc.h.

#define LDDFR_PKF_ARGB32   (0x00 << 0)

Definition at line 82 of file sh_mobile_lcdc.h.

#define LDDFR_PKF_MASK   (0x1f << 0)

Definition at line 85 of file sh_mobile_lcdc.h.

#define LDDFR_PKF_RGB16   (0x03 << 0)

Definition at line 83 of file sh_mobile_lcdc.h.

#define LDDFR_PKF_RGB24   (0x0b << 0)

Definition at line 84 of file sh_mobile_lcdc.h.

#define LDDFR_YF_420   (0 << 8)

Definition at line 78 of file sh_mobile_lcdc.h.

#define LDDFR_YF_422   (1 << 8)

Definition at line 79 of file sh_mobile_lcdc.h.

#define LDDFR_YF_444   (2 << 8)

Definition at line 80 of file sh_mobile_lcdc.h.

#define LDDFR_YF_MASK   (3 << 8)

Definition at line 81 of file sh_mobile_lcdc.h.

#define LDDRAR_RA   (1 << 0)

Definition at line 102 of file sh_mobile_lcdc.h.

#define LDDRDR_DRD_MASK   (0x3ffff << 0)

Definition at line 98 of file sh_mobile_lcdc.h.

#define LDDRDR_RSR   (1 << 24)

Definition at line 97 of file sh_mobile_lcdc.h.

#define LDDWAR_WA   (1 << 0)

Definition at line 100 of file sh_mobile_lcdc.h.

#define LDDWDxR_RSW   (1 << 24)

Definition at line 95 of file sh_mobile_lcdc.h.

#define LDDWDxR_WDACT   (1 << 28)

Definition at line 94 of file sh_mobile_lcdc.h.

#define LDINTR_FE   (1 << 10)

Definition at line 17 of file sh_mobile_lcdc.h.

#define LDINTR_FS   (1 << 2)

Definition at line 20 of file sh_mobile_lcdc.h.

#define LDINTR_STATUS_MASK   (0xff << 0)

Definition at line 23 of file sh_mobile_lcdc.h.

#define LDINTR_VEE   (1 << 8)

Definition at line 19 of file sh_mobile_lcdc.h.

#define LDINTR_VES   (1 << 0)

Definition at line 22 of file sh_mobile_lcdc.h.

#define LDINTR_VSE   (1 << 9)

Definition at line 18 of file sh_mobile_lcdc.h.

#define LDINTR_VSS   (1 << 1)

Definition at line 21 of file sh_mobile_lcdc.h.

#define LDMT1R_DAPOL   (1 << 24)

Definition at line 50 of file sh_mobile_lcdc.h.

#define LDMT1R_DIPOL   (1 << 25)

Definition at line 49 of file sh_mobile_lcdc.h.

#define LDMT1R_DWCNT   (1 << 16)

Definition at line 52 of file sh_mobile_lcdc.h.

#define LDMT1R_DWPOL   (1 << 26)

Definition at line 48 of file sh_mobile_lcdc.h.

#define LDMT1R_HPOL   (1 << 27)

Definition at line 47 of file sh_mobile_lcdc.h.

#define LDMT1R_HSCNT   (1 << 17)

Definition at line 51 of file sh_mobile_lcdc.h.

#define LDMT1R_IFM   (1 << 12)

Definition at line 53 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_MASK   (0xf << 0)

Definition at line 73 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_RGB12A   (0x5 << 0)

Definition at line 56 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_RGB12B   (0x6 << 0)

Definition at line 57 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_RGB16   (0x7 << 0)

Definition at line 58 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_RGB18   (0xa << 0)

Definition at line 59 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_RGB24   (0xb << 0)

Definition at line 60 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_RGB8   (0x0 << 0)

Definition at line 54 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_RGB9   (0x4 << 0)

Definition at line 55 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_SYS12   (0x5 << 0)

Definition at line 67 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_SYS16A   (0x7 << 0)

Definition at line 68 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_SYS16B   (0x8 << 0)

Definition at line 69 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_SYS16C   (0x9 << 0)

Definition at line 70 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_SYS18   (0xa << 0)

Definition at line 71 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_SYS24   (0xb << 0)

Definition at line 72 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_SYS8A   (0x0 << 0)

Definition at line 62 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_SYS8B   (0x1 << 0)

Definition at line 63 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_SYS8C   (0x2 << 0)

Definition at line 64 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_SYS8D   (0x3 << 0)

Definition at line 65 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_SYS9   (0x4 << 0)

Definition at line 66 of file sh_mobile_lcdc.h.

#define LDMT1R_MIFTYP_YCBCR   (0xf << 0)

Definition at line 61 of file sh_mobile_lcdc.h.

#define LDMT1R_VPOL   (1 << 28)

Definition at line 46 of file sh_mobile_lcdc.h.

#define LDPMR_LPS   (3 << 0)

Definition at line 91 of file sh_mobile_lcdc.h.

#define LDRCNTR_MRC   (1 << 0)

Definition at line 40 of file sh_mobile_lcdc.h.

#define LDRCNTR_MRS   (1 << 1)

Definition at line 39 of file sh_mobile_lcdc.h.

#define LDRCNTR_SRC   (1 << 16)

Definition at line 38 of file sh_mobile_lcdc.h.

#define LDRCNTR_SRS   (1 << 17)

Definition at line 37 of file sh_mobile_lcdc.h.

#define LDSM1R_OS   (1 << 0)

Definition at line 87 of file sh_mobile_lcdc.h.

#define LDSM2R_OSTRG   (1 << 0)

Definition at line 89 of file sh_mobile_lcdc.h.

#define LDSR_AS   (1 << 1)

Definition at line 27 of file sh_mobile_lcdc.h.

#define LDSR_MRS   (1 << 8)

Definition at line 26 of file sh_mobile_lcdc.h.

#define LDSR_MSS   (1 << 10)

Definition at line 25 of file sh_mobile_lcdc.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
RGB8 
RGB9 
RGB12A 
RGB12B 
RGB16 
RGB18 
RGB24 
YUV422 
SYS8A 
SYS8B 
SYS8C 
SYS8D 
SYS9 
SYS12 
SYS16A 
SYS16B 
SYS16C 
SYS18 
SYS24 

Definition at line 104 of file sh_mobile_lcdc.h.

anonymous enum
Enumerator:
LCDC_CHAN_DISABLED 
LCDC_CHAN_MAINLCD 
LCDC_CHAN_SUBLCD 

Definition at line 126 of file sh_mobile_lcdc.h.

anonymous enum
Enumerator:
LCDC_CLK_BUS 
LCDC_CLK_PERIPHERAL 
LCDC_CLK_EXTERNAL 

Definition at line 130 of file sh_mobile_lcdc.h.