Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
omap24xxcam.h File Reference
#include <media/videobuf-dma-sg.h>
#include <media/v4l2-int-device.h>

Go to the source code of this file.

Data Structures

struct  channel_state
 
struct  sgdma_state
 
struct  omap24xxcam_dma
 
struct  omap24xxcam_sgdma
 
struct  omap24xxcam_device
 
struct  omap24xxcam_fh
 

Macros

#define CAM_NAME   "omap24xxcam"
 
#define CAM_MCLK   96000000
 
#define DMA_THRESHOLD   32
 
#define NUM_CAMDMA_CHANNELS   4
 
#define NUM_SG_DMA   (VIDEO_MAX_FRAME)
 
#define CC_REG_OFFSET   0x00000400
 
#define CAMDMA_REG_OFFSET   0x00000800
 
#define CAMMMU_REG_OFFSET   0x00000C00
 
#define CAM_REVISION   0x000
 
#define CAM_SYSCONFIG   0x010
 
#define CAM_SYSSTATUS   0x014
 
#define CAM_IRQSTATUS   0x018
 
#define CAM_GPO   0x040
 
#define CAM_GPI   0x050
 
#define CC_REVISION   0x000
 
#define CC_SYSCONFIG   0x010
 
#define CC_SYSSTATUS   0x014
 
#define CC_IRQSTATUS   0x018
 
#define CC_IRQENABLE   0x01C
 
#define CC_CTRL   0x040
 
#define CC_CTRL_DMA   0x044
 
#define CC_CTRL_XCLK   0x048
 
#define CC_FIFODATA   0x04C
 
#define CC_TEST   0x050
 
#define CC_GENPAR   0x054
 
#define CC_CCPFSCR   0x058
 
#define CC_CCPFECR   0x05C
 
#define CC_CCPLSCR   0x060
 
#define CC_CCPLECR   0x064
 
#define CC_CCPDFR   0x068
 
#define CAMDMA_REVISION   0x000
 
#define CAMDMA_IRQSTATUS_L0   0x008
 
#define CAMDMA_IRQSTATUS_L1   0x00C
 
#define CAMDMA_IRQSTATUS_L2   0x010
 
#define CAMDMA_IRQSTATUS_L3   0x014
 
#define CAMDMA_IRQENABLE_L0   0x018
 
#define CAMDMA_IRQENABLE_L1   0x01C
 
#define CAMDMA_IRQENABLE_L2   0x020
 
#define CAMDMA_IRQENABLE_L3   0x024
 
#define CAMDMA_SYSSTATUS   0x028
 
#define CAMDMA_OCP_SYSCONFIG   0x02C
 
#define CAMDMA_CAPS_0   0x064
 
#define CAMDMA_CAPS_2   0x06C
 
#define CAMDMA_CAPS_3   0x070
 
#define CAMDMA_CAPS_4   0x074
 
#define CAMDMA_GCR   0x078
 
#define CAMDMA_CCR(n)   (0x080 + (n)*0x60)
 
#define CAMDMA_CLNK_CTRL(n)   (0x084 + (n)*0x60)
 
#define CAMDMA_CICR(n)   (0x088 + (n)*0x60)
 
#define CAMDMA_CSR(n)   (0x08C + (n)*0x60)
 
#define CAMDMA_CSDP(n)   (0x090 + (n)*0x60)
 
#define CAMDMA_CEN(n)   (0x094 + (n)*0x60)
 
#define CAMDMA_CFN(n)   (0x098 + (n)*0x60)
 
#define CAMDMA_CSSA(n)   (0x09C + (n)*0x60)
 
#define CAMDMA_CDSA(n)   (0x0A0 + (n)*0x60)
 
#define CAMDMA_CSEI(n)   (0x0A4 + (n)*0x60)
 
#define CAMDMA_CSFI(n)   (0x0A8 + (n)*0x60)
 
#define CAMDMA_CDEI(n)   (0x0AC + (n)*0x60)
 
#define CAMDMA_CDFI(n)   (0x0B0 + (n)*0x60)
 
#define CAMDMA_CSAC(n)   (0x0B4 + (n)*0x60)
 
#define CAMDMA_CDAC(n)   (0x0B8 + (n)*0x60)
 
#define CAMDMA_CCEN(n)   (0x0BC + (n)*0x60)
 
#define CAMDMA_CCFN(n)   (0x0C0 + (n)*0x60)
 
#define CAMDMA_COLOR(n)   (0x0C4 + (n)*0x60)
 
#define CAMMMU_REVISION   0x000
 
#define CAMMMU_SYSCONFIG   0x010
 
#define CAMMMU_SYSSTATUS   0x014
 
#define CAMMMU_IRQSTATUS   0x018
 
#define CAMMMU_IRQENABLE   0x01C
 
#define CAMMMU_WALKING_ST   0x040
 
#define CAMMMU_CNTL   0x044
 
#define CAMMMU_FAULT_AD   0x048
 
#define CAMMMU_TTB   0x04C
 
#define CAMMMU_LOCK   0x050
 
#define CAMMMU_LD_TLB   0x054
 
#define CAMMMU_CAM   0x058
 
#define CAMMMU_RAM   0x05C
 
#define CAMMMU_GFLUSH   0x060
 
#define CAMMMU_FLUSH_ENTRY   0x064
 
#define CAMMMU_READ_CAM   0x068
 
#define CAMMMU_READ_RAM   0x06C
 
#define CAMMMU_EMU_FAULT_AD   0x070
 
#define CAM_REVISION_MAJOR   (15 << 4)
 
#define CAM_REVISION_MAJOR_SHIFT   4
 
#define CAM_REVISION_MINOR   (15 << 0)
 
#define CAM_REVISION_MINOR_SHIFT   0
 
#define CAM_SYSCONFIG_SOFTRESET   (1 << 1)
 
#define CAM_SYSCONFIG_AUTOIDLE   (1 << 0)
 
#define CAM_SYSSTATUS_RESETDONE   (1 << 0)
 
#define CAM_IRQSTATUS_CC_IRQ   (1 << 4)
 
#define CAM_IRQSTATUS_MMU_IRQ   (1 << 3)
 
#define CAM_IRQSTATUS_DMA_IRQ2   (1 << 2)
 
#define CAM_IRQSTATUS_DMA_IRQ1   (1 << 1)
 
#define CAM_IRQSTATUS_DMA_IRQ0   (1 << 0)
 
#define CAM_GPO_CAM_S_P_EN   (1 << 1)
 
#define CAM_GPO_CAM_CCP_MODE   (1 << 0)
 
#define CAM_GPI_CC_DMA_REQ1   (1 << 24)
 
#define CAP_GPI_CC_DMA_REQ0   (1 << 23)
 
#define CAP_GPI_CAM_MSTANDBY   (1 << 21)
 
#define CAP_GPI_CAM_WAIT   (1 << 20)
 
#define CAP_GPI_CAM_S_DATA   (1 << 17)
 
#define CAP_GPI_CAM_S_CLK   (1 << 16)
 
#define CAP_GPI_CAM_P_DATA   (0xFFF << 3)
 
#define CAP_GPI_CAM_P_DATA_SHIFT   3
 
#define CAP_GPI_CAM_P_VS   (1 << 2)
 
#define CAP_GPI_CAM_P_HS   (1 << 1)
 
#define CAP_GPI_CAM_P_CLK   (1 << 0)
 
#define CC_REVISION_MAJOR   (15 << 4)
 
#define CC_REVISION_MAJOR_SHIFT   4
 
#define CC_REVISION_MINOR   (15 << 0)
 
#define CC_REVISION_MINOR_SHIFT   0
 
#define CC_SYSCONFIG_SIDLEMODE   (3 << 3)
 
#define CC_SYSCONFIG_SIDLEMODE_FIDLE   (0 << 3)
 
#define CC_SYSCONFIG_SIDLEMODE_NIDLE   (1 << 3)
 
