Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

fsl_csi.h File Reference


Detailed Description

mx25 CMOS Sensor interface functions

Definition in file fsl_csi.h.

#include <linux/io.h>
#include <mach/hardware.h>

Go to the source code of this file.

Classes

struct  csi_config_t
struct  csi_signal_cfg_t

Defines

#define BIT_CCIR_EN   (0x1 << 10)
#define BIT_CCIR_MODE   (0x1 << 27)
#define BIT_CLR_RXFIFO   (0x1 << 5)
#define BIT_CLR_STATFIFO   (0x1 << 6)
#define BIT_COF_INT   (0x1 << 13)
#define BIT_COF_INT_EN   (0x1 << 26)
#define BIT_DMA_REFLASH_RFF   (0x1 << 14)
#define BIT_DMA_REFLASH_SFF   (0x1 << 13)
#define BIT_DMA_REQ_EN_RFF   (0x1 << 12)
#define BIT_DMA_REQ_EN_SFF   (0x1 << 11)
#define BIT_DMA_TSF_DONE_FB1   (0x1 << 19)
#define BIT_DMA_TSF_DONE_FB2   (0x1 << 20)
#define BIT_DMA_TSF_DONE_SFF   (0x1 << 22)
#define BIT_DRDY   (0x1 << 0)
#define BIT_ECC_AUTO_EN   (0x1 << 0)
#define BIT_ECC_INT   (0x1 << 1)
#define BIT_ECC_INT_EN   (0x1 << 1)
#define BIT_EOF_INT   (0x1 << 17)
#define BIT_EOF_INT_EN   (0x1 << 29)
#define BIT_EXT_VSYNC   (0x1 << 30)
#define BIT_F1_INT   (0x1 << 14)
#define BIT_F2_INT   (0x1 << 15)
#define BIT_FB1_DMA_DONE_INTEN   (0x1 << 19)
#define BIT_FB2_DMA_DONE_INTEN   (0x1 << 20)
#define BIT_FCC   (0x1 << 8)
#define BIT_FRMCNT   (0xFFFF << 16)
#define BIT_FRMCNT_RST   (0x1 << 15)
#define BIT_GCLK_MODE   (0x1 << 4)
#define BIT_HRESP_ERR_EN   (0x1 << 7)
#define BIT_HRESP_ERR_INT   (0x1 << 7)
#define BIT_HSYNC_POL   (0x1 << 11)
#define BIT_INV_DATA   (0x1 << 3)
#define BIT_INV_PCLK   (0x1 << 2)
#define BIT_MCLKDIV   (0xF << 12)
#define BIT_MCLKEN   (0x1 << 9)
#define BIT_PACK_DIR   (0x1 << 7)
#define BIT_PIXEL_BIT   (0x1 << 0)
#define BIT_PRP_IF_EN   (0x1 << 28)
#define BIT_REDGE   (0x1 << 1)
#define BIT_RF_OR_INTEN   (0x1 << 24)
#define BIT_RFF_OR_INT   (0x1 << 24)
#define BIT_RXFF_INT   (0x1 << 18)
#define BIT_RXFF_INTEN   (0x1 << 18)
#define BIT_RXFF_LEVEL   (0x7 << 4)
#define BIT_SF_OR_INTEN   (0x1 << 25)
#define BIT_SFF_DMA_DONE_INTEN   (0x1 << 22)
#define BIT_SFF_OR_INT   (0x1 << 25)
#define BIT_SOF_INT   (0x1 << 16)
#define BIT_SOF_INTEN   (0x1 << 16)
#define BIT_SOF_POL   (0x1 << 17)
#define BIT_STATFF_INT   (0x1 << 21)
#define BIT_STATFF_INTEN   (0x1 << 21)
#define BIT_STATFF_LEVEL   (0x7 << 8)
#define BIT_SWAP16_EN   (0x1 << 31)
#define BIT_TWO_8BIT_SENSOR   (0x1 << 3)
#define BIT_ZERO_PACK_EN   (0x1 << 2)
#define CSI_CSICR1   (IO_ADDRESS(CSI_BASE_ADDR))
#define CSI_CSICR2   (IO_ADDRESS(CSI_BASE_ADDR + 0x4))
#define CSI_CSICR3   (IO_ADDRESS(CSI_BASE_ADDR + 0x8))
#define CSI_CSIDBG   (IO_ADDRESS(CSI_BASE_ADDR + 0x1C))
#define CSI_CSIDMASA_FB1   (IO_ADDRESS(CSI_BASE_ADDR + 0x28))
#define CSI_CSIDMASA_FB2   (IO_ADDRESS(CSI_BASE_ADDR + 0x2C))
#define CSI_CSIDMASA_STATFIFO   (IO_ADDRESS(CSI_BASE_ADDR + 0x20))
#define CSI_CSIDMATS_STATFIFO   (IO_ADDRESS(CSI_BASE_ADDR + 0x24))
#define CSI_CSIFBUF_PARA   (IO_ADDRESS(CSI_BASE_ADDR + 0x30))
#define CSI_CSIIMAG_PARA   (IO_ADDRESS(CSI_BASE_ADDR + 0x34))
#define CSI_CSIRXCNT   (IO_ADDRESS(CSI_BASE_ADDR + 0x14))
#define CSI_CSIRXFIFO   (IO_ADDRESS(CSI_BASE_ADDR + 0x10))
#define CSI_CSIRXFIFO_PHYADDR   (CSI_BASE_ADDR + 0x10)
#define CSI_CSISR   (IO_ADDRESS(CSI_BASE_ADDR + 0x18))
#define CSI_MCLK_ENC   2
#define CSI_MCLK_I2C   8
#define CSI_MCLK_RAW   4
#define CSI_MCLK_VF   1
#define CSI_STATFIFO   (IO_ADDRESS(CSI_BASE_ADDR + 0xC))
#define CSICR1_RESET_VAL   0x40000800
#define CSICR2_RESET_VAL   0x0
#define CSICR3_RESET_VAL   0x0
#define SHIFT_FRMCNT   16
#define SHIFT_MCLKDIV   12

Typedefs

typedef void(* csi_irq_callback_t )(void *data, unsigned long status)

Functions

static void csi_clear_status (unsigned long status)
void csi_disable_int (void)
void csi_enable_int (int arg)
int32_t csi_enable_mclk (int src, bool flag, bool wait)
void csi_init_interface (void)
void csi_mclk_disable (void)
void csi_mclk_enable (void)
int csi_read_mclk_flag (void)
void csi_set_12bit_imagpara (int width, int height)
void csi_set_16bit_imagpara (int width, int height)
void csi_start_callback (void *data)
void csi_stop_callback (void *data)


Generated by  Doxygen 1.6.0   Back to index