18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * vs6624 - ST VS6624 CMOS image sensor registers
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (c) 2011 Analog Devices Inc.
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef _VS6624_REGS_H_
98c2ecf20Sopenharmony_ci#define _VS6624_REGS_H_
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/* low level control registers */
128c2ecf20Sopenharmony_ci#define VS6624_MICRO_EN               0xC003 /* power enable for all MCU clock */
138c2ecf20Sopenharmony_ci#define VS6624_DIO_EN                 0xC044 /* enable digital I/O */
148c2ecf20Sopenharmony_ci/* device parameters */
158c2ecf20Sopenharmony_ci#define VS6624_DEV_ID_MSB             0x0001 /* device id MSB */
168c2ecf20Sopenharmony_ci#define VS6624_DEV_ID_LSB             0x0002 /* device id LSB */
178c2ecf20Sopenharmony_ci#define VS6624_FW_VSN_MAJOR           0x0004 /* firmware version major */
188c2ecf20Sopenharmony_ci#define VS6624_FW_VSN_MINOR           0x0006 /* firmware version minor */
198c2ecf20Sopenharmony_ci#define VS6624_PATCH_VSN_MAJOR        0x0008 /* patch version major */
208c2ecf20Sopenharmony_ci#define VS6624_PATCH_VSN_MINOR        0x000A /* patch version minor */
218c2ecf20Sopenharmony_ci/* host interface manager control */
228c2ecf20Sopenharmony_ci#define VS6624_USER_CMD               0x0180 /* user level control of operating states */
238c2ecf20Sopenharmony_ci/* host interface manager status */
248c2ecf20Sopenharmony_ci#define VS6624_STATE                  0x0202 /* current state of the mode manager */
258c2ecf20Sopenharmony_ci/* run mode control */
268c2ecf20Sopenharmony_ci#define VS6624_METER_ON               0x0280 /* if false AE and AWB are disabled */
278c2ecf20Sopenharmony_ci/* mode setup */
288c2ecf20Sopenharmony_ci#define VS6624_ACTIVE_PIPE_SETUP      0x0302 /* select the active bank for non view live mode */
298c2ecf20Sopenharmony_ci#define VS6624_SENSOR_MODE            0x0308 /* select the different sensor mode */
308c2ecf20Sopenharmony_ci/* pipe setup bank0 */
318c2ecf20Sopenharmony_ci#define VS6624_IMAGE_SIZE0            0x0380 /* required output dimension */
328c2ecf20Sopenharmony_ci#define VS6624_MAN_HSIZE0_MSB         0x0383 /* input required manual H size MSB */
338c2ecf20Sopenharmony_ci#define VS6624_MAN_HSIZE0_LSB         0x0384 /* input required manual H size LSB */
348c2ecf20Sopenharmony_ci#define VS6624_MAN_VSIZE0_MSB         0x0387 /* input required manual V size MSB */
358c2ecf20Sopenharmony_ci#define VS6624_MAN_VSIZE0_LSB         0x0388 /* input required manual V size LSB */
368c2ecf20Sopenharmony_ci#define VS6624_ZOOM_HSTEP0_MSB        0x038B /* set the zoom H step MSB */
378c2ecf20Sopenharmony_ci#define VS6624_ZOOM_HSTEP0_LSB        0x038C /* set the zoom H step LSB */
388c2ecf20Sopenharmony_ci#define VS6624_ZOOM_VSTEP0_MSB        0x038F /* set the zoom V step MSB */
398c2ecf20Sopenharmony_ci#define VS6624_ZOOM_VSTEP0_LSB        0x0390 /* set the zoom V step LSB */
408c2ecf20Sopenharmony_ci#define VS6624_ZOOM_CTRL0             0x0392 /* control zoon in, out and stop */
418c2ecf20Sopenharmony_ci#define VS6624_PAN_HSTEP0_MSB         0x0395 /* set the pan H step MSB */
428c2ecf20Sopenharmony_ci#define VS6624_PAN_HSTEP0_LSB         0x0396 /* set the pan H step LSB */
438c2ecf20Sopenharmony_ci#define VS6624_PAN_VSTEP0_MSB         0x0399 /* set the pan V step MSB */
448c2ecf20Sopenharmony_ci#define VS6624_PAN_VSTEP0_LSB         0x039A /* set the pan V step LSB */
458c2ecf20Sopenharmony_ci#define VS6624_PAN_CTRL0              0x039C /* control pan operation */
468c2ecf20Sopenharmony_ci#define VS6624_CROP_CTRL0             0x039E /* select cropping mode */
478c2ecf20Sopenharmony_ci#define VS6624_CROP_HSTART0_MSB       0x03A1 /* set the cropping H start address MSB */
488c2ecf20Sopenharmony_ci#define VS6624_CROP_HSTART0_LSB       0x03A2 /* set the cropping H start address LSB */
498c2ecf20Sopenharmony_ci#define VS6624_CROP_HSIZE0_MSB        0x03A5 /* set the cropping H size MSB */
508c2ecf20Sopenharmony_ci#define VS6624_CROP_HSIZE0_LSB        0x03A6 /* set the cropping H size LSB */
518c2ecf20Sopenharmony_ci#define VS6624_CROP_VSTART0_MSB       0x03A9 /* set the cropping V start address MSB */
528c2ecf20Sopenharmony_ci#define VS6624_CROP_VSTART0_LSB       0x03AA /* set the cropping V start address LSB */
538c2ecf20Sopenharmony_ci#define VS6624_CROP_VSIZE0_MSB        0x03AD /* set the cropping V size MSB */
548c2ecf20Sopenharmony_ci#define VS6624_CROP_VSIZE0_LSB        0x03AE /* set the cropping V size LSB */
558c2ecf20Sopenharmony_ci#define VS6624_IMG_FMT0               0x03B0 /* select required output image format */
568c2ecf20Sopenharmony_ci#define VS6624_BAYER_OUT_ALIGN0       0x03B2 /* set bayer output alignment */
578c2ecf20Sopenharmony_ci#define VS6624_CONTRAST0              0x03B4 /* contrast control for output */
588c2ecf20Sopenharmony_ci#define VS6624_SATURATION0            0x03B6 /* saturation control for output */
598c2ecf20Sopenharmony_ci#define VS6624_GAMMA0                 0x03B8 /* gamma settings */
608c2ecf20Sopenharmony_ci#define VS6624_HMIRROR0               0x03BA /* horizontal image orientation flip */
618c2ecf20Sopenharmony_ci#define VS6624_VFLIP0                 0x03BC /* vertical image orientation flip */
628c2ecf20Sopenharmony_ci#define VS6624_CHANNEL_ID0            0x03BE /* logical DMA channel number */
638c2ecf20Sopenharmony_ci/* pipe setup bank1 */
648c2ecf20Sopenharmony_ci#define VS6624_IMAGE_SIZE1            0x0400 /* required output dimension */
658c2ecf20Sopenharmony_ci#define VS6624_MAN_HSIZE1_MSB         0x0403 /* input required manual H size MSB */
668c2ecf20Sopenharmony_ci#define VS6624_MAN_HSIZE1_LSB         0x0404 /* input required manual H size LSB */
678c2ecf20Sopenharmony_ci#define VS6624_MAN_VSIZE1_MSB         0x0407 /* input required manual V size MSB */
688c2ecf20Sopenharmony_ci#define VS6624_MAN_VSIZE1_LSB         0x0408 /* input required manual V size LSB */
698c2ecf20Sopenharmony_ci#define VS6624_ZOOM_HSTEP1_MSB        0x040B /* set the zoom H step MSB */
708c2ecf20Sopenharmony_ci#define VS6624_ZOOM_HSTEP1_LSB        0x040C /* set the zoom H step LSB */
718c2ecf20Sopenharmony_ci#define VS6624_ZOOM_VSTEP1_MSB        0x040F /* set the zoom V step MSB */
728c2ecf20Sopenharmony_ci#define VS6624_ZOOM_VSTEP1_LSB        0x0410 /* set the zoom V step LSB */
738c2ecf20Sopenharmony_ci#define VS6624_ZOOM_CTRL1             0x0412 /* control zoon in, out and stop */
748c2ecf20Sopenharmony_ci#define VS6624_PAN_HSTEP1_MSB         0x0415 /* set the pan H step MSB */
758c2ecf20Sopenharmony_ci#define VS6624_PAN_HSTEP1_LSB         0x0416 /* set the pan H step LSB */
768c2ecf20Sopenharmony_ci#define VS6624_PAN_VSTEP1_MSB         0x0419 /* set the pan V step MSB */
778c2ecf20Sopenharmony_ci#define VS6624_PAN_VSTEP1_LSB         0x041A /* set the pan V step LSB */
788c2ecf20Sopenharmony_ci#define VS6624_PAN_CTRL1              0x041C /* control pan operation */
798c2ecf20Sopenharmony_ci#define VS6624_CROP_CTRL1             0x041E /* select cropping mode */
808c2ecf20Sopenharmony_ci#define VS6624_CROP_HSTART1_MSB       0x0421 /* set the cropping H start address MSB */
818c2ecf20Sopenharmony_ci#define VS6624_CROP_HSTART1_LSB       0x0422 /* set the cropping H start address LSB */
828c2ecf20Sopenharmony_ci#define VS6624_CROP_HSIZE1_MSB        0x0425 /* set the cropping H size MSB */
838c2ecf20Sopenharmony_ci#define VS6624_CROP_HSIZE1_LSB        0x0426 /* set the cropping H size LSB */
848c2ecf20Sopenharmony_ci#define VS6624_CROP_VSTART1_MSB       0x0429 /* set the cropping V start address MSB */
858c2ecf20Sopenharmony_ci#define VS6624_CROP_VSTART1_LSB       0x042A /* set the cropping V start address LSB */
868c2ecf20Sopenharmony_ci#define VS6624_CROP_VSIZE1_MSB        0x042D /* set the cropping V size MSB */
878c2ecf20Sopenharmony_ci#define VS6624_CROP_VSIZE1_LSB        0x042E /* set the cropping V size LSB */
888c2ecf20Sopenharmony_ci#define VS6624_IMG_FMT1               0x0430 /* select required output image format */
898c2ecf20Sopenharmony_ci#define VS6624_BAYER_OUT_ALIGN1       0x0432 /* set bayer output alignment */
908c2ecf20Sopenharmony_ci#define VS6624_CONTRAST1              0x0434 /* contrast control for output */
918c2ecf20Sopenharmony_ci#define VS6624_SATURATION1            0x0436 /* saturation control for output */
928c2ecf20Sopenharmony_ci#define VS6624_GAMMA1                 0x0438 /* gamma settings */
938c2ecf20Sopenharmony_ci#define VS6624_HMIRROR1               0x043A /* horizontal image orientation flip */
948c2ecf20Sopenharmony_ci#define VS6624_VFLIP1                 0x043C /* vertical image orientation flip */
958c2ecf20Sopenharmony_ci#define VS6624_CHANNEL_ID1            0x043E /* logical DMA channel number */
968c2ecf20Sopenharmony_ci/* view live control */
978c2ecf20Sopenharmony_ci#define VS6624_VIEW_LIVE_EN           0x0480 /* enable view live mode */
988c2ecf20Sopenharmony_ci#define VS6624_INIT_PIPE_SETUP        0x0482 /* select initial pipe setup bank */
998c2ecf20Sopenharmony_ci/* view live status */
1008c2ecf20Sopenharmony_ci#define VS6624_CUR_PIPE_SETUP         0x0500 /* indicates most recently applied setup bank */
1018c2ecf20Sopenharmony_ci/* power management */
1028c2ecf20Sopenharmony_ci#define VS6624_TIME_TO_POWER_DOWN     0x0580 /* automatically transition time to stop mode */
1038c2ecf20Sopenharmony_ci/* video timing parameter host inputs */
1048c2ecf20Sopenharmony_ci#define VS6624_EXT_CLK_FREQ_NUM_MSB   0x0605 /* external clock frequency numerator MSB */
1058c2ecf20Sopenharmony_ci#define VS6624_EXT_CLK_FREQ_NUM_LSB   0x0606 /* external clock frequency numerator LSB */
1068c2ecf20Sopenharmony_ci#define VS6624_EXT_CLK_FREQ_DEN       0x0608 /* external clock frequency denominator */
1078c2ecf20Sopenharmony_ci/* video timing control */
1088c2ecf20Sopenharmony_ci#define VS6624_SYS_CLK_MODE           0x0880 /* decides system clock frequency */
1098c2ecf20Sopenharmony_ci/* frame dimension parameter host inputs */
1108c2ecf20Sopenharmony_ci#define VS6624_LIGHT_FREQ             0x0C80 /* AC frequency used for flicker free time */
1118c2ecf20Sopenharmony_ci#define VS6624_FLICKER_COMPAT         0x0C82 /* flicker compatible frame length */
1128c2ecf20Sopenharmony_ci/* static frame rate control */
1138c2ecf20Sopenharmony_ci#define VS6624_FR_NUM_MSB             0x0D81 /* desired frame rate numerator MSB */
1148c2ecf20Sopenharmony_ci#define VS6624_FR_NUM_LSB             0x0D82 /* desired frame rate numerator LSB */
1158c2ecf20Sopenharmony_ci#define VS6624_FR_DEN                 0x0D84 /* desired frame rate denominator */
1168c2ecf20Sopenharmony_ci/* automatic frame rate control */
1178c2ecf20Sopenharmony_ci#define VS6624_DISABLE_FR_DAMPER      0x0E80 /* defines frame rate mode */
1188c2ecf20Sopenharmony_ci#define VS6624_MIN_DAMPER_OUT_MSB     0x0E8C /* minimum frame rate MSB */
1198c2ecf20Sopenharmony_ci#define VS6624_MIN_DAMPER_OUT_LSB     0x0E8A /* minimum frame rate LSB */
1208c2ecf20Sopenharmony_ci/* exposure controls */
1218c2ecf20Sopenharmony_ci#define VS6624_EXPO_MODE              0x1180 /* exposure mode */
1228c2ecf20Sopenharmony_ci#define VS6624_EXPO_METER             0x1182 /* weights to be associated with the zones */
1238c2ecf20Sopenharmony_ci#define VS6624_EXPO_TIME_NUM          0x1184 /* exposure time numerator */
1248c2ecf20Sopenharmony_ci#define VS6624_EXPO_TIME_DEN          0x1186 /* exposure time denominator */
1258c2ecf20Sopenharmony_ci#define VS6624_EXPO_TIME_MSB          0x1189 /* exposure time for the Manual Mode MSB */
1268c2ecf20Sopenharmony_ci#define VS6624_EXPO_TIME_LSB          0x118A /* exposure time for the Manual Mode LSB */
1278c2ecf20Sopenharmony_ci#define VS6624_EXPO_COMPENSATION      0x1190 /* exposure compensation */
1288c2ecf20Sopenharmony_ci#define VS6624_DIRECT_COARSE_MSB      0x1195 /* coarse integration lines for Direct Mode MSB */
1298c2ecf20Sopenharmony_ci#define VS6624_DIRECT_COARSE_LSB      0x1196 /* coarse integration lines for Direct Mode LSB */
1308c2ecf20Sopenharmony_ci#define VS6624_DIRECT_FINE_MSB        0x1199 /* fine integration pixels for Direct Mode MSB */
1318c2ecf20Sopenharmony_ci#define VS6624_DIRECT_FINE_LSB        0x119A /* fine integration pixels for Direct Mode LSB */
1328c2ecf20Sopenharmony_ci#define VS6624_DIRECT_ANAL_GAIN_MSB   0x119D /* analog gain for Direct Mode MSB */
1338c2ecf20Sopenharmony_ci#define VS6624_DIRECT_ANAL_GAIN_LSB   0x119E /* analog gain for Direct Mode LSB */
1348c2ecf20Sopenharmony_ci#define VS6624_DIRECT_DIGI_GAIN_MSB   0x11A1 /* digital gain for Direct Mode MSB */
1358c2ecf20Sopenharmony_ci#define VS6624_DIRECT_DIGI_GAIN_LSB   0x11A2 /* digital gain for Direct Mode LSB */
1368c2ecf20Sopenharmony_ci#define VS6624_FLASH_COARSE_MSB       0x11A5 /* coarse integration lines for Flash Gun Mode MSB */
1378c2ecf20Sopenharmony_ci#define VS6624_FLASH_COARSE_LSB       0x11A6 /* coarse integration lines for Flash Gun Mode LSB */
1388c2ecf20Sopenharmony_ci#define VS6624_FLASH_FINE_MSB         0x11A9 /* fine integration pixels for Flash Gun Mode MSB */
1398c2ecf20Sopenharmony_ci#define VS6624_FLASH_FINE_LSB         0x11AA /* fine integration pixels for Flash Gun Mode LSB */
1408c2ecf20Sopenharmony_ci#define VS6624_FLASH_ANAL_GAIN_MSB    0x11AD /* analog gain for Flash Gun Mode MSB */
1418c2ecf20Sopenharmony_ci#define VS6624_FLASH_ANAL_GAIN_LSB    0x11AE /* analog gain for Flash Gun Mode LSB */
1428c2ecf20Sopenharmony_ci#define VS6624_FLASH_DIGI_GAIN_MSB    0x11B1 /* digital gain for Flash Gun Mode MSB */
1438c2ecf20Sopenharmony_ci#define VS6624_FLASH_DIGI_GAIN_LSB    0x11B2 /* digital gain for Flash Gun Mode LSB */
1448c2ecf20Sopenharmony_ci#define VS6624_FREEZE_AE              0x11B4 /* freeze auto exposure */
1458c2ecf20Sopenharmony_ci#define VS6624_MAX_INT_TIME_MSB       0x11B7 /* user maximum integration time MSB */
1468c2ecf20Sopenharmony_ci#define VS6624_MAX_INT_TIME_LSB       0x11B8 /* user maximum integration time LSB */
1478c2ecf20Sopenharmony_ci#define VS6624_FLASH_AG_THR_MSB       0x11BB /* recommend flash gun analog gain threshold MSB */
1488c2ecf20Sopenharmony_ci#define VS6624_FLASH_AG_THR_LSB       0x11BC /* recommend flash gun analog gain threshold LSB */
1498c2ecf20Sopenharmony_ci#define VS6624_ANTI_FLICKER_MODE      0x11C0 /* anti flicker mode */
1508c2ecf20Sopenharmony_ci/* white balance control */
1518c2ecf20Sopenharmony_ci#define VS6624_WB_MODE                0x1480 /* set white balance mode */
1528c2ecf20Sopenharmony_ci#define VS6624_MAN_RG                 0x1482 /* user setting for red channel gain */
1538c2ecf20Sopenharmony_ci#define VS6624_MAN_GG                 0x1484 /* user setting for green channel gain */
1548c2ecf20Sopenharmony_ci#define VS6624_MAN_BG                 0x1486 /* user setting for blue channel gain */
1558c2ecf20Sopenharmony_ci#define VS6624_FLASH_RG_MSB           0x148B /* red gain for Flash Gun MSB */
1568c2ecf20Sopenharmony_ci#define VS6624_FLASH_RG_LSB           0x148C /* red gain for Flash Gun LSB */
1578c2ecf20Sopenharmony_ci#define VS6624_FLASH_GG_MSB           0x148F /* green gain for Flash Gun MSB */
1588c2ecf20Sopenharmony_ci#define VS6624_FLASH_GG_LSB           0x1490 /* green gain for Flash Gun LSB */
1598c2ecf20Sopenharmony_ci#define VS6624_FLASH_BG_MSB           0x1493 /* blue gain for Flash Gun MSB */
1608c2ecf20Sopenharmony_ci#define VS6624_FLASH_BG_LSB           0x1494 /* blue gain for Flash Gun LSB */
1618c2ecf20Sopenharmony_ci/* sensor setup */
1628c2ecf20Sopenharmony_ci#define VS6624_BC_OFFSET              0x1990 /* Black Correction Offset */
1638c2ecf20Sopenharmony_ci/* image stability */
1648c2ecf20Sopenharmony_ci#define VS6624_STABLE_WB              0x1900 /* white balance stable */
1658c2ecf20Sopenharmony_ci#define VS6624_STABLE_EXPO            0x1902 /* exposure stable */
1668c2ecf20Sopenharmony_ci#define VS6624_STABLE                 0x1906 /* system stable */
1678c2ecf20Sopenharmony_ci/* flash control */
1688c2ecf20Sopenharmony_ci#define VS6624_FLASH_MODE             0x1A80 /* flash mode */
1698c2ecf20Sopenharmony_ci#define VS6624_FLASH_OFF_LINE_MSB     0x1A83 /* off line at flash pulse mode MSB */
1708c2ecf20Sopenharmony_ci#define VS6624_FLASH_OFF_LINE_LSB     0x1A84 /* off line at flash pulse mode LSB */
1718c2ecf20Sopenharmony_ci/* flash status */
1728c2ecf20Sopenharmony_ci#define VS6624_FLASH_RECOM            0x1B00 /* flash gun is recommended */
1738c2ecf20Sopenharmony_ci#define VS6624_FLASH_GRAB_COMPLETE    0x1B02 /* flash gun image has been grabbed */
1748c2ecf20Sopenharmony_ci/* scythe filter controls */
1758c2ecf20Sopenharmony_ci#define VS6624_SCYTHE_FILTER          0x1D80 /* disable scythe defect correction */
1768c2ecf20Sopenharmony_ci/* jack filter controls */
1778c2ecf20Sopenharmony_ci#define VS6624_JACK_FILTER            0x1E00 /* disable jack defect correction */
1788c2ecf20Sopenharmony_ci/* demosaic control */
1798c2ecf20Sopenharmony_ci#define VS6624_ANTI_ALIAS_FILTER      0x1E80 /* anti alias filter suppress */
1808c2ecf20Sopenharmony_ci/* color matrix dampers */
1818c2ecf20Sopenharmony_ci#define VS6624_CM_DISABLE             0x1F00 /* disable color matrix damper */
1828c2ecf20Sopenharmony_ci#define VS6624_CM_LOW_THR_MSB         0x1F03 /* low threshold for exposure MSB */
1838c2ecf20Sopenharmony_ci#define VS6624_CM_LOW_THR_LSB         0x1F04 /* low threshold for exposure LSB */
1848c2ecf20Sopenharmony_ci#define VS6624_CM_HIGH_THR_MSB        0x1F07 /* high threshold for exposure MSB */
1858c2ecf20Sopenharmony_ci#define VS6624_CM_HIGH_THR_LSB        0x1F08 /* high threshold for exposure LSB */
1868c2ecf20Sopenharmony_ci#define VS6624_CM_MIN_OUT_MSB         0x1F0B /* minimum possible damper output MSB */
1878c2ecf20Sopenharmony_ci#define VS6624_CM_MIN_OUT_LSB         0x1F0C /* minimum possible damper output LSB */
1888c2ecf20Sopenharmony_ci/* peaking control */
1898c2ecf20Sopenharmony_ci#define VS6624_PEAK_GAIN              0x2000 /* controls peaking gain */
1908c2ecf20Sopenharmony_ci#define VS6624_PEAK_G_DISABLE         0x2002 /* disable peak gain damping */
1918c2ecf20Sopenharmony_ci#define VS6624_PEAK_LOW_THR_G_MSB     0x2005 /* low threshold for exposure for gain MSB */
1928c2ecf20Sopenharmony_ci#define VS6624_PEAK_LOW_THR_G_LSB     0x2006 /* low threshold for exposure for gain LSB */
1938c2ecf20Sopenharmony_ci#define VS6624_PEAK_HIGH_THR_G_MSB    0x2009 /* high threshold for exposure for gain MSB */
1948c2ecf20Sopenharmony_ci#define VS6624_PEAK_HIGH_THR_G_LSB    0x200A /* high threshold for exposure for gain LSB */
1958c2ecf20Sopenharmony_ci#define VS6624_PEAK_MIN_OUT_G_MSB     0x200D /* minimum damper output for gain MSB */
1968c2ecf20Sopenharmony_ci#define VS6624_PEAK_MIN_OUT_G_LSB     0x200E /* minimum damper output for gain LSB */
1978c2ecf20Sopenharmony_ci#define VS6624_PEAK_LOW_THR           0x2010 /* adjust degree of coring */
1988c2ecf20Sopenharmony_ci#define VS6624_PEAK_C_DISABLE         0x2012 /* disable coring damping */
1998c2ecf20Sopenharmony_ci#define VS6624_PEAK_HIGH_THR          0x2014 /* adjust maximum gain */
2008c2ecf20Sopenharmony_ci#define VS6624_PEAK_LOW_THR_C_MSB     0x2017 /* low threshold for exposure for coring MSB */
2018c2ecf20Sopenharmony_ci#define VS6624_PEAK_LOW_THR_C_LSB     0x2018 /* low threshold for exposure for coring LSB */
2028c2ecf20Sopenharmony_ci#define VS6624_PEAK_HIGH_THR_C_MSB    0x201B /* high threshold for exposure for coring MSB */
2038c2ecf20Sopenharmony_ci#define VS6624_PEAK_HIGH_THR_C_LSB    0x201C /* high threshold for exposure for coring LSB */
2048c2ecf20Sopenharmony_ci#define VS6624_PEAK_MIN_OUT_C_MSB     0x201F /* minimum damper output for coring MSB */
2058c2ecf20Sopenharmony_ci#define VS6624_PEAK_MIN_OUT_C_LSB     0x2020 /* minimum damper output for coring LSB */
2068c2ecf20Sopenharmony_ci/* pipe 0 RGB to YUV matrix manual control */
2078c2ecf20Sopenharmony_ci#define VS6624_RYM0_MAN_CTRL          0x2180 /* enable manual RGB to YUV matrix */
2088c2ecf20Sopenharmony_ci#define VS6624_RYM0_W00_MSB           0x2183 /* row 0 column 0 of YUV matrix MSB */
2098c2ecf20Sopenharmony_ci#define VS6624_RYM0_W00_LSB           0x2184 /* row 0 column 0 of YUV matrix LSB */
2108c2ecf20Sopenharmony_ci#define VS6624_RYM0_W01_MSB           0x2187 /* row 0 column 1 of YUV matrix MSB */
2118c2ecf20Sopenharmony_ci#define VS6624_RYM0_W01_LSB           0x2188 /* row 0 column 1 of YUV matrix LSB */
2128c2ecf20Sopenharmony_ci#define VS6624_RYM0_W02_MSB           0x218C /* row 0 column 2 of YUV matrix MSB */
2138c2ecf20Sopenharmony_ci#define VS6624_RYM0_W02_LSB           0x218D /* row 0 column 2 of YUV matrix LSB */
2148c2ecf20Sopenharmony_ci#define VS6624_RYM0_W10_MSB           0x2190 /* row 1 column 0 of YUV matrix MSB */
2158c2ecf20Sopenharmony_ci#define VS6624_RYM0_W10_LSB           0x218F /* row 1 column 0 of YUV matrix LSB */
2168c2ecf20Sopenharmony_ci#define VS6624_RYM0_W11_MSB           0x2193 /* row 1 column 1 of YUV matrix MSB */
2178c2ecf20Sopenharmony_ci#define VS6624_RYM0_W11_LSB           0x2194 /* row 1 column 1 of YUV matrix LSB */
2188c2ecf20Sopenharmony_ci#define VS6624_RYM0_W12_MSB           0x2197 /* row 1 column 2 of YUV matrix MSB */
2198c2ecf20Sopenharmony_ci#define VS6624_RYM0_W12_LSB           0x2198 /* row 1 column 2 of YUV matrix LSB */
2208c2ecf20Sopenharmony_ci#define VS6624_RYM0_W20_MSB           0x219B /* row 2 column 0 of YUV matrix MSB */
2218c2ecf20Sopenharmony_ci#define VS6624_RYM0_W20_LSB           0x219C /* row 2 column 0 of YUV matrix LSB */
2228c2ecf20Sopenharmony_ci#define VS6624_RYM0_W21_MSB           0x21A0 /* row 2 column 1 of YUV matrix MSB */
2238c2ecf20Sopenharmony_ci#define VS6624_RYM0_W21_LSB           0x219F /* row 2 column 1 of YUV matrix LSB */
2248c2ecf20Sopenharmony_ci#define VS6624_RYM0_W22_MSB           0x21A3 /* row 2 column 2 of YUV matrix MSB */
2258c2ecf20Sopenharmony_ci#define VS6624_RYM0_W22_LSB           0x21A4 /* row 2 column 2 of YUV matrix LSB */
2268c2ecf20Sopenharmony_ci#define VS6624_RYM0_YINY_MSB          0x21A7 /* Y in Y MSB */
2278c2ecf20Sopenharmony_ci#define VS6624_RYM0_YINY_LSB          0x21A8 /* Y in Y LSB */
2288c2ecf20Sopenharmony_ci#define VS6624_RYM0_YINCB_MSB         0x21AB /* Y in Cb MSB */
2298c2ecf20Sopenharmony_ci#define VS6624_RYM0_YINCB_LSB         0x21AC /* Y in Cb LSB */
2308c2ecf20Sopenharmony_ci#define VS6624_RYM0_YINCR_MSB         0x21B0 /* Y in Cr MSB */
2318c2ecf20Sopenharmony_ci#define VS6624_RYM0_YINCR_LSB         0x21AF /* Y in Cr LSB */
2328c2ecf20Sopenharmony_ci/* pipe 1 RGB to YUV matrix manual control */
2338c2ecf20Sopenharmony_ci#define VS6624_RYM1_MAN_CTRL          0x2200 /* enable manual RGB to YUV matrix */
2348c2ecf20Sopenharmony_ci#define VS6624_RYM1_W00_MSB           0x2203 /* row 0 column 0 of YUV matrix MSB */
2358c2ecf20Sopenharmony_ci#define VS6624_RYM1_W00_LSB           0x2204 /* row 0 column 0 of YUV matrix LSB */
2368c2ecf20Sopenharmony_ci#define VS6624_RYM1_W01_MSB           0x2207 /* row 0 column 1 of YUV matrix MSB */
2378c2ecf20Sopenharmony_ci#define VS6624_RYM1_W01_LSB           0x2208 /* row 0 column 1 of YUV matrix LSB */
2388c2ecf20Sopenharmony_ci#define VS6624_RYM1_W02_MSB           0x220C /* row 0 column 2 of YUV matrix MSB */
2398c2ecf20Sopenharmony_ci#define VS6624_RYM1_W02_LSB           0x220D /* row 0 column 2 of YUV matrix LSB */
2408c2ecf20Sopenharmony_ci#define VS6624_RYM1_W10_MSB           0x2210 /* row 1 column 0 of YUV matrix MSB */
2418c2ecf20Sopenharmony_ci#define VS6624_RYM1_W10_LSB           0x220F /* row 1 column 0 of YUV matrix LSB */
2428c2ecf20Sopenharmony_ci#define VS6624_RYM1_W11_MSB           0x2213 /* row 1 column 1 of YUV matrix MSB */
2438c2ecf20Sopenharmony_ci#define VS6624_RYM1_W11_LSB           0x2214 /* row 1 column 1 of YUV matrix LSB */
2448c2ecf20Sopenharmony_ci#define VS6624_RYM1_W12_MSB           0x2217 /* row 1 column 2 of YUV matrix MSB */
2458c2ecf20Sopenharmony_ci#define VS6624_RYM1_W12_LSB           0x2218 /* row 1 column 2 of YUV matrix LSB */
2468c2ecf20Sopenharmony_ci#define VS6624_RYM1_W20_MSB           0x221B /* row 2 column 0 of YUV matrix MSB */
2478c2ecf20Sopenharmony_ci#define VS6624_RYM1_W20_LSB           0x221C /* row 2 column 0 of YUV matrix LSB */
2488c2ecf20Sopenharmony_ci#define VS6624_RYM1_W21_MSB           0x2220 /* row 2 column 1 of YUV matrix MSB */
2498c2ecf20Sopenharmony_ci#define VS6624_RYM1_W21_LSB           0x221F /* row 2 column 1 of YUV matrix LSB */
2508c2ecf20Sopenharmony_ci#define VS6624_RYM1_W22_MSB           0x2223 /* row 2 column 2 of YUV matrix MSB */
2518c2ecf20Sopenharmony_ci#define VS6624_RYM1_W22_LSB           0x2224 /* row 2 column 2 of YUV matrix LSB */
2528c2ecf20Sopenharmony_ci#define VS6624_RYM1_YINY_MSB          0x2227 /* Y in Y MSB */
2538c2ecf20Sopenharmony_ci#define VS6624_RYM1_YINY_LSB          0x2228 /* Y in Y LSB */
2548c2ecf20Sopenharmony_ci#define VS6624_RYM1_YINCB_MSB         0x222B /* Y in Cb MSB */
2558c2ecf20Sopenharmony_ci#define VS6624_RYM1_YINCB_LSB         0x222C /* Y in Cb LSB */
2568c2ecf20Sopenharmony_ci#define VS6624_RYM1_YINCR_MSB         0x2220 /* Y in Cr MSB */
2578c2ecf20Sopenharmony_ci#define VS6624_RYM1_YINCR_LSB         0x222F /* Y in Cr LSB */
2588c2ecf20Sopenharmony_ci/* pipe 0 gamma manual control */
2598c2ecf20Sopenharmony_ci#define VS6624_GAMMA_MAN_CTRL0        0x2280 /* enable manual gamma setup */
2608c2ecf20Sopenharmony_ci#define VS6624_GAMMA_PEAK_R0          0x2282 /* peaked red channel gamma value */
2618c2ecf20Sopenharmony_ci#define VS6624_GAMMA_PEAK_G0          0x2284 /* peaked green channel gamma value */
2628c2ecf20Sopenharmony_ci#define VS6624_GAMMA_PEAK_B0          0x2286 /* peaked blue channel gamma value */
2638c2ecf20Sopenharmony_ci#define VS6624_GAMMA_UNPEAK_R0        0x2288 /* unpeaked red channel gamma value */
2648c2ecf20Sopenharmony_ci#define VS6624_GAMMA_UNPEAK_G0        0x228A /* unpeaked green channel gamma value */
2658c2ecf20Sopenharmony_ci#define VS6624_GAMMA_UNPEAK_B0        0x228C /* unpeaked blue channel gamma value */
2668c2ecf20Sopenharmony_ci/* pipe 1 gamma manual control */
2678c2ecf20Sopenharmony_ci#define VS6624_GAMMA_MAN_CTRL1        0x2300 /* enable manual gamma setup */
2688c2ecf20Sopenharmony_ci#define VS6624_GAMMA_PEAK_R1          0x2302 /* peaked red channel gamma value */
2698c2ecf20Sopenharmony_ci#define VS6624_GAMMA_PEAK_G1          0x2304 /* peaked green channel gamma value */
2708c2ecf20Sopenharmony_ci#define VS6624_GAMMA_PEAK_B1          0x2306 /* peaked blue channel gamma value */
2718c2ecf20Sopenharmony_ci#define VS6624_GAMMA_UNPEAK_R1        0x2308 /* unpeaked red channel gamma value */
2728c2ecf20Sopenharmony_ci#define VS6624_GAMMA_UNPEAK_G1        0x230A /* unpeaked green channel gamma value */
2738c2ecf20Sopenharmony_ci#define VS6624_GAMMA_UNPEAK_B1        0x230C /* unpeaked blue channel gamma value */
2748c2ecf20Sopenharmony_ci/* fade to black */
2758c2ecf20Sopenharmony_ci#define VS6624_F2B_DISABLE            0x2480 /* disable fade to black */
2768c2ecf20Sopenharmony_ci#define VS6624_F2B_BLACK_VAL_MSB      0x2483 /* black value MSB */
2778c2ecf20Sopenharmony_ci#define VS6624_F2B_BLACK_VAL_LSB      0x2484 /* black value LSB */
2788c2ecf20Sopenharmony_ci#define VS6624_F2B_LOW_THR_MSB        0x2487 /* low threshold for exposure MSB */
2798c2ecf20Sopenharmony_ci#define VS6624_F2B_LOW_THR_LSB        0x2488 /* low threshold for exposure LSB */
2808c2ecf20Sopenharmony_ci#define VS6624_F2B_HIGH_THR_MSB       0x248B /* high threshold for exposure MSB */
2818c2ecf20Sopenharmony_ci#define VS6624_F2B_HIGH_THR_LSB       0x248C /* high threshold for exposure LSB */
2828c2ecf20Sopenharmony_ci#define VS6624_F2B_MIN_OUT_MSB        0x248F /* minimum damper output MSB */
2838c2ecf20Sopenharmony_ci#define VS6624_F2B_MIN_OUT_LSB        0x2490 /* minimum damper output LSB */
2848c2ecf20Sopenharmony_ci/* output formatter control */
2858c2ecf20Sopenharmony_ci#define VS6624_CODE_CK_EN             0x2580 /* code check enable */
2868c2ecf20Sopenharmony_ci#define VS6624_BLANK_FMT              0x2582 /* blank format */
2878c2ecf20Sopenharmony_ci#define VS6624_SYNC_CODE_SETUP        0x2584 /* sync code setup */
2888c2ecf20Sopenharmony_ci#define VS6624_HSYNC_SETUP            0x2586 /* H sync setup */
2898c2ecf20Sopenharmony_ci#define VS6624_VSYNC_SETUP            0x2588 /* V sync setup */
2908c2ecf20Sopenharmony_ci#define VS6624_PCLK_SETUP             0x258A /* PCLK setup */
2918c2ecf20Sopenharmony_ci#define VS6624_PCLK_EN                0x258C /* PCLK enable */
2928c2ecf20Sopenharmony_ci#define VS6624_OPF_SP_SETUP           0x258E /* output formatter sp setup */
2938c2ecf20Sopenharmony_ci#define VS6624_BLANK_DATA_MSB         0x2590 /* blank data MSB */
2948c2ecf20Sopenharmony_ci#define VS6624_BLANK_DATA_LSB         0x2592 /* blank data LSB */
2958c2ecf20Sopenharmony_ci#define VS6624_RGB_SETUP              0x2594 /* RGB setup */
2968c2ecf20Sopenharmony_ci#define VS6624_YUV_SETUP              0x2596 /* YUV setup */
2978c2ecf20Sopenharmony_ci#define VS6624_VSYNC_RIS_COARSE_H     0x2598 /* V sync rising coarse high */
2988c2ecf20Sopenharmony_ci#define VS6624_VSYNC_RIS_COARSE_L     0x259A /* V sync rising coarse low */
2998c2ecf20Sopenharmony_ci#define VS6624_VSYNC_RIS_FINE_H       0x259C /* V sync rising fine high */
3008c2ecf20Sopenharmony_ci#define VS6624_VSYNC_RIS_FINE_L       0x259E /* V sync rising fine low */
3018c2ecf20Sopenharmony_ci#define VS6624_VSYNC_FALL_COARSE_H    0x25A0 /* V sync falling coarse high */
3028c2ecf20Sopenharmony_ci#define VS6624_VSYNC_FALL_COARSE_L    0x25A2 /* V sync falling coarse low */
3038c2ecf20Sopenharmony_ci#define VS6624_VSYNC_FALL_FINE_H      0x25A4 /* V sync falling fine high */
3048c2ecf20Sopenharmony_ci#define VS6624_VSYNC_FALL_FINE_L      0x25A6 /* V sync falling fine low */
3058c2ecf20Sopenharmony_ci#define VS6624_HSYNC_RIS_H            0x25A8 /* H sync rising high */
3068c2ecf20Sopenharmony_ci#define VS6624_HSYNC_RIS_L            0x25AA /* H sync rising low */
3078c2ecf20Sopenharmony_ci#define VS6624_HSYNC_FALL_H           0x25AC /* H sync falling high */
3088c2ecf20Sopenharmony_ci#define VS6624_HSYNC_FALL_L           0x25AE /* H sync falling low */
3098c2ecf20Sopenharmony_ci#define VS6624_OUT_IF                 0x25B0 /* output interface */
3108c2ecf20Sopenharmony_ci#define VS6624_CCP_EXT_DATA           0x25B2 /* CCP extra data */
3118c2ecf20Sopenharmony_ci/* NoRA controls */
3128c2ecf20Sopenharmony_ci#define VS6624_NORA_DISABLE           0x2600 /* NoRA control mode */
3138c2ecf20Sopenharmony_ci#define VS6624_NORA_USAGE             0x2602 /* usage */
3148c2ecf20Sopenharmony_ci#define VS6624_NORA_SPLIT_KN          0x2604 /* split kn */
3158c2ecf20Sopenharmony_ci#define VS6624_NORA_SPLIT_NI          0x2606 /* split ni */
3168c2ecf20Sopenharmony_ci#define VS6624_NORA_TIGHT_G           0x2608 /* tight green */
3178c2ecf20Sopenharmony_ci#define VS6624_NORA_DISABLE_NP        0x260A /* disable noro promoting */
3188c2ecf20Sopenharmony_ci#define VS6624_NORA_LOW_THR_MSB       0x260D /* low threshold for exposure MSB */
3198c2ecf20Sopenharmony_ci#define VS6624_NORA_LOW_THR_LSB       0x260E /* low threshold for exposure LSB */
3208c2ecf20Sopenharmony_ci#define VS6624_NORA_HIGH_THR_MSB      0x2611 /* high threshold for exposure MSB */
3218c2ecf20Sopenharmony_ci#define VS6624_NORA_HIGH_THR_LSB      0x2612 /* high threshold for exposure LSB */
3228c2ecf20Sopenharmony_ci#define VS6624_NORA_MIN_OUT_MSB       0x2615 /* minimum damper output MSB */
3238c2ecf20Sopenharmony_ci#define VS6624_NORA_MIN_OUT_LSB       0x2616 /* minimum damper output LSB */
3248c2ecf20Sopenharmony_ci
3258c2ecf20Sopenharmony_ci#endif
326