Go to the documentation of this file.
20 #include <linux/types.h>
21 #include <linux/device.h>
27 #define IPUV3_CHANNEL_CSI0 0
28 #define IPUV3_CHANNEL_CSI1 1
29 #define IPUV3_CHANNEL_CSI2 2
30 #define IPUV3_CHANNEL_CSI3 3
31 #define IPUV3_CHANNEL_MEM_BG_SYNC 23
32 #define IPUV3_CHANNEL_MEM_FG_SYNC 27
33 #define IPUV3_CHANNEL_MEM_DC_SYNC 28
34 #define IPUV3_CHANNEL_MEM_FG_SYNC_ALPHA 31
35 #define IPUV3_CHANNEL_MEM_DC_ASYNC 41
36 #define IPUV3_CHANNEL_ROT_ENC_MEM 45
37 #define IPUV3_CHANNEL_ROT_VF_MEM 46
38 #define IPUV3_CHANNEL_ROT_PP_MEM 47
39 #define IPUV3_CHANNEL_ROT_ENC_MEM_OUT 48
40 #define IPUV3_CHANNEL_ROT_VF_MEM_OUT 49
41 #define IPUV3_CHANNEL_ROT_PP_MEM_OUT 50
42 #define IPUV3_CHANNEL_MEM_BG_SYNC_ALPHA 51
44 #define IPU_MCU_T_DEFAULT 8
45 #define IPU_CM_IDMAC_REG_OFS 0x00008000
46 #define IPU_CM_IC_REG_OFS 0x00020000
47 #define IPU_CM_IRT_REG_OFS 0x00028000
48 #define IPU_CM_CSI0_REG_OFS 0x00030000
49 #define IPU_CM_CSI1_REG_OFS 0x00038000
50 #define IPU_CM_SMFC_REG_OFS 0x00050000
51 #define IPU_CM_DC_REG_OFS 0x00058000
52 #define IPU_CM_DMFC_REG_OFS 0x00060000
56 #define IPU_CM_REG(offset) (offset)
58 #define IPU_CONF IPU_CM_REG(0)
60 #define IPU_SRM_PRI1 IPU_CM_REG(0x00a0)
61 #define IPU_SRM_PRI2 IPU_CM_REG(0x00a4)
62 #define IPU_FS_PROC_FLOW1 IPU_CM_REG(0x00a8)
63 #define IPU_FS_PROC_FLOW2 IPU_CM_REG(0x00ac)
64 #define IPU_FS_PROC_FLOW3 IPU_CM_REG(0x00b0)
65 #define IPU_FS_DISP_FLOW1 IPU_CM_REG(0x00b4)
66 #define IPU_FS_DISP_FLOW2 IPU_CM_REG(0x00b8)
67 #define IPU_SKIP IPU_CM_REG(0x00bc)
68 #define IPU_DISP_ALT_CONF IPU_CM_REG(0x00c0)
69 #define IPU_DISP_GEN IPU_CM_REG(0x00c4)
70 #define IPU_DISP_ALT1 IPU_CM_REG(0x00c8)
71 #define IPU_DISP_ALT2 IPU_CM_REG(0x00cc)
72 #define IPU_DISP_ALT3 IPU_CM_REG(0x00d0)
73 #define IPU_DISP_ALT4 IPU_CM_REG(0x00d4)
74 #define IPU_SNOOP IPU_CM_REG(0x00d8)
75 #define IPU_MEM_RST IPU_CM_REG(0x00dc)
76 #define IPU_PM IPU_CM_REG(0x00e0)
77 #define IPU_GPR IPU_CM_REG(0x00e4)
78 #define IPU_CHA_DB_MODE_SEL(ch) IPU_CM_REG(0x0150 + 4 * ((ch) / 32))
79 #define IPU_ALT_CHA_DB_MODE_SEL(ch) IPU_CM_REG(0x0168 + 4 * ((ch) / 32))
80 #define IPU_CHA_CUR_BUF(ch) IPU_CM_REG(0x023C + 4 * ((ch) / 32))
81 #define IPU_ALT_CUR_BUF0 IPU_CM_REG(0x0244)
82 #define IPU_ALT_CUR_BUF1 IPU_CM_REG(0x0248)
83 #define IPU_SRM_STAT IPU_CM_REG(0x024C)
84 #define IPU_PROC_TASK_STAT IPU_CM_REG(0x0250)
85 #define IPU_DISP_TASK_STAT IPU_CM_REG(0x0254)
86 #define IPU_CHA_BUF0_RDY(ch) IPU_CM_REG(0x0268 + 4 * ((ch) / 32))
87 #define IPU_CHA_BUF1_RDY(ch) IPU_CM_REG(0x0270 + 4 * ((ch) / 32))
88 #define IPU_ALT_CHA_BUF0_RDY(ch) IPU_CM_REG(0x0278 + 4 * ((ch) / 32))
89 #define IPU_ALT_CHA_BUF1_RDY(ch) IPU_CM_REG(0x0280 + 4 * ((ch) / 32))
91 #define IPU_INT_CTRL(n) IPU_CM_REG(0x003C + 4 * (n))
92 #define IPU_INT_STAT(n) IPU_CM_REG(0x0200 + 4 * (n))
94 #define IPU_DI0_COUNTER_RELEASE (1 << 24)
95 #define IPU_DI1_COUNTER_RELEASE (1 << 25)
97 #define IPU_IDMAC_REG(offset) (offset)
99 #define IDMAC_CONF IPU_IDMAC_REG(0x0000)
100 #define IDMAC_CHA_EN(ch) IPU_IDMAC_REG(0x0004 + 4 * ((ch) / 32))
101 #define IDMAC_SEP_ALPHA IPU_IDMAC_REG(0x000c)
102 #define IDMAC_ALT_SEP_ALPHA IPU_IDMAC_REG(0x0010)
103 #define IDMAC_CHA_PRI(ch) IPU_IDMAC_REG(0x0014 + 4 * ((ch) / 32))
104 #define IDMAC_WM_EN(ch) IPU_IDMAC_REG(0x001c + 4 * ((ch) / 32))
105 #define IDMAC_CH_LOCK_EN_1 IPU_IDMAC_REG(0x0024)
106 #define IDMAC_CH_LOCK_EN_2 IPU_IDMAC_REG(0x0028)
107 #define IDMAC_SUB_ADDR_0 IPU_IDMAC_REG(0x002c)
108 #define IDMAC_SUB_ADDR_1 IPU_IDMAC_REG(0x0030)
109 #define IDMAC_SUB_ADDR_2 IPU_IDMAC_REG(0x0034)
110 #define IDMAC_BAND_EN(ch) IPU_IDMAC_REG(0x0040 + 4 * ((ch) / 32))
111 #define IDMAC_CHA_BUSY(ch) IPU_IDMAC_REG(0x0100 + 4 * ((ch) / 32))
113 #define IPU_NUM_IRQS (32 * 5)
193 struct clk *ipu_clk);
200 unsigned long template_base);