Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
fimc-lite-reg.h File Reference
#include "fimc-lite.h"

Go to the source code of this file.

Macros

#define FLITE_REG_CISRCSIZE   0x00
 
#define FLITE_REG_CISRCSIZE_ORDER422_IN_YCBYCR   (0 << 14)
 
#define FLITE_REG_CISRCSIZE_ORDER422_IN_YCRYCB   (1 << 14)
 
#define FLITE_REG_CISRCSIZE_ORDER422_IN_CBYCRY   (2 << 14)
 
#define FLITE_REG_CISRCSIZE_ORDER422_IN_CRYCBY   (3 << 14)
 
#define FLITE_REG_CISRCSIZE_ORDER422_MASK   (0x3 << 14)
 
#define FLITE_REG_CISRCSIZE_SIZE_CAM_MASK   (0x3fff << 16 | 0x3fff)
 
#define FLITE_REG_CIGCTRL   0x04
 
#define FLITE_REG_CIGCTRL_YUV422_1P   (0x1e << 24)
 
#define FLITE_REG_CIGCTRL_RAW8   (0x2a << 24)
 
#define FLITE_REG_CIGCTRL_RAW10   (0x2b << 24)
 
#define FLITE_REG_CIGCTRL_RAW12   (0x2c << 24)
 
#define FLITE_REG_CIGCTRL_RAW14   (0x2d << 24)
 
#define FLITE_REG_CIGCTRL_USER(x)   ((0x30 + x - 1) << 24)
 
#define FLITE_REG_CIGCTRL_FMT_MASK   (0x3f << 24)
 
#define FLITE_REG_CIGCTRL_SHADOWMASK_DISABLE   (1 << 21)
 
#define FLITE_REG_CIGCTRL_ODMA_DISABLE   (1 << 20)
 
#define FLITE_REG_CIGCTRL_SWRST_REQ   (1 << 19)
 
#define FLITE_REG_CIGCTRL_SWRST_RDY   (1 << 18)
 
#define FLITE_REG_CIGCTRL_SWRST   (1 << 17)
 
#define FLITE_REG_CIGCTRL_TEST_PATTERN_COLORBAR   (1 << 15)
 
#define FLITE_REG_CIGCTRL_INVPOLPCLK   (1 << 14)
 
#define FLITE_REG_CIGCTRL_INVPOLVSYNC   (1 << 13)
 
#define FLITE_REG_CIGCTRL_INVPOLHREF   (1 << 12)
 
#define FLITE_REG_CIGCTRL_IRQ_LASTEN   (1 << 8)
 
#define FLITE_REG_CIGCTRL_IRQ_ENDEN   (1 << 7)
 
#define FLITE_REG_CIGCTRL_IRQ_STARTEN   (1 << 6)
 
#define FLITE_REG_CIGCTRL_IRQ_OVFEN   (1 << 5)
 
#define FLITE_REG_CIGCTRL_IRQ_DISABLE_MASK   (0xf << 5)
 
#define FLITE_REG_CIGCTRL_SELCAM_MIPI   (1 << 3)
 
#define FLITE_REG_CIIMGCPT   0x08
 
#define FLITE_REG_CIIMGCPT_IMGCPTEN   (1 << 31)
 
#define FLITE_REG_CIIMGCPT_CPT_FREN   (1 << 25)
 
#define FLITE_REG_CIIMGCPT_CPT_MOD_FRCNT   (1 << 18)
 
#define FLITE_REG_CIIMGCPT_CPT_MOD_FREN   (0 << 18)
 
#define FLITE_REG_CICPTSEQ   0x0c
 
#define FLITE_REG_CIWDOFST   0x10
 
#define FLITE_REG_CIWDOFST_WINOFSEN   (1 << 31)
 
#define FLITE_REG_CIWDOFST_CLROVIY   (1 << 31)
 
#define FLITE_REG_CIWDOFST_CLROVFICB   (1 << 15)
 
#define FLITE_REG_CIWDOFST_CLROVFICR   (1 << 14)
 
#define FLITE_REG_CIWDOFST_OFST_MASK   ((0x1fff << 16) | 0x1fff)
 
#define FLITE_REG_CIWDOFST2   0x14
 
#define FLITE_REG_CIODMAFMT   0x18
 
#define FLITE_REG_CIODMAFMT_RAW_CON   (1 << 15)
 
#define FLITE_REG_CIODMAFMT_PACK12   (1 << 14)
 
#define FLITE_REG_CIODMAFMT_CRYCBY   (0 << 4)
 
#define FLITE_REG_CIODMAFMT_CBYCRY   (1 << 4)
 
#define FLITE_REG_CIODMAFMT_YCRYCB   (2 << 4)
 
#define FLITE_REG_CIODMAFMT_YCBYCR   (3 << 4)
 
