blob: d14cc7cbe207a9b5378958a7c12695bf9c3013c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
#ifndef __DECON_MIC_H__
#define __DECON_MIC_H__
struct mic_config {
u32 sysreg1;
u32 sysreg2;
};
#define DECON_MIC_PARA_W 0x2
#define DECON_MIC_PARA_M 0x0
#define DECON_MIC_PARA_S 0x18
#define DECON_MIC_PARA_B 0x0
#define DECON_MIC_PARA_EB 0x10
#define DECON_MIC_PARA_EG 0x08
#define DECON_MIC_PARA_ER 0x08
#define DECON_MIC_PARA_Y 0x02
/* MIC Register Map */
#define DECON_MIC_OP 0x00
#define DECON_MIC_UPDATE_REG (1 << 31)
#define DECON_MIC_ON_REG (1 << 30)
#define DECON_MIC_BS_SWAP (1 << 16)
#define DECON_MIC_BS_NO_SWAP (0 << 16)
#define DECON_MIC_PSR_ENABLE (1 << 5)
#define DECON_MIC_PSR_DISABLE (0 << 5)
#define DECON_MIC_SW_RST (1 << 4)
#define DECON_MIC_NEW_CORE (0 << 2)
#define DECON_MIC_OLD_CORE (1 << 2)
#define DECON_MIC_VIDEO_MODE (0 << 1)
#define DECON_MIC_COMMAND_MODE (1 << 1)
#define DECON_MIC_CORE_ENABLE (1 << 0)
#define DECON_MIC_CORE_DISABLE (0 << 0)
#define DECON_MIC_CORE_MASK (1 << 0)
#define DECON_MIC_MODE_MASK (1 << 1)
#define DECON_MIC_CORE_NEW_MASK (1 << 2)
#define DECON_MIC_PSR_MASK (1 << 5)
#define DECON_MIC_BS_SWAP_MASK (1 << 16)
#define DECON_MIC_ON_MASK (1 << 30)
#define DECON_MIC_UPDATE_REG_MASK (1 << 31)
#define DECON_MIC_VER 0x04
#define DECON_MIC_V_TIMING_0 0x08
#define DECON_MIC_V_PERIOD_LINE_SHIFT 0
#define DECON_MIC_V_PULSE_WIDTH_SHIFT 16
#define DECON_MIC_V_TIMING_1 0x0C
#define DECON_MIC_V_VFP_SIZE_SHIFT 0
#define DECON_MIC_V_VBP_SIZE_SHIFT 16
#define DECON_MIC_IMG_SIZE 0x10
#define DECON_MIC_IMG_V_SIZE_SHIFT 16
#define DECON_MIC_IMG_H_SIZE_SHIFT 0
#define DECON_MIC_INPUT_TIMING_0 0x14
#define DECON_MIC_INPUT_H_PERIOD_PIXEL_SHIFT 0
#define DECON_MIC_INPUT_H_PULSE_WIDTH_SHIFT 16
#define DECON_MIC_INPUT_TIMING_1 0x18
#define DECON_MIC_INPUT_HFP_SIZE_SHIFT 0
#define DECON_MIC_INPUT_HBP_SIZE_SHIFT 16
#define DECON_MIC_2D_OUTPUT_TIMING_0 0x1C
#define DECON_MIC_OUT_H_PERIOD_PIXEL_SHIFT 0
#define DECON_MIC_OUT_H_PULSE_WIDTH_SHIFT 16
#define DECON_MIC_2D_OUTPUT_TIMING_1 0x20
#define DECON_MIC_OUT_HFP_SIZE_SHIFT 0
#define DECON_MIC_OUT_HBP_SIZE_SHIFT 16
#define DECON_MIC_2D_OUTPUT_TIMING_2 0x24
#define DECON_MIC_3D_OUTPUT_TIMING_0 0x28
#define DECON_MIC_3D_OUTPUT_TIMING_1 0x2C
#define DECON_MIC_3D_OUTPUT_TIMING_2 0x30
#define DECON_MIC_ALG_PARA_0 0x34
#define DECON_MIC_ALG_ENC_CORE_PARA_B_SHIFT 0
#define DECON_MIC_ALG_ENC_CORE_PARA_S_SHIFT 8
#define DECON_MIC_ALG_ENC_CORE_PARA_M_SHIFT 16
#define DECON_MIC_ALG_ENC_CORE_PARA_W_SHIFT 24
#define DECON_MIC_ALG_PARA_1 0x38
#define DECON_MIC_ALG_ENC_CORE_PARA_Y_SHIFT 0
#define DECON_MIC_ALG_ENC_CORE_PARA_ER_SHIFT 8
#define DECON_MIC_ALG_ENC_CORE_PARA_EG_SHIFT 16
#define DECON_MIC_ALG_ENC_CORE_PARA_EB_SHIFT 24
#define DECON_MIC_CRC_CTRL 0x40
#define DECON_MIC_CRC_DATA 0x44
#endif
|