162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause */
262306a36Sopenharmony_ci/* Copyright (C) 2019--2020 Intel Corporation */
362306a36Sopenharmony_ci/*
462306a36Sopenharmony_ci * Generated by Documentation/driver-api/media/drivers/ccs/mk-ccs-regs;
562306a36Sopenharmony_ci * do not modify.
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#ifndef __CCS_REGS_H__
962306a36Sopenharmony_ci#define __CCS_REGS_H__
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#include <linux/bits.h>
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#define CCS_FL_BASE		16
1462306a36Sopenharmony_ci#define CCS_FL_16BIT		BIT(CCS_FL_BASE)
1562306a36Sopenharmony_ci#define CCS_FL_32BIT		BIT(CCS_FL_BASE + 1)
1662306a36Sopenharmony_ci#define CCS_FL_FLOAT_IREAL	BIT(CCS_FL_BASE + 2)
1762306a36Sopenharmony_ci#define CCS_FL_IREAL		BIT(CCS_FL_BASE + 3)
1862306a36Sopenharmony_ci#define CCS_R_ADDR(r)		((r) & 0xffff)
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci#define CCS_R_MODULE_MODEL_ID					(0x0000 | CCS_FL_16BIT)
2162306a36Sopenharmony_ci#define CCS_R_MODULE_REVISION_NUMBER_MAJOR			0x0002
2262306a36Sopenharmony_ci#define CCS_R_FRAME_COUNT					0x0005
2362306a36Sopenharmony_ci#define CCS_R_PIXEL_ORDER					0x0006
2462306a36Sopenharmony_ci#define CCS_PIXEL_ORDER_GRBG					0U
2562306a36Sopenharmony_ci#define CCS_PIXEL_ORDER_RGGB					1U
2662306a36Sopenharmony_ci#define CCS_PIXEL_ORDER_BGGR					2U
2762306a36Sopenharmony_ci#define CCS_PIXEL_ORDER_GBRG					3U
2862306a36Sopenharmony_ci#define CCS_R_MIPI_CCS_VERSION					0x0007
2962306a36Sopenharmony_ci#define CCS_MIPI_CCS_VERSION_V1_0				0x10
3062306a36Sopenharmony_ci#define CCS_MIPI_CCS_VERSION_V1_1				0x11
3162306a36Sopenharmony_ci#define CCS_MIPI_CCS_VERSION_MAJOR_SHIFT			4U
3262306a36Sopenharmony_ci#define CCS_MIPI_CCS_VERSION_MAJOR_MASK				0xf0
3362306a36Sopenharmony_ci#define CCS_MIPI_CCS_VERSION_MINOR_SHIFT			0U
3462306a36Sopenharmony_ci#define CCS_MIPI_CCS_VERSION_MINOR_MASK				0xf
3562306a36Sopenharmony_ci#define CCS_R_DATA_PEDESTAL					(0x0008 | CCS_FL_16BIT)
3662306a36Sopenharmony_ci#define CCS_R_MODULE_MANUFACTURER_ID				(0x000e | CCS_FL_16BIT)
3762306a36Sopenharmony_ci#define CCS_R_MODULE_REVISION_NUMBER_MINOR			0x0010
3862306a36Sopenharmony_ci#define CCS_R_MODULE_DATE_YEAR					0x0012
3962306a36Sopenharmony_ci#define CCS_R_MODULE_DATE_MONTH					0x0013
4062306a36Sopenharmony_ci#define CCS_R_MODULE_DATE_DAY					0x0014
4162306a36Sopenharmony_ci#define CCS_R_MODULE_DATE_PHASE					0x0015
4262306a36Sopenharmony_ci#define CCS_MODULE_DATE_PHASE_SHIFT				0U
4362306a36Sopenharmony_ci#define CCS_MODULE_DATE_PHASE_MASK				0x7
4462306a36Sopenharmony_ci#define CCS_MODULE_DATE_PHASE_TS				0U
4562306a36Sopenharmony_ci#define CCS_MODULE_DATE_PHASE_ES				1U
4662306a36Sopenharmony_ci#define CCS_MODULE_DATE_PHASE_CS				2U
4762306a36Sopenharmony_ci#define CCS_MODULE_DATE_PHASE_MP				3U
4862306a36Sopenharmony_ci#define CCS_R_SENSOR_MODEL_ID					(0x0016 | CCS_FL_16BIT)
4962306a36Sopenharmony_ci#define CCS_R_SENSOR_REVISION_NUMBER				0x0018
5062306a36Sopenharmony_ci#define CCS_R_SENSOR_FIRMWARE_VERSION				0x001a
5162306a36Sopenharmony_ci#define CCS_R_SERIAL_NUMBER					(0x001c | CCS_FL_32BIT)
5262306a36Sopenharmony_ci#define CCS_R_SENSOR_MANUFACTURER_ID				(0x0020 | CCS_FL_16BIT)
5362306a36Sopenharmony_ci#define CCS_R_SENSOR_REVISION_NUMBER_16				(0x0022 | CCS_FL_16BIT)
5462306a36Sopenharmony_ci#define CCS_R_FRAME_FORMAT_MODEL_TYPE				0x0040
5562306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_MODEL_TYPE_2_BYTE			1U
5662306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_MODEL_TYPE_4_BYTE			2U
5762306a36Sopenharmony_ci#define CCS_R_FRAME_FORMAT_MODEL_SUBTYPE			0x0041
5862306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_MODEL_SUBTYPE_ROWS_SHIFT		0U
5962306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_MODEL_SUBTYPE_ROWS_MASK		0xf
6062306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_MODEL_SUBTYPE_COLUMNS_SHIFT		4U
6162306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_MODEL_SUBTYPE_COLUMNS_MASK		0xf0
6262306a36Sopenharmony_ci#define CCS_R_FRAME_FORMAT_DESCRIPTOR(n)			((0x0042 | CCS_FL_16BIT) + (n) * 2)
6362306a36Sopenharmony_ci#define CCS_LIM_FRAME_FORMAT_DESCRIPTOR_MIN_N			0U
6462306a36Sopenharmony_ci#define CCS_LIM_FRAME_FORMAT_DESCRIPTOR_MAX_N			14U
6562306a36Sopenharmony_ci#define CCS_R_FRAME_FORMAT_DESCRIPTOR_4(n)			((0x0060 | CCS_FL_32BIT) + (n) * 4)
6662306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PIXELS_SHIFT		0U
6762306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PIXELS_MASK			0xfff
6862306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PCODE_SHIFT			12U
6962306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PCODE_MASK			0xf000
7062306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PCODE_EMBEDDED		1U
7162306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PCODE_DUMMY_PIXEL		2U
7262306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PCODE_BLACK_PIXEL		3U
7362306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PCODE_DARK_PIXEL		4U
7462306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PCODE_VISIBLE_PIXEL		5U
7562306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PCODE_MANUF_SPECIFIC_0	8U
7662306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PCODE_MANUF_SPECIFIC_1	9U
7762306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PCODE_MANUF_SPECIFIC_2	10U
7862306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PCODE_MANUF_SPECIFIC_3	11U
7962306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PCODE_MANUF_SPECIFIC_4	12U
8062306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PCODE_MANUF_SPECIFIC_5	13U
8162306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_PCODE_MANUF_SPECIFIC_6	14U
8262306a36Sopenharmony_ci#define CCS_LIM_FRAME_FORMAT_DESCRIPTOR_4_MIN_N			0U
8362306a36Sopenharmony_ci#define CCS_LIM_FRAME_FORMAT_DESCRIPTOR_4_MAX_N			7U
8462306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PIXELS_SHIFT		0U
8562306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PIXELS_MASK		0xffff
8662306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PCODE_SHIFT		28U
8762306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PCODE_MASK		0xf0000000
8862306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PCODE_EMBEDDED		1U
8962306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PCODE_DUMMY_PIXEL		2U
9062306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PCODE_BLACK_PIXEL		3U
9162306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PCODE_DARK_PIXEL		4U
9262306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PCODE_VISIBLE_PIXEL	5U
9362306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PCODE_MANUF_SPECIFIC_0	8U
9462306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PCODE_MANUF_SPECIFIC_1	9U
9562306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PCODE_MANUF_SPECIFIC_2	10U
9662306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PCODE_MANUF_SPECIFIC_3	11U
9762306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PCODE_MANUF_SPECIFIC_4	12U
9862306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PCODE_MANUF_SPECIFIC_5	13U
9962306a36Sopenharmony_ci#define CCS_FRAME_FORMAT_DESCRIPTOR_4_PCODE_MANUF_SPECIFIC_6	14U
10062306a36Sopenharmony_ci#define CCS_R_ANALOG_GAIN_CAPABILITY				(0x0080 | CCS_FL_16BIT)
10162306a36Sopenharmony_ci#define CCS_ANALOG_GAIN_CAPABILITY_GLOBAL			0U
10262306a36Sopenharmony_ci#define CCS_ANALOG_GAIN_CAPABILITY_ALTERNATE_GLOBAL		2U
10362306a36Sopenharmony_ci#define CCS_R_ANALOG_GAIN_CODE_MIN				(0x0084 | CCS_FL_16BIT)
10462306a36Sopenharmony_ci#define CCS_R_ANALOG_GAIN_CODE_MAX				(0x0086 | CCS_FL_16BIT)
10562306a36Sopenharmony_ci#define CCS_R_ANALOG_GAIN_CODE_STEP				(0x0088 | CCS_FL_16BIT)
10662306a36Sopenharmony_ci#define CCS_R_ANALOG_GAIN_TYPE					(0x008a | CCS_FL_16BIT)
10762306a36Sopenharmony_ci#define CCS_R_ANALOG_GAIN_M0					(0x008c | CCS_FL_16BIT)
10862306a36Sopenharmony_ci#define CCS_R_ANALOG_GAIN_C0					(0x008e | CCS_FL_16BIT)
10962306a36Sopenharmony_ci#define CCS_R_ANALOG_GAIN_M1					(0x0090 | CCS_FL_16BIT)
11062306a36Sopenharmony_ci#define CCS_R_ANALOG_GAIN_C1					(0x0092 | CCS_FL_16BIT)
11162306a36Sopenharmony_ci#define CCS_R_ANALOG_LINEAR_GAIN_MIN				(0x0094 | CCS_FL_16BIT)
11262306a36Sopenharmony_ci#define CCS_R_ANALOG_LINEAR_GAIN_MAX				(0x0096 | CCS_FL_16BIT)
11362306a36Sopenharmony_ci#define CCS_R_ANALOG_LINEAR_GAIN_STEP_SIZE			(0x0098 | CCS_FL_16BIT)
11462306a36Sopenharmony_ci#define CCS_R_ANALOG_EXPONENTIAL_GAIN_MIN			(0x009a | CCS_FL_16BIT)
11562306a36Sopenharmony_ci#define CCS_R_ANALOG_EXPONENTIAL_GAIN_MAX			(0x009c | CCS_FL_16BIT)
11662306a36Sopenharmony_ci#define CCS_R_ANALOG_EXPONENTIAL_GAIN_STEP_SIZE			(0x009e | CCS_FL_16BIT)
11762306a36Sopenharmony_ci#define CCS_R_DATA_FORMAT_MODEL_TYPE				0x00c0
11862306a36Sopenharmony_ci#define CCS_DATA_FORMAT_MODEL_TYPE_NORMAL			1U
11962306a36Sopenharmony_ci#define CCS_DATA_FORMAT_MODEL_TYPE_EXTENDED			2U
12062306a36Sopenharmony_ci#define CCS_R_DATA_FORMAT_MODEL_SUBTYPE				0x00c1
12162306a36Sopenharmony_ci#define CCS_DATA_FORMAT_MODEL_SUBTYPE_ROWS_SHIFT		0U
12262306a36Sopenharmony_ci#define CCS_DATA_FORMAT_MODEL_SUBTYPE_ROWS_MASK			0xf
12362306a36Sopenharmony_ci#define CCS_DATA_FORMAT_MODEL_SUBTYPE_COLUMNS_SHIFT		4U
12462306a36Sopenharmony_ci#define CCS_DATA_FORMAT_MODEL_SUBTYPE_COLUMNS_MASK		0xf0
12562306a36Sopenharmony_ci#define CCS_R_DATA_FORMAT_DESCRIPTOR(n)				((0x00c2 | CCS_FL_16BIT) + (n) * 2)
12662306a36Sopenharmony_ci#define CCS_LIM_DATA_FORMAT_DESCRIPTOR_MIN_N			0U
12762306a36Sopenharmony_ci#define CCS_LIM_DATA_FORMAT_DESCRIPTOR_MAX_N			15U
12862306a36Sopenharmony_ci#define CCS_DATA_FORMAT_DESCRIPTOR_COMPRESSED_SHIFT		0U
12962306a36Sopenharmony_ci#define CCS_DATA_FORMAT_DESCRIPTOR_COMPRESSED_MASK		0xff
13062306a36Sopenharmony_ci#define CCS_DATA_FORMAT_DESCRIPTOR_UNCOMPRESSED_SHIFT		8U
13162306a36Sopenharmony_ci#define CCS_DATA_FORMAT_DESCRIPTOR_UNCOMPRESSED_MASK		0xff00
13262306a36Sopenharmony_ci#define CCS_R_MODE_SELECT					0x0100
13362306a36Sopenharmony_ci#define CCS_MODE_SELECT_SOFTWARE_STANDBY			0U
13462306a36Sopenharmony_ci#define CCS_MODE_SELECT_STREAMING				1U
13562306a36Sopenharmony_ci#define CCS_R_IMAGE_ORIENTATION					0x0101
13662306a36Sopenharmony_ci#define CCS_IMAGE_ORIENTATION_HORIZONTAL_MIRROR			BIT(0)
13762306a36Sopenharmony_ci#define CCS_IMAGE_ORIENTATION_VERTICAL_FLIP			BIT(1)
13862306a36Sopenharmony_ci#define CCS_R_SOFTWARE_RESET					0x0103
13962306a36Sopenharmony_ci#define CCS_SOFTWARE_RESET_OFF					0U
14062306a36Sopenharmony_ci#define CCS_SOFTWARE_RESET_ON					1U
14162306a36Sopenharmony_ci#define CCS_R_GROUPED_PARAMETER_HOLD				0x0104
14262306a36Sopenharmony_ci#define CCS_R_MASK_CORRUPTED_FRAMES				0x0105
14362306a36Sopenharmony_ci#define CCS_MASK_CORRUPTED_FRAMES_ALLOW				0U
14462306a36Sopenharmony_ci#define CCS_MASK_CORRUPTED_FRAMES_MASK				1U
14562306a36Sopenharmony_ci#define CCS_R_FAST_STANDBY_CTRL					0x0106
14662306a36Sopenharmony_ci#define CCS_FAST_STANDBY_CTRL_COMPLETE_FRAMES			0U
14762306a36Sopenharmony_ci#define CCS_FAST_STANDBY_CTRL_FRAME_TRUNCATION			1U
14862306a36Sopenharmony_ci#define CCS_R_CCI_ADDRESS_CTRL					0x0107
14962306a36Sopenharmony_ci#define CCS_R_2ND_CCI_IF_CTRL					0x0108
15062306a36Sopenharmony_ci#define CCS_2ND_CCI_IF_CTRL_ENABLE				BIT(0)
15162306a36Sopenharmony_ci#define CCS_2ND_CCI_IF_CTRL_ACK					BIT(1)
15262306a36Sopenharmony_ci#define CCS_R_2ND_CCI_ADDRESS_CTRL				0x0109
15362306a36Sopenharmony_ci#define CCS_R_CSI_CHANNEL_IDENTIFIER				0x0110
15462306a36Sopenharmony_ci#define CCS_R_CSI_SIGNALING_MODE				0x0111
15562306a36Sopenharmony_ci#define CCS_CSI_SIGNALING_MODE_CSI_2_DPHY			2U
15662306a36Sopenharmony_ci#define CCS_CSI_SIGNALING_MODE_CSI_2_CPHY			3U
15762306a36Sopenharmony_ci#define CCS_R_CSI_DATA_FORMAT					(0x0112 | CCS_FL_16BIT)
15862306a36Sopenharmony_ci#define CCS_R_CSI_LANE_MODE					0x0114
15962306a36Sopenharmony_ci#define CCS_R_DPCM_FRAME_DT					0x011d
16062306a36Sopenharmony_ci#define CCS_R_BOTTOM_EMBEDDED_DATA_DT				0x011e
16162306a36Sopenharmony_ci#define CCS_R_BOTTOM_EMBEDDED_DATA_VC				0x011f
16262306a36Sopenharmony_ci#define CCS_R_GAIN_MODE						0x0120
16362306a36Sopenharmony_ci#define CCS_GAIN_MODE_GLOBAL					0U
16462306a36Sopenharmony_ci#define CCS_GAIN_MODE_ALTERNATE					1U
16562306a36Sopenharmony_ci#define CCS_R_ADC_BIT_DEPTH					0x0121
16662306a36Sopenharmony_ci#define CCS_R_EMB_DATA_CTRL					0x0122
16762306a36Sopenharmony_ci#define CCS_EMB_DATA_CTRL_RAW8_PACKING_FOR_RAW16		BIT(0)
16862306a36Sopenharmony_ci#define CCS_EMB_DATA_CTRL_RAW10_PACKING_FOR_RAW20		BIT(1)
16962306a36Sopenharmony_ci#define CCS_EMB_DATA_CTRL_RAW12_PACKING_FOR_RAW24		BIT(2)
17062306a36Sopenharmony_ci#define CCS_R_GPIO_TRIG_MODE					0x0130
17162306a36Sopenharmony_ci#define CCS_R_EXTCLK_FREQUENCY_MHZ				(0x0136 | (CCS_FL_16BIT | CCS_FL_IREAL))
17262306a36Sopenharmony_ci#define CCS_R_TEMP_SENSOR_CTRL					0x0138
17362306a36Sopenharmony_ci#define CCS_TEMP_SENSOR_CTRL_ENABLE				BIT(0)
17462306a36Sopenharmony_ci#define CCS_R_TEMP_SENSOR_MODE					0x0139
17562306a36Sopenharmony_ci#define CCS_R_TEMP_SENSOR_OUTPUT				0x013a
17662306a36Sopenharmony_ci#define CCS_R_FINE_INTEGRATION_TIME				(0x0200 | CCS_FL_16BIT)
17762306a36Sopenharmony_ci#define CCS_R_COARSE_INTEGRATION_TIME				(0x0202 | CCS_FL_16BIT)
17862306a36Sopenharmony_ci#define CCS_R_ANALOG_GAIN_CODE_GLOBAL				(0x0204 | CCS_FL_16BIT)
17962306a36Sopenharmony_ci#define CCS_R_ANALOG_LINEAR_GAIN_GLOBAL				(0x0206 | CCS_FL_16BIT)
18062306a36Sopenharmony_ci#define CCS_R_ANALOG_EXPONENTIAL_GAIN_GLOBAL			(0x0208 | CCS_FL_16BIT)
18162306a36Sopenharmony_ci#define CCS_R_DIGITAL_GAIN_GLOBAL				(0x020e | CCS_FL_16BIT)
18262306a36Sopenharmony_ci#define CCS_R_SHORT_ANALOG_GAIN_GLOBAL				(0x0216 | CCS_FL_16BIT)
18362306a36Sopenharmony_ci#define CCS_R_SHORT_DIGITAL_GAIN_GLOBAL				(0x0218 | CCS_FL_16BIT)
18462306a36Sopenharmony_ci#define CCS_R_HDR_MODE						0x0220
18562306a36Sopenharmony_ci#define CCS_HDR_MODE_ENABLED					BIT(0)
18662306a36Sopenharmony_ci#define CCS_HDR_MODE_SEPARATE_ANALOG_GAIN			BIT(1)
18762306a36Sopenharmony_ci#define CCS_HDR_MODE_UPSCALING					BIT(2)
18862306a36Sopenharmony_ci#define CCS_HDR_MODE_RESET_SYNC					BIT(3)
18962306a36Sopenharmony_ci#define CCS_HDR_MODE_TIMING_MODE				BIT(4)
19062306a36Sopenharmony_ci#define CCS_HDR_MODE_EXPOSURE_CTRL_DIRECT			BIT(5)
19162306a36Sopenharmony_ci#define CCS_HDR_MODE_SEPARATE_DIGITAL_GAIN			BIT(6)
19262306a36Sopenharmony_ci#define CCS_R_HDR_RESOLUTION_REDUCTION				0x0221
19362306a36Sopenharmony_ci#define CCS_HDR_RESOLUTION_REDUCTION_ROW_SHIFT			0U
19462306a36Sopenharmony_ci#define CCS_HDR_RESOLUTION_REDUCTION_ROW_MASK			0xf
19562306a36Sopenharmony_ci#define CCS_HDR_RESOLUTION_REDUCTION_COLUMN_SHIFT		4U
19662306a36Sopenharmony_ci#define CCS_HDR_RESOLUTION_REDUCTION_COLUMN_MASK		0xf0
19762306a36Sopenharmony_ci#define CCS_R_EXPOSURE_RATIO					0x0222
19862306a36Sopenharmony_ci#define CCS_R_HDR_INTERNAL_BIT_DEPTH				0x0223
19962306a36Sopenharmony_ci#define CCS_R_DIRECT_SHORT_INTEGRATION_TIME			(0x0224 | CCS_FL_16BIT)
20062306a36Sopenharmony_ci#define CCS_R_SHORT_ANALOG_LINEAR_GAIN_GLOBAL			(0x0226 | CCS_FL_16BIT)
20162306a36Sopenharmony_ci#define CCS_R_SHORT_ANALOG_EXPONENTIAL_GAIN_GLOBAL		(0x0228 | CCS_FL_16BIT)
20262306a36Sopenharmony_ci#define CCS_R_VT_PIX_CLK_DIV					(0x0300 | CCS_FL_16BIT)
20362306a36Sopenharmony_ci#define CCS_R_VT_SYS_CLK_DIV					(0x0302 | CCS_FL_16BIT)
20462306a36Sopenharmony_ci#define CCS_R_PRE_PLL_CLK_DIV					(0x0304 | CCS_FL_16BIT)
20562306a36Sopenharmony_ci#define CCS_R_PLL_MULTIPLIER					(0x0306 | CCS_FL_16BIT)
20662306a36Sopenharmony_ci#define CCS_R_OP_PIX_CLK_DIV					(0x0308 | CCS_FL_16BIT)
20762306a36Sopenharmony_ci#define CCS_R_OP_SYS_CLK_DIV					(0x030a | CCS_FL_16BIT)
20862306a36Sopenharmony_ci#define CCS_R_OP_PRE_PLL_CLK_DIV				(0x030c | CCS_FL_16BIT)
20962306a36Sopenharmony_ci#define CCS_R_OP_PLL_MULTIPLIER					(0x030e | CCS_FL_16BIT)
21062306a36Sopenharmony_ci#define CCS_R_PLL_MODE						0x0310
21162306a36Sopenharmony_ci#define CCS_PLL_MODE_SHIFT					0U
21262306a36Sopenharmony_ci#define CCS_PLL_MODE_MASK					0x1
21362306a36Sopenharmony_ci#define CCS_PLL_MODE_SINGLE					0U
21462306a36Sopenharmony_ci#define CCS_PLL_MODE_DUAL					1U
21562306a36Sopenharmony_ci#define CCS_R_OP_PIX_CLK_DIV_REV				(0x0312 | CCS_FL_16BIT)
21662306a36Sopenharmony_ci#define CCS_R_OP_SYS_CLK_DIV_REV				(0x0314 | CCS_FL_16BIT)
21762306a36Sopenharmony_ci#define CCS_R_FRAME_LENGTH_LINES				(0x0340 | CCS_FL_16BIT)
21862306a36Sopenharmony_ci#define CCS_R_LINE_LENGTH_PCK					(0x0342 | CCS_FL_16BIT)
21962306a36Sopenharmony_ci#define CCS_R_X_ADDR_START					(0x0344 | CCS_FL_16BIT)
22062306a36Sopenharmony_ci#define CCS_R_Y_ADDR_START					(0x0346 | CCS_FL_16BIT)
22162306a36Sopenharmony_ci#define CCS_R_X_ADDR_END					(0x0348 | CCS_FL_16BIT)
22262306a36Sopenharmony_ci#define CCS_R_Y_ADDR_END					(0x034a | CCS_FL_16BIT)
22362306a36Sopenharmony_ci#define CCS_R_X_OUTPUT_SIZE					(0x034c | CCS_FL_16BIT)
22462306a36Sopenharmony_ci#define CCS_R_Y_OUTPUT_SIZE					(0x034e | CCS_FL_16BIT)
22562306a36Sopenharmony_ci#define CCS_R_FRAME_LENGTH_CTRL					0x0350
22662306a36Sopenharmony_ci#define CCS_FRAME_LENGTH_CTRL_AUTOMATIC				BIT(0)
22762306a36Sopenharmony_ci#define CCS_R_TIMING_MODE_CTRL					0x0352
22862306a36Sopenharmony_ci#define CCS_TIMING_MODE_CTRL_MANUAL_READOUT			BIT(0)
22962306a36Sopenharmony_ci#define CCS_TIMING_MODE_CTRL_DELAYED_EXPOSURE			BIT(1)
23062306a36Sopenharmony_ci#define CCS_R_START_READOUT_RS					0x0353
23162306a36Sopenharmony_ci#define CCS_START_READOUT_RS_MANUAL_READOUT_START		BIT(0)
23262306a36Sopenharmony_ci#define CCS_R_FRAME_MARGIN					(0x0354 | CCS_FL_16BIT)
23362306a36Sopenharmony_ci#define CCS_R_X_EVEN_INC					(0x0380 | CCS_FL_16BIT)
23462306a36Sopenharmony_ci#define CCS_R_X_ODD_INC						(0x0382 | CCS_FL_16BIT)
23562306a36Sopenharmony_ci#define CCS_R_Y_EVEN_INC					(0x0384 | CCS_FL_16BIT)
23662306a36Sopenharmony_ci#define CCS_R_Y_ODD_INC						(0x0386 | CCS_FL_16BIT)
23762306a36Sopenharmony_ci#define CCS_R_MONOCHROME_EN					0x0390
23862306a36Sopenharmony_ci#define CCS_MONOCHROME_EN_ENABLED				0U
23962306a36Sopenharmony_ci#define CCS_R_SCALING_MODE					(0x0400 | CCS_FL_16BIT)
24062306a36Sopenharmony_ci#define CCS_SCALING_MODE_NO_SCALING				0U
24162306a36Sopenharmony_ci#define CCS_SCALING_MODE_HORIZONTAL				1U
24262306a36Sopenharmony_ci#define CCS_R_SCALE_M						(0x0404 | CCS_FL_16BIT)
24362306a36Sopenharmony_ci#define CCS_R_SCALE_N						(0x0406 | CCS_FL_16BIT)
24462306a36Sopenharmony_ci#define CCS_R_DIGITAL_CROP_X_OFFSET				(0x0408 | CCS_FL_16BIT)
24562306a36Sopenharmony_ci#define CCS_R_DIGITAL_CROP_Y_OFFSET				(0x040a | CCS_FL_16BIT)
24662306a36Sopenharmony_ci#define CCS_R_DIGITAL_CROP_IMAGE_WIDTH				(0x040c | CCS_FL_16BIT)
24762306a36Sopenharmony_ci#define CCS_R_DIGITAL_CROP_IMAGE_HEIGHT				(0x040e | CCS_FL_16BIT)
24862306a36Sopenharmony_ci#define CCS_R_COMPRESSION_MODE					(0x0500 | CCS_FL_16BIT)
24962306a36Sopenharmony_ci#define CCS_COMPRESSION_MODE_NONE				0U
25062306a36Sopenharmony_ci#define CCS_COMPRESSION_MODE_DPCM_PCM_SIMPLE			1U
25162306a36Sopenharmony_ci#define CCS_R_TEST_PATTERN_MODE					(0x0600 | CCS_FL_16BIT)
25262306a36Sopenharmony_ci#define CCS_TEST_PATTERN_MODE_NONE				0U
25362306a36Sopenharmony_ci#define CCS_TEST_PATTERN_MODE_SOLID_COLOR			1U
25462306a36Sopenharmony_ci#define CCS_TEST_PATTERN_MODE_COLOR_BARS			2U
25562306a36Sopenharmony_ci#define CCS_TEST_PATTERN_MODE_FADE_TO_GREY			3U
25662306a36Sopenharmony_ci#define CCS_TEST_PATTERN_MODE_PN9				4U
25762306a36Sopenharmony_ci#define CCS_TEST_PATTERN_MODE_COLOR_TILE			5U
25862306a36Sopenharmony_ci#define CCS_R_TEST_DATA_RED					(0x0602 | CCS_FL_16BIT)
25962306a36Sopenharmony_ci#define CCS_R_TEST_DATA_GREENR					(0x0604 | CCS_FL_16BIT)
26062306a36Sopenharmony_ci#define CCS_R_TEST_DATA_BLUE					(0x0606 | CCS_FL_16BIT)
26162306a36Sopenharmony_ci#define CCS_R_TEST_DATA_GREENB					(0x0608 | CCS_FL_16BIT)
26262306a36Sopenharmony_ci#define CCS_R_VALUE_STEP_SIZE_SMOOTH				0x060a
26362306a36Sopenharmony_ci#define CCS_R_VALUE_STEP_SIZE_QUANTISED				0x060b
26462306a36Sopenharmony_ci#define CCS_R_TCLK_POST						0x0800
26562306a36Sopenharmony_ci#define CCS_R_THS_PREPARE					0x0801
26662306a36Sopenharmony_ci#define CCS_R_THS_ZERO_MIN					0x0802
26762306a36Sopenharmony_ci#define CCS_R_THS_TRAIL						0x0803
26862306a36Sopenharmony_ci#define CCS_R_TCLK_TRAIL_MIN					0x0804
26962306a36Sopenharmony_ci#define CCS_R_TCLK_PREPARE					0x0805
27062306a36Sopenharmony_ci#define CCS_R_TCLK_ZERO						0x0806
27162306a36Sopenharmony_ci#define CCS_R_TLPX						0x0807
27262306a36Sopenharmony_ci#define CCS_R_PHY_CTRL						0x0808
27362306a36Sopenharmony_ci#define CCS_PHY_CTRL_AUTO					0U
27462306a36Sopenharmony_ci#define CCS_PHY_CTRL_UI						1U
27562306a36Sopenharmony_ci#define CCS_PHY_CTRL_MANUAL					2U
27662306a36Sopenharmony_ci#define CCS_R_TCLK_POST_EX					(0x080a | CCS_FL_16BIT)
27762306a36Sopenharmony_ci#define CCS_R_THS_PREPARE_EX					(0x080c | CCS_FL_16BIT)
27862306a36Sopenharmony_ci#define CCS_R_THS_ZERO_MIN_EX					(0x080e | CCS_FL_16BIT)
27962306a36Sopenharmony_ci#define CCS_R_THS_TRAIL_EX					(0x0810 | CCS_FL_16BIT)
28062306a36Sopenharmony_ci#define CCS_R_TCLK_TRAIL_MIN_EX					(0x0812 | CCS_FL_16BIT)
28162306a36Sopenharmony_ci#define CCS_R_TCLK_PREPARE_EX					(0x0814 | CCS_FL_16BIT)
28262306a36Sopenharmony_ci#define CCS_R_TCLK_ZERO_EX					(0x0816 | CCS_FL_16BIT)
28362306a36Sopenharmony_ci#define CCS_R_TLPX_EX						(0x0818 | CCS_FL_16BIT)
28462306a36Sopenharmony_ci#define CCS_R_REQUESTED_LINK_RATE				(0x0820 | CCS_FL_32BIT)
28562306a36Sopenharmony_ci#define CCS_R_DPHY_EQUALIZATION_MODE				0x0824
28662306a36Sopenharmony_ci#define CCS_DPHY_EQUALIZATION_MODE_EQ2				BIT(0)
28762306a36Sopenharmony_ci#define CCS_R_PHY_EQUALIZATION_CTRL				0x0825
28862306a36Sopenharmony_ci#define CCS_PHY_EQUALIZATION_CTRL_ENABLE			BIT(0)
28962306a36Sopenharmony_ci#define CCS_R_DPHY_PREAMBLE_CTRL				0x0826
29062306a36Sopenharmony_ci#define CCS_DPHY_PREAMBLE_CTRL_ENABLE				BIT(0)
29162306a36Sopenharmony_ci#define CCS_R_DPHY_PREAMBLE_LENGTH				0x0826
29262306a36Sopenharmony_ci#define CCS_R_PHY_SSC_CTRL					0x0828
29362306a36Sopenharmony_ci#define CCS_PHY_SSC_CTRL_ENABLE					BIT(0)
29462306a36Sopenharmony_ci#define CCS_R_MANUAL_LP_CTRL					0x0829
29562306a36Sopenharmony_ci#define CCS_MANUAL_LP_CTRL_ENABLE				BIT(0)
29662306a36Sopenharmony_ci#define CCS_R_TWAKEUP						0x082a
29762306a36Sopenharmony_ci#define CCS_R_TINIT						0x082b
29862306a36Sopenharmony_ci#define CCS_R_THS_EXIT						0x082c
29962306a36Sopenharmony_ci#define CCS_R_THS_EXIT_EX					(0x082e | CCS_FL_16BIT)
30062306a36Sopenharmony_ci#define CCS_R_PHY_PERIODIC_CALIBRATION_CTRL			0x0830
30162306a36Sopenharmony_ci#define CCS_PHY_PERIODIC_CALIBRATION_CTRL_FRAME_BLANKING	BIT(0)
30262306a36Sopenharmony_ci#define CCS_R_PHY_PERIODIC_CALIBRATION_INTERVAL			0x0831
30362306a36Sopenharmony_ci#define CCS_R_PHY_INIT_CALIBRATION_CTRL				0x0832
30462306a36Sopenharmony_ci#define CCS_PHY_INIT_CALIBRATION_CTRL_STREAM_START		BIT(0)
30562306a36Sopenharmony_ci#define CCS_R_DPHY_CALIBRATION_MODE				0x0833
30662306a36Sopenharmony_ci#define CCS_DPHY_CALIBRATION_MODE_ALSO_ALTERNATE		BIT(0)
30762306a36Sopenharmony_ci#define CCS_R_CPHY_CALIBRATION_MODE				0x0834
30862306a36Sopenharmony_ci#define CCS_CPHY_CALIBRATION_MODE_FORMAT_1			0U
30962306a36Sopenharmony_ci#define CCS_CPHY_CALIBRATION_MODE_FORMAT_2			1U
31062306a36Sopenharmony_ci#define CCS_CPHY_CALIBRATION_MODE_FORMAT_3			2U
31162306a36Sopenharmony_ci#define CCS_R_T3_CALPREAMBLE_LENGTH				0x0835
31262306a36Sopenharmony_ci#define CCS_R_T3_CALPREAMBLE_LENGTH_PER				0x0836
31362306a36Sopenharmony_ci#define CCS_R_T3_CALALTSEQ_LENGTH				0x0837
31462306a36Sopenharmony_ci#define CCS_R_T3_CALALTSEQ_LENGTH_PER				0x0838
31562306a36Sopenharmony_ci#define CCS_R_FM2_INIT_SEED					(0x083a | CCS_FL_16BIT)
31662306a36Sopenharmony_ci#define CCS_R_T3_CALUDEFSEQ_LENGTH				(0x083c | CCS_FL_16BIT)
31762306a36Sopenharmony_ci#define CCS_R_T3_CALUDEFSEQ_LENGTH_PER				(0x083e | CCS_FL_16BIT)
31862306a36Sopenharmony_ci#define CCS_R_TGR_PREAMBLE_LENGTH				0x0841
31962306a36Sopenharmony_ci#define CCS_TGR_PREAMBLE_LENGTH_PREAMABLE_PROG_SEQ		BIT(7)
32062306a36Sopenharmony_ci#define CCS_TGR_PREAMBLE_LENGTH_BEGIN_PREAMBLE_LENGTH_SHIFT	0U
32162306a36Sopenharmony_ci#define CCS_TGR_PREAMBLE_LENGTH_BEGIN_PREAMBLE_LENGTH_MASK	0x3f
32262306a36Sopenharmony_ci#define CCS_R_TGR_POST_LENGTH					0x0842
32362306a36Sopenharmony_ci#define CCS_TGR_POST_LENGTH_POST_LENGTH_SHIFT			0U
32462306a36Sopenharmony_ci#define CCS_TGR_POST_LENGTH_POST_LENGTH_MASK			0x1f
32562306a36Sopenharmony_ci#define CCS_R_TGR_PREAMBLE_PROG_SEQUENCE(n2)			(0x0843 + (n2))
32662306a36Sopenharmony_ci#define CCS_LIM_TGR_PREAMBLE_PROG_SEQUENCE_MIN_N2		0U
32762306a36Sopenharmony_ci#define CCS_LIM_TGR_PREAMBLE_PROG_SEQUENCE_MAX_N2		6U
32862306a36Sopenharmony_ci#define CCS_TGR_PREAMBLE_PROG_SEQUENCE_SYMBOL_N_1_SHIFT		3U
32962306a36Sopenharmony_ci#define CCS_TGR_PREAMBLE_PROG_SEQUENCE_SYMBOL_N_1_MASK		0x38
33062306a36Sopenharmony_ci#define CCS_TGR_PREAMBLE_PROG_SEQUENCE_SYMBOL_N_SHIFT		0U
33162306a36Sopenharmony_ci#define CCS_TGR_PREAMBLE_PROG_SEQUENCE_SYMBOL_N_MASK		0x7
33262306a36Sopenharmony_ci#define CCS_R_T3_PREPARE					(0x084e | CCS_FL_16BIT)
33362306a36Sopenharmony_ci#define CCS_R_T3_LPX						(0x0850 | CCS_FL_16BIT)
33462306a36Sopenharmony_ci#define CCS_R_ALPS_CTRL						0x085a
33562306a36Sopenharmony_ci#define CCS_ALPS_CTRL_LVLP_DPHY					BIT(0)
33662306a36Sopenharmony_ci#define CCS_ALPS_CTRL_LVLP_CPHY					BIT(1)
33762306a36Sopenharmony_ci#define CCS_ALPS_CTRL_ALP_CPHY					BIT(2)
33862306a36Sopenharmony_ci#define CCS_R_TX_REG_CSI_EPD_EN_SSP_CPHY			(0x0860 | CCS_FL_16BIT)
33962306a36Sopenharmony_ci#define CCS_R_TX_REG_CSI_EPD_OP_SLP_CPHY			(0x0862 | CCS_FL_16BIT)
34062306a36Sopenharmony_ci#define CCS_R_TX_REG_CSI_EPD_EN_SSP_DPHY			(0x0864 | CCS_FL_16BIT)
34162306a36Sopenharmony_ci#define CCS_R_TX_REG_CSI_EPD_OP_SLP_DPHY			(0x0866 | CCS_FL_16BIT)
34262306a36Sopenharmony_ci#define CCS_R_TX_REG_CSI_EPD_MISC_OPTION_CPHY			0x0868
34362306a36Sopenharmony_ci#define CCS_R_TX_REG_CSI_EPD_MISC_OPTION_DPHY			0x0869
34462306a36Sopenharmony_ci#define CCS_R_SCRAMBLING_CTRL					0x0870
34562306a36Sopenharmony_ci#define CCS_SCRAMBLING_CTRL_ENABLED				BIT(0)
34662306a36Sopenharmony_ci#define CCS_SCRAMBLING_CTRL_SHIFT				2U
34762306a36Sopenharmony_ci#define CCS_SCRAMBLING_CTRL_MASK				0xc
34862306a36Sopenharmony_ci#define CCS_SCRAMBLING_CTRL_1_SEED_CPHY				0U
34962306a36Sopenharmony_ci#define CCS_SCRAMBLING_CTRL_4_SEED_CPHY				3U
35062306a36Sopenharmony_ci#define CCS_R_LANE_SEED_VALUE(seed, lane)			((0x0872 | CCS_FL_16BIT) + (seed) * 16 + (lane) * 2)
35162306a36Sopenharmony_ci#define CCS_LIM_LANE_SEED_VALUE_MIN_SEED			0U
35262306a36Sopenharmony_ci#define CCS_LIM_LANE_SEED_VALUE_MAX_SEED			3U
35362306a36Sopenharmony_ci#define CCS_LIM_LANE_SEED_VALUE_MIN_LANE			0U
35462306a36Sopenharmony_ci#define CCS_LIM_LANE_SEED_VALUE_MAX_LANE			7U
35562306a36Sopenharmony_ci#define CCS_R_TX_USL_REV_ENTRY					(0x08c0 | CCS_FL_16BIT)
35662306a36Sopenharmony_ci#define CCS_R_TX_USL_REV_CLOCK_COUNTER				(0x08c2 | CCS_FL_16BIT)
35762306a36Sopenharmony_ci#define CCS_R_TX_USL_REV_LP_COUNTER				(0x08c4 | CCS_FL_16BIT)
35862306a36Sopenharmony_ci#define CCS_R_TX_USL_REV_FRAME_COUNTER				(0x08c6 | CCS_FL_16BIT)
35962306a36Sopenharmony_ci#define CCS_R_TX_USL_REV_CHRONOLOGICAL_TIMER			(0x08c8 | CCS_FL_16BIT)
36062306a36Sopenharmony_ci#define CCS_R_TX_USL_FWD_ENTRY					(0x08ca | CCS_FL_16BIT)
36162306a36Sopenharmony_ci#define CCS_R_TX_USL_GPIO					(0x08cc | CCS_FL_16BIT)
36262306a36Sopenharmony_ci#define CCS_R_TX_USL_OPERATION					(0x08ce | CCS_FL_16BIT)
36362306a36Sopenharmony_ci#define CCS_TX_USL_OPERATION_RESET				BIT(0)
36462306a36Sopenharmony_ci#define CCS_R_TX_USL_ALP_CTRL					(0x08d0 | CCS_FL_16BIT)
36562306a36Sopenharmony_ci#define CCS_TX_USL_ALP_CTRL_CLOCK_PAUSE				BIT(0)
36662306a36Sopenharmony_ci#define CCS_R_TX_USL_APP_BTA_ACK_TIMEOUT			(0x08d2 | CCS_FL_16BIT)
36762306a36Sopenharmony_ci#define CCS_R_TX_USL_SNS_BTA_ACK_TIMEOUT			(0x08d2 | CCS_FL_16BIT)
36862306a36Sopenharmony_ci#define CCS_R_USL_CLOCK_MODE_D_CTRL				0x08d2
36962306a36Sopenharmony_ci#define CCS_USL_CLOCK_MODE_D_CTRL_CONT_CLOCK_STANDBY		BIT(0)
37062306a36Sopenharmony_ci#define CCS_USL_CLOCK_MODE_D_CTRL_CONT_CLOCK_VBLANK		BIT(1)
37162306a36Sopenharmony_ci#define CCS_USL_CLOCK_MODE_D_CTRL_CONT_CLOCK_HBLANK		BIT(2)
37262306a36Sopenharmony_ci#define CCS_R_BINNING_MODE					0x0900
37362306a36Sopenharmony_ci#define CCS_R_BINNING_TYPE					0x0901
37462306a36Sopenharmony_ci#define CCS_R_BINNING_WEIGHTING					0x0902
37562306a36Sopenharmony_ci#define CCS_R_DATA_TRANSFER_IF_1_CTRL				0x0a00
37662306a36Sopenharmony_ci#define CCS_DATA_TRANSFER_IF_1_CTRL_ENABLE			BIT(0)
37762306a36Sopenharmony_ci#define CCS_DATA_TRANSFER_IF_1_CTRL_WRITE			BIT(1)
37862306a36Sopenharmony_ci#define CCS_DATA_TRANSFER_IF_1_CTRL_CLEAR_ERROR			BIT(2)
37962306a36Sopenharmony_ci#define CCS_R_DATA_TRANSFER_IF_1_STATUS				0x0a01
38062306a36Sopenharmony_ci#define CCS_DATA_TRANSFER_IF_1_STATUS_READ_IF_READY		BIT(0)
38162306a36Sopenharmony_ci#define CCS_DATA_TRANSFER_IF_1_STATUS_WRITE_IF_READY		BIT(1)
38262306a36Sopenharmony_ci#define CCS_DATA_TRANSFER_IF_1_STATUS_DATA_CORRUPTED		BIT(2)
38362306a36Sopenharmony_ci#define CCS_DATA_TRANSFER_IF_1_STATUS_IMPROPER_IF_USAGE		BIT(3)
38462306a36Sopenharmony_ci#define CCS_R_DATA_TRANSFER_IF_1_PAGE_SELECT			0x0a02
38562306a36Sopenharmony_ci#define CCS_R_DATA_TRANSFER_IF_1_DATA(p)			(0x0a04 + (p))
38662306a36Sopenharmony_ci#define CCS_LIM_DATA_TRANSFER_IF_1_DATA_MIN_P			0U
38762306a36Sopenharmony_ci#define CCS_LIM_DATA_TRANSFER_IF_1_DATA_MAX_P			63U
38862306a36Sopenharmony_ci#define CCS_R_SHADING_CORRECTION_EN				0x0b00
38962306a36Sopenharmony_ci#define CCS_SHADING_CORRECTION_EN_ENABLE			BIT(0)
39062306a36Sopenharmony_ci#define CCS_R_LUMINANCE_CORRECTION_LEVEL			0x0b01
39162306a36Sopenharmony_ci#define CCS_R_GREEN_IMBALANCE_FILTER_EN				0x0b02
39262306a36Sopenharmony_ci#define CCS_GREEN_IMBALANCE_FILTER_EN_ENABLE			BIT(0)
39362306a36Sopenharmony_ci#define CCS_R_MAPPED_DEFECT_CORRECT_EN				0x0b05
39462306a36Sopenharmony_ci#define CCS_MAPPED_DEFECT_CORRECT_EN_ENABLE			BIT(0)
39562306a36Sopenharmony_ci#define CCS_R_SINGLE_DEFECT_CORRECT_EN				0x0b06
39662306a36Sopenharmony_ci#define CCS_SINGLE_DEFECT_CORRECT_EN_ENABLE			BIT(0)
39762306a36Sopenharmony_ci#define CCS_R_DYNAMIC_COUPLET_CORRECT_EN			0x0b08
39862306a36Sopenharmony_ci#define CCS_DYNAMIC_COUPLET_CORRECT_EN_ENABLE			BIT(0)
39962306a36Sopenharmony_ci#define CCS_R_COMBINED_DEFECT_CORRECT_EN			0x0b0a
40062306a36Sopenharmony_ci#define CCS_COMBINED_DEFECT_CORRECT_EN_ENABLE			BIT(0)
40162306a36Sopenharmony_ci#define CCS_R_MODULE_SPECIFIC_CORRECTION_EN			0x0b0c
40262306a36Sopenharmony_ci#define CCS_MODULE_SPECIFIC_CORRECTION_EN_ENABLE		BIT(0)
40362306a36Sopenharmony_ci#define CCS_R_DYNAMIC_TRIPLET_DEFECT_CORRECT_EN			0x0b13
40462306a36Sopenharmony_ci#define CCS_DYNAMIC_TRIPLET_DEFECT_CORRECT_EN_ENABLE		BIT(0)
40562306a36Sopenharmony_ci#define CCS_R_NF_CTRL						0x0b15
40662306a36Sopenharmony_ci#define CCS_NF_CTRL_LUMA					BIT(0)
40762306a36Sopenharmony_ci#define CCS_NF_CTRL_CHROMA					BIT(1)
40862306a36Sopenharmony_ci#define CCS_NF_CTRL_COMBINED					BIT(2)
40962306a36Sopenharmony_ci#define CCS_R_OB_READOUT_CONTROL				0x0b30
41062306a36Sopenharmony_ci#define CCS_OB_READOUT_CONTROL_ENABLE				BIT(0)
41162306a36Sopenharmony_ci#define CCS_OB_READOUT_CONTROL_INTERLEAVING			BIT(1)
41262306a36Sopenharmony_ci#define CCS_R_OB_VIRTUAL_CHANNEL				0x0b31
41362306a36Sopenharmony_ci#define CCS_R_OB_DT						0x0b32
41462306a36Sopenharmony_ci#define CCS_R_OB_DATA_FORMAT					0x0b33
41562306a36Sopenharmony_ci#define CCS_R_COLOR_TEMPERATURE					(0x0b8c | CCS_FL_16BIT)
41662306a36Sopenharmony_ci#define CCS_R_ABSOLUTE_GAIN_GREENR				(0x0b8e | CCS_FL_16BIT)
41762306a36Sopenharmony_ci#define CCS_R_ABSOLUTE_GAIN_RED					(0x0b90 | CCS_FL_16BIT)
41862306a36Sopenharmony_ci#define CCS_R_ABSOLUTE_GAIN_BLUE				(0x0b92 | CCS_FL_16BIT)
41962306a36Sopenharmony_ci#define CCS_R_ABSOLUTE_GAIN_GREENB				(0x0b94 | CCS_FL_16BIT)
42062306a36Sopenharmony_ci#define CCS_R_CFA_CONVERSION_CTRL				0x0ba0
42162306a36Sopenharmony_ci#define CCS_CFA_CONVERSION_CTRL_BAYER_CONVERSION_ENABLE		BIT(0)
42262306a36Sopenharmony_ci#define CCS_R_FLASH_STROBE_ADJUSTMENT				0x0c12
42362306a36Sopenharmony_ci#define CCS_R_FLASH_STROBE_START_POINT				(0x0c14 | CCS_FL_16BIT)
42462306a36Sopenharmony_ci#define CCS_R_TFLASH_STROBE_DELAY_RS_CTRL			(0x0c16 | CCS_FL_16BIT)
42562306a36Sopenharmony_ci#define CCS_R_TFLASH_STROBE_WIDTH_HIGH_RS_CTRL			(0x0c18 | CCS_FL_16BIT)
42662306a36Sopenharmony_ci#define CCS_R_FLASH_MODE_RS					0x0c1a
42762306a36Sopenharmony_ci#define CCS_FLASH_MODE_RS_CONTINUOUS				BIT(0)
42862306a36Sopenharmony_ci#define CCS_FLASH_MODE_RS_TRUNCATE				BIT(1)
42962306a36Sopenharmony_ci#define CCS_FLASH_MODE_RS_ASYNC					BIT(3)
43062306a36Sopenharmony_ci#define CCS_R_FLASH_TRIGGER_RS					0x0c1b
43162306a36Sopenharmony_ci#define CCS_R_FLASH_STATUS					0x0c1c
43262306a36Sopenharmony_ci#define CCS_FLASH_STATUS_RETIMED				BIT(0)
43362306a36Sopenharmony_ci#define CCS_R_SA_STROBE_MODE					0x0c1d
43462306a36Sopenharmony_ci#define CCS_SA_STROBE_MODE_CONTINUOUS				BIT(0)
43562306a36Sopenharmony_ci#define CCS_SA_STROBE_MODE_TRUNCATE				BIT(1)
43662306a36Sopenharmony_ci#define CCS_SA_STROBE_MODE_ASYNC				BIT(3)
43762306a36Sopenharmony_ci#define CCS_SA_STROBE_MODE_ADJUST_EDGE				BIT(4)
43862306a36Sopenharmony_ci#define CCS_R_SA_STROBE_START_POINT				(0x0c1e | CCS_FL_16BIT)
43962306a36Sopenharmony_ci#define CCS_R_TSA_STROBE_DELAY_CTRL				(0x0c20 | CCS_FL_16BIT)
44062306a36Sopenharmony_ci#define CCS_R_TSA_STROBE_WIDTH_CTRL				(0x0c22 | CCS_FL_16BIT)
44162306a36Sopenharmony_ci#define CCS_R_SA_STROBE_TRIGGER					0x0c24
44262306a36Sopenharmony_ci#define CCS_R_SA_STROBE_STATUS					0x0c25
44362306a36Sopenharmony_ci#define CCS_SA_STROBE_STATUS_RETIMED				BIT(0)
44462306a36Sopenharmony_ci#define CCS_R_TSA_STROBE_RE_DELAY_CTRL				(0x0c30 | CCS_FL_16BIT)
44562306a36Sopenharmony_ci#define CCS_R_TSA_STROBE_FE_DELAY_CTRL				(0x0c32 | CCS_FL_16BIT)
44662306a36Sopenharmony_ci#define CCS_R_PDAF_CTRL						(0x0d00 | CCS_FL_16BIT)
44762306a36Sopenharmony_ci#define CCS_PDAF_CTRL_ENABLE					BIT(0)
44862306a36Sopenharmony_ci#define CCS_PDAF_CTRL_PROCESSED					BIT(1)
44962306a36Sopenharmony_ci#define CCS_PDAF_CTRL_INTERLEAVED				BIT(2)
45062306a36Sopenharmony_ci#define CCS_PDAF_CTRL_VISIBLE_PDAF_CORRECTION			BIT(3)
45162306a36Sopenharmony_ci#define CCS_R_PDAF_VC						0x0d02
45262306a36Sopenharmony_ci#define CCS_R_PDAF_DT						0x0d03
45362306a36Sopenharmony_ci#define CCS_R_PD_X_ADDR_START					(0x0d04 | CCS_FL_16BIT)
45462306a36Sopenharmony_ci#define CCS_R_PD_Y_ADDR_START					(0x0d06 | CCS_FL_16BIT)
45562306a36Sopenharmony_ci#define CCS_R_PD_X_ADDR_END					(0x0d08 | CCS_FL_16BIT)
45662306a36Sopenharmony_ci#define CCS_R_PD_Y_ADDR_END					(0x0d0a | CCS_FL_16BIT)
45762306a36Sopenharmony_ci#define CCS_R_BRACKETING_LUT_CTRL				0x0e00
45862306a36Sopenharmony_ci#define CCS_R_BRACKETING_LUT_MODE				0x0e01
45962306a36Sopenharmony_ci#define CCS_BRACKETING_LUT_MODE_CONTINUE_STREAMING		BIT(0)
46062306a36Sopenharmony_ci#define CCS_BRACKETING_LUT_MODE_LOOP_MODE			BIT(1)
46162306a36Sopenharmony_ci#define CCS_R_BRACKETING_LUT_ENTRY_CTRL				0x0e02
46262306a36Sopenharmony_ci#define CCS_R_BRACKETING_LUT_FRAME(n)				(0x0e10 + (n))
46362306a36Sopenharmony_ci#define CCS_LIM_BRACKETING_LUT_FRAME_MIN_N			0U
46462306a36Sopenharmony_ci#define CCS_LIM_BRACKETING_LUT_FRAME_MAX_N			239U
46562306a36Sopenharmony_ci#define CCS_R_INTEGRATION_TIME_CAPABILITY			(0x1000 | CCS_FL_16BIT)
46662306a36Sopenharmony_ci#define CCS_INTEGRATION_TIME_CAPABILITY_FINE			BIT(0)
46762306a36Sopenharmony_ci#define CCS_R_COARSE_INTEGRATION_TIME_MIN			(0x1004 | CCS_FL_16BIT)
46862306a36Sopenharmony_ci#define CCS_R_COARSE_INTEGRATION_TIME_MAX_MARGIN		(0x1006 | CCS_FL_16BIT)
46962306a36Sopenharmony_ci#define CCS_R_FINE_INTEGRATION_TIME_MIN				(0x1008 | CCS_FL_16BIT)
47062306a36Sopenharmony_ci#define CCS_R_FINE_INTEGRATION_TIME_MAX_MARGIN			(0x100a | CCS_FL_16BIT)
47162306a36Sopenharmony_ci#define CCS_R_DIGITAL_GAIN_CAPABILITY				0x1081
47262306a36Sopenharmony_ci#define CCS_DIGITAL_GAIN_CAPABILITY_NONE			0U
47362306a36Sopenharmony_ci#define CCS_DIGITAL_GAIN_CAPABILITY_GLOBAL			2U
47462306a36Sopenharmony_ci#define CCS_R_DIGITAL_GAIN_MIN					(0x1084 | CCS_FL_16BIT)
47562306a36Sopenharmony_ci#define CCS_R_DIGITAL_GAIN_MAX					(0x1086 | CCS_FL_16BIT)
47662306a36Sopenharmony_ci#define CCS_R_DIGITAL_GAIN_STEP_SIZE				(0x1088 | CCS_FL_16BIT)
47762306a36Sopenharmony_ci#define CCS_R_PEDESTAL_CAPABILITY				0x10e0
47862306a36Sopenharmony_ci#define CCS_R_ADC_CAPABILITY					0x10f0
47962306a36Sopenharmony_ci#define CCS_ADC_CAPABILITY_BIT_DEPTH_CTRL			BIT(0)
48062306a36Sopenharmony_ci#define CCS_R_ADC_BIT_DEPTH_CAPABILITY				(0x10f4 | CCS_FL_32BIT)
48162306a36Sopenharmony_ci#define CCS_R_MIN_EXT_CLK_FREQ_MHZ				(0x1100 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
48262306a36Sopenharmony_ci#define CCS_R_MAX_EXT_CLK_FREQ_MHZ				(0x1104 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
48362306a36Sopenharmony_ci#define CCS_R_MIN_PRE_PLL_CLK_DIV				(0x1108 | CCS_FL_16BIT)
48462306a36Sopenharmony_ci#define CCS_R_MAX_PRE_PLL_CLK_DIV				(0x110a | CCS_FL_16BIT)
48562306a36Sopenharmony_ci#define CCS_R_MIN_PLL_IP_CLK_FREQ_MHZ				(0x110c | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
48662306a36Sopenharmony_ci#define CCS_R_MAX_PLL_IP_CLK_FREQ_MHZ				(0x1110 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
48762306a36Sopenharmony_ci#define CCS_R_MIN_PLL_MULTIPLIER				(0x1114 | CCS_FL_16BIT)
48862306a36Sopenharmony_ci#define CCS_R_MAX_PLL_MULTIPLIER				(0x1116 | CCS_FL_16BIT)
48962306a36Sopenharmony_ci#define CCS_R_MIN_PLL_OP_CLK_FREQ_MHZ				(0x1118 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
49062306a36Sopenharmony_ci#define CCS_R_MAX_PLL_OP_CLK_FREQ_MHZ				(0x111c | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
49162306a36Sopenharmony_ci#define CCS_R_MIN_VT_SYS_CLK_DIV				(0x1120 | CCS_FL_16BIT)
49262306a36Sopenharmony_ci#define CCS_R_MAX_VT_SYS_CLK_DIV				(0x1122 | CCS_FL_16BIT)
49362306a36Sopenharmony_ci#define CCS_R_MIN_VT_SYS_CLK_FREQ_MHZ				(0x1124 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
49462306a36Sopenharmony_ci#define CCS_R_MAX_VT_SYS_CLK_FREQ_MHZ				(0x1128 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
49562306a36Sopenharmony_ci#define CCS_R_MIN_VT_PIX_CLK_FREQ_MHZ				(0x112c | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
49662306a36Sopenharmony_ci#define CCS_R_MAX_VT_PIX_CLK_FREQ_MHZ				(0x1130 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
49762306a36Sopenharmony_ci#define CCS_R_MIN_VT_PIX_CLK_DIV				(0x1134 | CCS_FL_16BIT)
49862306a36Sopenharmony_ci#define CCS_R_MAX_VT_PIX_CLK_DIV				(0x1136 | CCS_FL_16BIT)
49962306a36Sopenharmony_ci#define CCS_R_CLOCK_CALCULATION					0x1138
50062306a36Sopenharmony_ci#define CCS_CLOCK_CALCULATION_LANE_SPEED			BIT(0)
50162306a36Sopenharmony_ci#define CCS_CLOCK_CALCULATION_LINK_DECOUPLED			BIT(1)
50262306a36Sopenharmony_ci#define CCS_CLOCK_CALCULATION_DUAL_PLL_OP_SYS_DDR		BIT(2)
50362306a36Sopenharmony_ci#define CCS_CLOCK_CALCULATION_DUAL_PLL_OP_PIX_DDR		BIT(3)
50462306a36Sopenharmony_ci#define CCS_R_NUM_OF_VT_LANES					0x1139
50562306a36Sopenharmony_ci#define CCS_R_NUM_OF_OP_LANES					0x113a
50662306a36Sopenharmony_ci#define CCS_R_OP_BITS_PER_LANE					0x113b
50762306a36Sopenharmony_ci#define CCS_R_MIN_FRAME_LENGTH_LINES				(0x1140 | CCS_FL_16BIT)
50862306a36Sopenharmony_ci#define CCS_R_MAX_FRAME_LENGTH_LINES				(0x1142 | CCS_FL_16BIT)
50962306a36Sopenharmony_ci#define CCS_R_MIN_LINE_LENGTH_PCK				(0x1144 | CCS_FL_16BIT)
51062306a36Sopenharmony_ci#define CCS_R_MAX_LINE_LENGTH_PCK				(0x1146 | CCS_FL_16BIT)
51162306a36Sopenharmony_ci#define CCS_R_MIN_LINE_BLANKING_PCK				(0x1148 | CCS_FL_16BIT)
51262306a36Sopenharmony_ci#define CCS_R_MIN_FRAME_BLANKING_LINES				(0x114a | CCS_FL_16BIT)
51362306a36Sopenharmony_ci#define CCS_R_MIN_LINE_LENGTH_PCK_STEP_SIZE			0x114c
51462306a36Sopenharmony_ci#define CCS_R_TIMING_MODE_CAPABILITY				0x114d
51562306a36Sopenharmony_ci#define CCS_TIMING_MODE_CAPABILITY_AUTO_FRAME_LENGTH		BIT(0)
51662306a36Sopenharmony_ci#define CCS_TIMING_MODE_CAPABILITY_ROLLING_SHUTTER_MANUAL_READOUT      BIT(2)
51762306a36Sopenharmony_ci#define CCS_TIMING_MODE_CAPABILITY_DELAYED_EXPOSURE_START	BIT(3)
51862306a36Sopenharmony_ci#define CCS_TIMING_MODE_CAPABILITY_MANUAL_EXPOSURE_EMBEDDED_DATA       BIT(4)
51962306a36Sopenharmony_ci#define CCS_R_FRAME_MARGIN_MAX_VALUE				(0x114e | CCS_FL_16BIT)
52062306a36Sopenharmony_ci#define CCS_R_FRAME_MARGIN_MIN_VALUE				0x1150
52162306a36Sopenharmony_ci#define CCS_R_GAIN_DELAY_TYPE					0x1151
52262306a36Sopenharmony_ci#define CCS_GAIN_DELAY_TYPE_FIXED				0U
52362306a36Sopenharmony_ci#define CCS_GAIN_DELAY_TYPE_VARIABLE				1U
52462306a36Sopenharmony_ci#define CCS_R_MIN_OP_SYS_CLK_DIV				(0x1160 | CCS_FL_16BIT)
52562306a36Sopenharmony_ci#define CCS_R_MAX_OP_SYS_CLK_DIV				(0x1162 | CCS_FL_16BIT)
52662306a36Sopenharmony_ci#define CCS_R_MIN_OP_SYS_CLK_FREQ_MHZ				(0x1164 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
52762306a36Sopenharmony_ci#define CCS_R_MAX_OP_SYS_CLK_FREQ_MHZ				(0x1168 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
52862306a36Sopenharmony_ci#define CCS_R_MIN_OP_PIX_CLK_DIV				(0x116c | CCS_FL_16BIT)
52962306a36Sopenharmony_ci#define CCS_R_MAX_OP_PIX_CLK_DIV				(0x116e | CCS_FL_16BIT)
53062306a36Sopenharmony_ci#define CCS_R_MIN_OP_PIX_CLK_FREQ_MHZ				(0x1170 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
53162306a36Sopenharmony_ci#define CCS_R_MAX_OP_PIX_CLK_FREQ_MHZ				(0x1174 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
53262306a36Sopenharmony_ci#define CCS_R_X_ADDR_MIN					(0x1180 | CCS_FL_16BIT)
53362306a36Sopenharmony_ci#define CCS_R_Y_ADDR_MIN					(0x1182 | CCS_FL_16BIT)
53462306a36Sopenharmony_ci#define CCS_R_X_ADDR_MAX					(0x1184 | CCS_FL_16BIT)
53562306a36Sopenharmony_ci#define CCS_R_Y_ADDR_MAX					(0x1186 | CCS_FL_16BIT)
53662306a36Sopenharmony_ci#define CCS_R_MIN_X_OUTPUT_SIZE					(0x1188 | CCS_FL_16BIT)
53762306a36Sopenharmony_ci#define CCS_R_MIN_Y_OUTPUT_SIZE					(0x118a | CCS_FL_16BIT)
53862306a36Sopenharmony_ci#define CCS_R_MAX_X_OUTPUT_SIZE					(0x118c | CCS_FL_16BIT)
53962306a36Sopenharmony_ci#define CCS_R_MAX_Y_OUTPUT_SIZE					(0x118e | CCS_FL_16BIT)
54062306a36Sopenharmony_ci#define CCS_R_X_ADDR_START_DIV_CONSTANT				0x1190
54162306a36Sopenharmony_ci#define CCS_R_Y_ADDR_START_DIV_CONSTANT				0x1191
54262306a36Sopenharmony_ci#define CCS_R_X_ADDR_END_DIV_CONSTANT				0x1192
54362306a36Sopenharmony_ci#define CCS_R_Y_ADDR_END_DIV_CONSTANT				0x1193
54462306a36Sopenharmony_ci#define CCS_R_X_SIZE_DIV					0x1194
54562306a36Sopenharmony_ci#define CCS_R_Y_SIZE_DIV					0x1195
54662306a36Sopenharmony_ci#define CCS_R_X_OUTPUT_DIV					0x1196
54762306a36Sopenharmony_ci#define CCS_R_Y_OUTPUT_DIV					0x1197
54862306a36Sopenharmony_ci#define CCS_R_NON_FLEXIBLE_RESOLUTION_SUPPORT			0x1198
54962306a36Sopenharmony_ci#define CCS_NON_FLEXIBLE_RESOLUTION_SUPPORT_NEW_PIX_ADDR	BIT(0)
55062306a36Sopenharmony_ci#define CCS_NON_FLEXIBLE_RESOLUTION_SUPPORT_NEW_OUTPUT_RES	BIT(1)
55162306a36Sopenharmony_ci#define CCS_NON_FLEXIBLE_RESOLUTION_SUPPORT_OUTPUT_CROP_NO_PAD	BIT(2)
55262306a36Sopenharmony_ci#define CCS_NON_FLEXIBLE_RESOLUTION_SUPPORT_OUTPUT_SIZE_LANE_DEP       BIT(3)
55362306a36Sopenharmony_ci#define CCS_R_MIN_OP_PRE_PLL_CLK_DIV				(0x11a0 | CCS_FL_16BIT)
55462306a36Sopenharmony_ci#define CCS_R_MAX_OP_PRE_PLL_CLK_DIV				(0x11a2 | CCS_FL_16BIT)
55562306a36Sopenharmony_ci#define CCS_R_MIN_OP_PLL_IP_CLK_FREQ_MHZ			(0x11a4 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
55662306a36Sopenharmony_ci#define CCS_R_MAX_OP_PLL_IP_CLK_FREQ_MHZ			(0x11a8 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
55762306a36Sopenharmony_ci#define CCS_R_MIN_OP_PLL_MULTIPLIER				(0x11ac | CCS_FL_16BIT)
55862306a36Sopenharmony_ci#define CCS_R_MAX_OP_PLL_MULTIPLIER				(0x11ae | CCS_FL_16BIT)
55962306a36Sopenharmony_ci#define CCS_R_MIN_OP_PLL_OP_CLK_FREQ_MHZ			(0x11b0 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
56062306a36Sopenharmony_ci#define CCS_R_MAX_OP_PLL_OP_CLK_FREQ_MHZ			(0x11b4 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
56162306a36Sopenharmony_ci#define CCS_R_CLOCK_TREE_PLL_CAPABILITY				0x11b8
56262306a36Sopenharmony_ci#define CCS_CLOCK_TREE_PLL_CAPABILITY_DUAL_PLL			BIT(0)
56362306a36Sopenharmony_ci#define CCS_CLOCK_TREE_PLL_CAPABILITY_SINGLE_PLL		BIT(1)
56462306a36Sopenharmony_ci#define CCS_CLOCK_TREE_PLL_CAPABILITY_EXT_DIVIDER		BIT(2)
56562306a36Sopenharmony_ci#define CCS_CLOCK_TREE_PLL_CAPABILITY_FLEXIBLE_OP_PIX_CLK_DIV	BIT(3)
56662306a36Sopenharmony_ci#define CCS_R_CLOCK_CAPA_TYPE_CAPABILITY			0x11b9
56762306a36Sopenharmony_ci#define CCS_CLOCK_CAPA_TYPE_CAPABILITY_IREAL			BIT(0)
56862306a36Sopenharmony_ci#define CCS_R_MIN_EVEN_INC					(0x11c0 | CCS_FL_16BIT)
56962306a36Sopenharmony_ci#define CCS_R_MIN_ODD_INC					(0x11c2 | CCS_FL_16BIT)
57062306a36Sopenharmony_ci#define CCS_R_MAX_EVEN_INC					(0x11c4 | CCS_FL_16BIT)
57162306a36Sopenharmony_ci#define CCS_R_MAX_ODD_INC					(0x11c6 | CCS_FL_16BIT)
57262306a36Sopenharmony_ci#define CCS_R_AUX_SUBSAMP_CAPABILITY				0x11c8
57362306a36Sopenharmony_ci#define CCS_AUX_SUBSAMP_CAPABILITY_FACTOR_POWER_OF_2		BIT(1)
57462306a36Sopenharmony_ci#define CCS_R_AUX_SUBSAMP_MONO_CAPABILITY			0x11c9
57562306a36Sopenharmony_ci#define CCS_AUX_SUBSAMP_MONO_CAPABILITY_FACTOR_POWER_OF_2	BIT(1)
57662306a36Sopenharmony_ci#define CCS_R_MONOCHROME_CAPABILITY				0x11ca
57762306a36Sopenharmony_ci#define CCS_MONOCHROME_CAPABILITY_INC_ODD			0U
57862306a36Sopenharmony_ci#define CCS_MONOCHROME_CAPABILITY_INC_EVEN			1U
57962306a36Sopenharmony_ci#define CCS_R_PIXEL_READOUT_CAPABILITY				0x11cb
58062306a36Sopenharmony_ci#define CCS_PIXEL_READOUT_CAPABILITY_BAYER			0U
58162306a36Sopenharmony_ci#define CCS_PIXEL_READOUT_CAPABILITY_MONOCHROME			1U
58262306a36Sopenharmony_ci#define CCS_PIXEL_READOUT_CAPABILITY_BAYER_AND_MONO		2U
58362306a36Sopenharmony_ci#define CCS_R_MIN_EVEN_INC_MONO					(0x11cc | CCS_FL_16BIT)
58462306a36Sopenharmony_ci#define CCS_R_MAX_EVEN_INC_MONO					(0x11ce | CCS_FL_16BIT)
58562306a36Sopenharmony_ci#define CCS_R_MIN_ODD_INC_MONO					(0x11d0 | CCS_FL_16BIT)
58662306a36Sopenharmony_ci#define CCS_R_MAX_ODD_INC_MONO					(0x11d2 | CCS_FL_16BIT)
58762306a36Sopenharmony_ci#define CCS_R_MIN_EVEN_INC_BC2					(0x11d4 | CCS_FL_16BIT)
58862306a36Sopenharmony_ci#define CCS_R_MAX_EVEN_INC_BC2					(0x11d6 | CCS_FL_16BIT)
58962306a36Sopenharmony_ci#define CCS_R_MIN_ODD_INC_BC2					(0x11d8 | CCS_FL_16BIT)
59062306a36Sopenharmony_ci#define CCS_R_MAX_ODD_INC_BC2					(0x11da | CCS_FL_16BIT)
59162306a36Sopenharmony_ci#define CCS_R_MIN_EVEN_INC_MONO_BC2				(0x11dc | CCS_FL_16BIT)
59262306a36Sopenharmony_ci#define CCS_R_MAX_EVEN_INC_MONO_BC2				(0x11de | CCS_FL_16BIT)
59362306a36Sopenharmony_ci#define CCS_R_MIN_ODD_INC_MONO_BC2				(0x11f0 | CCS_FL_16BIT)
59462306a36Sopenharmony_ci#define CCS_R_MAX_ODD_INC_MONO_BC2				(0x11f2 | CCS_FL_16BIT)
59562306a36Sopenharmony_ci#define CCS_R_SCALING_CAPABILITY				(0x1200 | CCS_FL_16BIT)
59662306a36Sopenharmony_ci#define CCS_SCALING_CAPABILITY_NONE				0U
59762306a36Sopenharmony_ci#define CCS_SCALING_CAPABILITY_HORIZONTAL			1U
59862306a36Sopenharmony_ci#define CCS_SCALING_CAPABILITY_RESERVED				2U
59962306a36Sopenharmony_ci#define CCS_R_SCALER_M_MIN					(0x1204 | CCS_FL_16BIT)
60062306a36Sopenharmony_ci#define CCS_R_SCALER_M_MAX					(0x1206 | CCS_FL_16BIT)
60162306a36Sopenharmony_ci#define CCS_R_SCALER_N_MIN					(0x1208 | CCS_FL_16BIT)
60262306a36Sopenharmony_ci#define CCS_R_SCALER_N_MAX					(0x120a | CCS_FL_16BIT)
60362306a36Sopenharmony_ci#define CCS_R_DIGITAL_CROP_CAPABILITY				0x120e
60462306a36Sopenharmony_ci#define CCS_DIGITAL_CROP_CAPABILITY_NONE			0U
60562306a36Sopenharmony_ci#define CCS_DIGITAL_CROP_CAPABILITY_INPUT_CROP			1U
60662306a36Sopenharmony_ci#define CCS_R_HDR_CAPABILITY_1					0x1210
60762306a36Sopenharmony_ci#define CCS_HDR_CAPABILITY_1_2X2_BINNING			BIT(0)
60862306a36Sopenharmony_ci#define CCS_HDR_CAPABILITY_1_COMBINED_ANALOG_GAIN		BIT(1)
60962306a36Sopenharmony_ci#define CCS_HDR_CAPABILITY_1_SEPARATE_ANALOG_GAIN		BIT(2)
61062306a36Sopenharmony_ci#define CCS_HDR_CAPABILITY_1_UPSCALING				BIT(3)
61162306a36Sopenharmony_ci#define CCS_HDR_CAPABILITY_1_RESET_SYNC				BIT(4)
61262306a36Sopenharmony_ci#define CCS_HDR_CAPABILITY_1_DIRECT_SHORT_EXP_TIMING		BIT(5)
61362306a36Sopenharmony_ci#define CCS_HDR_CAPABILITY_1_DIRECT_SHORT_EXP_SYNTHESIS		BIT(6)
61462306a36Sopenharmony_ci#define CCS_R_MIN_HDR_BIT_DEPTH					0x1211
61562306a36Sopenharmony_ci#define CCS_R_HDR_RESOLUTION_SUB_TYPES				0x1212
61662306a36Sopenharmony_ci#define CCS_R_HDR_RESOLUTION_SUB_TYPE(n)			(0x1213 + (n))
61762306a36Sopenharmony_ci#define CCS_LIM_HDR_RESOLUTION_SUB_TYPE_MIN_N			0U
61862306a36Sopenharmony_ci#define CCS_LIM_HDR_RESOLUTION_SUB_TYPE_MAX_N			1U
61962306a36Sopenharmony_ci#define CCS_HDR_RESOLUTION_SUB_TYPE_ROW_SHIFT			0U
62062306a36Sopenharmony_ci#define CCS_HDR_RESOLUTION_SUB_TYPE_ROW_MASK			0xf
62162306a36Sopenharmony_ci#define CCS_HDR_RESOLUTION_SUB_TYPE_COLUMN_SHIFT		4U
62262306a36Sopenharmony_ci#define CCS_HDR_RESOLUTION_SUB_TYPE_COLUMN_MASK			0xf0
62362306a36Sopenharmony_ci#define CCS_R_HDR_CAPABILITY_2					0x121b
62462306a36Sopenharmony_ci#define CCS_HDR_CAPABILITY_2_COMBINED_DIGITAL_GAIN		BIT(0)
62562306a36Sopenharmony_ci#define CCS_HDR_CAPABILITY_2_SEPARATE_DIGITAL_GAIN		BIT(1)
62662306a36Sopenharmony_ci#define CCS_HDR_CAPABILITY_2_TIMING_MODE			BIT(3)
62762306a36Sopenharmony_ci#define CCS_HDR_CAPABILITY_2_SYNTHESIS_MODE			BIT(4)
62862306a36Sopenharmony_ci#define CCS_R_MAX_HDR_BIT_DEPTH					0x121c
62962306a36Sopenharmony_ci#define CCS_R_USL_SUPPORT_CAPABILITY				0x1230
63062306a36Sopenharmony_ci#define CCS_USL_SUPPORT_CAPABILITY_CLOCK_TREE			BIT(0)
63162306a36Sopenharmony_ci#define CCS_USL_SUPPORT_CAPABILITY_REV_CLOCK_TREE		BIT(1)
63262306a36Sopenharmony_ci#define CCS_USL_SUPPORT_CAPABILITY_REV_CLOCK_CALC		BIT(2)
63362306a36Sopenharmony_ci#define CCS_R_USL_CLOCK_MODE_D_CAPABILITY			0x1231
63462306a36Sopenharmony_ci#define CCS_USL_CLOCK_MODE_D_CAPABILITY_CONT_CLOCK_STANDBY	BIT(0)
63562306a36Sopenharmony_ci#define CCS_USL_CLOCK_MODE_D_CAPABILITY_CONT_CLOCK_VBLANK	BIT(1)
63662306a36Sopenharmony_ci#define CCS_USL_CLOCK_MODE_D_CAPABILITY_CONT_CLOCK_HBLANK	BIT(2)
63762306a36Sopenharmony_ci#define CCS_USL_CLOCK_MODE_D_CAPABILITY_NONCONT_CLOCK_STANDBY	BIT(3)
63862306a36Sopenharmony_ci#define CCS_USL_CLOCK_MODE_D_CAPABILITY_NONCONT_CLOCK_VBLANK	BIT(4)
63962306a36Sopenharmony_ci#define CCS_USL_CLOCK_MODE_D_CAPABILITY_NONCONT_CLOCK_HBLANK	BIT(5)
64062306a36Sopenharmony_ci#define CCS_R_MIN_OP_SYS_CLK_DIV_REV				0x1234
64162306a36Sopenharmony_ci#define CCS_R_MAX_OP_SYS_CLK_DIV_REV				0x1236
64262306a36Sopenharmony_ci#define CCS_R_MIN_OP_PIX_CLK_DIV_REV				0x1238
64362306a36Sopenharmony_ci#define CCS_R_MAX_OP_PIX_CLK_DIV_REV				0x123a
64462306a36Sopenharmony_ci#define CCS_R_MIN_OP_SYS_CLK_FREQ_REV_MHZ			(0x123c | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
64562306a36Sopenharmony_ci#define CCS_R_MAX_OP_SYS_CLK_FREQ_REV_MHZ			(0x1240 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
64662306a36Sopenharmony_ci#define CCS_R_MIN_OP_PIX_CLK_FREQ_REV_MHZ			(0x1244 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
64762306a36Sopenharmony_ci#define CCS_R_MAX_OP_PIX_CLK_FREQ_REV_MHZ			(0x1248 | (CCS_FL_32BIT | CCS_FL_FLOAT_IREAL))
64862306a36Sopenharmony_ci#define CCS_R_MAX_BITRATE_REV_D_MODE_MBPS			(0x124c | (CCS_FL_32BIT | CCS_FL_IREAL))
64962306a36Sopenharmony_ci#define CCS_R_MAX_SYMRATE_REV_C_MODE_MSPS			(0x1250 | (CCS_FL_32BIT | CCS_FL_IREAL))
65062306a36Sopenharmony_ci#define CCS_R_COMPRESSION_CAPABILITY				0x1300
65162306a36Sopenharmony_ci#define CCS_COMPRESSION_CAPABILITY_DPCM_PCM_SIMPLE		BIT(0)
65262306a36Sopenharmony_ci#define CCS_R_TEST_MODE_CAPABILITY				(0x1310 | CCS_FL_16BIT)
65362306a36Sopenharmony_ci#define CCS_TEST_MODE_CAPABILITY_SOLID_COLOR			BIT(0)
65462306a36Sopenharmony_ci#define CCS_TEST_MODE_CAPABILITY_COLOR_BARS			BIT(1)
65562306a36Sopenharmony_ci#define CCS_TEST_MODE_CAPABILITY_FADE_TO_GREY			BIT(2)
65662306a36Sopenharmony_ci#define CCS_TEST_MODE_CAPABILITY_PN9				BIT(3)
65762306a36Sopenharmony_ci#define CCS_TEST_MODE_CAPABILITY_COLOR_TILE			BIT(5)
65862306a36Sopenharmony_ci#define CCS_R_PN9_DATA_FORMAT1					0x1312
65962306a36Sopenharmony_ci#define CCS_R_PN9_DATA_FORMAT2					0x1313
66062306a36Sopenharmony_ci#define CCS_R_PN9_DATA_FORMAT3					0x1314
66162306a36Sopenharmony_ci#define CCS_R_PN9_DATA_FORMAT4					0x1315
66262306a36Sopenharmony_ci#define CCS_R_PN9_MISC_CAPABILITY				0x1316
66362306a36Sopenharmony_ci#define CCS_PN9_MISC_CAPABILITY_NUM_PIXELS_SHIFT		0U
66462306a36Sopenharmony_ci#define CCS_PN9_MISC_CAPABILITY_NUM_PIXELS_MASK			0x7
66562306a36Sopenharmony_ci#define CCS_PN9_MISC_CAPABILITY_COMPRESSION			BIT(3)
66662306a36Sopenharmony_ci#define CCS_R_TEST_PATTERN_CAPABILITY				0x1317
66762306a36Sopenharmony_ci#define CCS_TEST_PATTERN_CAPABILITY_NO_REPEAT			BIT(1)
66862306a36Sopenharmony_ci#define CCS_R_PATTERN_SIZE_DIV_M1				0x1318
66962306a36Sopenharmony_ci#define CCS_R_FIFO_SUPPORT_CAPABILITY				0x1502
67062306a36Sopenharmony_ci#define CCS_FIFO_SUPPORT_CAPABILITY_NONE			0U
67162306a36Sopenharmony_ci#define CCS_FIFO_SUPPORT_CAPABILITY_DERATING			1U
67262306a36Sopenharmony_ci#define CCS_FIFO_SUPPORT_CAPABILITY_DERATING_OVERRATING		2U
67362306a36Sopenharmony_ci#define CCS_R_PHY_CTRL_CAPABILITY				0x1600
67462306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_AUTO_PHY_CTL			BIT(0)
67562306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_UI_PHY_CTL			BIT(1)
67662306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_DPHY_TIME_UI_REG_1_CTL		BIT(2)
67762306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_DPHY_TIME_UI_REG_2_CTL		BIT(3)
67862306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_DPHY_TIME_CTL			BIT(4)
67962306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_DPHY_EXT_TIME_UI_REG_1_CTL	BIT(5)
68062306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_DPHY_EXT_TIME_UI_REG_2_CTL	BIT(6)
68162306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_DPHY_EXT_TIME_CTL		BIT(7)
68262306a36Sopenharmony_ci#define CCS_R_CSI_DPHY_LANE_MODE_CAPABILITY			0x1601
68362306a36Sopenharmony_ci#define CCS_CSI_DPHY_LANE_MODE_CAPABILITY_1_LANE		BIT(0)
68462306a36Sopenharmony_ci#define CCS_CSI_DPHY_LANE_MODE_CAPABILITY_2_LANE		BIT(1)
68562306a36Sopenharmony_ci#define CCS_CSI_DPHY_LANE_MODE_CAPABILITY_3_LANE		BIT(2)
68662306a36Sopenharmony_ci#define CCS_CSI_DPHY_LANE_MODE_CAPABILITY_4_LANE		BIT(3)
68762306a36Sopenharmony_ci#define CCS_CSI_DPHY_LANE_MODE_CAPABILITY_5_LANE		BIT(4)
68862306a36Sopenharmony_ci#define CCS_CSI_DPHY_LANE_MODE_CAPABILITY_6_LANE		BIT(5)
68962306a36Sopenharmony_ci#define CCS_CSI_DPHY_LANE_MODE_CAPABILITY_7_LANE		BIT(6)
69062306a36Sopenharmony_ci#define CCS_CSI_DPHY_LANE_MODE_CAPABILITY_8_LANE		BIT(7)
69162306a36Sopenharmony_ci#define CCS_R_CSI_SIGNALING_MODE_CAPABILITY			0x1602
69262306a36Sopenharmony_ci#define CCS_CSI_SIGNALING_MODE_CAPABILITY_CSI_DPHY		BIT(2)
69362306a36Sopenharmony_ci#define CCS_CSI_SIGNALING_MODE_CAPABILITY_CSI_CPHY		BIT(3)
69462306a36Sopenharmony_ci#define CCS_R_FAST_STANDBY_CAPABILITY				0x1603
69562306a36Sopenharmony_ci#define CCS_FAST_STANDBY_CAPABILITY_NO_FRAME_TRUNCATION		0U
69662306a36Sopenharmony_ci#define CCS_FAST_STANDBY_CAPABILITY_FRAME_TRUNCATION		1U
69762306a36Sopenharmony_ci#define CCS_R_CSI_ADDRESS_CONTROL_CAPABILITY			0x1604
69862306a36Sopenharmony_ci#define CCS_CSI_ADDRESS_CONTROL_CAPABILITY_CCI_ADDR_CHANGE	BIT(0)
69962306a36Sopenharmony_ci#define CCS_CSI_ADDRESS_CONTROL_CAPABILITY_2ND_CCI_ADDR		BIT(1)
70062306a36Sopenharmony_ci#define CCS_CSI_ADDRESS_CONTROL_CAPABILITY_SW_CHANGEABLE_2ND_CCI_ADDR  BIT(2)
70162306a36Sopenharmony_ci#define CCS_R_DATA_TYPE_CAPABILITY				0x1605
70262306a36Sopenharmony_ci#define CCS_DATA_TYPE_CAPABILITY_DPCM_PROGRAMMABLE		BIT(0)
70362306a36Sopenharmony_ci#define CCS_DATA_TYPE_CAPABILITY_BOTTOM_EMBEDDED_DT_PROGRAMMABLE       BIT(1)
70462306a36Sopenharmony_ci#define CCS_DATA_TYPE_CAPABILITY_BOTTOM_EMBEDDED_VC_PROGRAMMABLE       BIT(2)
70562306a36Sopenharmony_ci#define CCS_DATA_TYPE_CAPABILITY_EXT_VC_RANGE			BIT(3)
70662306a36Sopenharmony_ci#define CCS_R_CSI_CPHY_LANE_MODE_CAPABILITY			0x1606
70762306a36Sopenharmony_ci#define CCS_CSI_CPHY_LANE_MODE_CAPABILITY_1_LANE		BIT(0)
70862306a36Sopenharmony_ci#define CCS_CSI_CPHY_LANE_MODE_CAPABILITY_2_LANE		BIT(1)
70962306a36Sopenharmony_ci#define CCS_CSI_CPHY_LANE_MODE_CAPABILITY_3_LANE		BIT(2)
71062306a36Sopenharmony_ci#define CCS_CSI_CPHY_LANE_MODE_CAPABILITY_4_LANE		BIT(3)
71162306a36Sopenharmony_ci#define CCS_CSI_CPHY_LANE_MODE_CAPABILITY_5_LANE		BIT(4)
71262306a36Sopenharmony_ci#define CCS_CSI_CPHY_LANE_MODE_CAPABILITY_6_LANE		BIT(5)
71362306a36Sopenharmony_ci#define CCS_CSI_CPHY_LANE_MODE_CAPABILITY_7_LANE		BIT(6)
71462306a36Sopenharmony_ci#define CCS_CSI_CPHY_LANE_MODE_CAPABILITY_8_LANE		BIT(7)
71562306a36Sopenharmony_ci#define CCS_R_EMB_DATA_CAPABILITY				0x1607
71662306a36Sopenharmony_ci#define CCS_EMB_DATA_CAPABILITY_TWO_BYTES_PER_RAW16		BIT(0)
71762306a36Sopenharmony_ci#define CCS_EMB_DATA_CAPABILITY_TWO_BYTES_PER_RAW20		BIT(1)
71862306a36Sopenharmony_ci#define CCS_EMB_DATA_CAPABILITY_TWO_BYTES_PER_RAW24		BIT(2)
71962306a36Sopenharmony_ci#define CCS_EMB_DATA_CAPABILITY_NO_ONE_BYTE_PER_RAW16		BIT(3)
72062306a36Sopenharmony_ci#define CCS_EMB_DATA_CAPABILITY_NO_ONE_BYTE_PER_RAW20		BIT(4)
72162306a36Sopenharmony_ci#define CCS_EMB_DATA_CAPABILITY_NO_ONE_BYTE_PER_RAW24		BIT(5)
72262306a36Sopenharmony_ci#define CCS_R_MAX_PER_LANE_BITRATE_LANE_D_MODE_MBPS(n)		((0x1608 | (CCS_FL_32BIT | CCS_FL_IREAL)) + ((n) < 4 ? (n) * 4 : 0x32 + ((n) - 4) * 4))
72362306a36Sopenharmony_ci#define CCS_LIM_MAX_PER_LANE_BITRATE_LANE_D_MODE_MBPS_MIN_N	0U
72462306a36Sopenharmony_ci#define CCS_LIM_MAX_PER_LANE_BITRATE_LANE_D_MODE_MBPS_MAX_N	7U
72562306a36Sopenharmony_ci#define CCS_R_TEMP_SENSOR_CAPABILITY				0x1618
72662306a36Sopenharmony_ci#define CCS_TEMP_SENSOR_CAPABILITY_SUPPORTED			BIT(0)
72762306a36Sopenharmony_ci#define CCS_TEMP_SENSOR_CAPABILITY_CCS_FORMAT			BIT(1)
72862306a36Sopenharmony_ci#define CCS_TEMP_SENSOR_CAPABILITY_RESET_0X80			BIT(2)
72962306a36Sopenharmony_ci#define CCS_R_MAX_PER_LANE_BITRATE_LANE_C_MODE_MBPS(n)		((0x161a | (CCS_FL_32BIT | CCS_FL_IREAL)) + ((n) < 4 ? (n) * 4 : 0x30 + ((n) - 4) * 4))
73062306a36Sopenharmony_ci#define CCS_LIM_MAX_PER_LANE_BITRATE_LANE_C_MODE_MBPS_MIN_N	0U
73162306a36Sopenharmony_ci#define CCS_LIM_MAX_PER_LANE_BITRATE_LANE_C_MODE_MBPS_MAX_N	7U
73262306a36Sopenharmony_ci#define CCS_R_DPHY_EQUALIZATION_CAPABILITY			0x162b
73362306a36Sopenharmony_ci#define CCS_DPHY_EQUALIZATION_CAPABILITY_EQUALIZATION_CTRL	BIT(0)
73462306a36Sopenharmony_ci#define CCS_DPHY_EQUALIZATION_CAPABILITY_EQ1			BIT(1)
73562306a36Sopenharmony_ci#define CCS_DPHY_EQUALIZATION_CAPABILITY_EQ2			BIT(2)
73662306a36Sopenharmony_ci#define CCS_R_CPHY_EQUALIZATION_CAPABILITY			0x162c
73762306a36Sopenharmony_ci#define CCS_CPHY_EQUALIZATION_CAPABILITY_EQUALIZATION_CTRL	BIT(0)
73862306a36Sopenharmony_ci#define CCS_R_DPHY_PREAMBLE_CAPABILITY				0x162d
73962306a36Sopenharmony_ci#define CCS_DPHY_PREAMBLE_CAPABILITY_PREAMBLE_SEQ_CTRL		BIT(0)
74062306a36Sopenharmony_ci#define CCS_R_DPHY_SSC_CAPABILITY				0x162e
74162306a36Sopenharmony_ci#define CCS_DPHY_SSC_CAPABILITY_SUPPORTED			BIT(0)
74262306a36Sopenharmony_ci#define CCS_R_CPHY_CALIBRATION_CAPABILITY			0x162f
74362306a36Sopenharmony_ci#define CCS_CPHY_CALIBRATION_CAPABILITY_MANUAL			BIT(0)
74462306a36Sopenharmony_ci#define CCS_CPHY_CALIBRATION_CAPABILITY_MANUAL_STREAMING	BIT(1)
74562306a36Sopenharmony_ci#define CCS_CPHY_CALIBRATION_CAPABILITY_FORMAT_1_CTRL		BIT(2)
74662306a36Sopenharmony_ci#define CCS_CPHY_CALIBRATION_CAPABILITY_FORMAT_2_CTRL		BIT(3)
74762306a36Sopenharmony_ci#define CCS_CPHY_CALIBRATION_CAPABILITY_FORMAT_3_CTRL		BIT(4)
74862306a36Sopenharmony_ci#define CCS_R_DPHY_CALIBRATION_CAPABILITY			0x1630
74962306a36Sopenharmony_ci#define CCS_DPHY_CALIBRATION_CAPABILITY_MANUAL			BIT(0)
75062306a36Sopenharmony_ci#define CCS_DPHY_CALIBRATION_CAPABILITY_MANUAL_STREAMING	BIT(1)
75162306a36Sopenharmony_ci#define CCS_DPHY_CALIBRATION_CAPABILITY_ALTERNATE_SEQ		BIT(2)
75262306a36Sopenharmony_ci#define CCS_R_PHY_CTRL_CAPABILITY_2				0x1631
75362306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_2_TGR_LENGTH			BIT(0)
75462306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_2_TGR_PREAMBLE_PROG_SEQ		BIT(1)
75562306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_2_EXTRA_CPHY_MANUAL_TIMING	BIT(2)
75662306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_2_CLOCK_BASED_MANUAL_CDPHY	BIT(3)
75762306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_2_CLOCK_BASED_MANUAL_DPHY	BIT(4)
75862306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_2_CLOCK_BASED_MANUAL_CPHY	BIT(5)
75962306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_2_MANUAL_LP_DPHY		BIT(6)
76062306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_2_MANUAL_LP_CPHY		BIT(7)
76162306a36Sopenharmony_ci#define CCS_R_LRTE_CPHY_CAPABILITY				0x1632
76262306a36Sopenharmony_ci#define CCS_LRTE_CPHY_CAPABILITY_PDQ_SHORT			BIT(0)
76362306a36Sopenharmony_ci#define CCS_LRTE_CPHY_CAPABILITY_SPACER_SHORT			BIT(1)
76462306a36Sopenharmony_ci#define CCS_LRTE_CPHY_CAPABILITY_PDQ_LONG			BIT(2)
76562306a36Sopenharmony_ci#define CCS_LRTE_CPHY_CAPABILITY_SPACER_LONG			BIT(3)
76662306a36Sopenharmony_ci#define CCS_LRTE_CPHY_CAPABILITY_SPACER_NO_PDQ			BIT(4)
76762306a36Sopenharmony_ci#define CCS_R_LRTE_DPHY_CAPABILITY				0x1633
76862306a36Sopenharmony_ci#define CCS_LRTE_DPHY_CAPABILITY_PDQ_SHORT_OPT1			BIT(0)
76962306a36Sopenharmony_ci#define CCS_LRTE_DPHY_CAPABILITY_SPACER_SHORT_OPT1		BIT(1)
77062306a36Sopenharmony_ci#define CCS_LRTE_DPHY_CAPABILITY_PDQ_LONG_OPT1			BIT(2)
77162306a36Sopenharmony_ci#define CCS_LRTE_DPHY_CAPABILITY_SPACER_LONG_OPT1		BIT(3)
77262306a36Sopenharmony_ci#define CCS_LRTE_DPHY_CAPABILITY_SPACER_SHORT_OPT2		BIT(4)
77362306a36Sopenharmony_ci#define CCS_LRTE_DPHY_CAPABILITY_SPACER_LONG_OPT2		BIT(5)
77462306a36Sopenharmony_ci#define CCS_LRTE_DPHY_CAPABILITY_SPACER_NO_PDQ_OPT1		BIT(6)
77562306a36Sopenharmony_ci#define CCS_LRTE_DPHY_CAPABILITY_SPACER_VARIABLE_OPT2		BIT(7)
77662306a36Sopenharmony_ci#define CCS_R_ALPS_CAPABILITY_DPHY				0x1634
77762306a36Sopenharmony_ci#define CCS_ALPS_CAPABILITY_DPHY_LVLP_NOT_SUPPORTED		0U
77862306a36Sopenharmony_ci#define CCS_ALPS_CAPABILITY_DPHY_LVLP_SUPPORTED			1U
77962306a36Sopenharmony_ci#define CCS_ALPS_CAPABILITY_DPHY_CONTROLLABLE_LVLP		2U
78062306a36Sopenharmony_ci#define CCS_R_ALPS_CAPABILITY_CPHY				0x1635
78162306a36Sopenharmony_ci#define CCS_ALPS_CAPABILITY_CPHY_LVLP_NOT_SUPPORTED		0U
78262306a36Sopenharmony_ci#define CCS_ALPS_CAPABILITY_CPHY_LVLP_SUPPORTED			1U
78362306a36Sopenharmony_ci#define CCS_ALPS_CAPABILITY_CPHY_CONTROLLABLE_LVLP		2U
78462306a36Sopenharmony_ci#define CCS_ALPS_CAPABILITY_CPHY_ALP_NOT_SUPPORTED		0xc
78562306a36Sopenharmony_ci#define CCS_ALPS_CAPABILITY_CPHY_ALP_SUPPORTED			0xd
78662306a36Sopenharmony_ci#define CCS_ALPS_CAPABILITY_CPHY_CONTROLLABLE_ALP		0xe
78762306a36Sopenharmony_ci#define CCS_R_SCRAMBLING_CAPABILITY				0x1636
78862306a36Sopenharmony_ci#define CCS_SCRAMBLING_CAPABILITY_SCRAMBLING_SUPPORTED		BIT(0)
78962306a36Sopenharmony_ci#define CCS_SCRAMBLING_CAPABILITY_MAX_SEEDS_PER_LANE_C_SHIFT	1U
79062306a36Sopenharmony_ci#define CCS_SCRAMBLING_CAPABILITY_MAX_SEEDS_PER_LANE_C_MASK	0x6
79162306a36Sopenharmony_ci#define CCS_SCRAMBLING_CAPABILITY_MAX_SEEDS_PER_LANE_C_1	0U
79262306a36Sopenharmony_ci#define CCS_SCRAMBLING_CAPABILITY_MAX_SEEDS_PER_LANE_C_4	3U
79362306a36Sopenharmony_ci#define CCS_SCRAMBLING_CAPABILITY_NUM_SEED_REGS_SHIFT		3U
79462306a36Sopenharmony_ci#define CCS_SCRAMBLING_CAPABILITY_NUM_SEED_REGS_MASK		0x38
79562306a36Sopenharmony_ci#define CCS_SCRAMBLING_CAPABILITY_NUM_SEED_REGS_0		0U
79662306a36Sopenharmony_ci#define CCS_SCRAMBLING_CAPABILITY_NUM_SEED_REGS_1		1U
79762306a36Sopenharmony_ci#define CCS_SCRAMBLING_CAPABILITY_NUM_SEED_REGS_4		4U
79862306a36Sopenharmony_ci#define CCS_SCRAMBLING_CAPABILITY_NUM_SEED_PER_LANE		BIT(6)
79962306a36Sopenharmony_ci#define CCS_R_DPHY_MANUAL_CONSTANT				0x1637
80062306a36Sopenharmony_ci#define CCS_R_CPHY_MANUAL_CONSTANT				0x1638
80162306a36Sopenharmony_ci#define CCS_R_CSI2_INTERFACE_CAPABILITY_MISC			0x1639
80262306a36Sopenharmony_ci#define CCS_CSI2_INTERFACE_CAPABILITY_MISC_EOTP_SHORT_PKT_OPT2	BIT(0)
80362306a36Sopenharmony_ci#define CCS_R_PHY_CTRL_CAPABILITY_3				0x165c
80462306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_3_DPHY_TIMING_NOT_MULTIPLE	BIT(0)
80562306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_3_DPHY_MIN_TIMING_VALUE_1	BIT(1)
80662306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_3_TWAKEUP_SUPPORTED		BIT(2)
80762306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_3_TINIT_SUPPORTED		BIT(3)
80862306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_3_THS_EXIT_SUPPORTED		BIT(4)
80962306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_3_CPHY_TIMING_NOT_MULTIPLE	BIT(5)
81062306a36Sopenharmony_ci#define CCS_PHY_CTRL_CAPABILITY_3_CPHY_MIN_TIMING_VALUE_1	BIT(6)
81162306a36Sopenharmony_ci#define CCS_R_DPHY_SF						0x165d
81262306a36Sopenharmony_ci#define CCS_R_CPHY_SF						0x165e
81362306a36Sopenharmony_ci#define CCS_CPHY_SF_TWAKEUP_SHIFT				0U
81462306a36Sopenharmony_ci#define CCS_CPHY_SF_TWAKEUP_MASK				0xf
81562306a36Sopenharmony_ci#define CCS_CPHY_SF_TINIT_SHIFT					4U
81662306a36Sopenharmony_ci#define CCS_CPHY_SF_TINIT_MASK					0xf0
81762306a36Sopenharmony_ci#define CCS_R_DPHY_LIMITS_1					0x165f
81862306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_1_THS_PREPARE_SHIFT			0U
81962306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_1_THS_PREPARE_MASK			0xf
82062306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_1_THS_ZERO_SHIFT			4U
82162306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_1_THS_ZERO_MASK				0xf0
82262306a36Sopenharmony_ci#define CCS_R_DPHY_LIMITS_2					0x1660
82362306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_2_THS_TRAIL_SHIFT			0U
82462306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_2_THS_TRAIL_MASK			0xf
82562306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_2_TCLK_TRAIL_MIN_SHIFT			4U
82662306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_2_TCLK_TRAIL_MIN_MASK			0xf0
82762306a36Sopenharmony_ci#define CCS_R_DPHY_LIMITS_3					0x1661
82862306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_3_TCLK_PREPARE_SHIFT			0U
82962306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_3_TCLK_PREPARE_MASK			0xf
83062306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_3_TCLK_ZERO_SHIFT			4U
83162306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_3_TCLK_ZERO_MASK			0xf0
83262306a36Sopenharmony_ci#define CCS_R_DPHY_LIMITS_4					0x1662
83362306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_4_TCLK_POST_SHIFT			0U
83462306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_4_TCLK_POST_MASK			0xf
83562306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_4_TLPX_SHIFT				4U
83662306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_4_TLPX_MASK				0xf0
83762306a36Sopenharmony_ci#define CCS_R_DPHY_LIMITS_5					0x1663
83862306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_5_THS_EXIT_SHIFT			0U
83962306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_5_THS_EXIT_MASK				0xf
84062306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_5_TWAKEUP_SHIFT				4U
84162306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_5_TWAKEUP_MASK				0xf0
84262306a36Sopenharmony_ci#define CCS_R_DPHY_LIMITS_6					0x1664
84362306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_6_TINIT_SHIFT				0U
84462306a36Sopenharmony_ci#define CCS_DPHY_LIMITS_6_TINIT_MASK				0xf
84562306a36Sopenharmony_ci#define CCS_R_CPHY_LIMITS_1					0x1665
84662306a36Sopenharmony_ci#define CCS_CPHY_LIMITS_1_T3_PREPARE_MAX_SHIFT			0U
84762306a36Sopenharmony_ci#define CCS_CPHY_LIMITS_1_T3_PREPARE_MAX_MASK			0xf
84862306a36Sopenharmony_ci#define CCS_CPHY_LIMITS_1_T3_LPX_MAX_SHIFT			4U
84962306a36Sopenharmony_ci#define CCS_CPHY_LIMITS_1_T3_LPX_MAX_MASK			0xf0
85062306a36Sopenharmony_ci#define CCS_R_CPHY_LIMITS_2					0x1666
85162306a36Sopenharmony_ci#define CCS_CPHY_LIMITS_2_THS_EXIT_MAX_SHIFT			0U
85262306a36Sopenharmony_ci#define CCS_CPHY_LIMITS_2_THS_EXIT_MAX_MASK			0xf
85362306a36Sopenharmony_ci#define CCS_CPHY_LIMITS_2_TWAKEUP_MAX_SHIFT			4U
85462306a36Sopenharmony_ci#define CCS_CPHY_LIMITS_2_TWAKEUP_MAX_MASK			0xf0
85562306a36Sopenharmony_ci#define CCS_R_CPHY_LIMITS_3					0x1667
85662306a36Sopenharmony_ci#define CCS_CPHY_LIMITS_3_TINIT_MAX_SHIFT			0U
85762306a36Sopenharmony_ci#define CCS_CPHY_LIMITS_3_TINIT_MAX_MASK			0xf
85862306a36Sopenharmony_ci#define CCS_R_MIN_FRAME_LENGTH_LINES_BIN			(0x1700 | CCS_FL_16BIT)
85962306a36Sopenharmony_ci#define CCS_R_MAX_FRAME_LENGTH_LINES_BIN			(0x1702 | CCS_FL_16BIT)
86062306a36Sopenharmony_ci#define CCS_R_MIN_LINE_LENGTH_PCK_BIN				(0x1704 | CCS_FL_16BIT)
86162306a36Sopenharmony_ci#define CCS_R_MAX_LINE_LENGTH_PCK_BIN				(0x1706 | CCS_FL_16BIT)
86262306a36Sopenharmony_ci#define CCS_R_MIN_LINE_BLANKING_PCK_BIN				(0x1708 | CCS_FL_16BIT)
86362306a36Sopenharmony_ci#define CCS_R_FINE_INTEGRATION_TIME_MIN_BIN			(0x170a | CCS_FL_16BIT)
86462306a36Sopenharmony_ci#define CCS_R_FINE_INTEGRATION_TIME_MAX_MARGIN_BIN		(0x170c | CCS_FL_16BIT)
86562306a36Sopenharmony_ci#define CCS_R_BINNING_CAPABILITY				0x1710
86662306a36Sopenharmony_ci#define CCS_BINNING_CAPABILITY_UNSUPPORTED			0U
86762306a36Sopenharmony_ci#define CCS_BINNING_CAPABILITY_BINNING_THEN_SUBSAMPLING		1U
86862306a36Sopenharmony_ci#define CCS_BINNING_CAPABILITY_SUBSAMPLING_THEN_BINNING		2U
86962306a36Sopenharmony_ci#define CCS_R_BINNING_WEIGHTING_CAPABILITY			0x1711
87062306a36Sopenharmony_ci#define CCS_BINNING_WEIGHTING_CAPABILITY_AVERAGED		BIT(0)
87162306a36Sopenharmony_ci#define CCS_BINNING_WEIGHTING_CAPABILITY_SUMMED			BIT(1)
87262306a36Sopenharmony_ci#define CCS_BINNING_WEIGHTING_CAPABILITY_BAYER_CORRECTED	BIT(2)
87362306a36Sopenharmony_ci#define CCS_BINNING_WEIGHTING_CAPABILITY_MODULE_SPECIFIC_WEIGHT	BIT(3)
87462306a36Sopenharmony_ci#define CCS_R_BINNING_SUB_TYPES					0x1712
87562306a36Sopenharmony_ci#define CCS_R_BINNING_SUB_TYPE(n)				(0x1713 + (n))
87662306a36Sopenharmony_ci#define CCS_LIM_BINNING_SUB_TYPE_MIN_N				0U
87762306a36Sopenharmony_ci#define CCS_LIM_BINNING_SUB_TYPE_MAX_N				63U
87862306a36Sopenharmony_ci#define CCS_BINNING_SUB_TYPE_ROW_SHIFT				0U
87962306a36Sopenharmony_ci#define CCS_BINNING_SUB_TYPE_ROW_MASK				0xf
88062306a36Sopenharmony_ci#define CCS_BINNING_SUB_TYPE_COLUMN_SHIFT			4U
88162306a36Sopenharmony_ci#define CCS_BINNING_SUB_TYPE_COLUMN_MASK			0xf0
88262306a36Sopenharmony_ci#define CCS_R_BINNING_WEIGHTING_MONO_CAPABILITY			0x1771
88362306a36Sopenharmony_ci#define CCS_BINNING_WEIGHTING_MONO_CAPABILITY_AVERAGED		BIT(0)
88462306a36Sopenharmony_ci#define CCS_BINNING_WEIGHTING_MONO_CAPABILITY_SUMMED		BIT(1)
88562306a36Sopenharmony_ci#define CCS_BINNING_WEIGHTING_MONO_CAPABILITY_BAYER_CORRECTED	BIT(2)
88662306a36Sopenharmony_ci#define CCS_BINNING_WEIGHTING_MONO_CAPABILITY_MODULE_SPECIFIC_WEIGHT   BIT(3)
88762306a36Sopenharmony_ci#define CCS_R_BINNING_SUB_TYPES_MONO				0x1772
88862306a36Sopenharmony_ci#define CCS_R_BINNING_SUB_TYPE_MONO(n)				(0x1773 + (n))
88962306a36Sopenharmony_ci#define CCS_LIM_BINNING_SUB_TYPE_MONO_MIN_N			0U
89062306a36Sopenharmony_ci#define CCS_LIM_BINNING_SUB_TYPE_MONO_MAX_N			63U
89162306a36Sopenharmony_ci#define CCS_R_DATA_TRANSFER_IF_CAPABILITY			0x1800
89262306a36Sopenharmony_ci#define CCS_DATA_TRANSFER_IF_CAPABILITY_SUPPORTED		BIT(0)
89362306a36Sopenharmony_ci#define CCS_DATA_TRANSFER_IF_CAPABILITY_POLLING			BIT(2)
89462306a36Sopenharmony_ci#define CCS_R_SHADING_CORRECTION_CAPABILITY			0x1900
89562306a36Sopenharmony_ci#define CCS_SHADING_CORRECTION_CAPABILITY_COLOR_SHADING		BIT(0)
89662306a36Sopenharmony_ci#define CCS_SHADING_CORRECTION_CAPABILITY_LUMINANCE_CORRECTION	BIT(1)
89762306a36Sopenharmony_ci#define CCS_R_GREEN_IMBALANCE_CAPABILITY			0x1901
89862306a36Sopenharmony_ci#define CCS_GREEN_IMBALANCE_CAPABILITY_SUPPORTED		BIT(0)
89962306a36Sopenharmony_ci#define CCS_R_MODULE_SPECIFIC_CORRECTION_CAPABILITY		0x1903
90062306a36Sopenharmony_ci#define CCS_R_DEFECT_CORRECTION_CAPABILITY			(0x1904 | CCS_FL_16BIT)
90162306a36Sopenharmony_ci#define CCS_DEFECT_CORRECTION_CAPABILITY_MAPPED_DEFECT		BIT(0)
90262306a36Sopenharmony_ci#define CCS_DEFECT_CORRECTION_CAPABILITY_DYNAMIC_COUPLET	BIT(2)
90362306a36Sopenharmony_ci#define CCS_DEFECT_CORRECTION_CAPABILITY_DYNAMIC_SINGLE		BIT(5)
90462306a36Sopenharmony_ci#define CCS_DEFECT_CORRECTION_CAPABILITY_COMBINED_DYNAMIC	BIT(8)
90562306a36Sopenharmony_ci#define CCS_R_DEFECT_CORRECTION_CAPABILITY_2			(0x1906 | CCS_FL_16BIT)
90662306a36Sopenharmony_ci#define CCS_DEFECT_CORRECTION_CAPABILITY_2_DYNAMIC_TRIPLET	BIT(3)
90762306a36Sopenharmony_ci#define CCS_R_NF_CAPABILITY					0x1908
90862306a36Sopenharmony_ci#define CCS_NF_CAPABILITY_LUMA					BIT(0)
90962306a36Sopenharmony_ci#define CCS_NF_CAPABILITY_CHROMA				BIT(1)
91062306a36Sopenharmony_ci#define CCS_NF_CAPABILITY_COMBINED				BIT(2)
91162306a36Sopenharmony_ci#define CCS_R_OB_READOUT_CAPABILITY				0x1980
91262306a36Sopenharmony_ci#define CCS_OB_READOUT_CAPABILITY_CONTROLLABLE_READOUT		BIT(0)
91362306a36Sopenharmony_ci#define CCS_OB_READOUT_CAPABILITY_VISIBLE_PIXEL_READOUT		BIT(1)
91462306a36Sopenharmony_ci#define CCS_OB_READOUT_CAPABILITY_DIFFERENT_VC_READOUT		BIT(2)
91562306a36Sopenharmony_ci#define CCS_OB_READOUT_CAPABILITY_DIFFERENT_DT_READOUT		BIT(3)
91662306a36Sopenharmony_ci#define CCS_OB_READOUT_CAPABILITY_PROG_DATA_FORMAT		BIT(4)
91762306a36Sopenharmony_ci#define CCS_R_COLOR_FEEDBACK_CAPABILITY				0x1987
91862306a36Sopenharmony_ci#define CCS_COLOR_FEEDBACK_CAPABILITY_KELVIN			BIT(0)
91962306a36Sopenharmony_ci#define CCS_COLOR_FEEDBACK_CAPABILITY_AWB_GAIN			BIT(1)
92062306a36Sopenharmony_ci#define CCS_R_CFA_PATTERN_CAPABILITY				0x1990
92162306a36Sopenharmony_ci#define CCS_CFA_PATTERN_CAPABILITY_BAYER			0U
92262306a36Sopenharmony_ci#define CCS_CFA_PATTERN_CAPABILITY_MONOCHROME			1U
92362306a36Sopenharmony_ci#define CCS_CFA_PATTERN_CAPABILITY_4X4_QUAD_BAYER		2U
92462306a36Sopenharmony_ci#define CCS_CFA_PATTERN_CAPABILITY_VENDOR_SPECIFIC		3U
92562306a36Sopenharmony_ci#define CCS_R_CFA_PATTERN_CONVERSION_CAPABILITY			0x1991
92662306a36Sopenharmony_ci#define CCS_CFA_PATTERN_CONVERSION_CAPABILITY_BAYER		BIT(0)
92762306a36Sopenharmony_ci#define CCS_R_FLASH_MODE_CAPABILITY				0x1a02
92862306a36Sopenharmony_ci#define CCS_FLASH_MODE_CAPABILITY_SINGLE_STROBE			BIT(0)
92962306a36Sopenharmony_ci#define CCS_R_SA_STROBE_MODE_CAPABILITY				0x1a03
93062306a36Sopenharmony_ci#define CCS_SA_STROBE_MODE_CAPABILITY_FIXED_WIDTH		BIT(0)
93162306a36Sopenharmony_ci#define CCS_SA_STROBE_MODE_CAPABILITY_EDGE_CTRL			BIT(1)
93262306a36Sopenharmony_ci#define CCS_R_RESET_MAX_DELAY					0x1a10
93362306a36Sopenharmony_ci#define CCS_R_RESET_MIN_TIME					0x1a11
93462306a36Sopenharmony_ci#define CCS_R_PDAF_CAPABILITY_1					0x1b80
93562306a36Sopenharmony_ci#define CCS_PDAF_CAPABILITY_1_SUPPORTED				BIT(0)
93662306a36Sopenharmony_ci#define CCS_PDAF_CAPABILITY_1_PROCESSED_BOTTOM_EMBEDDED		BIT(1)
93762306a36Sopenharmony_ci#define CCS_PDAF_CAPABILITY_1_PROCESSED_INTERLEAVED		BIT(2)
93862306a36Sopenharmony_ci#define CCS_PDAF_CAPABILITY_1_RAW_BOTTOM_EMBEDDED		BIT(3)
93962306a36Sopenharmony_ci#define CCS_PDAF_CAPABILITY_1_RAW_INTERLEAVED			BIT(4)
94062306a36Sopenharmony_ci#define CCS_PDAF_CAPABILITY_1_VISIBLE_PDAF_CORRECTION		BIT(5)
94162306a36Sopenharmony_ci#define CCS_PDAF_CAPABILITY_1_VC_INTERLEAVING			BIT(6)
94262306a36Sopenharmony_ci#define CCS_PDAF_CAPABILITY_1_DT_INTERLEAVING			BIT(7)
94362306a36Sopenharmony_ci#define CCS_R_PDAF_CAPABILITY_2					0x1b81
94462306a36Sopenharmony_ci#define CCS_PDAF_CAPABILITY_2_ROI				BIT(0)
94562306a36Sopenharmony_ci#define CCS_PDAF_CAPABILITY_2_AFTER_DIGITAL_CROP		BIT(1)
94662306a36Sopenharmony_ci#define CCS_PDAF_CAPABILITY_2_CTRL_RETIMED			BIT(2)
94762306a36Sopenharmony_ci#define CCS_R_BRACKETING_LUT_CAPABILITY_1			0x1c00
94862306a36Sopenharmony_ci#define CCS_BRACKETING_LUT_CAPABILITY_1_COARSE_INTEGRATION	BIT(0)
94962306a36Sopenharmony_ci#define CCS_BRACKETING_LUT_CAPABILITY_1_GLOBAL_ANALOG_GAIN	BIT(1)
95062306a36Sopenharmony_ci#define CCS_BRACKETING_LUT_CAPABILITY_1_FLASH			BIT(4)
95162306a36Sopenharmony_ci#define CCS_BRACKETING_LUT_CAPABILITY_1_GLOBAL_DIGITAL_GAIN	BIT(5)
95262306a36Sopenharmony_ci#define CCS_BRACKETING_LUT_CAPABILITY_1_ALTERNATE_GLOBAL_ANALOG_GAIN   BIT(6)
95362306a36Sopenharmony_ci#define CCS_R_BRACKETING_LUT_CAPABILITY_2			0x1c01
95462306a36Sopenharmony_ci#define CCS_BRACKETING_LUT_CAPABILITY_2_SINGLE_BRACKETING_MODE	BIT(0)
95562306a36Sopenharmony_ci#define CCS_BRACKETING_LUT_CAPABILITY_2_LOOPED_BRACKETING_MODE	BIT(1)
95662306a36Sopenharmony_ci#define CCS_R_BRACKETING_LUT_SIZE				0x1c02
95762306a36Sopenharmony_ci
95862306a36Sopenharmony_ci#endif /* __CCS_REGS_H__ */
959