#define FLITE_REG_CIODMAFMT_YCBCR_ORDER_MASK   (0x3 << 4)
 
#define FLITE_REG_CIOCAN   0x20
 
#define FLITE_REG_CIOCAN_MASK   ((0x3fff << 16) | 0x3fff)
 
#define FLITE_REG_CIOOFF   0x24
 
#define FLITE_REG_CIOOFF_MASK   ((0x3fff << 16) | 0x3fff)
 
#define FLITE_REG_CIOSA   0x30
 
#define FLITE_REG_CISTATUS   0x40
 
#define FLITE_REG_CISTATUS_MIPI_VVALID   (1 << 22)
 
#define FLITE_REG_CISTATUS_MIPI_HVALID   (1 << 21)
 
#define FLITE_REG_CISTATUS_MIPI_DVALID   (1 << 20)
 
#define FLITE_REG_CISTATUS_ITU_VSYNC   (1 << 14)
 
#define FLITE_REG_CISTATUS_ITU_HREFF   (1 << 13)
 
#define FLITE_REG_CISTATUS_OVFIY   (1 << 10)
 
#define FLITE_REG_CISTATUS_OVFICB   (1 << 9)
 
#define FLITE_REG_CISTATUS_OVFICR   (1 << 8)
 
#define FLITE_REG_CISTATUS_IRQ_SRC_OVERFLOW   (1 << 7)
 
#define FLITE_REG_CISTATUS_IRQ_SRC_LASTCAPEND   (1 << 6)
 
#define FLITE_REG_CISTATUS_IRQ_SRC_FRMSTART   (1 << 5)
 
#define FLITE_REG_CISTATUS_IRQ_SRC_FRMEND   (1 << 4)
 
#define FLITE_REG_CISTATUS_IRQ_CAM   (1 << 0)
 
#define FLITE_REG_CISTATUS_IRQ_MASK   (0xf << 4)
 
#define FLITE_REG_CISTATUS2   0x44
 
#define FLITE_REG_CISTATUS2_LASTCAPEND   (1 << 1)
 
#define FLITE_REG_CISTATUS2_FRMEND   (1 << 0)
 
#define FLITE_REG_CITHOLD   0xf0
 
#define FLITE_REG_CITHOLD_W_QOS_EN   (1 << 30)
 
#define FLITE_REG_CIGENERAL   0xfc
 
#define FLITE_REG_CIGENERAL_CAM_B   (1 << 0)
 

Functions

void flite_hw_reset (struct fimc_lite *dev)
 
void flite_hw_clear_pending_irq (struct fimc_lite *dev)
 
u32 flite_hw_get_interrupt_source (struct fimc_lite *dev)
 
void flite_hw_clear_last_capture_end (struct fimc_lite *dev)
 
void flite_hw_set_interrupt_mask (struct fimc_lite *dev)
 
void flite_hw_capture_start (struct fimc_lite *dev)
 
void flite_hw_capture_stop (struct fimc_lite *dev)
 
void flite_hw_set_camera_bus (struct fimc_lite *dev, struct s5p_fimc_isp_info *s_info)
 
void flite_hw_set_camera_polarity (struct fimc_lite *dev, struct s5p_fimc_isp_info *cam)
 
void flite_hw_set_window_offset (struct fimc_lite *dev, struct flite_frame *f)
 
void flite_hw_set_source_format (struct fimc_lite *dev, struct flite_frame *f)
 
void flite_hw_set_output_dma (struct fimc_lite *dev, struct flite_frame *f, bool enable)
 
void flite_hw_set_dma_window (struct fimc_lite *dev, struct flite_frame *f)
 
void flite_hw_set_test_pattern (struct fimc_lite *dev, bool on)
 
void flite_hw_dump_regs (struct fimc_lite *dev, const char *label)
 

Macro Definition Documentation

#define FLITE_REG_CICPTSEQ   0x0c

Definition at line 58 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL   0x04

Definition at line 24 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_FMT_MASK   (0x3f << 24)

Definition at line 32 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_INVPOLHREF   (1 << 12)

Definition at line 41 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_INVPOLPCLK   (1 << 14)

Definition at line 39 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_INVPOLVSYNC   (1 << 13)

Definition at line 40 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_IRQ_DISABLE_MASK   (0xf << 5)

Definition at line 47 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_IRQ_ENDEN   (1 << 7)

Definition at line 44 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_IRQ_LASTEN   (1 << 8)

Definition at line 43 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_IRQ_OVFEN   (1 << 5)

Definition at line 46 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_IRQ_STARTEN   (1 << 6)

Definition at line 45 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_ODMA_DISABLE   (1 << 20)

Definition at line 34 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_RAW10   (0x2b << 24)

