18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Register definition file for Samsung MFC V5.1 Interface (FIMV) driver
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Kamil Debski, Copyright (c) 2010 Samsung Electronics
68c2ecf20Sopenharmony_ci * http://www.samsung.com/
78c2ecf20Sopenharmony_ci*/
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef _REGS_FIMV_H
108c2ecf20Sopenharmony_ci#define _REGS_FIMV_H
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#include <linux/kernel.h>
138c2ecf20Sopenharmony_ci#include <linux/sizes.h>
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define S5P_FIMV_REG_SIZE	(S5P_FIMV_END_ADDR - S5P_FIMV_START_ADDR)
168c2ecf20Sopenharmony_ci#define S5P_FIMV_REG_COUNT	((S5P_FIMV_END_ADDR - S5P_FIMV_START_ADDR) / 4)
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci/* Number of bits that the buffer address should be shifted for particular
198c2ecf20Sopenharmony_ci * MFC buffers.  */
208c2ecf20Sopenharmony_ci#define S5P_FIMV_START_ADDR		0x0000
218c2ecf20Sopenharmony_ci#define S5P_FIMV_END_ADDR		0xe008
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#define S5P_FIMV_SW_RESET		0x0000
248c2ecf20Sopenharmony_ci#define S5P_FIMV_RISC_HOST_INT		0x0008
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci/* Command from HOST to RISC */
278c2ecf20Sopenharmony_ci#define S5P_FIMV_HOST2RISC_CMD		0x0030
288c2ecf20Sopenharmony_ci#define S5P_FIMV_HOST2RISC_ARG1		0x0034
298c2ecf20Sopenharmony_ci#define S5P_FIMV_HOST2RISC_ARG2		0x0038
308c2ecf20Sopenharmony_ci#define S5P_FIMV_HOST2RISC_ARG3		0x003c
318c2ecf20Sopenharmony_ci#define S5P_FIMV_HOST2RISC_ARG4		0x0040
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci/* Command from RISC to HOST */
348c2ecf20Sopenharmony_ci#define S5P_FIMV_RISC2HOST_CMD		0x0044
358c2ecf20Sopenharmony_ci#define S5P_FIMV_RISC2HOST_CMD_MASK	0x1FFFF
368c2ecf20Sopenharmony_ci#define S5P_FIMV_RISC2HOST_ARG1		0x0048
378c2ecf20Sopenharmony_ci#define S5P_FIMV_RISC2HOST_ARG2		0x004c
388c2ecf20Sopenharmony_ci#define S5P_FIMV_RISC2HOST_ARG3		0x0050
398c2ecf20Sopenharmony_ci#define S5P_FIMV_RISC2HOST_ARG4		0x0054
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci#define S5P_FIMV_FW_VERSION		0x0058
428c2ecf20Sopenharmony_ci#define S5P_FIMV_SYS_MEM_SZ		0x005c
438c2ecf20Sopenharmony_ci#define S5P_FIMV_FW_STATUS		0x0080
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci/* Memory controller register */
468c2ecf20Sopenharmony_ci#define S5P_FIMV_MC_DRAMBASE_ADR_A	0x0508
478c2ecf20Sopenharmony_ci#define S5P_FIMV_MC_DRAMBASE_ADR_B	0x050c
488c2ecf20Sopenharmony_ci#define S5P_FIMV_MC_STATUS		0x0510
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci/* Common register */
518c2ecf20Sopenharmony_ci#define S5P_FIMV_COMMON_BASE_A		0x0600
528c2ecf20Sopenharmony_ci#define S5P_FIMV_COMMON_BASE_B		0x0700
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci/* Decoder */
558c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_CHROMA_ADR		(S5P_FIMV_COMMON_BASE_A)
568c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_LUMA_ADR		(S5P_FIMV_COMMON_BASE_B)
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci/* H.264 decoding */
598c2ecf20Sopenharmony_ci#define S5P_FIMV_H264_VERT_NB_MV_ADR	(S5P_FIMV_COMMON_BASE_A + 0x8c)
608c2ecf20Sopenharmony_ci					/* vertical neighbor motion vector */
618c2ecf20Sopenharmony_ci#define S5P_FIMV_H264_NB_IP_ADR		(S5P_FIMV_COMMON_BASE_A + 0x90)
628c2ecf20Sopenharmony_ci					/* neighbor pixels for intra pred */
638c2ecf20Sopenharmony_ci#define S5P_FIMV_H264_MV_ADR		(S5P_FIMV_COMMON_BASE_B + 0x80)
648c2ecf20Sopenharmony_ci					/* H264 motion vector */
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci/* MPEG4 decoding */
678c2ecf20Sopenharmony_ci#define S5P_FIMV_MPEG4_NB_DCAC_ADR	(S5P_FIMV_COMMON_BASE_A + 0x8c)
688c2ecf20Sopenharmony_ci					/* neighbor AC/DC coeff. */
698c2ecf20Sopenharmony_ci#define S5P_FIMV_MPEG4_UP_NB_MV_ADR	(S5P_FIMV_COMMON_BASE_A + 0x90)
708c2ecf20Sopenharmony_ci					/* upper neighbor motion vector */
718c2ecf20Sopenharmony_ci#define S5P_FIMV_MPEG4_SA_MV_ADR	(S5P_FIMV_COMMON_BASE_A + 0x94)
728c2ecf20Sopenharmony_ci					/* subseq. anchor motion vector */
738c2ecf20Sopenharmony_ci#define S5P_FIMV_MPEG4_OT_LINE_ADR	(S5P_FIMV_COMMON_BASE_A + 0x98)
748c2ecf20Sopenharmony_ci					/* overlap transform line */
758c2ecf20Sopenharmony_ci#define S5P_FIMV_MPEG4_SP_ADR		(S5P_FIMV_COMMON_BASE_A + 0xa8)
768c2ecf20Sopenharmony_ci					/* syntax parser */
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci/* H.263 decoding */
798c2ecf20Sopenharmony_ci#define S5P_FIMV_H263_NB_DCAC_ADR	(S5P_FIMV_COMMON_BASE_A + 0x8c)
808c2ecf20Sopenharmony_ci#define S5P_FIMV_H263_UP_NB_MV_ADR	(S5P_FIMV_COMMON_BASE_A + 0x90)
818c2ecf20Sopenharmony_ci#define S5P_FIMV_H263_SA_MV_ADR		(S5P_FIMV_COMMON_BASE_A + 0x94)
828c2ecf20Sopenharmony_ci#define S5P_FIMV_H263_OT_LINE_ADR	(S5P_FIMV_COMMON_BASE_A + 0x98)
838c2ecf20Sopenharmony_ci
848c2ecf20Sopenharmony_ci/* VC-1 decoding */
858c2ecf20Sopenharmony_ci#define S5P_FIMV_VC1_NB_DCAC_ADR	(S5P_FIMV_COMMON_BASE_A + 0x8c)
868c2ecf20Sopenharmony_ci#define S5P_FIMV_VC1_UP_NB_MV_ADR	(S5P_FIMV_COMMON_BASE_A + 0x90)
878c2ecf20Sopenharmony_ci#define S5P_FIMV_VC1_SA_MV_ADR		(S5P_FIMV_COMMON_BASE_A + 0x94)
888c2ecf20Sopenharmony_ci#define S5P_FIMV_VC1_OT_LINE_ADR	(S5P_FIMV_COMMON_BASE_A + 0x98)
898c2ecf20Sopenharmony_ci#define S5P_FIMV_VC1_BITPLANE3_ADR	(S5P_FIMV_COMMON_BASE_A + 0x9c)
908c2ecf20Sopenharmony_ci					/* bitplane3 */
918c2ecf20Sopenharmony_ci#define S5P_FIMV_VC1_BITPLANE2_ADR	(S5P_FIMV_COMMON_BASE_A + 0xa0)
928c2ecf20Sopenharmony_ci					/* bitplane2 */
938c2ecf20Sopenharmony_ci#define S5P_FIMV_VC1_BITPLANE1_ADR	(S5P_FIMV_COMMON_BASE_A + 0xa4)
948c2ecf20Sopenharmony_ci					/* bitplane1 */
958c2ecf20Sopenharmony_ci
968c2ecf20Sopenharmony_ci/* Encoder */
978c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_REF0_LUMA_ADR	(S5P_FIMV_COMMON_BASE_A + 0x1c)
988c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_REF1_LUMA_ADR	(S5P_FIMV_COMMON_BASE_A + 0x20)
998c2ecf20Sopenharmony_ci					/* reconstructed luma */
1008c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_REF0_CHROMA_ADR	(S5P_FIMV_COMMON_BASE_B)
1018c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_REF1_CHROMA_ADR	(S5P_FIMV_COMMON_BASE_B + 0x04)
1028c2ecf20Sopenharmony_ci					/* reconstructed chroma */
1038c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_REF2_LUMA_ADR	(S5P_FIMV_COMMON_BASE_B + 0x10)
1048c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_REF2_CHROMA_ADR	(S5P_FIMV_COMMON_BASE_B + 0x08)
1058c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_REF3_LUMA_ADR	(S5P_FIMV_COMMON_BASE_B + 0x14)
1068c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_REF3_CHROMA_ADR	(S5P_FIMV_COMMON_BASE_B + 0x0c)
1078c2ecf20Sopenharmony_ci
1088c2ecf20Sopenharmony_ci/* H.264 encoding */
1098c2ecf20Sopenharmony_ci#define S5P_FIMV_H264_UP_MV_ADR		(S5P_FIMV_COMMON_BASE_A)
1108c2ecf20Sopenharmony_ci					/* upper motion vector */
1118c2ecf20Sopenharmony_ci#define S5P_FIMV_H264_NBOR_INFO_ADR	(S5P_FIMV_COMMON_BASE_A + 0x04)
1128c2ecf20Sopenharmony_ci					/* entropy engine's neighbor info. */
1138c2ecf20Sopenharmony_ci#define S5P_FIMV_H264_UP_INTRA_MD_ADR	(S5P_FIMV_COMMON_BASE_A + 0x08)
1148c2ecf20Sopenharmony_ci					/* upper intra MD */
1158c2ecf20Sopenharmony_ci#define S5P_FIMV_H264_COZERO_FLAG_ADR	(S5P_FIMV_COMMON_BASE_A + 0x10)
1168c2ecf20Sopenharmony_ci					/* direct cozero flag */
1178c2ecf20Sopenharmony_ci#define S5P_FIMV_H264_UP_INTRA_PRED_ADR	(S5P_FIMV_COMMON_BASE_B + 0x40)
1188c2ecf20Sopenharmony_ci					/* upper intra PRED */
1198c2ecf20Sopenharmony_ci
1208c2ecf20Sopenharmony_ci/* H.263 encoding */
1218c2ecf20Sopenharmony_ci#define S5P_FIMV_H263_UP_MV_ADR		(S5P_FIMV_COMMON_BASE_A)
1228c2ecf20Sopenharmony_ci					/* upper motion vector */
1238c2ecf20Sopenharmony_ci#define S5P_FIMV_H263_ACDC_COEF_ADR	(S5P_FIMV_COMMON_BASE_A + 0x04)
1248c2ecf20Sopenharmony_ci					/* upper Q coeff. */
1258c2ecf20Sopenharmony_ci
1268c2ecf20Sopenharmony_ci/* MPEG4 encoding */
1278c2ecf20Sopenharmony_ci#define S5P_FIMV_MPEG4_UP_MV_ADR	(S5P_FIMV_COMMON_BASE_A)
1288c2ecf20Sopenharmony_ci					/* upper motion vector */
1298c2ecf20Sopenharmony_ci#define S5P_FIMV_MPEG4_ACDC_COEF_ADR	(S5P_FIMV_COMMON_BASE_A + 0x04)
1308c2ecf20Sopenharmony_ci					/* upper Q coeff. */
1318c2ecf20Sopenharmony_ci#define S5P_FIMV_MPEG4_COZERO_FLAG_ADR	(S5P_FIMV_COMMON_BASE_A + 0x10)
1328c2ecf20Sopenharmony_ci					/* direct cozero flag */
1338c2ecf20Sopenharmony_ci
1348c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_REF_B_LUMA_ADR     0x062c /* ref B Luma addr */
1358c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_REF_B_CHROMA_ADR   0x0630 /* ref B Chroma addr */
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_CUR_LUMA_ADR	0x0718 /* current Luma addr */
1388c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_CUR_CHROMA_ADR	0x071C /* current Chroma addr */
1398c2ecf20Sopenharmony_ci
1408c2ecf20Sopenharmony_ci/* Codec common register */
1418c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_HSIZE_PX		0x0818 /* frame width at encoder */
1428c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_VSIZE_PX		0x081c /* frame height at encoder */
1438c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_PROFILE		0x0830 /* profile register */
1448c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_PROFILE_H264_MAIN			0
1458c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_PROFILE_H264_HIGH			1
1468c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_PROFILE_H264_BASELINE		2
1478c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_PROFILE_H264_CONSTRAINED_BASELINE	3
1488c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_PROFILE_MPEG4_SIMPLE		0
1498c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_PROFILE_MPEG4_ADVANCED_SIMPLE	1
1508c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_PIC_STRUCT		0x083c /* picture field/frame flag */
1518c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_LF_CTRL		0x0848 /* loop filter control */
1528c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_ALPHA_OFF		0x084c /* loop filter alpha offset */
1538c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_BETA_OFF		0x0850 /* loop filter beta offset */
1548c2ecf20Sopenharmony_ci#define S5P_FIMV_MR_BUSIF_CTRL		0x0854 /* hidden, bus interface ctrl */
1558c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_PXL_CACHE_CTRL	0x0a00 /* pixel cache control */
1568c2ecf20Sopenharmony_ci
1578c2ecf20Sopenharmony_ci/* Channel & stream interface register */
1588c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_RTN_CHID		0x2000 /* Return CH inst ID register */
1598c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH0_INST_ID		0x2040 /* codec instance ID */
1608c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH1_INST_ID		0x2080 /* codec instance ID */
1618c2ecf20Sopenharmony_ci/* Decoder */
1628c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_VRESOL		0x2004 /* vertical res of decoder */
1638c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_HRESOL		0x2008 /* horizontal res of decoder */
1648c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_BUF_NUMBER		0x200c /* number of frames in the
1658c2ecf20Sopenharmony_ci								decoded pic */
1668c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_DISPLAY_Y_ADR	0x2010 /* luma addr of displayed pic */
1678c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_DISPLAY_C_ADR	0x2014 /* chroma addrof displayed pic */
1688c2ecf20Sopenharmony_ci
1698c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CONSUMED_BYTES	0x2018 /* Consumed number of bytes to
1708c2ecf20Sopenharmony_ci							decode a frame */
1718c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_DISPLAY_STATUS	0x201c /* status of decoded picture */
1728c2ecf20Sopenharmony_ci
1738c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_DECODE_Y_ADR	0x2024 /* luma addr of decoded pic */
1748c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_DECODE_C_ADR	0x2028 /* chroma addrof decoded pic */
1758c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_DECODE_STATUS	0x202c /* status of decoded picture */
1768c2ecf20Sopenharmony_ci
1778c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH0_SB_ST_ADR	0x2044 /* start addr of stream buf */
1788c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH0_SB_FRM_SIZE	0x2048 /* size of stream buf */
1798c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH0_DESC_ADR	0x204c /* addr of descriptor buf */
1808c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH0_CPB_SIZE	0x2058 /* max size of coded pic. buf */
1818c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH0_DESC_SIZE	0x205c /* max size of descriptor buf */
1828c2ecf20Sopenharmony_ci
1838c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH1_SB_ST_ADR	0x2084 /* start addr of stream buf */
1848c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH1_SB_FRM_SIZE	0x2088 /* size of stream buf */
1858c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH1_DESC_ADR	0x208c /* addr of descriptor buf */
1868c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH1_CPB_SIZE	0x2098 /* max size of coded pic. buf */
1878c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH1_DESC_SIZE	0x209c /* max size of descriptor buf */
1888c2ecf20Sopenharmony_ci
1898c2ecf20Sopenharmony_ci#define S5P_FIMV_CRC_LUMA0		0x2030 /* luma crc data per frame
1908c2ecf20Sopenharmony_ci								(top field) */
1918c2ecf20Sopenharmony_ci#define S5P_FIMV_CRC_CHROMA0		0x2034 /* chroma crc data per frame
1928c2ecf20Sopenharmony_ci								(top field) */
1938c2ecf20Sopenharmony_ci#define S5P_FIMV_CRC_LUMA1		0x2038 /* luma crc data per bottom
1948c2ecf20Sopenharmony_ci								field */
1958c2ecf20Sopenharmony_ci#define S5P_FIMV_CRC_CHROMA1		0x203c /* chroma crc data per bottom
1968c2ecf20Sopenharmony_ci								field */
1978c2ecf20Sopenharmony_ci
1988c2ecf20Sopenharmony_ci/* Display status */
1998c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_DECODING_ONLY		0
2008c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_DECODING_DISPLAY		1
2018c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_DISPLAY_ONLY		2
2028c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_DECODING_EMPTY		3
2038c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_DECODING_STATUS_MASK	7
2048c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_PROGRESSIVE			(0<<3)
2058c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_INTERLACE			(1<<3)
2068c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_INTERLACE_MASK		(1<<3)
2078c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_CRC_NUMBER_TWO		(0<<4)
2088c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_CRC_NUMBER_FOUR		(1<<4)
2098c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_CRC_NUMBER_MASK		(1<<4)
2108c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_CRC_GENERATED		(1<<5)
2118c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_CRC_NOT_GENERATED		(0<<5)
2128c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_CRC_MASK			(1<<5)
2138c2ecf20Sopenharmony_ci
2148c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_RESOLUTION_MASK		(3<<4)
2158c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_RESOLUTION_INC		(1<<4)
2168c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_RESOLUTION_DEC		(2<<4)
2178c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STATUS_RESOLUTION_SHIFT		4
2188c2ecf20Sopenharmony_ci
2198c2ecf20Sopenharmony_ci/* Decode frame address */
2208c2ecf20Sopenharmony_ci#define S5P_FIMV_DECODE_Y_ADR			0x2024
2218c2ecf20Sopenharmony_ci#define S5P_FIMV_DECODE_C_ADR			0x2028
2228c2ecf20Sopenharmony_ci
2238c2ecf20Sopenharmony_ci/* Decoded frame tpe */
2248c2ecf20Sopenharmony_ci#define S5P_FIMV_DECODE_FRAME_TYPE		0x2020
2258c2ecf20Sopenharmony_ci#define S5P_FIMV_DECODE_FRAME_MASK		7
2268c2ecf20Sopenharmony_ci
2278c2ecf20Sopenharmony_ci#define S5P_FIMV_DECODE_FRAME_SKIPPED		0
2288c2ecf20Sopenharmony_ci#define S5P_FIMV_DECODE_FRAME_I_FRAME		1
2298c2ecf20Sopenharmony_ci#define S5P_FIMV_DECODE_FRAME_P_FRAME		2
2308c2ecf20Sopenharmony_ci#define S5P_FIMV_DECODE_FRAME_B_FRAME		3
2318c2ecf20Sopenharmony_ci#define S5P_FIMV_DECODE_FRAME_OTHER_FRAME	4
2328c2ecf20Sopenharmony_ci
2338c2ecf20Sopenharmony_ci/* Sizes of buffers required for decoding */
2348c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_NB_IP_SIZE			(32 * 1024)
2358c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_VERT_NB_MV_SIZE		(16 * 1024)
2368c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_NB_DCAC_SIZE		(16 * 1024)
2378c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_UPNB_MV_SIZE		(68 * 1024)
2388c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE		(136 * 1024)
2398c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE     (32 * 1024)
2408c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_VC1_BITPLANE_SIZE		(2 * 1024)
2418c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_STX_PARSER_SIZE		(68 * 1024)
2428c2ecf20Sopenharmony_ci
2438c2ecf20Sopenharmony_ci#define S5P_FIMV_DEC_BUF_ALIGN			(8 * 1024)
2448c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_BUF_ALIGN			(8 * 1024)
2458c2ecf20Sopenharmony_ci#define S5P_FIMV_NV12M_HALIGN			16
2468c2ecf20Sopenharmony_ci#define S5P_FIMV_NV12M_LVALIGN			16
2478c2ecf20Sopenharmony_ci#define S5P_FIMV_NV12M_CVALIGN			8
2488c2ecf20Sopenharmony_ci#define S5P_FIMV_NV12MT_HALIGN			128
2498c2ecf20Sopenharmony_ci#define S5P_FIMV_NV12MT_VALIGN			32
2508c2ecf20Sopenharmony_ci#define S5P_FIMV_NV12M_SALIGN			2048
2518c2ecf20Sopenharmony_ci#define S5P_FIMV_NV12MT_SALIGN			8192
2528c2ecf20Sopenharmony_ci
2538c2ecf20Sopenharmony_ci/* Sizes of buffers required for encoding */
2548c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_UPMV_SIZE		0x10000
2558c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_COLFLG_SIZE	0x10000
2568c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_INTRAMD_SIZE	0x10000
2578c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_INTRAPRED_SIZE	0x4000
2588c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_NBORINFO_SIZE	0x10000
2598c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_ACDCCOEF_SIZE	0x10000
2608c2ecf20Sopenharmony_ci
2618c2ecf20Sopenharmony_ci/* Encoder */
2628c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_STRM_SIZE	0x2004 /* stream size */
2638c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_PIC_CNT		0x2008 /* picture count */
2648c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_WRITE_PTR	0x200c /* write pointer */
2658c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_SLICE_TYPE	0x2010 /* slice type(I/P/B/IDR) */
2668c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_SLICE_TYPE_NON_CODED	0
2678c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_SLICE_TYPE_I		1
2688c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_SLICE_TYPE_P		2
2698c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_SLICE_TYPE_B		3
2708c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_SLICE_TYPE_SKIPPED	4
2718c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_SLICE_TYPE_OTHERS	5
2728c2ecf20Sopenharmony_ci#define S5P_FIMV_ENCODED_Y_ADDR         0x2014 /* the addr of the encoded
2738c2ecf20Sopenharmony_ci								luma pic */
2748c2ecf20Sopenharmony_ci#define S5P_FIMV_ENCODED_C_ADDR         0x2018 /* the addr of the encoded
2758c2ecf20Sopenharmony_ci								chroma pic */
2768c2ecf20Sopenharmony_ci
2778c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_CH0_SB_ADR	0x2044 /* addr of stream buf */
2788c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_CH0_SB_SIZE	0x204c /* size of stream buf */
2798c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_CH0_CUR_Y_ADR	0x2050 /* current Luma addr */
2808c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_CH0_CUR_C_ADR	0x2054 /* current Chroma addr */
2818c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_CH0_FRAME_INS	0x2058 /* frame insertion */
2828c2ecf20Sopenharmony_ci
2838c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_CH1_SB_ADR	0x2084 /* addr of stream buf */
2848c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_CH1_SB_SIZE	0x208c /* size of stream buf */
2858c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_CH1_CUR_Y_ADR	0x2090 /* current Luma addr */
2868c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_CH1_CUR_C_ADR	0x2094 /* current Chroma addr */
2878c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_SI_CH1_FRAME_INS	0x2098 /* frame insertion */
2888c2ecf20Sopenharmony_ci
2898c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_PIC_TYPE_CTRL	0xc504 /* pic type level control */
2908c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_B_RECON_WRITE_ON	0xc508 /* B frame recon write ctrl */
2918c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_MSLICE_CTRL	0xc50c /* multi slice control */
2928c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_MSLICE_MB		0xc510 /* MB number in the one slice */
2938c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_MSLICE_BIT		0xc514 /* bit count for one slice */
2948c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_CIR_CTRL		0xc518 /* number of intra refresh MB */
2958c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_MAP_FOR_CUR	0xc51c /* linear or tiled mode */
2968c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_PADDING_CTRL	0xc520 /* padding control */
2978c2ecf20Sopenharmony_ci
2988c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_RC_CONFIG		0xc5a0 /* RC config */
2998c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_RC_BIT_RATE	0xc5a8 /* bit rate */
3008c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_RC_QBOUND		0xc5ac /* max/min QP */
3018c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_RC_RPARA		0xc5b0 /* rate control reaction coeff */
3028c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_RC_MB_CTRL		0xc5b4 /* MB adaptive scaling */
3038c2ecf20Sopenharmony_ci
3048c2ecf20Sopenharmony_ci/* Encoder for H264 only */
3058c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_H264_ENTROPY_MODE	0xd004 /* CAVLC or CABAC */
3068c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_H264_ALPHA_OFF	0xd008 /* loop filter alpha offset */
3078c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_H264_BETA_OFF	0xd00c /* loop filter beta offset */
3088c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_H264_NUM_OF_REF	0xd010 /* number of reference for P/B */
3098c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_H264_TRANS_FLAG	0xd034 /* 8x8 transform flag in PPS &
3108c2ecf20Sopenharmony_ci								high profile */
3118c2ecf20Sopenharmony_ci
3128c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_RC_FRAME_RATE	0xd0d0 /* frame rate */
3138c2ecf20Sopenharmony_ci
3148c2ecf20Sopenharmony_ci/* Encoder for MPEG4 only */
3158c2ecf20Sopenharmony_ci#define S5P_FIMV_ENC_MPEG4_QUART_PXL	0xe008 /* qpel interpolation ctrl */
3168c2ecf20Sopenharmony_ci
3178c2ecf20Sopenharmony_ci/* Additional */
3188c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH0_DPB_CONF_CTRL   0x2068 /* DPB Config Control Register */
3198c2ecf20Sopenharmony_ci#define S5P_FIMV_SLICE_INT_MASK		1
3208c2ecf20Sopenharmony_ci#define S5P_FIMV_SLICE_INT_SHIFT	31
3218c2ecf20Sopenharmony_ci#define S5P_FIMV_DDELAY_ENA_SHIFT	30
3228c2ecf20Sopenharmony_ci#define S5P_FIMV_DDELAY_VAL_MASK	0xff
3238c2ecf20Sopenharmony_ci#define S5P_FIMV_DDELAY_VAL_SHIFT	16
3248c2ecf20Sopenharmony_ci#define S5P_FIMV_DPB_COUNT_MASK		0xffff
3258c2ecf20Sopenharmony_ci#define S5P_FIMV_DPB_FLUSH_MASK		1
3268c2ecf20Sopenharmony_ci#define S5P_FIMV_DPB_FLUSH_SHIFT	14
3278c2ecf20Sopenharmony_ci
3288c2ecf20Sopenharmony_ci
3298c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH0_RELEASE_BUF     0x2060 /* DPB release buffer register */
3308c2ecf20Sopenharmony_ci#define S5P_FIMV_SI_CH0_HOST_WR_ADR	0x2064 /* address of shared memory */
3318c2ecf20Sopenharmony_ci
3328c2ecf20Sopenharmony_ci/* Codec numbers  */
3338c2ecf20Sopenharmony_ci#define S5P_FIMV_CODEC_NONE		-1
3348c2ecf20Sopenharmony_ci
3358c2ecf20Sopenharmony_ci#define S5P_FIMV_CODEC_H264_DEC		0
3368c2ecf20Sopenharmony_ci#define S5P_FIMV_CODEC_VC1_DEC		1
3378c2ecf20Sopenharmony_ci#define S5P_FIMV_CODEC_MPEG4_DEC	2
3388c2ecf20Sopenharmony_ci#define S5P_FIMV_CODEC_MPEG2_DEC	3
3398c2ecf20Sopenharmony_ci#define S5P_FIMV_CODEC_H263_DEC		4
3408c2ecf20Sopenharmony_ci#define S5P_FIMV_CODEC_VC1RCV_DEC	5
3418c2ecf20Sopenharmony_ci
3428c2ecf20Sopenharmony_ci#define S5P_FIMV_CODEC_H264_ENC		16
3438c2ecf20Sopenharmony_ci#define S5P_FIMV_CODEC_MPEG4_ENC	17
3448c2ecf20Sopenharmony_ci#define S5P_FIMV_CODEC_H263_ENC		18
3458c2ecf20Sopenharmony_ci
3468c2ecf20Sopenharmony_ci/* Channel Control Register */
3478c2ecf20Sopenharmony_ci#define S5P_FIMV_CH_SEQ_HEADER		1
3488c2ecf20Sopenharmony_ci#define S5P_FIMV_CH_FRAME_START		2
3498c2ecf20Sopenharmony_ci#define S5P_FIMV_CH_LAST_FRAME		3
3508c2ecf20Sopenharmony_ci#define S5P_FIMV_CH_INIT_BUFS		4
3518c2ecf20Sopenharmony_ci#define S5P_FIMV_CH_FRAME_START_REALLOC	5
3528c2ecf20Sopenharmony_ci#define S5P_FIMV_CH_MASK		7
3538c2ecf20Sopenharmony_ci#define S5P_FIMV_CH_SHIFT		16
3548c2ecf20Sopenharmony_ci
3558c2ecf20Sopenharmony_ci
3568c2ecf20Sopenharmony_ci/* Host to RISC command */
3578c2ecf20Sopenharmony_ci#define S5P_FIMV_H2R_CMD_EMPTY		0
3588c2ecf20Sopenharmony_ci#define S5P_FIMV_H2R_CMD_OPEN_INSTANCE	1
3598c2ecf20Sopenharmony_ci#define S5P_FIMV_H2R_CMD_CLOSE_INSTANCE	2
3608c2ecf20Sopenharmony_ci#define S5P_FIMV_H2R_CMD_SYS_INIT	3
3618c2ecf20Sopenharmony_ci#define S5P_FIMV_H2R_CMD_FLUSH		4
3628c2ecf20Sopenharmony_ci#define S5P_FIMV_H2R_CMD_SLEEP		5
3638c2ecf20Sopenharmony_ci#define S5P_FIMV_H2R_CMD_WAKEUP		6
3648c2ecf20Sopenharmony_ci
3658c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_EMPTY			0
3668c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_OPEN_INSTANCE_RET	1
3678c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_CLOSE_INSTANCE_RET	2
3688c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_RSV_RET		3
3698c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_SEQ_DONE_RET		4
3708c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_FRAME_DONE_RET		5
3718c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_SLICE_DONE_RET		6
3728c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_ENC_COMPLETE_RET	7
3738c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_SYS_INIT_RET		8
3748c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_FW_STATUS_RET		9
3758c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_SLEEP_RET		10
3768c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_WAKEUP_RET		11
3778c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_FLUSH_RET		12
3788c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_INIT_BUFFERS_RET	15
3798c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_EDFU_INIT_RET		16
3808c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_ERR_RET		32
3818c2ecf20Sopenharmony_ci
3828c2ecf20Sopenharmony_ci/* Dummy definition for MFCv6 compatibility */
3838c2ecf20Sopenharmony_ci#define S5P_FIMV_CODEC_H264_MVC_DEC		-1
3848c2ecf20Sopenharmony_ci#define S5P_FIMV_R2H_CMD_FIELD_DONE_RET		-1
3858c2ecf20Sopenharmony_ci#define S5P_FIMV_MFC_RESET			-1
3868c2ecf20Sopenharmony_ci#define S5P_FIMV_RISC_ON			-1
3878c2ecf20Sopenharmony_ci#define S5P_FIMV_RISC_BASE_ADDRESS		-1
3888c2ecf20Sopenharmony_ci#define S5P_FIMV_CODEC_VP8_DEC			-1
3898c2ecf20Sopenharmony_ci#define S5P_FIMV_REG_CLEAR_BEGIN		0
3908c2ecf20Sopenharmony_ci#define S5P_FIMV_REG_CLEAR_COUNT		0
3918c2ecf20Sopenharmony_ci
3928c2ecf20Sopenharmony_ci/* Error handling defines */
3938c2ecf20Sopenharmony_ci#define S5P_FIMV_ERR_NO_VALID_SEQ_HDR		67
3948c2ecf20Sopenharmony_ci#define S5P_FIMV_ERR_INCOMPLETE_FRAME		124
3958c2ecf20Sopenharmony_ci#define S5P_FIMV_ERR_TIMEOUT			140
3968c2ecf20Sopenharmony_ci#define S5P_FIMV_ERR_WARNINGS_START		145
3978c2ecf20Sopenharmony_ci#define S5P_FIMV_ERR_DEC_MASK			0xFFFF
3988c2ecf20Sopenharmony_ci#define S5P_FIMV_ERR_DEC_SHIFT			0
3998c2ecf20Sopenharmony_ci#define S5P_FIMV_ERR_DSPL_MASK			0xFFFF0000
4008c2ecf20Sopenharmony_ci#define S5P_FIMV_ERR_DSPL_SHIFT			16
4018c2ecf20Sopenharmony_ci
4028c2ecf20Sopenharmony_ci/* Shared memory registers' offsets */
4038c2ecf20Sopenharmony_ci
4048c2ecf20Sopenharmony_ci/* An offset of the start position in the stream when
4058c2ecf20Sopenharmony_ci * the start position is not aligned */
4068c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_CROP_INFO_H		0x0020
4078c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_CROP_LEFT_MASK		0xFFFF
4088c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_CROP_LEFT_SHIFT		0
4098c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_CROP_RIGHT_MASK		0xFFFF0000
4108c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_CROP_RIGHT_SHIFT	16
4118c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_CROP_INFO_V		0x0024
4128c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_CROP_TOP_MASK		0xFFFF
4138c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_CROP_TOP_SHIFT		0
4148c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_CROP_BOTTOM_MASK	0xFFFF0000
4158c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_CROP_BOTTOM_SHIFT	16
4168c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_SET_FRAME_TAG		0x0004
4178c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_GET_FRAME_TAG_TOP	0x0008
4188c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_GET_FRAME_TAG_BOT	0x000C
4198c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_START_BYTE_NUM		0x0018
4208c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_RC_VOP_TIMING		0x0030
4218c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_LUMA_DPB_SIZE		0x0064
4228c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_CHROMA_DPB_SIZE		0x0068
4238c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_MV_SIZE			0x006C
4248c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_PIC_TIME_TOP		0x0010
4258c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_PIC_TIME_BOTTOM		0x0014
4268c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_EXT_ENC_CONTROL		0x0028
4278c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_P_B_FRAME_QP		0x0070
4288c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_ASPECT_RATIO_IDC	0x0074
4298c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_EXTENDED_SAR		0x0078
4308c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_H264_I_PERIOD		0x009C
4318c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_RC_CONTROL_CONFIG	0x00A0
4328c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_DISP_FRAME_TYPE_SHIFT	2
4338c2ecf20Sopenharmony_ci
4348c2ecf20Sopenharmony_ci/* Offset used by the hardware to store addresses */
4358c2ecf20Sopenharmony_ci#define MFC_OFFSET_SHIFT	11
4368c2ecf20Sopenharmony_ci
4378c2ecf20Sopenharmony_ci#define FIRMWARE_ALIGN		(128 * SZ_1K)	/* 128KB */
4388c2ecf20Sopenharmony_ci#define MFC_H264_CTX_BUF_SIZE	(600 * SZ_1K)	/* 600KB per H264 instance */
4398c2ecf20Sopenharmony_ci#define MFC_CTX_BUF_SIZE	(10 * SZ_1K)	/* 10KB per instance */
4408c2ecf20Sopenharmony_ci#define DESC_BUF_SIZE		(128 * SZ_1K)	/* 128KB for DESC buffer */
4418c2ecf20Sopenharmony_ci#define SHARED_BUF_SIZE		(8 * SZ_1K)	/* 8KB for shared buffer */
4428c2ecf20Sopenharmony_ci
4438c2ecf20Sopenharmony_ci#define DEF_CPB_SIZE		(256 * SZ_1K)	/* 256KB */
4448c2ecf20Sopenharmony_ci#define MAX_CPB_SIZE		(4 * SZ_1M)	/* 4MB */
4458c2ecf20Sopenharmony_ci#define MAX_FW_SIZE		(384 * SZ_1K)
4468c2ecf20Sopenharmony_ci
4478c2ecf20Sopenharmony_ci#define MFC_VERSION		0x51
4488c2ecf20Sopenharmony_ci#define MFC_NUM_PORTS		2
4498c2ecf20Sopenharmony_ci
4508c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_FRAME_PACK_SEI_AVAIL    0x16C
4518c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_FRAME_PACK_ARRGMENT_ID  0x170
4528c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_FRAME_PACK_SEI_INFO     0x174
4538c2ecf20Sopenharmony_ci#define S5P_FIMV_SHARED_FRAME_PACK_GRID_POS     0x178
4548c2ecf20Sopenharmony_ci
4558c2ecf20Sopenharmony_ci/* Values for resolution change in display status */
4568c2ecf20Sopenharmony_ci#define S5P_FIMV_RES_INCREASE	1
4578c2ecf20Sopenharmony_ci#define S5P_FIMV_RES_DECREASE	2
4588c2ecf20Sopenharmony_ci
4598c2ecf20Sopenharmony_ci#endif /* _REGS_FIMV_H */
460