#define CC_SYSCONFIG_SOFTRESET   (1 << 1)
 
#define CC_SYSCONFIG_AUTOIDLE   (1 << 0)
 
#define CC_SYSSTATUS_RESETDONE   (1 << 0)
 
#define CC_IRQSTATUS_FS_IRQ   (1 << 19)
 
#define CC_IRQSTATUS_LE_IRQ   (1 << 18)
 
#define CC_IRQSTATUS_LS_IRQ   (1 << 17)
 
#define CC_IRQSTATUS_FE_IRQ   (1 << 16)
 
#define CC_IRQSTATUS_FW_ERR_IRQ   (1 << 10)
 
#define CC_IRQSTATUS_FSC_ERR_IRQ   (1 << 9)
 
#define CC_IRQSTATUS_SSC_ERR_IRQ   (1 << 8)
 
#define CC_IRQSTATUS_FIFO_NOEMPTY_IRQ   (1 << 4)
 
#define CC_IRQSTATUS_FIFO_FULL_IRQ   (1 << 3)
 
#define CC_IRQSTATUS_FIFO_THR_IRQ   (1 << 2)
 
#define CC_IRQSTATUS_FIFO_OF_IRQ   (1 << 1)
 
#define CC_IRQSTATUS_FIFO_UF_IRQ   (1 << 0)
 
#define CC_IRQENABLE_FS_IRQ   (1 << 19)
 
#define CC_IRQENABLE_LE_IRQ   (1 << 18)
 
#define CC_IRQENABLE_LS_IRQ   (1 << 17)
 
#define CC_IRQENABLE_FE_IRQ   (1 << 16)
 
#define CC_IRQENABLE_FW_ERR_IRQ   (1 << 10)
 
#define CC_IRQENABLE_FSC_ERR_IRQ   (1 << 9)
 
#define CC_IRQENABLE_SSC_ERR_IRQ   (1 << 8)
 
#define CC_IRQENABLE_FIFO_NOEMPTY_IRQ   (1 << 4)
 
#define CC_IRQENABLE_FIFO_FULL_IRQ   (1 << 3)
 
#define CC_IRQENABLE_FIFO_THR_IRQ   (1 << 2)
 
#define CC_IRQENABLE_FIFO_OF_IRQ   (1 << 1)
 
#define CC_IRQENABLE_FIFO_UF_IRQ   (1 << 0)
 
#define CC_CTRL_CC_ONE_SHOT   (1 << 20)
 
#define CC_CTRL_CC_IF_SYNCHRO   (1 << 19)
 
#define CC_CTRL_CC_RST   (1 << 18)
 
#define CC_CTRL_CC_FRAME_TRIG   (1 << 17)
 
#define CC_CTRL_CC_EN   (1 << 16)
 
#define CC_CTRL_NOBT_SYNCHRO   (1 << 13)
 
#define CC_CTRL_BT_CORRECT   (1 << 12)
 
#define CC_CTRL_PAR_ORDERCAM   (1 << 11)
 
#define CC_CTRL_PAR_CLK_POL   (1 << 10)
 
#define CC_CTRL_NOBT_HS_POL   (1 << 9)
 
#define CC_CTRL_NOBT_VS_POL   (1 << 8)
 
#define CC_CTRL_PAR_MODE   (7 << 1)
 
#define CC_CTRL_PAR_MODE_SHIFT   1
 
#define CC_CTRL_PAR_MODE_NOBT8   (0 << 1)
 
#define CC_CTRL_PAR_MODE_NOBT10   (1 << 1)
 
#define CC_CTRL_PAR_MODE_NOBT12   (2 << 1)
 
#define CC_CTRL_PAR_MODE_BT8   (4 << 1)
 
#define CC_CTRL_PAR_MODE_BT10   (5 << 1)
 
#define CC_CTRL_PAR_MODE_FIFOTEST   (7 << 1)
 
#define CC_CTRL_CCP_MODE   (1 << 0)
 
#define CC_CTRL_DMA_EN   (1 << 8)
 
#define CC_CTRL_DMA_FIFO_THRESHOLD   (0x7F << 0)
 
#define CC_CTRL_DMA_FIFO_THRESHOLD_SHIFT   0
 
#define CC_CTRL_XCLK_DIV   (0x1F << 0)
 
#define CC_CTRL_XCLK_DIV_SHIFT   0
 
#define CC_CTRL_XCLK_DIV_STABLE_LOW   (0 << 0)
 
#define CC_CTRL_XCLK_DIV_STABLE_HIGH   (1 << 0)
 
#define CC_CTRL_XCLK_DIV_BYPASS   (31 << 0)
 
#define CC_TEST_FIFO_RD_POINTER   (0xFF << 24)
 
#define CC_TEST_FIFO_RD_POINTER_SHIFT   24
 
#define CC_TEST_FIFO_WR_POINTER   (0xFF << 16)
 
#define CC_TEST_FIFO_WR_POINTER_SHIFT   16
 
#define CC_TEST_FIFO_LEVEL   (0xFF << 8)
 
#define CC_TEST_FIFO_LEVEL_SHIFT   8
 
#define CC_TEST_FIFO_LEVEL_PEAK   (0xFF << 0)
 
#define CC_TEST_FIFO_LEVEL_PEAK_SHIFT   0
 
#define CC_GENPAR_FIFO_DEPTH   (7 << 0)
 
#define CC_GENPAR_FIFO_DEPTH_SHIFT   0
 
#define CC_CCPDFR_ALPHA   (0xFF << 8)
 
#define CC_CCPDFR_ALPHA_SHIFT   8
 
#define CC_CCPDFR_DATAFORMAT   (15 << 0)
 
#define CC_CCPDFR_DATAFORMAT_SHIFT   0
 
#define CC_CCPDFR_DATAFORMAT_YUV422BE   (0 << 0)
 
#define CC_CCPDFR_DATAFORMAT_YUV422   (1 << 0)
 
#define CC_CCPDFR_DATAFORMAT_YUV420   (2 << 0)
 
#define CC_CCPDFR_DATAFORMAT_RGB444   (4 << 0)
 
#define CC_CCPDFR_DATAFORMAT_RGB565   (5 << 0)
 
#define CC_CCPDFR_DATAFORMAT_RGB888NDE   (6 << 0)
 
#define CC_CCPDFR_DATAFORMAT_RGB888   (7 << 0)
 
#define CC_CCPDFR_DATAFORMAT_RAW8NDE   (8 << 0)
 
#define CC_CCPDFR_DATAFORMAT_RAW8   (9 << 0)
 
#define CC_CCPDFR_DATAFORMAT_RAW10NDE   (10 << 0)
 
#define CC_CCPDFR_DATAFORMAT_RAW10   (11 << 0)
 
#define CC_CCPDFR_DATAFORMAT_RAW12NDE   (12 << 0)
 
#define CC_CCPDFR_DATAFORMAT_RAW12   (13 << 0)
 
#define CC_CCPDFR_DATAFORMAT_JPEG8   (15 << 0)
 
#define CAMDMA_REVISION_MAJOR   (15 << 4)
 
#define CAMDMA_REVISION_MAJOR_SHIFT   4
 
#define CAMDMA_REVISION_MINOR   (15 << 0)
 
#define CAMDMA_REVISION_MINOR_SHIFT   0
 
#define CAMDMA_OCP_SYSCONFIG_MIDLEMODE   (3 << 12)
 
#define CAMDMA_OCP_SYSCONFIG_MIDLEMODE_FSTANDBY   (0 << 12)
 
#define CAMDMA_OCP_SYSCONFIG_MIDLEMODE_NSTANDBY   (1 << 12)
 
#define CAMDMA_OCP_SYSCONFIG_MIDLEMODE_SSTANDBY   (2 << 12)
 
#define CAMDMA_OCP_SYSCONFIG_FUNC_CLOCK   (1 << 9)
 
