Go to the documentation of this file.
19 #define S5P_JPGMOD 0x00
20 #define S5P_PROC_MODE_MASK (0x1 << 3)
21 #define S5P_PROC_MODE_DECOMPR (0x1 << 3)
22 #define S5P_PROC_MODE_COMPR (0x0 << 3)
23 #define S5P_SUBSAMPLING_MODE_MASK 0x7
24 #define S5P_SUBSAMPLING_MODE_444 (0x0 << 0)
25 #define S5P_SUBSAMPLING_MODE_422 (0x1 << 0)
26 #define S5P_SUBSAMPLING_MODE_420 (0x2 << 0)
27 #define S5P_SUBSAMPLING_MODE_GRAY (0x3 << 0)
30 #define S5P_JPGOPR 0x04
33 #define S5P_JPG_QTBL 0x08
34 #define S5P_QT_NUMt_SHIFT(t) (((t) - 1) << 1)
35 #define S5P_QT_NUMt_MASK(t) (0x3 << S5P_QT_NUMt_SHIFT(t))
38 #define S5P_JPG_HTBL 0x0c
39 #define S5P_HT_NUMt_AC_SHIFT(t) (((t) << 1) - 1)
40 #define S5P_HT_NUMt_AC_MASK(t) (0x1 << S5P_HT_NUMt_AC_SHIFT(t))
42 #define S5P_HT_NUMt_DC_SHIFT(t) (((t) - 1) << 1)
43 #define S5P_HT_NUMt_DC_MASK(t) (0x1 << S5P_HT_NUMt_DC_SHIFT(t))
46 #define S5P_JPGDRI_U 0x10
49 #define S5P_JPGDRI_L 0x14
52 #define S5P_JPGY_U 0x18
55 #define S5P_JPGY_L 0x1c
58 #define S5P_JPGX_U 0x20
61 #define S5P_JPGX_L 0x24
64 #define S5P_JPGCNT_U 0x28
67 #define S5P_JPGCNT_M 0x2c
70 #define S5P_JPGCNT_L 0x30
73 #define S5P_JPGINTSE 0x34
74 #define S5P_RSTm_INT_EN_MASK (0x1 << 7)
75 #define S5P_RSTm_INT_EN (0x1 << 7)
76 #define S5P_DATA_NUM_INT_EN_MASK (0x1 << 6)
77 #define S5P_DATA_NUM_INT_EN (0x1 << 6)
78 #define S5P_FINAL_MCU_NUM_INT_EN_MASK (0x1 << 5)
79 #define S5P_FINAL_MCU_NUM_INT_EN (0x1 << 5)
82 #define S5P_JPGINTST 0x38
83 #define S5P_RESULT_STAT_SHIFT 6
84 #define S5P_RESULT_STAT_MASK (0x1 << S5P_RESULT_STAT_SHIFT)
85 #define S5P_STREAM_STAT_SHIFT 5
86 #define S5P_STREAM_STAT_MASK (0x1 << S5P_STREAM_STAT_SHIFT)
89 #define S5P_JPGCOM 0x4c
90 #define S5P_INT_RELEASE (0x1 << 2)
93 #define S5P_JPG_IMGADR 0x50
96 #define S5P_JPG_JPGADR 0x58
99 #define S5P_JPG_COEF(n) (0x5c + (((n) - 1) << 2))
100 #define S5P_COEFn_SHIFT(j) ((3 - (j)) << 3)
101 #define S5P_COEFn_MASK(j) (0xff << S5P_COEFn_SHIFT(j))
104 #define S5P_JPGCMOD 0x68
105 #define S5P_MOD_SEL_MASK (0x7 << 5)
106 #define S5P_MOD_SEL_422 (0x1 << 5)
107 #define S5P_MOD_SEL_565 (0x2 << 5)
108 #define S5P_MODE_Y16_MASK (0x1 << 1)
109 #define S5P_MODE_Y16 (0x1 << 1)
112 #define S5P_JPGCLKCON 0x6c
113 #define S5P_CLK_DOWN_READY (0x1 << 1)
114 #define S5P_POWER_ON (0x1 << 0)
117 #define S5P_JSTART 0x70
120 #define S5P_JPG_SW_RESET 0x78
123 #define S5P_JPG_TIMER_SE 0x7c
124 #define S5P_TIMER_INT_EN_MASK (0x1 << 31)
125 #define S5P_TIMER_INT_EN (0x1 << 31)
126 #define S5P_TIMER_INIT_MASK 0x7fffffff
129 #define S5P_JPG_TIMER_ST 0x80
130 #define S5P_TIMER_INT_STAT_SHIFT 31
131 #define S5P_TIMER_INT_STAT_MASK (0x1 << S5P_TIMER_INT_STAT_SHIFT)
132 #define S5P_TIMER_CNT_SHIFT 0
133 #define S5P_TIMER_CNT_MASK 0x7fffffff
136 #define S5P_JPG_OUTFORM 0x88
137 #define S5P_DEC_OUT_FORMAT_MASK (0x1 << 0)
138 #define S5P_DEC_OUT_FORMAT_422 (0x0 << 0)
139 #define S5P_DEC_OUT_FORMAT_420 (0x1 << 0)
142 #define S5P_JPG_VERSION 0x8c
145 #define S5P_JPG_ENC_STREAM_INTSE 0x98
146 #define S5P_ENC_STREAM_INT_MASK (0x1 << 24)
147 #define S5P_ENC_STREAM_INT_EN (0x1 << 24)
148 #define S5P_ENC_STREAM_BOUND_MASK 0xffffff
151 #define S5P_JPG_ENC_STREAM_INTST 0x9c
152 #define S5P_ENC_STREAM_INT_STAT_MASK 0x1
155 #define S5P_JPG_QTBL_CONTENT(n) (0x400 + (n) * 0x100)
158 #define S5P_JPG_HDCTBL(n) (0x800 + (n) * 0x400)
161 #define S5P_JPG_HDCTBLG(n) (0x840 + (n) * 0x400)
164 #define S5P_JPG_HACTBL(n) (0x880 + (n) * 0x400)
167 #define S5P_JPG_HACTBLG(n) (0x8c0 + (n) * 0x400)