Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * ths8200 - Texas Instruments THS8200 video encoder driver
0003  *
0004  * Copyright 2013 Cisco Systems, Inc. and/or its affiliates.
0005  *
0006  * This program is free software; you may redistribute it and/or modify
0007  * it under the terms of the GNU General Public License as published by
0008  * the Free Software Foundation; version 2 of the License.
0009  *
0010  * This program is free software; you can redistribute it and/or
0011  * modify it under the terms of the GNU General Public License as
0012  * published by the Free Software Foundation version 2.
0013  *
0014  * This program is distributed .as is. WITHOUT ANY WARRANTY of any
0015  * kind, whether express or implied; without even the implied warranty
0016  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017  * GNU General Public License for more details.
0018  */
0019 
0020 #ifndef THS8200_REGS_H
0021 #define THS8200_REGS_H
0022 
0023 /* Register offset macros */
0024 #define THS8200_VERSION             0x02
0025 #define THS8200_CHIP_CTL            0x03
0026 #define THS8200_CSC_R11             0x04
0027 #define THS8200_CSC_R12             0x05
0028 #define THS8200_CSC_R21             0x06
0029 #define THS8200_CSC_R22             0x07
0030 #define THS8200_CSC_R31             0x08
0031 #define THS8200_CSC_R32             0x09
0032 #define THS8200_CSC_G11             0x0a
0033 #define THS8200_CSC_G12             0x0b
0034 #define THS8200_CSC_G21             0x0c
0035 #define THS8200_CSC_G22             0x0d
0036 #define THS8200_CSC_G31             0x0e
0037 #define THS8200_CSC_G32             0x0f
0038 #define THS8200_CSC_B11             0x10
0039 #define THS8200_CSC_B12             0x11
0040 #define THS8200_CSC_B21             0x12
0041 #define THS8200_CSC_B22             0x13
0042 #define THS8200_CSC_B31             0x14
0043 #define THS8200_CSC_B32             0x15
0044 #define THS8200_CSC_OFFS1           0x16
0045 #define THS8200_CSC_OFFS12          0x17
0046 #define THS8200_CSC_OFFS23          0x18
0047 #define THS8200_CSC_OFFS3           0x19
0048 #define THS8200_TST_CNTL1           0x1a
0049 #define THS8200_TST_CNTL2           0x1b
0050 #define THS8200_DATA_CNTL           0x1c
0051 #define THS8200_DTG1_Y_SYNC1_LSB        0x1d
0052 #define THS8200_DTG1_Y_SYNC2_LSB        0x1e
0053 #define THS8200_DTG1_Y_SYNC3_LSB        0x1f
0054 #define THS8200_DTG1_CBCR_SYNC1_LSB     0x20
0055 #define THS8200_DTG1_CBCR_SYNC2_LSB     0x21
0056 #define THS8200_DTG1_CBCR_SYNC3_LSB     0x22
0057 #define THS8200_DTG1_Y_SYNC_MSB         0x23
0058 #define THS8200_DTG1_CBCR_SYNC_MSB      0x24
0059 #define THS8200_DTG1_SPEC_A         0x25
0060 #define THS8200_DTG1_SPEC_B         0x26
0061 #define THS8200_DTG1_SPEC_C         0x27
0062 #define THS8200_DTG1_SPEC_D_LSB         0x28
0063 #define THS8200_DTG1_SPEC_D1            0x29
0064 #define THS8200_DTG1_SPEC_E_LSB         0x2a
0065 #define THS8200_DTG1_SPEC_DEH_MSB       0x2b
0066 #define THS8200_DTG1_SPEC_H_LSB         0x2c
0067 #define THS8200_DTG1_SPEC_I_MSB         0x2d
0068 #define THS8200_DTG1_SPEC_I_LSB         0x2e
0069 #define THS8200_DTG1_SPEC_K_LSB         0x2f
0070 #define THS8200_DTG1_SPEC_K_MSB         0x30
0071 #define THS8200_DTG1_SPEC_K1            0x31
0072 #define THS8200_DTG1_SPEC_G_LSB         0x32
0073 #define THS8200_DTG1_SPEC_G_MSB         0x33
0074 #define THS8200_DTG1_TOT_PIXELS_MSB     0x34
0075 #define THS8200_DTG1_TOT_PIXELS_LSB     0x35
0076 #define THS8200_DTG1_FLD_FLIP_LINECNT_MSB   0x36
0077 #define THS8200_DTG1_LINECNT_LSB        0x37
0078 #define THS8200_DTG1_MODE           0x38
0079 #define THS8200_DTG1_FRAME_FIELD_SZ_MSB     0x39
0080 #define THS8200_DTG1_FRAME_SZ_LSB       0x3a
0081 #define THS8200_DTG1_FIELD_SZ_LSB       0x3b
0082 #define THS8200_DTG1_VESA_CBAR_SIZE     0x3c
0083 #define THS8200_DAC_CNTL_MSB            0x3d
0084 #define THS8200_DAC1_CNTL_LSB           0x3e
0085 #define THS8200_DAC2_CNTL_LSB           0x3f
0086 #define THS8200_DAC3_CNTL_LSB           0x40
0087 #define THS8200_CSM_CLIP_GY_LOW         0x41
0088 #define THS8200_CSM_CLIP_BCB_LOW        0x42
0089 #define THS8200_CSM_CLIP_RCR_LOW        0x43
0090 #define THS8200_CSM_CLIP_GY_HIGH        0x44
0091 #define THS8200_CSM_CLIP_BCB_HIGH       0x45
0092 #define THS8200_CSM_CLIP_RCR_HIGH       0x46
0093 #define THS8200_CSM_SHIFT_GY            0x47
0094 #define THS8200_CSM_SHIFT_BCB           0x48
0095 #define THS8200_CSM_SHIFT_RCR           0x49
0096 #define THS8200_CSM_GY_CNTL_MULT_MSB        0x4a
0097 #define THS8200_CSM_MULT_BCB_RCR_MSB        0x4b
0098 #define THS8200_CSM_MULT_GY_LSB         0x4c
0099 #define THS8200_CSM_MULT_BCB_LSB        0x4d
0100 #define THS8200_CSM_MULT_RCR_LSB        0x4e
0101 #define THS8200_CSM_MULT_RCR_BCB_CNTL       0x4f
0102 #define THS8200_CSM_MULT_RCR_LSB        0x4e
0103 #define THS8200_DTG2_BP1_2_MSB          0x50
0104 #define THS8200_DTG2_BP3_4_MSB          0x51
0105 #define THS8200_DTG2_BP5_6_MSB          0x52
0106 #define THS8200_DTG2_BP7_8_MSB          0x53
0107 #define THS8200_DTG2_BP9_10_MSB         0x54
0108 #define THS8200_DTG2_BP11_12_MSB        0x55
0109 #define THS8200_DTG2_BP13_14_MSB        0x56
0110 #define THS8200_DTG2_BP15_16_MSB        0x57
0111 #define THS8200_DTG2_BP1_LSB            0x58
0112 #define THS8200_DTG2_BP2_LSB            0x59
0113 #define THS8200_DTG2_BP3_LSB            0x5a
0114 #define THS8200_DTG2_BP4_LSB            0x5b
0115 #define THS8200_DTG2_BP5_LSB            0x5c
0116 #define THS8200_DTG2_BP6_LSB            0x5d
0117 #define THS8200_DTG2_BP7_LSB            0x5e
0118 #define THS8200_DTG2_BP8_LSB            0x5f
0119 #define THS8200_DTG2_BP9_LSB            0x60
0120 #define THS8200_DTG2_BP10_LSB           0x61
0121 #define THS8200_DTG2_BP11_LSB           0x62
0122 #define THS8200_DTG2_BP12_LSB           0x63
0123 #define THS8200_DTG2_BP13_LSB           0x64
0124 #define THS8200_DTG2_BP14_LSB           0x65
0125 #define THS8200_DTG2_BP15_LSB           0x66
0126 #define THS8200_DTG2_BP16_LSB           0x67
0127 #define THS8200_DTG2_LINETYPE1          0x68
0128 #define THS8200_DTG2_LINETYPE2          0x69
0129 #define THS8200_DTG2_LINETYPE3          0x6a
0130 #define THS8200_DTG2_LINETYPE4          0x6b
0131 #define THS8200_DTG2_LINETYPE5          0x6c
0132 #define THS8200_DTG2_LINETYPE6          0x6d
0133 #define THS8200_DTG2_LINETYPE7          0x6e
0134 #define THS8200_DTG2_LINETYPE8          0x6f
0135 #define THS8200_DTG2_HLENGTH_LSB        0x70
0136 #define THS8200_DTG2_HLENGTH_LSB_HDLY_MSB   0x71
0137 #define THS8200_DTG2_HLENGTH_HDLY_LSB       0x72
0138 #define THS8200_DTG2_VLENGTH1_LSB       0x73
0139 #define THS8200_DTG2_VLENGTH1_MSB_VDLY1_MSB 0x74
0140 #define THS8200_DTG2_VDLY1_LSB          0x75
0141 #define THS8200_DTG2_VLENGTH2_LSB       0x76
0142 #define THS8200_DTG2_VLENGTH2_MSB_VDLY2_MSB 0x77
0143 #define THS8200_DTG2_VDLY2_LSB          0x78
0144 #define THS8200_DTG2_HS_IN_DLY_MSB      0x79
0145 #define THS8200_DTG2_HS_IN_DLY_LSB      0x7a
0146 #define THS8200_DTG2_VS_IN_DLY_MSB      0x7b
0147 #define THS8200_DTG2_VS_IN_DLY_LSB      0x7c
0148 #define THS8200_DTG2_PIXEL_CNT_MSB      0x7d
0149 #define THS8200_DTG2_PIXEL_CNT_LSB      0x7e
0150 #define THS8200_DTG2_LINE_CNT_MSB       0x7f
0151 #define THS8200_DTG2_LINE_CNT_LSB       0x80
0152 #define THS8200_DTG2_CNTL           0x82
0153 #define THS8200_CGMS_CNTL_HEADER        0x83
0154 #define THS8200_CGMS_PAYLOAD_MSB        0x84
0155 #define THS8200_CGMS_PAYLOAD_LSB        0x85
0156 #define THS8200_MISC_PPL_LSB            0x86
0157 #define THS8200_MISC_PPL_MSB            0x87
0158 #define THS8200_MISC_LPF_MSB            0x88
0159 #define THS8200_MISC_LPF_LSB            0x89
0160 
0161 #endif /* THS8200_REGS_H */