#define CAMDMA_OCP_SYSCONFIG_OCP_CLOCK   (1 << 8)
 
#define CAMDMA_OCP_SYSCONFIG_EMUFREE   (1 << 5)
 
#define CAMDMA_OCP_SYSCONFIG_SIDLEMODE   (3 << 3)
 
#define CAMDMA_OCP_SYSCONFIG_SIDLEMODE_FIDLE   (0 << 3)
 
#define CAMDMA_OCP_SYSCONFIG_SIDLEMODE_NIDLE   (1 << 3)
 
#define CAMDMA_OCP_SYSCONFIG_SIDLEMODE_SIDLE   (2 << 3)
 
#define CAMDMA_OCP_SYSCONFIG_SOFTRESET   (1 << 1)
 
#define CAMDMA_OCP_SYSCONFIG_AUTOIDLE   (1 << 0)
 
#define CAMDMA_SYSSTATUS_RESETDONE   (1 << 0)
 
#define CAMDMA_GCR_ARBITRATION_RATE   (0xFF << 16)
 
#define CAMDMA_GCR_ARBITRATION_RATE_SHIFT   16
 
#define CAMDMA_GCR_MAX_CHANNEL_FIFO_DEPTH   (0xFF << 0)
 
#define CAMDMA_GCR_MAX_CHANNEL_FIFO_DEPTH_SHIFT   0
 
#define CAMDMA_CCR_SEL_SRC_DST_SYNC   (1 << 24)
 
#define CAMDMA_CCR_PREFETCH   (1 << 23)
 
#define CAMDMA_CCR_SUPERVISOR   (1 << 22)
 
#define CAMDMA_CCR_SECURE   (1 << 21)
 
#define CAMDMA_CCR_BS   (1 << 18)
 
#define CAMDMA_CCR_TRANSPARENT_COPY_ENABLE   (1 << 17)
 
#define CAMDMA_CCR_CONSTANT_FILL_ENABLE   (1 << 16)
 
#define CAMDMA_CCR_DST_AMODE   (3 << 14)
 
#define CAMDMA_CCR_DST_AMODE_CONST_ADDR   (0 << 14)
 
#define CAMDMA_CCR_DST_AMODE_POST_INC   (1 << 14)
 
#define CAMDMA_CCR_DST_AMODE_SGL_IDX   (2 << 14)
 
#define CAMDMA_CCR_DST_AMODE_DBL_IDX   (3 << 14)
 
#define CAMDMA_CCR_SRC_AMODE   (3 << 12)
 
#define CAMDMA_CCR_SRC_AMODE_CONST_ADDR   (0 << 12)
 
#define CAMDMA_CCR_SRC_AMODE_POST_INC   (1 << 12)
 
#define CAMDMA_CCR_SRC_AMODE_SGL_IDX   (2 << 12)
 
#define CAMDMA_CCR_SRC_AMODE_DBL_IDX   (3 << 12)
 
#define CAMDMA_CCR_WR_ACTIVE   (1 << 10)
 
#define CAMDMA_CCR_RD_ACTIVE   (1 << 9)
 
#define CAMDMA_CCR_SUSPEND_SENSITIVE   (1 << 8)
 
#define CAMDMA_CCR_ENABLE   (1 << 7)
 
#define CAMDMA_CCR_PRIO   (1 << 6)
 
#define CAMDMA_CCR_FS   (1 << 5)
 
#define CAMDMA_CCR_SYNCHRO   ((3 << 19) | (31 << 0))
 
#define CAMDMA_CCR_SYNCHRO_CAMERA   0x01
 
#define CAMDMA_CLNK_CTRL_ENABLE_LNK   (1 << 15)
 
#define CAMDMA_CLNK_CTRL_NEXTLCH_ID   (0x1F << 0)
 
#define CAMDMA_CLNK_CTRL_NEXTLCH_ID_SHIFT   0
 
#define CAMDMA_CICR_MISALIGNED_ERR_IE   (1 << 11)
 
#define CAMDMA_CICR_SUPERVISOR_ERR_IE   (1 << 10)
 
#define CAMDMA_CICR_SECURE_ERR_IE   (1 << 9)
 
#define CAMDMA_CICR_TRANS_ERR_IE   (1 << 8)
 
#define CAMDMA_CICR_PACKET_IE   (1 << 7)
 
#define CAMDMA_CICR_BLOCK_IE   (1 << 5)
 
#define CAMDMA_CICR_LAST_IE   (1 << 4)
 
#define CAMDMA_CICR_FRAME_IE   (1 << 3)
 
#define CAMDMA_CICR_HALF_IE   (1 << 2)
 
#define CAMDMA_CICR_DROP_IE   (1 << 1)
 
#define CAMDMA_CSR_MISALIGNED_ERR   (1 << 11)
 
#define CAMDMA_CSR_SUPERVISOR_ERR   (1 << 10)
 
#define CAMDMA_CSR_SECURE_ERR   (1 << 9)
 
#define CAMDMA_CSR_TRANS_ERR   (1 << 8)
 
#define CAMDMA_CSR_PACKET   (1 << 7)
 
#define CAMDMA_CSR_SYNC   (1 << 6)
 
#define CAMDMA_CSR_BLOCK   (1 << 5)
 
#define CAMDMA_CSR_LAST   (1 << 4)
 
#define CAMDMA_CSR_FRAME   (1 << 3)
 
#define CAMDMA_CSR_HALF   (1 << 2)
 
#define CAMDMA_CSR_DROP   (1 << 1)
 
#define CAMDMA_CSDP_SRC_ENDIANNESS   (1 << 21)
 
#define CAMDMA_CSDP_SRC_ENDIANNESS_LOCK   (1 << 20)
 
#define CAMDMA_CSDP_DST_ENDIANNESS   (1 << 19)
 
#define CAMDMA_CSDP_DST_ENDIANNESS_LOCK   (1 << 18)
 
#define CAMDMA_CSDP_WRITE_MODE   (3 << 16)
 
#define CAMDMA_CSDP_WRITE_MODE_WRNP   (0 << 16)
 
#define CAMDMA_CSDP_WRITE_MODE_POSTED   (1 << 16)
 
#define CAMDMA_CSDP_WRITE_MODE_POSTED_LAST_WRNP   (2 << 16)
 
#define CAMDMA_CSDP_DST_BURST_EN   (3 << 14)
 
#define CAMDMA_CSDP_DST_BURST_EN_1   (0 << 14)
 
#define CAMDMA_CSDP_DST_BURST_EN_16   (1 << 14)
 
#define CAMDMA_CSDP_DST_BURST_EN_32   (2 << 14)
 
#define CAMDMA_CSDP_DST_BURST_EN_64   (3 << 14)
 
#define CAMDMA_CSDP_DST_PACKED   (1 << 13)
 
#define CAMDMA_CSDP_WR_ADD_TRSLT   (15 << 9)
 
#define CAMDMA_CSDP_WR_ADD_TRSLT_ENABLE_MREQADD   (3 << 9)
 
#define CAMDMA_CSDP_SRC_BURST_EN   (3 << 7)
 
#define CAMDMA_CSDP_SRC_BURST_EN_1   (0 << 7)
 
#define CAMDMA_CSDP_SRC_BURST_EN_16   (1 << 7)
 
#define CAMDMA_CSDP_SRC_BURST_EN_32   (2 << 7)
 
#define CAMDMA_CSDP_SRC_BURST_EN_64   (3 << 7)
 
#define CAMDMA_CSDP_SRC_PACKED   (1 << 6)
 
#define CAMDMA_CSDP_RD_ADD_TRSLT   (15 << 2)
 
#define CAMDMA_CSDP_RD_ADD_TRSLT_ENABLE_MREQADD   (3 << 2)
 
#define CAMDMA_CSDP_DATA_TYPE   (3 << 0)
 
#define CAMDMA_CSDP_DATA_TYPE_8BITS   (0 << 0)
 