Definition at line 27 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_RAW12   (0x2c << 24)

Definition at line 28 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_RAW14   (0x2d << 24)

Definition at line 29 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_RAW8   (0x2a << 24)

Definition at line 26 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_SELCAM_MIPI   (1 << 3)

Definition at line 48 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_SHADOWMASK_DISABLE   (1 << 21)

Definition at line 33 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_SWRST   (1 << 17)

Definition at line 37 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_SWRST_RDY   (1 << 18)

Definition at line 36 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_SWRST_REQ   (1 << 19)

Definition at line 35 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_TEST_PATTERN_COLORBAR   (1 << 15)

Definition at line 38 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_USER (   x)    ((0x30 + x - 1) << 24)

Definition at line 31 of file fimc-lite-reg.h.

#define FLITE_REG_CIGCTRL_YUV422_1P   (0x1e << 24)

Definition at line 25 of file fimc-lite-reg.h.

#define FLITE_REG_CIGENERAL   0xfc

Definition at line 119 of file fimc-lite-reg.h.

#define FLITE_REG_CIGENERAL_CAM_B   (1 << 0)

Definition at line 121 of file fimc-lite-reg.h.

#define FLITE_REG_CIIMGCPT   0x08

Definition at line 51 of file fimc-lite-reg.h.

#define FLITE_REG_CIIMGCPT_CPT_FREN   (1 << 25)

Definition at line 53 of file fimc-lite-reg.h.

#define FLITE_REG_CIIMGCPT_CPT_MOD_FRCNT   (1 << 18)

Definition at line 54 of file fimc-lite-reg.h.

#define FLITE_REG_CIIMGCPT_CPT_MOD_FREN   (0 << 18)

Definition at line 55 of file fimc-lite-reg.h.

#define FLITE_REG_CIIMGCPT_IMGCPTEN   (1 << 31)

Definition at line 52 of file fimc-lite-reg.h.

#define FLITE_REG_CIOCAN   0x20

Definition at line 82 of file fimc-lite-reg.h.

#define FLITE_REG_CIOCAN_MASK   ((0x3fff << 16) | 0x3fff)

Definition at line 83 of file fimc-lite-reg.h.

#define FLITE_REG_CIODMAFMT   0x18

Definition at line 72 of file fimc-lite-reg.h.

#define FLITE_REG_CIODMAFMT_CBYCRY   (1 << 4)

Definition at line 76 of file fimc-lite-reg.h.

#define FLITE_REG_CIODMAFMT_CRYCBY   (0 << 4)

Definition at line 75 of file fimc-lite-reg.h.

#define FLITE_REG_CIODMAFMT_PACK12   (1 << 14)

Definition at line 74 of file fimc-lite-reg.h.

#define FLITE_REG_CIODMAFMT_RAW_CON   (1 << 15)

Definition at line 73 of file fimc-lite-reg.h.

#define FLITE_REG_CIODMAFMT_YCBCR_ORDER_MASK   (0x3 << 4)

Definition at line 79 of file fimc-lite-reg.h.

#define FLITE_REG_CIODMAFMT_YCBYCR   (3 << 4)

Definition at line 78 of file fimc-lite-reg.h.

#define FLITE_REG_CIODMAFMT_YCRYCB   (2 << 4)

Definition at line 77 of file fimc-lite-reg.h.

#define FLITE_REG_CIOOFF   0x24

Definition at line 86 of file fimc-lite-reg.h.

#define FLITE_REG_CIOOFF_MASK   ((0x3fff << 16) | 0x3fff)

Definition at line 87 of file fimc-lite-reg.h.

#define FLITE_REG_CIOSA   0x30

Definition at line 90 of file fimc-lite-reg.h.

#define FLITE_REG_CISRCSIZE   0x00

Definition at line 15 of file fimc-lite-reg.h.

#define FLITE_REG_CISRCSIZE_ORDER422_IN_CBYCRY   (2 << 14)

Definition at line 18 of file fimc-lite-reg.h.

#define FLITE_REG_CISRCSIZE_ORDER422_IN_CRYCBY   (3 << 14)

Definition at line 19 of file fimc-lite-reg.h.

#define FLITE_REG_CISRCSIZE_ORDER422_IN_YCBYCR   (0 << 14)

Definition at line 16 of file fimc-lite-reg.h.

#define FLITE_REG_CISRCSIZE_ORDER422_IN_YCRYCB   (1 << 14)

Definition at line 17 of file fimc-lite-reg.h.

#define FLITE_REG_CISRCSIZE_ORDER422_MASK   (0x3 << 14)

Definition at line 20 of file fimc-lite-reg.h.

#define FLITE_REG_CISRCSIZE_SIZE_CAM_MASK   (0x3fff << 16 | 0x3fff)

