18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * ths8200 - Texas Instruments THS8200 video encoder driver
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright 2013 Cisco Systems, Inc. and/or its affiliates.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * This program is free software; you may redistribute it and/or modify
78c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License as published by
88c2ecf20Sopenharmony_ci * the Free Software Foundation; version 2 of the License.
98c2ecf20Sopenharmony_ci *
108c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or
118c2ecf20Sopenharmony_ci * modify it under the terms of the GNU General Public License as
128c2ecf20Sopenharmony_ci * published by the Free Software Foundation version 2.
138c2ecf20Sopenharmony_ci *
148c2ecf20Sopenharmony_ci * This program is distributed .as is. WITHOUT ANY WARRANTY of any
158c2ecf20Sopenharmony_ci * kind, whether express or implied; without even the implied warranty
168c2ecf20Sopenharmony_ci * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
178c2ecf20Sopenharmony_ci * GNU General Public License for more details.
188c2ecf20Sopenharmony_ci */
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#ifndef THS8200_REGS_H
218c2ecf20Sopenharmony_ci#define THS8200_REGS_H
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci/* Register offset macros */
248c2ecf20Sopenharmony_ci#define THS8200_VERSION				0x02
258c2ecf20Sopenharmony_ci#define THS8200_CHIP_CTL			0x03
268c2ecf20Sopenharmony_ci#define THS8200_CSC_R11				0x04
278c2ecf20Sopenharmony_ci#define THS8200_CSC_R12				0x05
288c2ecf20Sopenharmony_ci#define THS8200_CSC_R21				0x06
298c2ecf20Sopenharmony_ci#define THS8200_CSC_R22				0x07
308c2ecf20Sopenharmony_ci#define THS8200_CSC_R31				0x08
318c2ecf20Sopenharmony_ci#define THS8200_CSC_R32				0x09
328c2ecf20Sopenharmony_ci#define THS8200_CSC_G11				0x0a
338c2ecf20Sopenharmony_ci#define THS8200_CSC_G12				0x0b
348c2ecf20Sopenharmony_ci#define THS8200_CSC_G21				0x0c
358c2ecf20Sopenharmony_ci#define THS8200_CSC_G22				0x0d
368c2ecf20Sopenharmony_ci#define THS8200_CSC_G31				0x0e
378c2ecf20Sopenharmony_ci#define THS8200_CSC_G32				0x0f
388c2ecf20Sopenharmony_ci#define THS8200_CSC_B11				0x10
398c2ecf20Sopenharmony_ci#define THS8200_CSC_B12				0x11
408c2ecf20Sopenharmony_ci#define THS8200_CSC_B21				0x12
418c2ecf20Sopenharmony_ci#define THS8200_CSC_B22				0x13
428c2ecf20Sopenharmony_ci#define THS8200_CSC_B31				0x14
438c2ecf20Sopenharmony_ci#define THS8200_CSC_B32				0x15
448c2ecf20Sopenharmony_ci#define THS8200_CSC_OFFS1			0x16
458c2ecf20Sopenharmony_ci#define THS8200_CSC_OFFS12			0x17
468c2ecf20Sopenharmony_ci#define THS8200_CSC_OFFS23			0x18
478c2ecf20Sopenharmony_ci#define THS8200_CSC_OFFS3			0x19
488c2ecf20Sopenharmony_ci#define THS8200_TST_CNTL1			0x1a
498c2ecf20Sopenharmony_ci#define THS8200_TST_CNTL2			0x1b
508c2ecf20Sopenharmony_ci#define THS8200_DATA_CNTL			0x1c
518c2ecf20Sopenharmony_ci#define THS8200_DTG1_Y_SYNC1_LSB		0x1d
528c2ecf20Sopenharmony_ci#define THS8200_DTG1_Y_SYNC2_LSB		0x1e
538c2ecf20Sopenharmony_ci#define THS8200_DTG1_Y_SYNC3_LSB		0x1f
548c2ecf20Sopenharmony_ci#define THS8200_DTG1_CBCR_SYNC1_LSB		0x20
558c2ecf20Sopenharmony_ci#define THS8200_DTG1_CBCR_SYNC2_LSB		0x21
568c2ecf20Sopenharmony_ci#define THS8200_DTG1_CBCR_SYNC3_LSB		0x22
578c2ecf20Sopenharmony_ci#define THS8200_DTG1_Y_SYNC_MSB			0x23
588c2ecf20Sopenharmony_ci#define THS8200_DTG1_CBCR_SYNC_MSB		0x24
598c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_A			0x25
608c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_B			0x26
618c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_C			0x27
628c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_D_LSB			0x28
638c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_D1			0x29
648c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_E_LSB			0x2a
658c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_DEH_MSB		0x2b
668c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_H_LSB			0x2c
678c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_I_MSB			0x2d
688c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_I_LSB			0x2e
698c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_K_LSB			0x2f
708c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_K_MSB			0x30
718c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_K1			0x31
728c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_G_LSB			0x32
738c2ecf20Sopenharmony_ci#define THS8200_DTG1_SPEC_G_MSB			0x33
748c2ecf20Sopenharmony_ci#define THS8200_DTG1_TOT_PIXELS_MSB		0x34
758c2ecf20Sopenharmony_ci#define THS8200_DTG1_TOT_PIXELS_LSB		0x35
768c2ecf20Sopenharmony_ci#define THS8200_DTG1_FLD_FLIP_LINECNT_MSB	0x36
778c2ecf20Sopenharmony_ci#define THS8200_DTG1_LINECNT_LSB		0x37
788c2ecf20Sopenharmony_ci#define THS8200_DTG1_MODE			0x38
798c2ecf20Sopenharmony_ci#define THS8200_DTG1_FRAME_FIELD_SZ_MSB		0x39
808c2ecf20Sopenharmony_ci#define THS8200_DTG1_FRAME_SZ_LSB		0x3a
818c2ecf20Sopenharmony_ci#define THS8200_DTG1_FIELD_SZ_LSB		0x3b
828c2ecf20Sopenharmony_ci#define THS8200_DTG1_VESA_CBAR_SIZE		0x3c
838c2ecf20Sopenharmony_ci#define THS8200_DAC_CNTL_MSB			0x3d
848c2ecf20Sopenharmony_ci#define THS8200_DAC1_CNTL_LSB			0x3e
858c2ecf20Sopenharmony_ci#define THS8200_DAC2_CNTL_LSB			0x3f
868c2ecf20Sopenharmony_ci#define THS8200_DAC3_CNTL_LSB			0x40
878c2ecf20Sopenharmony_ci#define THS8200_CSM_CLIP_GY_LOW			0x41
888c2ecf20Sopenharmony_ci#define THS8200_CSM_CLIP_BCB_LOW		0x42
898c2ecf20Sopenharmony_ci#define THS8200_CSM_CLIP_RCR_LOW		0x43
908c2ecf20Sopenharmony_ci#define THS8200_CSM_CLIP_GY_HIGH		0x44
918c2ecf20Sopenharmony_ci#define THS8200_CSM_CLIP_BCB_HIGH		0x45
928c2ecf20Sopenharmony_ci#define THS8200_CSM_CLIP_RCR_HIGH		0x46
938c2ecf20Sopenharmony_ci#define THS8200_CSM_SHIFT_GY			0x47
948c2ecf20Sopenharmony_ci#define THS8200_CSM_SHIFT_BCB			0x48
958c2ecf20Sopenharmony_ci#define THS8200_CSM_SHIFT_RCR			0x49
968c2ecf20Sopenharmony_ci#define THS8200_CSM_GY_CNTL_MULT_MSB		0x4a
978c2ecf20Sopenharmony_ci#define THS8200_CSM_MULT_BCB_RCR_MSB		0x4b
988c2ecf20Sopenharmony_ci#define THS8200_CSM_MULT_GY_LSB			0x4c
998c2ecf20Sopenharmony_ci#define THS8200_CSM_MULT_BCB_LSB		0x4d
1008c2ecf20Sopenharmony_ci#define THS8200_CSM_MULT_RCR_LSB		0x4e
1018c2ecf20Sopenharmony_ci#define THS8200_CSM_MULT_RCR_BCB_CNTL		0x4f
1028c2ecf20Sopenharmony_ci#define THS8200_CSM_MULT_RCR_LSB		0x4e
1038c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP1_2_MSB			0x50
1048c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP3_4_MSB			0x51
1058c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP5_6_MSB			0x52
1068c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP7_8_MSB			0x53
1078c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP9_10_MSB			0x54
1088c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP11_12_MSB		0x55
1098c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP13_14_MSB		0x56
1108c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP15_16_MSB		0x57
1118c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP1_LSB			0x58
1128c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP2_LSB			0x59
1138c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP3_LSB			0x5a
1148c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP4_LSB			0x5b
1158c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP5_LSB			0x5c
1168c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP6_LSB			0x5d
1178c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP7_LSB			0x5e
1188c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP8_LSB			0x5f
1198c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP9_LSB			0x60
1208c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP10_LSB			0x61
1218c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP11_LSB			0x62
1228c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP12_LSB			0x63
1238c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP13_LSB			0x64
1248c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP14_LSB			0x65
1258c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP15_LSB			0x66
1268c2ecf20Sopenharmony_ci#define THS8200_DTG2_BP16_LSB			0x67
1278c2ecf20Sopenharmony_ci#define THS8200_DTG2_LINETYPE1			0x68
1288c2ecf20Sopenharmony_ci#define THS8200_DTG2_LINETYPE2			0x69
1298c2ecf20Sopenharmony_ci#define THS8200_DTG2_LINETYPE3			0x6a
1308c2ecf20Sopenharmony_ci#define THS8200_DTG2_LINETYPE4			0x6b
1318c2ecf20Sopenharmony_ci#define THS8200_DTG2_LINETYPE5			0x6c
1328c2ecf20Sopenharmony_ci#define THS8200_DTG2_LINETYPE6			0x6d
1338c2ecf20Sopenharmony_ci#define THS8200_DTG2_LINETYPE7			0x6e
1348c2ecf20Sopenharmony_ci#define THS8200_DTG2_LINETYPE8			0x6f
1358c2ecf20Sopenharmony_ci#define THS8200_DTG2_HLENGTH_LSB		0x70
1368c2ecf20Sopenharmony_ci#define THS8200_DTG2_HLENGTH_LSB_HDLY_MSB	0x71
1378c2ecf20Sopenharmony_ci#define THS8200_DTG2_HLENGTH_HDLY_LSB		0x72
1388c2ecf20Sopenharmony_ci#define THS8200_DTG2_VLENGTH1_LSB		0x73
1398c2ecf20Sopenharmony_ci#define THS8200_DTG2_VLENGTH1_MSB_VDLY1_MSB	0x74
1408c2ecf20Sopenharmony_ci#define THS8200_DTG2_VDLY1_LSB			0x75
1418c2ecf20Sopenharmony_ci#define THS8200_DTG2_VLENGTH2_LSB		0x76
1428c2ecf20Sopenharmony_ci#define THS8200_DTG2_VLENGTH2_MSB_VDLY2_MSB	0x77
1438c2ecf20Sopenharmony_ci#define THS8200_DTG2_VDLY2_LSB			0x78
1448c2ecf20Sopenharmony_ci#define THS8200_DTG2_HS_IN_DLY_MSB		0x79
1458c2ecf20Sopenharmony_ci#define THS8200_DTG2_HS_IN_DLY_LSB		0x7a
1468c2ecf20Sopenharmony_ci#define THS8200_DTG2_VS_IN_DLY_MSB		0x7b
1478c2ecf20Sopenharmony_ci#define THS8200_DTG2_VS_IN_DLY_LSB		0x7c
1488c2ecf20Sopenharmony_ci#define THS8200_DTG2_PIXEL_CNT_MSB		0x7d
1498c2ecf20Sopenharmony_ci#define THS8200_DTG2_PIXEL_CNT_LSB		0x7e
1508c2ecf20Sopenharmony_ci#define THS8200_DTG2_LINE_CNT_MSB		0x7f
1518c2ecf20Sopenharmony_ci#define THS8200_DTG2_LINE_CNT_LSB		0x80
1528c2ecf20Sopenharmony_ci#define THS8200_DTG2_CNTL			0x82
1538c2ecf20Sopenharmony_ci#define THS8200_CGMS_CNTL_HEADER		0x83
1548c2ecf20Sopenharmony_ci#define THS8200_CGMS_PAYLOAD_MSB		0x84
1558c2ecf20Sopenharmony_ci#define THS8200_CGMS_PAYLOAD_LSB		0x85
1568c2ecf20Sopenharmony_ci#define THS8200_MISC_PPL_LSB			0x86
1578c2ecf20Sopenharmony_ci#define THS8200_MISC_PPL_MSB			0x87
1588c2ecf20Sopenharmony_ci#define THS8200_MISC_LPF_MSB			0x88
1598c2ecf20Sopenharmony_ci#define THS8200_MISC_LPF_LSB			0x89
1608c2ecf20Sopenharmony_ci
1618c2ecf20Sopenharmony_ci#endif /* THS8200_REGS_H */
162