#define CAMDMA_CSDP_DATA_TYPE_16BITS   (1 << 0)
 
#define CAMDMA_CSDP_DATA_TYPE_32BITS   (2 << 0)
 
#define CAMMMU_SYSCONFIG_AUTOIDLE   (1 << 0)
 

Typedefs

typedef void(* sgdma_callback_t )(struct omap24xxcam_sgdma *cam, u32 status, void *arg)
 
typedef void(* dma_callback_t )(struct omap24xxcam_dma *cam, u32 status, void *arg)
 

Functions

void omap24xxcam_dma_hwinit (struct omap24xxcam_dma *dma)
 
void omap24xxcam_dma_isr (struct omap24xxcam_dma *dma)
 
void omap24xxcam_sgdma_process (struct omap24xxcam_sgdma *sgdma)
 
int omap24xxcam_sgdma_queue (struct omap24xxcam_sgdma *sgdma, const struct scatterlist *sglist, int sglen, int len, sgdma_callback_t callback, void *arg)
 
void omap24xxcam_sgdma_sync (struct omap24xxcam_sgdma *sgdma)
 
void omap24xxcam_sgdma_init (struct omap24xxcam_sgdma *sgdma, void __iomem *base, void(*reset_callback)(unsigned long data), unsigned long reset_callback_data)
 
void omap24xxcam_sgdma_exit (struct omap24xxcam_sgdma *sgdma)
 

Macro Definition Documentation

#define CAM_GPI   0x050

Definition at line 75 of file omap24xxcam.h.

#define CAM_GPI_CC_DMA_REQ1   (1 << 24)

Definition at line 171 of file omap24xxcam.h.

#define CAM_GPO   0x040

Definition at line 74 of file omap24xxcam.h.

#define CAM_GPO_CAM_CCP_MODE   (1 << 0)

Definition at line 169 of file omap24xxcam.h.

#define CAM_GPO_CAM_S_P_EN   (1 << 1)

Definition at line 168 of file omap24xxcam.h.

#define CAM_IRQSTATUS   0x018

Definition at line 73 of file omap24xxcam.h.

#define CAM_IRQSTATUS_CC_IRQ   (1 << 4)

Definition at line 162 of file omap24xxcam.h.

#define CAM_IRQSTATUS_DMA_IRQ0   (1 << 0)

Definition at line 166 of file omap24xxcam.h.

#define CAM_IRQSTATUS_DMA_IRQ1   (1 << 1)

Definition at line 165 of file omap24xxcam.h.

#define CAM_IRQSTATUS_DMA_IRQ2   (1 << 2)

Definition at line 164 of file omap24xxcam.h.

#define CAM_IRQSTATUS_MMU_IRQ   (1 << 3)

Definition at line 163 of file omap24xxcam.h.

#define CAM_MCLK   96000000

Definition at line 41 of file omap24xxcam.h.

#define CAM_NAME   "omap24xxcam"

Definition at line 39 of file omap24xxcam.h.

#define CAM_REVISION   0x000

Definition at line 70 of file omap24xxcam.h.

#define CAM_REVISION_MAJOR   (15 << 4)

Definition at line 152 of file omap24xxcam.h.

#define CAM_REVISION_MAJOR_SHIFT   4

Definition at line 153 of file omap24xxcam.h.

#define CAM_REVISION_MINOR   (15 << 0)

Definition at line 154 of file omap24xxcam.h.

#define CAM_REVISION_MINOR_SHIFT   0

Definition at line 155 of file omap24xxcam.h.

#define CAM_SYSCONFIG   0x010

Definition at line 71 of file omap24xxcam.h.

#define CAM_SYSCONFIG_AUTOIDLE   (1 << 0)

Definition at line 158 of file omap24xxcam.h.

#define CAM_SYSCONFIG_SOFTRESET   (1 << 1)

Definition at line 157 of file omap24xxcam.h.

#define CAM_SYSSTATUS   0x014

Definition at line 72 of file omap24xxcam.h.

#define CAM_SYSSTATUS_RESETDONE   (1 << 0)

Definition at line 160 of file omap24xxcam.h.

#define CAMDMA_CAPS_0   0x064

Definition at line 107 of file omap24xxcam.h.

#define CAMDMA_CAPS_2   0x06C

Definition at line 108 of file omap24xxcam.h.

#define CAMDMA_CAPS_3   0x070

Definition at line 109 of file omap24xxcam.h.

#define CAMDMA_CAPS_4   0x074

Definition at line 110 of file omap24xxcam.h.

#define CAMDMA_CCEN (   n)    (0x0BC + (n)*0x60)

Definition at line 127 of file omap24xxcam.h.

#define CAMDMA_CCFN (   n)    (0x0C0 + (n)*0x60)

Definition at line 128 of file omap24xxcam.h.

#define CAMDMA_CCR (   n)    (0x080 + (n)*0x60)

Definition at line 112 of file omap24xxcam.h.

#define CAMDMA_CCR_BS   (1 << 18)

Definition at line 314 of file omap24xxcam.h.

#define CAMDMA_CCR_CONSTANT_FILL_ENABLE   (1 << 16)

Definition at line 316 of file omap24xxcam.h.

#define CAMDMA_CCR_DST_AMODE   (3 << 14)

Definition at line 317 of file omap24xxcam.h.

#define CAMDMA_CCR_DST_AMODE_CONST_ADDR   (0 << 14)

Definition at line 318 of file omap24xxcam.h.

#define CAMDMA_CCR_DST_AMODE_DBL_IDX   (3 << 14)

Definition at line 321 of file omap24xxcam.h.

#define CAMDMA_CCR_DST_AMODE_POST_INC   (1 << 14)

Definition at line 319 of file omap24xxcam.h.

#define CAMDMA_CCR_DST_AMODE_SGL_IDX   (2 << 14)

Definition at line 320 of file omap24xxcam.h.

#define CAMDMA_CCR_ENABLE   (1 << 7)

Definition at line 330 of file omap24xxcam.h.

#define CAMDMA_CCR_FS   (1 << 5)

Definition at line 332 of file omap24xxcam.h.

#define CAMDMA_CCR_PREFETCH   (1 << 23)

Definition at line 311 of file omap24xxcam.h.

#define CAMDMA_CCR_PRIO   (1 << 6)

Definition at line 331 of file omap24xxcam.h.

#define CAMDMA_CCR_RD_ACTIVE   (1 << 9)

Definition at line 328 of file omap24xxcam.h.

#define CAMDMA_CCR_SECURE   (1 << 21)

Definition at line 313 of file omap24xxcam.h.

#define CAMDMA_CCR_SEL_SRC_DST_SYNC   (1 << 24)

Definition at line 310 of file omap24xxcam.h.

#define CAMDMA_CCR_SRC_AMODE   (3 << 12)

Definition at line 322 of file omap24xxcam.h.

#define CAMDMA_CCR_SRC_AMODE_CONST_ADDR   (0 << 12)

Definition at line 323 of file omap24xxcam.h.

#define CAMDMA_CCR_SRC_AMODE_DBL_IDX   (3 << 12)

Definition at line 326 of file omap24xxcam.h.

#define CAMDMA_CCR_SRC_AMODE_POST_INC   (1 << 12)

Definition at line 324 of file omap24xxcam.h.

#define CAMDMA_CCR_SRC_AMODE_SGL_IDX   (2 << 12)

Definition at line 325 of file omap24xxcam.h.

#define CAMDMA_CCR_SUPERVISOR   (1 << 22)

Definition at line 312 of file omap24xxcam.h.

#define CAMDMA_CCR_SUSPEND_SENSITIVE   (1 << 8)

Definition at line 329 of file omap24xxcam.h.

#define CAMDMA_CCR_SYNCHRO   ((3 << 19) | (31 << 0))

Definition at line 333 of file omap24xxcam.h.

#define CAMDMA_CCR_SYNCHRO_CAMERA   0x01

