27 #ifndef OMAP3_ISP_CORE_H
28 #define OMAP3_ISP_CORE_H
32 #include <linux/device.h>
35 #include <linux/wait.h>
49 #define IOMMU_FLAG (IOVMF_ENDIAN_LITTLE | IOVMF_ELSZ_8)
51 #define ISP_TOK_TERM 0xFFFFFFFF
55 #define to_isp_device(ptr_module) \
56 container_of(ptr_module, struct isp_device, isp_##ptr_module)
57 #define to_device(ptr_module) \
58 (to_isp_device(ptr_module)->dev)
101 #define ISP_REVISION_1_0 0x10
103 #define ISP_REVISION_2_0 0x20
105 #define ISP_REVISION_15_0 0xF0
193 #define ISP_CLK_CAM_ICK 0
194 #define ISP_CLK_CAM_MCLK 1
195 #define ISP_CLK_DPLL4_M5_CK 2
196 #define ISP_CLK_CSI2_FCK 3
197 #define ISP_CLK_L3_ICK 4
221 #define v4l2_dev_to_isp_device(dev) \
222 container_of(dev, struct isp_device, v4l2_dev)
239 unsigned int shift,
unsigned int bridge);
300 u32 v = isp_reg_readl(isp, mmio_range, reg);
302 isp_reg_writel(isp, v & ~clr_bits, mmio_range, reg);
316 u32 v = isp_reg_readl(isp, mmio_range, reg);
318 isp_reg_writel(isp, v | set_bits, mmio_range, reg);
335 u32 v = isp_reg_readl(isp, mmio_range, reg);
337 isp_reg_writel(isp, (v & ~clr_bits) | set_bits, mmio_range, reg);
343 if (pad >= subdev->entity.num_pads)