Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / drivers / media / platform / mtk-jpeg / mtk_jpeg_reg.h
blobfc490d62b0122a5ef8ba1c9c1750f15adcae35f3
1 /*
2 * Copyright (c) 2016 MediaTek Inc.
3 * Author: Ming Hsiu Tsai <minghsiu.tsai@mediatek.com>
4 * Rick Chang <rick.chang@mediatek.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #ifndef _MTK_JPEG_REG_H
17 #define _MTK_JPEG_REG_H
19 #define MTK_JPEG_COMP_MAX 3
20 #define MTK_JPEG_BLOCK_MAX 10
21 #define MTK_JPEG_DCTSIZE 8
23 #define BIT_INQST_MASK_ERROR_BS 0x20
24 #define BIT_INQST_MASK_PAUSE 0x10
25 #define BIT_INQST_MASK_OVERFLOW 0x04
26 #define BIT_INQST_MASK_UNDERFLOW 0x02
27 #define BIT_INQST_MASK_EOF 0x01
28 #define BIT_INQST_MASK_ALLIRQ 0x37
30 #define JPGDEC_REG_RESET 0x0090
31 #define JPGDEC_REG_BRZ_FACTOR 0x00F8
32 #define JPGDEC_REG_DU_NUM 0x00FC
33 #define JPGDEC_REG_DEST_ADDR0_Y 0x0140
34 #define JPGDEC_REG_DEST_ADDR0_U 0x0144
35 #define JPGDEC_REG_DEST_ADDR0_V 0x0148
36 #define JPGDEC_REG_DEST_ADDR1_Y 0x014C
37 #define JPGDEC_REG_DEST_ADDR1_U 0x0150
38 #define JPGDEC_REG_DEST_ADDR1_V 0x0154
39 #define JPGDEC_REG_STRIDE_Y 0x0158
40 #define JPGDEC_REG_STRIDE_UV 0x015C
41 #define JPGDEC_REG_IMG_STRIDE_Y 0x0160
42 #define JPGDEC_REG_IMG_STRIDE_UV 0x0164
43 #define JPGDEC_REG_WDMA_CTRL 0x016C
44 #define JPGDEC_REG_PAUSE_MCU_NUM 0x0170
45 #define JPGDEC_REG_OPERATION_MODE 0x017C
46 #define JPGDEC_REG_FILE_ADDR 0x0200
47 #define JPGDEC_REG_COMP_ID 0x020C
48 #define JPGDEC_REG_TOTAL_MCU_NUM 0x0210
49 #define JPGDEC_REG_COMP0_DATA_UNIT_NUM 0x0224
50 #define JPGDEC_REG_DU_CTRL 0x023C
51 #define JPGDEC_REG_TRIG 0x0240
52 #define JPGDEC_REG_FILE_BRP 0x0248
53 #define JPGDEC_REG_FILE_TOTAL_SIZE 0x024C
54 #define JPGDEC_REG_QT_ID 0x0270
55 #define JPGDEC_REG_INTERRUPT_STATUS 0x0274
56 #define JPGDEC_REG_STATUS 0x0278
58 #endif /* _MTK_JPEG_REG_H */