Definition at line 334 of file omap24xxcam.h.

#define CAMDMA_CCR_TRANSPARENT_COPY_ENABLE   (1 << 17)

Definition at line 315 of file omap24xxcam.h.

#define CAMDMA_CCR_WR_ACTIVE   (1 << 10)

Definition at line 327 of file omap24xxcam.h.

#define CAMDMA_CDAC (   n)    (0x0B8 + (n)*0x60)

Definition at line 126 of file omap24xxcam.h.

#define CAMDMA_CDEI (   n)    (0x0AC + (n)*0x60)

Definition at line 123 of file omap24xxcam.h.

#define CAMDMA_CDFI (   n)    (0x0B0 + (n)*0x60)

Definition at line 124 of file omap24xxcam.h.

#define CAMDMA_CDSA (   n)    (0x0A0 + (n)*0x60)

Definition at line 120 of file omap24xxcam.h.

#define CAMDMA_CEN (   n)    (0x094 + (n)*0x60)

Definition at line 117 of file omap24xxcam.h.

#define CAMDMA_CFN (   n)    (0x098 + (n)*0x60)

Definition at line 118 of file omap24xxcam.h.

#define CAMDMA_CICR (   n)    (0x088 + (n)*0x60)

Definition at line 114 of file omap24xxcam.h.

#define CAMDMA_CICR_BLOCK_IE   (1 << 5)

Definition at line 345 of file omap24xxcam.h.

#define CAMDMA_CICR_DROP_IE   (1 << 1)

Definition at line 349 of file omap24xxcam.h.

#define CAMDMA_CICR_FRAME_IE   (1 << 3)

Definition at line 347 of file omap24xxcam.h.

#define CAMDMA_CICR_HALF_IE   (1 << 2)

Definition at line 348 of file omap24xxcam.h.

#define CAMDMA_CICR_LAST_IE   (1 << 4)

Definition at line 346 of file omap24xxcam.h.

#define CAMDMA_CICR_MISALIGNED_ERR_IE   (1 << 11)

Definition at line 340 of file omap24xxcam.h.

#define CAMDMA_CICR_PACKET_IE   (1 << 7)

Definition at line 344 of file omap24xxcam.h.

#define CAMDMA_CICR_SECURE_ERR_IE   (1 << 9)

Definition at line 342 of file omap24xxcam.h.

#define CAMDMA_CICR_SUPERVISOR_ERR_IE   (1 << 10)

Definition at line 341 of file omap24xxcam.h.

#define CAMDMA_CICR_TRANS_ERR_IE   (1 << 8)

Definition at line 343 of file omap24xxcam.h.

#define CAMDMA_CLNK_CTRL (   n)    (0x084 + (n)*0x60)

Definition at line 113 of file omap24xxcam.h.

#define CAMDMA_CLNK_CTRL_ENABLE_LNK   (1 << 15)

Definition at line 336 of file omap24xxcam.h.

#define CAMDMA_CLNK_CTRL_NEXTLCH_ID   (0x1F << 0)

Definition at line 337 of file omap24xxcam.h.

#define CAMDMA_CLNK_CTRL_NEXTLCH_ID_SHIFT   0

Definition at line 338 of file omap24xxcam.h.

#define CAMDMA_COLOR (   n)    (0x0C4 + (n)*0x60)

Definition at line 129 of file omap24xxcam.h.

#define CAMDMA_CSAC (   n)    (0x0B4 + (n)*0x60)

Definition at line 125 of file omap24xxcam.h.

#define CAMDMA_CSDP (   n)    (0x090 + (n)*0x60)

Definition at line 116 of file omap24xxcam.h.

#define CAMDMA_CSDP_DATA_TYPE   (3 << 0)

Definition at line 387 of file omap24xxcam.h.

#define CAMDMA_CSDP_DATA_TYPE_16BITS   (1 << 0)

Definition at line 389 of file omap24xxcam.h.

#define CAMDMA_CSDP_DATA_TYPE_32BITS   (2 << 0)

Definition at line 390 of file omap24xxcam.h.

#define CAMDMA_CSDP_DATA_TYPE_8BITS   (0 << 0)

Definition at line 388 of file omap24xxcam.h.

#define CAMDMA_CSDP_DST_BURST_EN   (3 << 14)

Definition at line 371 of file omap24xxcam.h.

#define CAMDMA_CSDP_DST_BURST_EN_1   (0 << 14)

Definition at line 372 of file omap24xxcam.h.

#define CAMDMA_CSDP_DST_BURST_EN_16   (1 << 14)

Definition at line 373 of file omap24xxcam.h.

#define CAMDMA_CSDP_DST_BURST_EN_32   (2 << 14)

Definition at line 374 of file omap24xxcam.h.

#define CAMDMA_CSDP_DST_BURST_EN_64   (3 << 14)

Definition at line 375 of file omap24xxcam.h.

#define CAMDMA_CSDP_DST_ENDIANNESS   (1 << 19)

Definition at line 365 of file omap24xxcam.h.

#define CAMDMA_CSDP_DST_ENDIANNESS_LOCK   (1 << 18)

Definition at line 366 of file omap24xxcam.h.

#define CAMDMA_CSDP_DST_PACKED   (1 << 13)

Definition at line 376 of file omap24xxcam.h.

#define CAMDMA_CSDP_RD_ADD_TRSLT   (15 << 2)

Definition at line 385 of file omap24xxcam.h.

#define CAMDMA_CSDP_RD_ADD_TRSLT_ENABLE_MREQADD   (3 << 2)

Definition at line 386 of file omap24xxcam.h.

#define CAMDMA_CSDP_SRC_BURST_EN   (3 << 7)

Definition at line 379 of file omap24xxcam.h.

#define CAMDMA_CSDP_SRC_BURST_EN_1   (0 << 7)

Definition at line 380 of file omap24xxcam.h.

#define CAMDMA_CSDP_SRC_BURST_EN_16   (1 << 7)

Definition at line 381 of file omap24xxcam.h.

#define CAMDMA_CSDP_SRC_BURST_EN_32   (2 << 7)

Definition at line 382 of file omap24xxcam.h.

#define CAMDMA_CSDP_SRC_BURST_EN_64   (3 << 7)

Definition at line 383 of file omap24xxcam.h.

#define CAMDMA_CSDP_SRC_ENDIANNESS   (1 << 21)

Definition at line 363 of file omap24xxcam.h.

#define CAMDMA_CSDP_SRC_ENDIANNESS_LOCK   (1 << 20)

Definition at line 364 of file omap24xxcam.h.

#define CAMDMA_CSDP_SRC_PACKED   (1 << 6)

Definition at line 384 of file omap24xxcam.h.

#define CAMDMA_CSDP_WR_ADD_TRSLT   (15 << 9)

Definition at line 377 of file omap24xxcam.h.

#define CAMDMA_CSDP_WR_ADD_TRSLT_ENABLE_MREQADD   (3 << 9)

Definition at line 378 of file omap24xxcam.h.

#define CAMDMA_CSDP_WRITE_MODE   (3 << 16)

Definition at line 367 of file omap24xxcam.h.

#define CAMDMA_CSDP_WRITE_MODE_POSTED   (1 << 16)

Definition at line 369 of file omap24xxcam.h.

#define CAMDMA_CSDP_WRITE_MODE_POSTED_LAST_WRNP   (2 << 16)

Definition at line 370 of file omap24xxcam.h.

#define CAMDMA_CSDP_WRITE_MODE_WRNP   (0 << 16)

Definition at line 368 of file omap24xxcam.h.

#define CAMDMA_CSEI (   n)    (0x0A4 + (n)*0x60)

Definition at line 121 of file omap24xxcam.h.

#define CAMDMA_CSFI (   n)    (0x0A8 + (n)*0x60)

Definition at line 122 of file omap24xxcam.h.

#define CAMDMA_CSR (   n)    (0x08C + (n)*0x60)