Definition at line 21 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS   0x40

Definition at line 93 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS2   0x44

Definition at line 110 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS2_FRMEND   (1 << 0)

Definition at line 112 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS2_LASTCAPEND   (1 << 1)

Definition at line 111 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS_IRQ_CAM   (1 << 0)

Definition at line 106 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS_IRQ_MASK   (0xf << 4)

Definition at line 107 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS_IRQ_SRC_FRMEND   (1 << 4)

Definition at line 105 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS_IRQ_SRC_FRMSTART   (1 << 5)

Definition at line 104 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS_IRQ_SRC_LASTCAPEND   (1 << 6)

Definition at line 103 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS_IRQ_SRC_OVERFLOW   (1 << 7)

Definition at line 102 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS_ITU_HREFF   (1 << 13)

Definition at line 98 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS_ITU_VSYNC   (1 << 14)

Definition at line 97 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS_MIPI_DVALID   (1 << 20)

Definition at line 96 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS_MIPI_HVALID   (1 << 21)

Definition at line 95 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS_MIPI_VVALID   (1 << 22)

Definition at line 94 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS_OVFICB   (1 << 9)

Definition at line 100 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS_OVFICR   (1 << 8)

Definition at line 101 of file fimc-lite-reg.h.

#define FLITE_REG_CISTATUS_OVFIY   (1 << 10)

Definition at line 99 of file fimc-lite-reg.h.

#define FLITE_REG_CITHOLD   0xf0

Definition at line 115 of file fimc-lite-reg.h.

#define FLITE_REG_CITHOLD_W_QOS_EN   (1 << 30)

Definition at line 116 of file fimc-lite-reg.h.

#define FLITE_REG_CIWDOFST   0x10

Definition at line 61 of file fimc-lite-reg.h.

#define FLITE_REG_CIWDOFST2   0x14

Definition at line 69 of file fimc-lite-reg.h.

#define FLITE_REG_CIWDOFST_CLROVFICB   (1 << 15)

Definition at line 64 of file fimc-lite-reg.h.

#define FLITE_REG_CIWDOFST_CLROVFICR   (1 << 14)

Definition at line 65 of file fimc-lite-reg.h.

#define FLITE_REG_CIWDOFST_CLROVIY   (1 << 31)

Definition at line 63 of file fimc-lite-reg.h.

#define FLITE_REG_CIWDOFST_OFST_MASK   ((0x1fff << 16) | 0x1fff)

Definition at line 66 of file fimc-lite-reg.h.

#define FLITE_REG_CIWDOFST_WINOFSEN   (1 << 31)

Definition at line 62 of file fimc-lite-reg.h.

Function Documentation

void flite_hw_capture_start ( struct fimc_lite dev)

Definition at line 84 of file fimc-lite-reg.c.

void flite_hw_capture_stop ( struct fimc_lite dev)

Definition at line 91 of file fimc-lite-reg.c.

void flite_hw_clear_last_capture_end ( struct fimc_lite dev)

Definition at line 55 of file fimc-lite-reg.c.

void flite_hw_clear_pending_irq ( struct fimc_lite dev)

Definition at line 42 of file fimc-lite-reg.c.

void flite_hw_dump_regs ( struct fimc_lite dev,
const char label 
)

Definition at line 272 of file fimc-lite-reg.c.

u32 flite_hw_get_interrupt_source ( struct fimc_lite dev)

Definition at line 49 of file fimc-lite-reg.c.

void flite_hw_reset ( struct fimc_lite dev)

Definition at line 22 of file fimc-lite-reg.c.

void flite_hw_set_camera_bus ( struct fimc_lite dev,
struct s5p_fimc_isp_info s_info 
)

Definition at line 189 of file fimc-lite-reg.c.

void flite_hw_set_camera_polarity ( struct fimc_lite dev,
struct s5p_fimc_isp_info cam 
)
void flite_hw_set_dma_window ( struct fimc_lite dev,
struct flite_frame f 
)

Definition at line 236 of file fimc-lite-reg.c.

void flite_hw_set_interrupt_mask ( struct fimc_lite dev)

Definition at line 63 of file fimc-lite-reg.c.

void flite_hw_set_output_dma ( struct fimc_lite dev,
struct flite_frame f,
bool  enable 
)

Definition at line 254 of file fimc-lite-reg.c.

void flite_hw_set_source_format ( struct fimc_lite dev,
struct flite_frame f 
)

Definition at line 128 of file fimc-lite-reg.c.

void flite_hw_set_test_pattern ( struct fimc_lite dev,
bool  on 
)

Definition at line 102 of file fimc-lite-reg.c.

void flite_hw_set_window_offset ( struct fimc_lite dev,
struct flite_frame f 
)

Definition at line 159 of file fimc-lite-reg.c.