Definition at line 115 of file omap24xxcam.h.

#define CAMDMA_CSR_BLOCK   (1 << 5)

Definition at line 357 of file omap24xxcam.h.

#define CAMDMA_CSR_DROP   (1 << 1)

Definition at line 361 of file omap24xxcam.h.

#define CAMDMA_CSR_FRAME   (1 << 3)

Definition at line 359 of file omap24xxcam.h.

#define CAMDMA_CSR_HALF   (1 << 2)

Definition at line 360 of file omap24xxcam.h.

#define CAMDMA_CSR_LAST   (1 << 4)

Definition at line 358 of file omap24xxcam.h.

#define CAMDMA_CSR_MISALIGNED_ERR   (1 << 11)

Definition at line 351 of file omap24xxcam.h.

#define CAMDMA_CSR_PACKET   (1 << 7)

Definition at line 355 of file omap24xxcam.h.

#define CAMDMA_CSR_SECURE_ERR   (1 << 9)

Definition at line 353 of file omap24xxcam.h.

#define CAMDMA_CSR_SUPERVISOR_ERR   (1 << 10)

Definition at line 352 of file omap24xxcam.h.

#define CAMDMA_CSR_SYNC   (1 << 6)

Definition at line 356 of file omap24xxcam.h.

#define CAMDMA_CSR_TRANS_ERR   (1 << 8)

Definition at line 354 of file omap24xxcam.h.

#define CAMDMA_CSSA (   n)    (0x09C + (n)*0x60)

Definition at line 119 of file omap24xxcam.h.

#define CAMDMA_GCR   0x078

Definition at line 111 of file omap24xxcam.h.

#define CAMDMA_GCR_ARBITRATION_RATE   (0xFF << 16)

Definition at line 305 of file omap24xxcam.h.

#define CAMDMA_GCR_ARBITRATION_RATE_SHIFT   16

Definition at line 306 of file omap24xxcam.h.

#define CAMDMA_GCR_MAX_CHANNEL_FIFO_DEPTH   (0xFF << 0)

Definition at line 307 of file omap24xxcam.h.

#define CAMDMA_GCR_MAX_CHANNEL_FIFO_DEPTH_SHIFT   0

Definition at line 308 of file omap24xxcam.h.

#define CAMDMA_IRQENABLE_L0   0x018

Definition at line 101 of file omap24xxcam.h.

#define CAMDMA_IRQENABLE_L1   0x01C

Definition at line 102 of file omap24xxcam.h.

#define CAMDMA_IRQENABLE_L2   0x020

Definition at line 103 of file omap24xxcam.h.

#define CAMDMA_IRQENABLE_L3   0x024

Definition at line 104 of file omap24xxcam.h.

#define CAMDMA_IRQSTATUS_L0   0x008

Definition at line 97 of file omap24xxcam.h.

#define CAMDMA_IRQSTATUS_L1   0x00C

Definition at line 98 of file omap24xxcam.h.

#define CAMDMA_IRQSTATUS_L2   0x010

Definition at line 99 of file omap24xxcam.h.

#define CAMDMA_IRQSTATUS_L3   0x014

Definition at line 100 of file omap24xxcam.h.

#define CAMDMA_OCP_SYSCONFIG   0x02C

Definition at line 106 of file omap24xxcam.h.

#define CAMDMA_OCP_SYSCONFIG_AUTOIDLE   (1 << 0)

Definition at line 301 of file omap24xxcam.h.

#define CAMDMA_OCP_SYSCONFIG_EMUFREE   (1 << 5)

Definition at line 295 of file omap24xxcam.h.

#define CAMDMA_OCP_SYSCONFIG_FUNC_CLOCK   (1 << 9)

Definition at line 293 of file omap24xxcam.h.

#define CAMDMA_OCP_SYSCONFIG_MIDLEMODE   (3 << 12)

Definition at line 289 of file omap24xxcam.h.

#define CAMDMA_OCP_SYSCONFIG_MIDLEMODE_FSTANDBY   (0 << 12)

Definition at line 290 of file omap24xxcam.h.

#define CAMDMA_OCP_SYSCONFIG_MIDLEMODE_NSTANDBY   (1 << 12)

Definition at line 291 of file omap24xxcam.h.

#define CAMDMA_OCP_SYSCONFIG_MIDLEMODE_SSTANDBY   (2 << 12)

Definition at line 292 of file omap24xxcam.h.

#define CAMDMA_OCP_SYSCONFIG_OCP_CLOCK   (1 << 8)

Definition at line 294 of file omap24xxcam.h.

#define CAMDMA_OCP_SYSCONFIG_SIDLEMODE   (3 << 3)

Definition at line 296 of file omap24xxcam.h.

#define CAMDMA_OCP_SYSCONFIG_SIDLEMODE_FIDLE   (0 << 3)

Definition at line 297 of file omap24xxcam.h.

#define CAMDMA_OCP_SYSCONFIG_SIDLEMODE_NIDLE   (1 << 3)

Definition at line 298 of file omap24xxcam.h.

#define CAMDMA_OCP_SYSCONFIG_SIDLEMODE_SIDLE   (2 << 3)

Definition at line 299 of file omap24xxcam.h.

#define CAMDMA_OCP_SYSCONFIG_SOFTRESET   (1 << 1)

Definition at line 300 of file omap24xxcam.h.

#define CAMDMA_REG_OFFSET   0x00000800

Definition at line 66 of file omap24xxcam.h.

#define CAMDMA_REVISION   0x000

Definition at line 96 of file omap24xxcam.h.

#define CAMDMA_REVISION_MAJOR   (15 << 4)

Definition at line 284 of file omap24xxcam.h.

#define CAMDMA_REVISION_MAJOR_SHIFT   4

Definition at line 285 of file omap24xxcam.h.

#define CAMDMA_REVISION_MINOR   (15 << 0)

Definition at line 286 of file omap24xxcam.h.

#define CAMDMA_REVISION_MINOR_SHIFT   0

Definition at line 287 of file omap24xxcam.h.

#define CAMDMA_SYSSTATUS   0x028

Definition at line 105 of file omap24xxcam.h.

#define CAMDMA_SYSSTATUS_RESETDONE   (1 << 0)

Definition at line 303 of file omap24xxcam.h.

#define CAMMMU_CAM   0x058

Definition at line 143 of file omap24xxcam.h.

#define CAMMMU_CNTL   0x044

Definition at line 138 of file omap24xxcam.h.

#define CAMMMU_EMU_FAULT_AD   0x070

Definition at line 149 of file omap24xxcam.h.

#define CAMMMU_FAULT_AD   0x048

Definition at line 139 of file omap24xxcam.h.

#define CAMMMU_FLUSH_ENTRY   0x064

Definition at line 146 of file omap24xxcam.h.

#define CAMMMU_GFLUSH   0x060

Definition at line 145 of file omap24xxcam.h.

#define CAMMMU_IRQENABLE   0x01C

Definition at line 136 of file omap24xxcam.h.

#define CAMMMU_IRQSTATUS   0x018

Definition at line 135 of file omap24xxcam.h.

#define CAMMMU_LD_TLB   0x054

Definition at line 142 of file omap24xxcam.h.

#define CAMMMU_LOCK   0x050

Definition at line 141 of file omap24xxcam.h.

#define CAMMMU_RAM   0x05C

Definition at line 144 of file omap24xxcam.h.

#define CAMMMU_READ_CAM   0x068

Definition at line 147 of file omap24xxcam.h.

#define CAMMMU_READ_RAM   0x06C

Definition at line 148 of file omap24xxcam.h.

#define CAMMMU_REG_OFFSET   0x00000C00

Definition at line 67 of file omap24xxcam.h.

#define CAMMMU_REVISION   0x000

Definition at line 132 of file omap24xxcam.h.

#define CAMMMU_SYSCONFIG   0x010

Definition at line 133 of file omap24xxcam.h.

#define CAMMMU_SYSCONFIG_AUTOIDLE   (1 << 0)

Definition at line 392 of file omap24xxcam.h.

#define CAMMMU_SYSSTATUS   0x014

Definition at line 134 of file omap24xxcam.h.

#define CAMMMU_TTB   0x04C

Definition at line 140 of file omap24xxcam.h.

#define CAMMMU_WALKING_ST   0x040

Definition at line 137 of file omap24xxcam.h.

#define CAP_GPI_CAM_MSTANDBY   (1 << 21)

Definition at line 173 of file omap24xxcam.h.

#define CAP_GPI_CAM_P_CLK   (1 << 0)

Definition at line 181 of file omap24xxcam.h.

#define CAP_GPI_CAM_P_DATA   (0xFFF << 3)

Definition at line 177 of file omap24xxcam.h.

#define CAP_GPI_CAM_P_DATA_SHIFT   3

Definition at line 178 of file omap24xxcam.h.

#define CAP_GPI_CAM_P_HS   (1 << 1)

Definition at line 180 of file omap24xxcam.h.

#define CAP_GPI_CAM_P_VS   (1 << 2)

Definition at line 179 of file omap24xxcam.h.

#define CAP_GPI_CAM_S_CLK   (1 << 16)

Definition at line 176 of file omap24xxcam.h.

#define CAP_GPI_CAM_S_DATA   (1 << 17)

Definition at line 175 of file omap24xxcam.h.

#define CAP_GPI_CAM_WAIT   (1 << 20)

Definition at line 174 of file omap24xxcam.h.

#define CAP_GPI_CC_DMA_REQ0   (1 << 23)

Definition at line 172 of file omap24xxcam.h.

#define CC_CCPDFR   0x068

Definition at line 93 of file omap24xxcam.h.

#define CC_CCPDFR_ALPHA   (0xFF << 8)

Definition at line 265 of file omap24xxcam.h.

#define CC_CCPDFR_ALPHA_SHIFT   8

Definition at line 266 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT   (15 << 0)

Definition at line 267 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_JPEG8   (15 << 0)

Definition at line 282 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_RAW10   (11 << 0)

Definition at line 279 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_RAW10NDE   (10 << 0)

Definition at line 278 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_RAW12   (13 << 0)

Definition at line 281 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_RAW12NDE   (12 << 0)

Definition at line 280 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_RAW8   (9 << 0)

Definition at line 277 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_RAW8NDE   (8 << 0)

Definition at line 276 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_RGB444   (4 << 0)

Definition at line 272 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_RGB565   (5 << 0)

Definition at line 273 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_RGB888   (7 << 0)

Definition at line 275 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_RGB888NDE   (6 << 0)

Definition at line 274 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_SHIFT   0

Definition at line 268 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_YUV420   (2 << 0)

Definition at line 271 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_YUV422   (1 << 0)

Definition at line 270 of file omap24xxcam.h.

#define CC_CCPDFR_DATAFORMAT_YUV422BE   (0 << 0)

Definition at line 269 of file omap24xxcam.h.

#define CC_CCPFECR   0x05C

Definition at line 90 of file omap24xxcam.h.

#define CC_CCPFSCR   0x058

Definition at line 89 of file omap24xxcam.h.

#define CC_CCPLECR   0x064

Definition at line 92 of file omap24xxcam.h.

#define CC_CCPLSCR   0x060

Definition at line 91 of file omap24xxcam.h.

#define CC_CTRL   0x040

Definition at line 83 of file omap24xxcam.h.

#define CC_CTRL_BT_CORRECT   (1 << 12)

Definition at line 228 of file omap24xxcam.h.

#define CC_CTRL_CC_EN   (1 << 16)

Definition at line 226 of file omap24xxcam.h.

#define CC_CTRL_CC_FRAME_TRIG   (1 << 17)

Definition at line 225 of file omap24xxcam.h.

#define CC_CTRL_CC_IF_SYNCHRO   (1 << 19)

Definition at line 223 of file omap24xxcam.h.

#define CC_CTRL_CC_ONE_SHOT   (1 << 20)

Definition at line 222 of file omap24xxcam.h.

#define CC_CTRL_CC_RST   (1 << 18)

Definition at line 224 of file omap24xxcam.h.

#define CC_CTRL_CCP_MODE   (1 << 0)

Definition at line 241 of file omap24xxcam.h.

#define CC_CTRL_DMA   0x044

Definition at line 84 of file omap24xxcam.h.

#define CC_CTRL_DMA_EN   (1 << 8)

Definition at line 243 of file omap24xxcam.h.

#define CC_CTRL_DMA_FIFO_THRESHOLD   (0x7F << 0)

Definition at line 244 of file omap24xxcam.h.

#define CC_CTRL_DMA_FIFO_THRESHOLD_SHIFT   0

Definition at line 245 of file omap24xxcam.h.

#define CC_CTRL_NOBT_HS_POL   (1 << 9)

Definition at line 231 of file omap24xxcam.h.

#define CC_CTRL_NOBT_SYNCHRO   (1 << 13)

Definition at line 227 of file omap24xxcam.h.

#define CC_CTRL_NOBT_VS_POL   (1 << 8)

Definition at line 232 of file omap24xxcam.h.

#define CC_CTRL_PAR_CLK_POL   (1 << 10)

Definition at line 230 of file omap24xxcam.h.

#define CC_CTRL_PAR_MODE   (7 << 1)

Definition at line 233 of file omap24xxcam.h.

#define CC_CTRL_PAR_MODE_BT10   (5 << 1)

Definition at line 239 of file omap24xxcam.h.

#define CC_CTRL_PAR_MODE_BT8   (4 << 1)

Definition at line 238 of file omap24xxcam.h.

#define CC_CTRL_PAR_MODE_FIFOTEST   (7 << 1)

Definition at line 240 of file omap24xxcam.h.

#define CC_CTRL_PAR_MODE_NOBT10   (1 << 1)

Definition at line 236 of file omap24xxcam.h.

#define CC_CTRL_PAR_MODE_NOBT12   (2 << 1)

Definition at line 237 of file omap24xxcam.h.

#define CC_CTRL_PAR_MODE_NOBT8   (0 << 1)

Definition at line 235 of file omap24xxcam.h.

#define CC_CTRL_PAR_MODE_SHIFT   1

Definition at line 234 of file omap24xxcam.h.

#define CC_CTRL_PAR_ORDERCAM   (1 << 11)

Definition at line 229 of file omap24xxcam.h.

#define CC_CTRL_XCLK   0x048

Definition at line 85 of file omap24xxcam.h.

#define CC_CTRL_XCLK_DIV   (0x1F << 0)

Definition at line 247 of file omap24xxcam.h.

#define CC_CTRL_XCLK_DIV_BYPASS   (31 << 0)

Definition at line 251 of file omap24xxcam.h.

#define CC_CTRL_XCLK_DIV_SHIFT   0

Definition at line 248 of file omap24xxcam.h.

#define CC_CTRL_XCLK_DIV_STABLE_HIGH   (1 << 0)

Definition at line 250 of file omap24xxcam.h.

#define CC_CTRL_XCLK_DIV_STABLE_LOW   (0 << 0)

Definition at line 249 of file omap24xxcam.h.

#define CC_FIFODATA   0x04C

Definition at line 86 of file omap24xxcam.h.

#define CC_GENPAR   0x054

Definition at line 88 of file omap24xxcam.h.

#define CC_GENPAR_FIFO_DEPTH   (7 << 0)

Definition at line 262 of file omap24xxcam.h.

#define CC_GENPAR_FIFO_DEPTH_SHIFT   0

Definition at line 263 of file omap24xxcam.h.

#define CC_IRQENABLE   0x01C

Definition at line 82 of file omap24xxcam.h.

#define CC_IRQENABLE_FE_IRQ   (1 << 16)

Definition at line 212 of file omap24xxcam.h.

#define CC_IRQENABLE_FIFO_FULL_IRQ   (1 << 3)

Definition at line 217 of file omap24xxcam.h.

#define CC_IRQENABLE_FIFO_NOEMPTY_IRQ   (1 << 4)

Definition at line 216 of file omap24xxcam.h.

#define CC_IRQENABLE_FIFO_OF_IRQ   (1 << 1)

Definition at line 219 of file omap24xxcam.h.

#define CC_IRQENABLE_FIFO_THR_IRQ   (1 << 2)

Definition at line 218 of file omap24xxcam.h.

#define CC_IRQENABLE_FIFO_UF_IRQ   (1 << 0)

Definition at line 220 of file omap24xxcam.h.

#define CC_IRQENABLE_FS_IRQ   (1 << 19)

Definition at line 209 of file omap24xxcam.h.

#define CC_IRQENABLE_FSC_ERR_IRQ   (1 << 9)

Definition at line 214 of file omap24xxcam.h.

#define CC_IRQENABLE_FW_ERR_IRQ   (1 << 10)

Definition at line 213 of file omap24xxcam.h.

#define CC_IRQENABLE_LE_IRQ   (1 << 18)

Definition at line 210 of file omap24xxcam.h.

#define CC_IRQENABLE_LS_IRQ   (1 << 17)

Definition at line 211 of file omap24xxcam.h.

#define CC_IRQENABLE_SSC_ERR_IRQ   (1 << 8)

Definition at line 215 of file omap24xxcam.h.

#define CC_IRQSTATUS   0x018

Definition at line 81 of file omap24xxcam.h.

#define CC_IRQSTATUS_FE_IRQ   (1 << 16)

Definition at line 199 of file omap24xxcam.h.

#define CC_IRQSTATUS_FIFO_FULL_IRQ   (1 << 3)

Definition at line 204 of file omap24xxcam.h.

#define CC_IRQSTATUS_FIFO_NOEMPTY_IRQ   (1 << 4)

Definition at line 203 of file omap24xxcam.h.

#define CC_IRQSTATUS_FIFO_OF_IRQ   (1 << 1)

Definition at line 206 of file omap24xxcam.h.

#define CC_IRQSTATUS_FIFO_THR_IRQ   (1 << 2)

Definition at line 205 of file omap24xxcam.h.

#define CC_IRQSTATUS_FIFO_UF_IRQ   (1 << 0)

Definition at line 207 of file omap24xxcam.h.

#define CC_IRQSTATUS_FS_IRQ   (1 << 19)

Definition at line 196 of file omap24xxcam.h.

#define CC_IRQSTATUS_FSC_ERR_IRQ   (1 << 9)

Definition at line 201 of file omap24xxcam.h.

#define CC_IRQSTATUS_FW_ERR_IRQ   (1 << 10)

Definition at line 200 of file omap24xxcam.h.

#define CC_IRQSTATUS_LE_IRQ   (1 << 18)

Definition at line 197 of file omap24xxcam.h.

#define CC_IRQSTATUS_LS_IRQ   (1 << 17)

Definition at line 198 of file omap24xxcam.h.

#define CC_IRQSTATUS_SSC_ERR_IRQ   (1 << 8)

Definition at line 202 of file omap24xxcam.h.

#define CC_REG_OFFSET   0x00000400

Definition at line 65 of file omap24xxcam.h.

#define CC_REVISION   0x000

Definition at line 78 of file omap24xxcam.h.

#define CC_REVISION_MAJOR   (15 << 4)

Definition at line 183 of file omap24xxcam.h.

#define CC_REVISION_MAJOR_SHIFT   4

Definition at line 184 of file omap24xxcam.h.

#define CC_REVISION_MINOR   (15 << 0)

Definition at line 185 of file omap24xxcam.h.

#define CC_REVISION_MINOR_SHIFT   0

Definition at line 186 of file omap24xxcam.h.

#define CC_SYSCONFIG   0x010

Definition at line 79 of file omap24xxcam.h.

#define CC_SYSCONFIG_AUTOIDLE   (1 << 0)

Definition at line 192 of file omap24xxcam.h.

#define CC_SYSCONFIG_SIDLEMODE   (3 << 3)

Definition at line 188 of file omap24xxcam.h.

#define CC_SYSCONFIG_SIDLEMODE_FIDLE   (0 << 3)

Definition at line 189 of file omap24xxcam.h.

#define CC_SYSCONFIG_SIDLEMODE_NIDLE   (1 << 3)

Definition at line 190 of file omap24xxcam.h.

#define CC_SYSCONFIG_SOFTRESET   (1 << 1)

Definition at line 191 of file omap24xxcam.h.

#define CC_SYSSTATUS   0x014

Definition at line 80 of file omap24xxcam.h.

#define CC_SYSSTATUS_RESETDONE   (1 << 0)

Definition at line 194 of file omap24xxcam.h.

#define CC_TEST   0x050

Definition at line 87 of file omap24xxcam.h.

#define CC_TEST_FIFO_LEVEL   (0xFF << 8)

Definition at line 257 of file omap24xxcam.h.

#define CC_TEST_FIFO_LEVEL_PEAK   (0xFF << 0)

Definition at line 259 of file omap24xxcam.h.

#define CC_TEST_FIFO_LEVEL_PEAK_SHIFT   0

Definition at line 260 of file omap24xxcam.h.

#define CC_TEST_FIFO_LEVEL_SHIFT   8

Definition at line 258 of file omap24xxcam.h.

#define CC_TEST_FIFO_RD_POINTER   (0xFF << 24)

Definition at line 253 of file omap24xxcam.h.

#define CC_TEST_FIFO_RD_POINTER_SHIFT   24

Definition at line 254 of file omap24xxcam.h.

#define CC_TEST_FIFO_WR_POINTER   (0xFF << 16)

Definition at line 255 of file omap24xxcam.h.

#define CC_TEST_FIFO_WR_POINTER_SHIFT   16

Definition at line 256 of file omap24xxcam.h.

#define DMA_THRESHOLD   32

Definition at line 44 of file omap24xxcam.h.

#define NUM_CAMDMA_CHANNELS   4

Definition at line 50 of file omap24xxcam.h.

#define NUM_SG_DMA   (VIDEO_MAX_FRAME)

Definition at line 56 of file omap24xxcam.h.

Typedef Documentation

typedef void(* dma_callback_t)(struct omap24xxcam_dma *cam, u32 status, void *arg)

Definition at line 406 of file omap24xxcam.h.

typedef void(* sgdma_callback_t)(struct omap24xxcam_sgdma *cam, u32 status, void *arg)

Definition at line 404 of file omap24xxcam.h.

Function Documentation

void omap24xxcam_dma_hwinit ( struct omap24xxcam_dma dma)

Definition at line 353 of file omap24xxcam-dma.c.

void omap24xxcam_dma_isr ( struct omap24xxcam_dma dma)

Definition at line 298 of file omap24xxcam-dma.c.

void omap24xxcam_sgdma_exit ( struct omap24xxcam_sgdma sgdma)
void omap24xxcam_sgdma_init ( struct omap24xxcam_sgdma sgdma,
void __iomem base,
void(*)(unsigned long data reset_callback,
unsigned long  reset_callback_data 
)

Definition at line 579 of file omap24xxcam-dma.c.

void omap24xxcam_sgdma_process ( struct omap24xxcam_sgdma sgdma)

Definition at line 438 of file omap24xxcam-dma.c.

int omap24xxcam_sgdma_queue ( struct omap24xxcam_sgdma sgdma,
const struct scatterlist sglist,
int  sglen,
int  len,
sgdma_callback_t  callback,
void arg 
)

Definition at line 502 of file omap24xxcam-dma.c.

void omap24xxcam_sgdma_sync ( struct omap24xxcam_sgdma sgdma)

Definition at line 547 of file omap24xxcam-dma.c.