brintos

brintos / linux-shallow public Read only

0
0
Text · 29.5 KiB · 7eca82e Raw
887 lines · c
1/* SPDX-License-Identifier: GPL-2.0+ */2/*3 * vsp1_regs.h  --  R-Car VSP1 Registers Definitions4 *5 * Copyright (C) 2013 Renesas Electronics Corporation6 *7 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)8 */9 10#ifndef __VSP1_REGS_H__11#define __VSP1_REGS_H__12 13/* -----------------------------------------------------------------------------14 * General Control Registers15 */16 17#define VI6_CMD(n)			(0x0000 + (n) * 4)18#define VI6_CMD_UPDHDR			BIT(4)19#define VI6_CMD_STRCMD			BIT(0)20 21#define VI6_CLK_DCSWT			0x001822#define VI6_CLK_DCSWT_CSTPW_MASK	(0xff << 8)23#define VI6_CLK_DCSWT_CSTPW_SHIFT	824#define VI6_CLK_DCSWT_CSTRW_MASK	(0xff << 0)25#define VI6_CLK_DCSWT_CSTRW_SHIFT	026 27#define VI6_SRESET			0x002828#define VI6_SRESET_SRTS(n)		BIT(n)29 30#define VI6_STATUS			0x003831#define VI6_STATUS_FLD_STD(n)		BIT((n) + 28)32#define VI6_STATUS_SYS_ACT(n)		BIT((n) + 8)33 34#define VI6_WPF_IRQ_ENB(n)		(0x0048 + (n) * 12)35#define VI6_WPF_IRQ_ENB_UNDE		BIT(16)36#define VI6_WPF_IRQ_ENB_DFEE		BIT(1)37#define VI6_WPF_IRQ_ENB_FREE		BIT(0)38 39#define VI6_WPF_IRQ_STA(n)		(0x004c + (n) * 12)40#define VI6_WPF_IRQ_STA_UND		BIT(16)41#define VI6_WPF_IRQ_STA_DFE		BIT(1)42#define VI6_WPF_IRQ_STA_FRE		BIT(0)43 44#define VI6_DISP_IRQ_ENB(n)		(0x0078 + (n) * 60)45#define VI6_DISP_IRQ_ENB_DSTE		BIT(8)46#define VI6_DISP_IRQ_ENB_MAEE		BIT(5)47#define VI6_DISP_IRQ_ENB_LNEE(n)	BIT(n)48 49#define VI6_DISP_IRQ_STA(n)		(0x007c + (n) * 60)50#define VI6_DISP_IRQ_STA_DST		BIT(8)51#define VI6_DISP_IRQ_STA_MAE		BIT(5)52#define VI6_DISP_IRQ_STA_LNE(n)		BIT(n)53 54#define VI6_WPF_LINE_COUNT(n)		(0x0084 + (n) * 4)55#define VI6_WPF_LINE_COUNT_MASK		(0x1fffff << 0)56 57/* -----------------------------------------------------------------------------58 * Display List Control Registers59 */60 61#define VI6_DL_CTRL			0x010062#define VI6_DL_CTRL_AR_WAIT_MASK	(0xffff << 16)63#define VI6_DL_CTRL_AR_WAIT_SHIFT	1664#define VI6_DL_CTRL_DC2			BIT(12)65#define VI6_DL_CTRL_DC1			BIT(8)66#define VI6_DL_CTRL_DC0			BIT(4)67#define VI6_DL_CTRL_CFM0		BIT(2)68#define VI6_DL_CTRL_NH0			BIT(1)69#define VI6_DL_CTRL_DLE			BIT(0)70 71#define VI6_DL_HDR_ADDR(n)		(0x0104 + (n) * 4)72 73#define VI6_DL_SWAP			0x011474#define VI6_DL_SWAP_LWS			BIT(2)75#define VI6_DL_SWAP_WDS			BIT(1)76#define VI6_DL_SWAP_BTS			BIT(0)77 78#define VI6_DL_EXT_CTRL(n)		(0x011c + (n) * 36)79#define VI6_DL_EXT_CTRL_NWE		BIT(16)80#define VI6_DL_EXT_CTRL_POLINT_MASK	(0x3f << 8)81#define VI6_DL_EXT_CTRL_POLINT_SHIFT	882#define VI6_DL_EXT_CTRL_DLPRI		BIT(5)83#define VI6_DL_EXT_CTRL_EXPRI		BIT(4)84#define VI6_DL_EXT_CTRL_EXT		BIT(0)85 86#define VI6_DL_EXT_AUTOFLD_INT		BIT(0)87 88#define VI6_DL_BODY_SIZE		0x012089#define VI6_DL_BODY_SIZE_UPD		BIT(24)90#define VI6_DL_BODY_SIZE_BS_MASK	(0x1ffff << 0)91#define VI6_DL_BODY_SIZE_BS_SHIFT	092 93/* -----------------------------------------------------------------------------94 * RPF Control Registers95 */96 97#define VI6_RPF_OFFSET			0x10098 99#define VI6_RPF_SRC_BSIZE		0x0300100#define VI6_RPF_SRC_BSIZE_BHSIZE_MASK	(0x1fff << 16)101#define VI6_RPF_SRC_BSIZE_BHSIZE_SHIFT	16102#define VI6_RPF_SRC_BSIZE_BVSIZE_MASK	(0x1fff << 0)103#define VI6_RPF_SRC_BSIZE_BVSIZE_SHIFT	0104 105#define VI6_RPF_SRC_ESIZE		0x0304106#define VI6_RPF_SRC_ESIZE_EHSIZE_MASK	(0x1fff << 16)107#define VI6_RPF_SRC_ESIZE_EHSIZE_SHIFT	16108#define VI6_RPF_SRC_ESIZE_EVSIZE_MASK	(0x1fff << 0)109#define VI6_RPF_SRC_ESIZE_EVSIZE_SHIFT	0110 111#define VI6_RPF_INFMT			0x0308112#define VI6_RPF_INFMT_VIR		BIT(28)113#define VI6_RPF_INFMT_CIPM		BIT(16)114#define VI6_RPF_INFMT_SPYCS		BIT(15)115#define VI6_RPF_INFMT_SPUVS		BIT(14)116#define VI6_RPF_INFMT_CEXT_ZERO		(0 << 12)117#define VI6_RPF_INFMT_CEXT_EXT		(1 << 12)118#define VI6_RPF_INFMT_CEXT_ONE		(2 << 12)119#define VI6_RPF_INFMT_CEXT_MASK		(3 << 12)120#define VI6_RPF_INFMT_RDTM_BT601	(0 << 9)121#define VI6_RPF_INFMT_RDTM_BT601_EXT	(1 << 9)122#define VI6_RPF_INFMT_RDTM_BT709	(2 << 9)123#define VI6_RPF_INFMT_RDTM_BT709_EXT	(3 << 9)124#define VI6_RPF_INFMT_RDTM_MASK		(7 << 9)125#define VI6_RPF_INFMT_CSC		BIT(8)126#define VI6_RPF_INFMT_RDFMT_MASK	(0x7f << 0)127#define VI6_RPF_INFMT_RDFMT_SHIFT	0128 129#define VI6_RPF_DSWAP			0x030c130#define VI6_RPF_DSWAP_A_LLS		BIT(11)131#define VI6_RPF_DSWAP_A_LWS		BIT(10)132#define VI6_RPF_DSWAP_A_WDS		BIT(9)133#define VI6_RPF_DSWAP_A_BTS		BIT(8)134#define VI6_RPF_DSWAP_P_LLS		BIT(3)135#define VI6_RPF_DSWAP_P_LWS		BIT(2)136#define VI6_RPF_DSWAP_P_WDS		BIT(1)137#define VI6_RPF_DSWAP_P_BTS		BIT(0)138 139#define VI6_RPF_LOC			0x0310140#define VI6_RPF_LOC_HCOORD_MASK		(0x1fff << 16)141#define VI6_RPF_LOC_HCOORD_SHIFT	16142#define VI6_RPF_LOC_VCOORD_MASK		(0x1fff << 0)143#define VI6_RPF_LOC_VCOORD_SHIFT	0144 145#define VI6_RPF_ALPH_SEL		0x0314146#define VI6_RPF_ALPH_SEL_ASEL_PACKED	(0 << 28)147#define VI6_RPF_ALPH_SEL_ASEL_8B_PLANE	(1 << 28)148#define VI6_RPF_ALPH_SEL_ASEL_SELECT	(2 << 28)149#define VI6_RPF_ALPH_SEL_ASEL_1B_PLANE	(3 << 28)150#define VI6_RPF_ALPH_SEL_ASEL_FIXED	(4 << 28)151#define VI6_RPF_ALPH_SEL_ASEL_MASK	(7 << 28)152#define VI6_RPF_ALPH_SEL_ASEL_SHIFT	28153#define VI6_RPF_ALPH_SEL_IROP_MASK	(0xf << 24)154#define VI6_RPF_ALPH_SEL_IROP_SHIFT	24155#define VI6_RPF_ALPH_SEL_BSEL		BIT(23)156#define VI6_RPF_ALPH_SEL_AEXT_ZERO	(0 << 18)157#define VI6_RPF_ALPH_SEL_AEXT_EXT	(1 << 18)158#define VI6_RPF_ALPH_SEL_AEXT_ONE	(2 << 18)159#define VI6_RPF_ALPH_SEL_AEXT_MASK	(3 << 18)160#define VI6_RPF_ALPH_SEL_ALPHA1_MASK	(0xff << 8)161#define VI6_RPF_ALPH_SEL_ALPHA1_SHIFT	8162#define VI6_RPF_ALPH_SEL_ALPHA0_MASK	(0xff << 0)163#define VI6_RPF_ALPH_SEL_ALPHA0_SHIFT	0164 165#define VI6_RPF_VRTCOL_SET		0x0318166#define VI6_RPF_VRTCOL_SET_LAYA_MASK	(0xff << 24)167#define VI6_RPF_VRTCOL_SET_LAYA_SHIFT	24168#define VI6_RPF_VRTCOL_SET_LAYR_MASK	(0xff << 16)169#define VI6_RPF_VRTCOL_SET_LAYR_SHIFT	16170#define VI6_RPF_VRTCOL_SET_LAYG_MASK	(0xff << 8)171#define VI6_RPF_VRTCOL_SET_LAYG_SHIFT	8172#define VI6_RPF_VRTCOL_SET_LAYB_MASK	(0xff << 0)173#define VI6_RPF_VRTCOL_SET_LAYB_SHIFT	0174 175#define VI6_RPF_MSK_CTRL		0x031c176#define VI6_RPF_MSK_CTRL_MSK_EN		BIT(24)177#define VI6_RPF_MSK_CTRL_MGR_MASK	(0xff << 16)178#define VI6_RPF_MSK_CTRL_MGR_SHIFT	16179#define VI6_RPF_MSK_CTRL_MGG_MASK	(0xff << 8)180#define VI6_RPF_MSK_CTRL_MGG_SHIFT	8181#define VI6_RPF_MSK_CTRL_MGB_MASK	(0xff << 0)182#define VI6_RPF_MSK_CTRL_MGB_SHIFT	0183 184#define VI6_RPF_MSK_SET0		0x0320185#define VI6_RPF_MSK_SET1		0x0324186#define VI6_RPF_MSK_SET_MSA_MASK	(0xff << 24)187#define VI6_RPF_MSK_SET_MSA_SHIFT	24188#define VI6_RPF_MSK_SET_MSR_MASK	(0xff << 16)189#define VI6_RPF_MSK_SET_MSR_SHIFT	16190#define VI6_RPF_MSK_SET_MSG_MASK	(0xff << 8)191#define VI6_RPF_MSK_SET_MSG_SHIFT	8192#define VI6_RPF_MSK_SET_MSB_MASK	(0xff << 0)193#define VI6_RPF_MSK_SET_MSB_SHIFT	0194 195#define VI6_RPF_CKEY_CTRL		0x0328196#define VI6_RPF_CKEY_CTRL_CV		BIT(4)197#define VI6_RPF_CKEY_CTRL_SAPE1		BIT(1)198#define VI6_RPF_CKEY_CTRL_SAPE0		BIT(0)199 200#define VI6_RPF_CKEY_SET0		0x032c201#define VI6_RPF_CKEY_SET1		0x0330202#define VI6_RPF_CKEY_SET_AP_MASK	(0xff << 24)203#define VI6_RPF_CKEY_SET_AP_SHIFT	24204#define VI6_RPF_CKEY_SET_R_MASK		(0xff << 16)205#define VI6_RPF_CKEY_SET_R_SHIFT	16206#define VI6_RPF_CKEY_SET_GY_MASK	(0xff << 8)207#define VI6_RPF_CKEY_SET_GY_SHIFT	8208#define VI6_RPF_CKEY_SET_B_MASK		(0xff << 0)209#define VI6_RPF_CKEY_SET_B_SHIFT	0210 211#define VI6_RPF_SRCM_PSTRIDE		0x0334212#define VI6_RPF_SRCM_PSTRIDE_Y_SHIFT	16213#define VI6_RPF_SRCM_PSTRIDE_C_SHIFT	0214 215#define VI6_RPF_SRCM_ASTRIDE		0x0338216#define VI6_RPF_SRCM_PSTRIDE_A_SHIFT	0217 218#define VI6_RPF_SRCM_ADDR_Y		0x033c219#define VI6_RPF_SRCM_ADDR_C0		0x0340220#define VI6_RPF_SRCM_ADDR_C1		0x0344221#define VI6_RPF_SRCM_ADDR_AI		0x0348222 223#define VI6_RPF_MULT_ALPHA		0x036c224#define VI6_RPF_MULT_ALPHA_A_MMD_NONE	(0 << 12)225#define VI6_RPF_MULT_ALPHA_A_MMD_RATIO	(1 << 12)226#define VI6_RPF_MULT_ALPHA_P_MMD_NONE	(0 << 8)227#define VI6_RPF_MULT_ALPHA_P_MMD_RATIO	(1 << 8)228#define VI6_RPF_MULT_ALPHA_P_MMD_IMAGE	(2 << 8)229#define VI6_RPF_MULT_ALPHA_P_MMD_BOTH	(3 << 8)230#define VI6_RPF_MULT_ALPHA_RATIO_MASK	(0xff << 0)231#define VI6_RPF_MULT_ALPHA_RATIO_SHIFT	0232 233#define VI6_RPF_EXT_INFMT0		0x0370234#define VI6_RPF_EXT_INFMT0_F2B		BIT(12)235#define VI6_RPF_EXT_INFMT0_IPBD_Y_8	(0 << 8)236#define VI6_RPF_EXT_INFMT0_IPBD_Y_10	(1 << 8)237#define VI6_RPF_EXT_INFMT0_IPBD_Y_12	(2 << 8)238#define VI6_RPF_EXT_INFMT0_IPBD_C_8	(0 << 4)239#define VI6_RPF_EXT_INFMT0_IPBD_C_10	(1 << 4)240#define VI6_RPF_EXT_INFMT0_IPBD_C_12	(2 << 4)241#define VI6_RPF_EXT_INFMT0_BYPP_M1_RGB10	(3 << 0)242 243#define VI6_RPF_EXT_INFMT1		0x0374244#define VI6_RPF_EXT_INFMT1_PACK_CPOS(a, b, c, d) \245	(((a) << 24) | ((b) << 16) | ((c) << 8) | ((d) << 0))246 247#define VI6_RPF_EXT_INFMT2		0x0378248#define VI6_RPF_EXT_INFMT2_PACK_CLEN(a, b, c, d) \249	(((a) << 24) | ((b) << 16) | ((c) << 8) | ((d) << 0))250 251#define VI6_RPF_BRDITH_CTRL		0x03e0252#define VI6_RPF_BRDITH_CTRL_ODE		BIT(8)253#define VI6_RPF_BRDITH_CTRL_CBRM	BIT(0)254 255/* -----------------------------------------------------------------------------256 * WPF Control Registers257 */258 259#define VI6_WPF_OFFSET			0x100260 261#define VI6_WPF_SRCRPF			0x1000262#define VI6_WPF_SRCRPF_VIRACT_DIS	(0 << 28)263#define VI6_WPF_SRCRPF_VIRACT_SUB	(1 << 28)264#define VI6_WPF_SRCRPF_VIRACT_MST	(2 << 28)265#define VI6_WPF_SRCRPF_VIRACT_MASK	(3 << 28)266#define VI6_WPF_SRCRPF_VIRACT2_DIS	(0 << 24)267#define VI6_WPF_SRCRPF_VIRACT2_SUB	(1 << 24)268#define VI6_WPF_SRCRPF_VIRACT2_MST	(2 << 24)269#define VI6_WPF_SRCRPF_VIRACT2_MASK	(3 << 24)270#define VI6_WPF_SRCRPF_RPF_ACT_DIS(n)	(0 << ((n) * 2))271#define VI6_WPF_SRCRPF_RPF_ACT_SUB(n)	(1 << ((n) * 2))272#define VI6_WPF_SRCRPF_RPF_ACT_MST(n)	(2 << ((n) * 2))273#define VI6_WPF_SRCRPF_RPF_ACT_MASK(n)	(3 << ((n) * 2))274 275#define VI6_WPF_HSZCLIP			0x1004276#define VI6_WPF_VSZCLIP			0x1008277#define VI6_WPF_SZCLIP_EN		BIT(28)278#define VI6_WPF_SZCLIP_OFST_MASK	(0xff << 16)279#define VI6_WPF_SZCLIP_OFST_SHIFT	16280#define VI6_WPF_SZCLIP_SIZE_MASK	(0xfff << 0)281#define VI6_WPF_SZCLIP_SIZE_SHIFT	0282 283#define VI6_WPF_OUTFMT			0x100c284#define VI6_WPF_OUTFMT_PDV_MASK		(0xff << 24)285#define VI6_WPF_OUTFMT_PDV_SHIFT	24286#define VI6_WPF_OUTFMT_PXA		BIT(23)287#define VI6_WPF_OUTFMT_ROT		BIT(18)288#define VI6_WPF_OUTFMT_HFLP		BIT(17)289#define VI6_WPF_OUTFMT_FLP		BIT(16)290#define VI6_WPF_OUTFMT_SPYCS		BIT(15)291#define VI6_WPF_OUTFMT_SPUVS		BIT(14)292#define VI6_WPF_OUTFMT_DITH_DIS		(0 << 12)293#define VI6_WPF_OUTFMT_DITH_EN		(3 << 12)294#define VI6_WPF_OUTFMT_DITH_MASK	(3 << 12)295#define VI6_WPF_OUTFMT_WRTM_BT601	(0 << 9)296#define VI6_WPF_OUTFMT_WRTM_BT601_EXT	(1 << 9)297#define VI6_WPF_OUTFMT_WRTM_BT709	(2 << 9)298#define VI6_WPF_OUTFMT_WRTM_BT709_EXT	(3 << 9)299#define VI6_WPF_OUTFMT_WRTM_MASK	(7 << 9)300#define VI6_WPF_OUTFMT_CSC		BIT(8)301#define VI6_WPF_OUTFMT_WRFMT_MASK	(0x7f << 0)302#define VI6_WPF_OUTFMT_WRFMT_SHIFT	0303 304#define VI6_WPF_DSWAP			0x1010305#define VI6_WPF_DSWAP_P_LLS		BIT(3)306#define VI6_WPF_DSWAP_P_LWS		BIT(2)307#define VI6_WPF_DSWAP_P_WDS		BIT(1)308#define VI6_WPF_DSWAP_P_BTS		BIT(0)309 310#define VI6_WPF_RNDCTRL			0x1014311#define VI6_WPF_RNDCTRL_CBRM		BIT(28)312#define VI6_WPF_RNDCTRL_ABRM_TRUNC	(0 << 24)313#define VI6_WPF_RNDCTRL_ABRM_ROUND	(1 << 24)314#define VI6_WPF_RNDCTRL_ABRM_THRESH	(2 << 24)315#define VI6_WPF_RNDCTRL_ABRM_MASK	(3 << 24)316#define VI6_WPF_RNDCTRL_ATHRESH_MASK	(0xff << 16)317#define VI6_WPF_RNDCTRL_ATHRESH_SHIFT	16318#define VI6_WPF_RNDCTRL_CLMD_FULL	(0 << 12)319#define VI6_WPF_RNDCTRL_CLMD_CLIP	(1 << 12)320#define VI6_WPF_RNDCTRL_CLMD_EXT	(2 << 12)321#define VI6_WPF_RNDCTRL_CLMD_MASK	(3 << 12)322 323#define VI6_WPF_ROT_CTRL		0x1018324#define VI6_WPF_ROT_CTRL_LN16		BIT(17)325#define VI6_WPF_ROT_CTRL_LMEM_WD_MASK	(0x1fff << 0)326#define VI6_WPF_ROT_CTRL_LMEM_WD_SHIFT	0327 328#define VI6_WPF_DSTM_STRIDE_Y		0x101c329#define VI6_WPF_DSTM_STRIDE_C		0x1020330#define VI6_WPF_DSTM_ADDR_Y		0x1024331#define VI6_WPF_DSTM_ADDR_C0		0x1028332#define VI6_WPF_DSTM_ADDR_C1		0x102c333 334#define VI6_WPF_WRBCK_CTRL(n)		(0x1034 + (n) * 0x100)335#define VI6_WPF_WRBCK_CTRL_WBMD		BIT(0)336 337/* -----------------------------------------------------------------------------338 * UIF Control Registers339 */340 341#define VI6_UIF_OFFSET			0x100342 343#define VI6_UIF_DISCOM_DOCMCR		0x1c00344#define VI6_UIF_DISCOM_DOCMCR_CMPRU	BIT(16)345#define VI6_UIF_DISCOM_DOCMCR_CMPR	BIT(0)346 347#define VI6_UIF_DISCOM_DOCMSTR		0x1c04348#define VI6_UIF_DISCOM_DOCMSTR_CMPPRE	BIT(1)349#define VI6_UIF_DISCOM_DOCMSTR_CMPST	BIT(0)350 351#define VI6_UIF_DISCOM_DOCMCLSTR	0x1c08352#define VI6_UIF_DISCOM_DOCMCLSTR_CMPCLPRE	BIT(1)353#define VI6_UIF_DISCOM_DOCMCLSTR_CMPCLST	BIT(0)354 355#define VI6_UIF_DISCOM_DOCMIENR		0x1c0c356#define VI6_UIF_DISCOM_DOCMIENR_CMPPREIEN	BIT(1)357#define VI6_UIF_DISCOM_DOCMIENR_CMPIEN		BIT(0)358 359#define VI6_UIF_DISCOM_DOCMMDR		0x1c10360#define VI6_UIF_DISCOM_DOCMMDR_INTHRH(n)	((n) << 16)361 362#define VI6_UIF_DISCOM_DOCMPMR		0x1c14363#define VI6_UIF_DISCOM_DOCMPMR_CMPDFF(n)	((n) << 17)364#define VI6_UIF_DISCOM_DOCMPMR_CMPDFA(n)	((n) << 8)365#define VI6_UIF_DISCOM_DOCMPMR_CMPDAUF		BIT(7)366#define VI6_UIF_DISCOM_DOCMPMR_SEL(n)		((n) << 0)367 368#define VI6_UIF_DISCOM_DOCMECRCR	0x1c18369#define VI6_UIF_DISCOM_DOCMCCRCR	0x1c1c370#define VI6_UIF_DISCOM_DOCMSPXR		0x1c20371#define VI6_UIF_DISCOM_DOCMSPYR		0x1c24372#define VI6_UIF_DISCOM_DOCMSZXR		0x1c28373#define VI6_UIF_DISCOM_DOCMSZYR		0x1c2c374 375/* -----------------------------------------------------------------------------376 * DPR Control Registers377 */378 379#define VI6_DPR_RPF_ROUTE(n)		(0x2000 + (n) * 4)380 381#define VI6_DPR_WPF_FPORCH(n)		(0x2014 + (n) * 4)382#define VI6_DPR_WPF_FPORCH_FP_WPFN	(5 << 8)383 384#define VI6_DPR_SRU_ROUTE		0x2024385#define VI6_DPR_UDS_ROUTE(n)		(0x2028 + (n) * 4)386#define VI6_DPR_LUT_ROUTE		0x203c387#define VI6_DPR_CLU_ROUTE		0x2040388#define VI6_DPR_HST_ROUTE		0x2044389#define VI6_DPR_HSI_ROUTE		0x2048390#define VI6_DPR_BRU_ROUTE		0x204c391#define VI6_DPR_ILV_BRS_ROUTE		0x2050392#define VI6_DPR_ROUTE_BRSSEL		BIT(28)393#define VI6_DPR_ROUTE_FXA_MASK		(0xff << 16)394#define VI6_DPR_ROUTE_FXA_SHIFT		16395#define VI6_DPR_ROUTE_FP_MASK		(0x3f << 8)396#define VI6_DPR_ROUTE_FP_SHIFT		8397#define VI6_DPR_ROUTE_RT_MASK		(0x3f << 0)398#define VI6_DPR_ROUTE_RT_SHIFT		0399 400#define VI6_DPR_HGO_SMPPT		0x2054401#define VI6_DPR_HGT_SMPPT		0x2058402#define VI6_DPR_SMPPT_TGW_MASK		(7 << 8)403#define VI6_DPR_SMPPT_TGW_SHIFT		8404#define VI6_DPR_SMPPT_PT_MASK		(0x3f << 0)405#define VI6_DPR_SMPPT_PT_SHIFT		0406 407#define VI6_DPR_UIF_ROUTE(n)		(0x2074 + (n) * 4)408 409#define VI6_DPR_NODE_RPF(n)		(n)410#define VI6_DPR_NODE_UIF(n)		(12 + (n))411#define VI6_DPR_NODE_SRU		16412#define VI6_DPR_NODE_UDS(n)		(17 + (n))413#define VI6_DPR_NODE_LUT		22414#define VI6_DPR_NODE_BRU_IN(n)		(((n) <= 3) ? 23 + (n) : 49)415#define VI6_DPR_NODE_BRU_OUT		27416#define VI6_DPR_NODE_CLU		29417#define VI6_DPR_NODE_HST		30418#define VI6_DPR_NODE_HSI		31419#define VI6_DPR_NODE_BRS_IN(n)		(38 + (n))420#define VI6_DPR_NODE_LIF		55		/* Gen2 only */421#define VI6_DPR_NODE_WPF(n)		(56 + (n))422#define VI6_DPR_NODE_UNUSED		63423 424/* -----------------------------------------------------------------------------425 * SRU Control Registers426 */427 428#define VI6_SRU_CTRL0			0x2200429#define VI6_SRU_CTRL0_PARAM0_MASK	(0x1ff << 16)430#define VI6_SRU_CTRL0_PARAM0_SHIFT	16431#define VI6_SRU_CTRL0_PARAM1_MASK	(0x1f << 8)432#define VI6_SRU_CTRL0_PARAM1_SHIFT	8433#define VI6_SRU_CTRL0_MODE_UPSCALE	(4 << 4)434#define VI6_SRU_CTRL0_PARAM2		BIT(3)435#define VI6_SRU_CTRL0_PARAM3		BIT(2)436#define VI6_SRU_CTRL0_PARAM4		BIT(1)437#define VI6_SRU_CTRL0_EN		BIT(0)438 439#define VI6_SRU_CTRL1			0x2204440#define VI6_SRU_CTRL1_PARAM5		0x7ff441 442#define VI6_SRU_CTRL2			0x2208443#define VI6_SRU_CTRL2_PARAM6_SHIFT	16444#define VI6_SRU_CTRL2_PARAM7_SHIFT	8445#define VI6_SRU_CTRL2_PARAM8_SHIFT	0446 447/* -----------------------------------------------------------------------------448 * UDS Control Registers449 */450 451#define VI6_UDS_OFFSET			0x100452 453#define VI6_UDS_CTRL			0x2300454#define VI6_UDS_CTRL_AMD		BIT(30)455#define VI6_UDS_CTRL_FMD		BIT(29)456#define VI6_UDS_CTRL_BLADV		BIT(28)457#define VI6_UDS_CTRL_AON		BIT(25)458#define VI6_UDS_CTRL_ATHON		BIT(24)459#define VI6_UDS_CTRL_BC			BIT(20)460#define VI6_UDS_CTRL_NE_A		BIT(19)461#define VI6_UDS_CTRL_NE_RCR		BIT(18)462#define VI6_UDS_CTRL_NE_GY		BIT(17)463#define VI6_UDS_CTRL_NE_BCB		BIT(16)464#define VI6_UDS_CTRL_AMDSLH		BIT(2)465#define VI6_UDS_CTRL_TDIPC		BIT(1)466 467#define VI6_UDS_SCALE			0x2304468#define VI6_UDS_SCALE_HMANT_MASK	(0xf << 28)469#define VI6_UDS_SCALE_HMANT_SHIFT	28470#define VI6_UDS_SCALE_HFRAC_MASK	(0xfff << 16)471#define VI6_UDS_SCALE_HFRAC_SHIFT	16472#define VI6_UDS_SCALE_VMANT_MASK	(0xf << 12)473#define VI6_UDS_SCALE_VMANT_SHIFT	12474#define VI6_UDS_SCALE_VFRAC_MASK	(0xfff << 0)475#define VI6_UDS_SCALE_VFRAC_SHIFT	0476 477#define VI6_UDS_ALPTH			0x2308478#define VI6_UDS_ALPTH_TH1_MASK		(0xff << 8)479#define VI6_UDS_ALPTH_TH1_SHIFT		8480#define VI6_UDS_ALPTH_TH0_MASK		(0xff << 0)481#define VI6_UDS_ALPTH_TH0_SHIFT		0482 483#define VI6_UDS_ALPVAL			0x230c484#define VI6_UDS_ALPVAL_VAL2_MASK	(0xff << 16)485#define VI6_UDS_ALPVAL_VAL2_SHIFT	16486#define VI6_UDS_ALPVAL_VAL1_MASK	(0xff << 8)487#define VI6_UDS_ALPVAL_VAL1_SHIFT	8488#define VI6_UDS_ALPVAL_VAL0_MASK	(0xff << 0)489#define VI6_UDS_ALPVAL_VAL0_SHIFT	0490 491#define VI6_UDS_PASS_BWIDTH		0x2310492#define VI6_UDS_PASS_BWIDTH_H_MASK	(0x7f << 16)493#define VI6_UDS_PASS_BWIDTH_H_SHIFT	16494#define VI6_UDS_PASS_BWIDTH_V_MASK	(0x7f << 0)495#define VI6_UDS_PASS_BWIDTH_V_SHIFT	0496 497#define VI6_UDS_HPHASE			0x2314498#define VI6_UDS_HPHASE_HSTP_MASK	(0xfff << 16)499#define VI6_UDS_HPHASE_HSTP_SHIFT	16500#define VI6_UDS_HPHASE_HEDP_MASK	(0xfff << 0)501#define VI6_UDS_HPHASE_HEDP_SHIFT	0502 503#define VI6_UDS_IPC			0x2318504#define VI6_UDS_IPC_FIELD		BIT(27)505#define VI6_UDS_IPC_VEDP_MASK		(0xfff << 0)506#define VI6_UDS_IPC_VEDP_SHIFT		0507 508#define VI6_UDS_HSZCLIP			0x231c509#define VI6_UDS_HSZCLIP_HCEN		BIT(28)510#define VI6_UDS_HSZCLIP_HCL_OFST_MASK	(0xff << 16)511#define VI6_UDS_HSZCLIP_HCL_OFST_SHIFT	16512#define VI6_UDS_HSZCLIP_HCL_SIZE_MASK	(0x1fff << 0)513#define VI6_UDS_HSZCLIP_HCL_SIZE_SHIFT	0514 515#define VI6_UDS_CLIP_SIZE		0x2324516#define VI6_UDS_CLIP_SIZE_HSIZE_MASK	(0x1fff << 16)517#define VI6_UDS_CLIP_SIZE_HSIZE_SHIFT	16518#define VI6_UDS_CLIP_SIZE_VSIZE_MASK	(0x1fff << 0)519#define VI6_UDS_CLIP_SIZE_VSIZE_SHIFT	0520 521#define VI6_UDS_FILL_COLOR		0x2328522#define VI6_UDS_FILL_COLOR_RFILC_MASK	(0xff << 16)523#define VI6_UDS_FILL_COLOR_RFILC_SHIFT	16524#define VI6_UDS_FILL_COLOR_GFILC_MASK	(0xff << 8)525#define VI6_UDS_FILL_COLOR_GFILC_SHIFT	8526#define VI6_UDS_FILL_COLOR_BFILC_MASK	(0xff << 0)527#define VI6_UDS_FILL_COLOR_BFILC_SHIFT	0528 529/* -----------------------------------------------------------------------------530 * LUT Control Registers531 */532 533#define VI6_LUT_CTRL			0x2800534#define VI6_LUT_CTRL_EN			BIT(0)535 536/* -----------------------------------------------------------------------------537 * CLU Control Registers538 */539 540#define VI6_CLU_CTRL			0x2900541#define VI6_CLU_CTRL_AAI		BIT(28)542#define VI6_CLU_CTRL_MVS		BIT(24)543#define VI6_CLU_CTRL_AX1I_2D		(3 << 14)544#define VI6_CLU_CTRL_AX2I_2D		(1 << 12)545#define VI6_CLU_CTRL_OS0_2D		(3 << 8)546#define VI6_CLU_CTRL_OS1_2D		(1 << 6)547#define VI6_CLU_CTRL_OS2_2D		(3 << 4)548#define VI6_CLU_CTRL_M2D		BIT(1)549#define VI6_CLU_CTRL_EN			BIT(0)550 551/* -----------------------------------------------------------------------------552 * HST Control Registers553 */554 555#define VI6_HST_CTRL			0x2a00556#define VI6_HST_CTRL_EN			BIT(0)557 558/* -----------------------------------------------------------------------------559 * HSI Control Registers560 */561 562#define VI6_HSI_CTRL			0x2b00563#define VI6_HSI_CTRL_EN			BIT(0)564 565/* -----------------------------------------------------------------------------566 * BRS and BRU Control Registers567 */568 569#define VI6_ROP_NOP			0570#define VI6_ROP_AND			1571#define VI6_ROP_AND_REV			2572#define VI6_ROP_COPY			3573#define VI6_ROP_AND_INV			4574#define VI6_ROP_CLEAR			5575#define VI6_ROP_XOR			6576#define VI6_ROP_OR			7577#define VI6_ROP_NOR			8578#define VI6_ROP_EQUIV			9579#define VI6_ROP_INVERT			10580#define VI6_ROP_OR_REV			11581#define VI6_ROP_COPY_INV		12582#define VI6_ROP_OR_INV			13583#define VI6_ROP_NAND			14584#define VI6_ROP_SET			15585 586#define VI6_BRU_BASE			0x2c00587#define VI6_BRS_BASE			0x3900588 589#define VI6_BRU_INCTRL			0x0000590#define VI6_BRU_INCTRL_NRM		BIT(28)591#define VI6_BRU_INCTRL_DnON		(1 << (16 + (n)))592#define VI6_BRU_INCTRL_DITHn_OFF	(0 << ((n) * 4))593#define VI6_BRU_INCTRL_DITHn_18BPP	(1 << ((n) * 4))594#define VI6_BRU_INCTRL_DITHn_16BPP	(2 << ((n) * 4))595#define VI6_BRU_INCTRL_DITHn_15BPP	(3 << ((n) * 4))596#define VI6_BRU_INCTRL_DITHn_12BPP	(4 << ((n) * 4))597#define VI6_BRU_INCTRL_DITHn_8BPP	(5 << ((n) * 4))598#define VI6_BRU_INCTRL_DITHn_MASK	(7 << ((n) * 4))599#define VI6_BRU_INCTRL_DITHn_SHIFT	((n) * 4)600 601#define VI6_BRU_VIRRPF_SIZE		0x0004602#define VI6_BRU_VIRRPF_SIZE_HSIZE_MASK	(0x1fff << 16)603#define VI6_BRU_VIRRPF_SIZE_HSIZE_SHIFT	16604#define VI6_BRU_VIRRPF_SIZE_VSIZE_MASK	(0x1fff << 0)605#define VI6_BRU_VIRRPF_SIZE_VSIZE_SHIFT	0606 607#define VI6_BRU_VIRRPF_LOC		0x0008608#define VI6_BRU_VIRRPF_LOC_HCOORD_MASK	(0x1fff << 16)609#define VI6_BRU_VIRRPF_LOC_HCOORD_SHIFT	16610#define VI6_BRU_VIRRPF_LOC_VCOORD_MASK	(0x1fff << 0)611#define VI6_BRU_VIRRPF_LOC_VCOORD_SHIFT	0612 613#define VI6_BRU_VIRRPF_COL		0x000c614#define VI6_BRU_VIRRPF_COL_A_MASK	(0xff << 24)615#define VI6_BRU_VIRRPF_COL_A_SHIFT	24616#define VI6_BRU_VIRRPF_COL_RCR_MASK	(0xff << 16)617#define VI6_BRU_VIRRPF_COL_RCR_SHIFT	16618#define VI6_BRU_VIRRPF_COL_GY_MASK	(0xff << 8)619#define VI6_BRU_VIRRPF_COL_GY_SHIFT	8620#define VI6_BRU_VIRRPF_COL_BCB_MASK	(0xff << 0)621#define VI6_BRU_VIRRPF_COL_BCB_SHIFT	0622 623#define VI6_BRU_CTRL(n)			(0x0010 + (n) * 8 + ((n) <= 3 ? 0 : 4))624#define VI6_BRU_CTRL_RBC		BIT(31)625#define VI6_BRU_CTRL_DSTSEL_BRUIN(n)	(((n) <= 3 ? (n) : (n)+1) << 20)626#define VI6_BRU_CTRL_DSTSEL_VRPF	(4 << 20)627#define VI6_BRU_CTRL_DSTSEL_MASK	(7 << 20)628#define VI6_BRU_CTRL_SRCSEL_BRUIN(n)	(((n) <= 3 ? (n) : (n)+1) << 16)629#define VI6_BRU_CTRL_SRCSEL_VRPF	(4 << 16)630#define VI6_BRU_CTRL_SRCSEL_MASK	(7 << 16)631#define VI6_BRU_CTRL_CROP(rop)		((rop) << 4)632#define VI6_BRU_CTRL_CROP_MASK		(0xf << 4)633#define VI6_BRU_CTRL_AROP(rop)		((rop) << 0)634#define VI6_BRU_CTRL_AROP_MASK		(0xf << 0)635 636#define VI6_BRU_BLD(n)			(0x0014 + (n) * 8 + ((n) <= 3 ? 0 : 4))637#define VI6_BRU_BLD_CBES		BIT(31)638#define VI6_BRU_BLD_CCMDX_DST_A		(0 << 28)639#define VI6_BRU_BLD_CCMDX_255_DST_A	(1 << 28)640#define VI6_BRU_BLD_CCMDX_SRC_A		(2 << 28)641#define VI6_BRU_BLD_CCMDX_255_SRC_A	(3 << 28)642#define VI6_BRU_BLD_CCMDX_COEFX		(4 << 28)643#define VI6_BRU_BLD_CCMDX_MASK		(7 << 28)644#define VI6_BRU_BLD_CCMDY_DST_A		(0 << 24)645#define VI6_BRU_BLD_CCMDY_255_DST_A	(1 << 24)646#define VI6_BRU_BLD_CCMDY_SRC_A		(2 << 24)647#define VI6_BRU_BLD_CCMDY_255_SRC_A	(3 << 24)648#define VI6_BRU_BLD_CCMDY_COEFY		(4 << 24)649#define VI6_BRU_BLD_CCMDY_MASK		(7 << 24)650#define VI6_BRU_BLD_CCMDY_SHIFT		24651#define VI6_BRU_BLD_ABES		BIT(23)652#define VI6_BRU_BLD_ACMDX_DST_A		(0 << 20)653#define VI6_BRU_BLD_ACMDX_255_DST_A	(1 << 20)654#define VI6_BRU_BLD_ACMDX_SRC_A		(2 << 20)655#define VI6_BRU_BLD_ACMDX_255_SRC_A	(3 << 20)656#define VI6_BRU_BLD_ACMDX_COEFX		(4 << 20)657#define VI6_BRU_BLD_ACMDX_MASK		(7 << 20)658#define VI6_BRU_BLD_ACMDY_DST_A		(0 << 16)659#define VI6_BRU_BLD_ACMDY_255_DST_A	(1 << 16)660#define VI6_BRU_BLD_ACMDY_SRC_A		(2 << 16)661#define VI6_BRU_BLD_ACMDY_255_SRC_A	(3 << 16)662#define VI6_BRU_BLD_ACMDY_COEFY		(4 << 16)663#define VI6_BRU_BLD_ACMDY_MASK		(7 << 16)664#define VI6_BRU_BLD_COEFX_MASK		(0xff << 8)665#define VI6_BRU_BLD_COEFX_SHIFT		8666#define VI6_BRU_BLD_COEFY_MASK		(0xff << 0)667#define VI6_BRU_BLD_COEFY_SHIFT		0668 669#define VI6_BRU_ROP			0x0030	/* Only available on BRU */670#define VI6_BRU_ROP_DSTSEL_BRUIN(n)	(((n) <= 3 ? (n) : (n)+1) << 20)671#define VI6_BRU_ROP_DSTSEL_VRPF		(4 << 20)672#define VI6_BRU_ROP_DSTSEL_MASK		(7 << 20)673#define VI6_BRU_ROP_CROP(rop)		((rop) << 4)674#define VI6_BRU_ROP_CROP_MASK		(0xf << 4)675#define VI6_BRU_ROP_AROP(rop)		((rop) << 0)676#define VI6_BRU_ROP_AROP_MASK		(0xf << 0)677 678/* -----------------------------------------------------------------------------679 * HGO Control Registers680 */681 682#define VI6_HGO_OFFSET			0x3000683#define VI6_HGO_OFFSET_HOFFSET_SHIFT	16684#define VI6_HGO_OFFSET_VOFFSET_SHIFT	0685#define VI6_HGO_SIZE			0x3004686#define VI6_HGO_SIZE_HSIZE_SHIFT	16687#define VI6_HGO_SIZE_VSIZE_SHIFT	0688#define VI6_HGO_MODE			0x3008689#define VI6_HGO_MODE_STEP		BIT(10)690#define VI6_HGO_MODE_MAXRGB		BIT(7)691#define VI6_HGO_MODE_OFSB_R		BIT(6)692#define VI6_HGO_MODE_OFSB_G		BIT(5)693#define VI6_HGO_MODE_OFSB_B		BIT(4)694#define VI6_HGO_MODE_HRATIO_SHIFT	2695#define VI6_HGO_MODE_VRATIO_SHIFT	0696#define VI6_HGO_LB_TH			0x300c697#define VI6_HGO_LBn_H(n)		(0x3010 + (n) * 8)698#define VI6_HGO_LBn_V(n)		(0x3014 + (n) * 8)699#define VI6_HGO_R_HISTO(n)		(0x3030 + (n) * 4)700#define VI6_HGO_R_MAXMIN		0x3130701#define VI6_HGO_R_SUM			0x3134702#define VI6_HGO_R_LB_DET		0x3138703#define VI6_HGO_G_HISTO(n)		(0x3140 + (n) * 4)704#define VI6_HGO_G_MAXMIN		0x3240705#define VI6_HGO_G_SUM			0x3244706#define VI6_HGO_G_LB_DET		0x3248707#define VI6_HGO_B_HISTO(n)		(0x3250 + (n) * 4)708#define VI6_HGO_B_MAXMIN		0x3350709#define VI6_HGO_B_SUM			0x3354710#define VI6_HGO_B_LB_DET		0x3358711#define VI6_HGO_EXT_HIST_ADDR		0x335c712#define VI6_HGO_EXT_HIST_DATA		0x3360713#define VI6_HGO_REGRST			0x33fc714#define VI6_HGO_REGRST_RCLEA		BIT(0)715 716/* -----------------------------------------------------------------------------717 * HGT Control Registers718 */719 720#define VI6_HGT_OFFSET			0x3400721#define VI6_HGT_OFFSET_HOFFSET_SHIFT	16722#define VI6_HGT_OFFSET_VOFFSET_SHIFT	0723#define VI6_HGT_SIZE			0x3404724#define VI6_HGT_SIZE_HSIZE_SHIFT	16725#define VI6_HGT_SIZE_VSIZE_SHIFT	0726#define VI6_HGT_MODE			0x3408727#define VI6_HGT_MODE_HRATIO_SHIFT	2728#define VI6_HGT_MODE_VRATIO_SHIFT	0729#define VI6_HGT_HUE_AREA(n)		(0x340c + (n) * 4)730#define VI6_HGT_HUE_AREA_LOWER_SHIFT	16731#define VI6_HGT_HUE_AREA_UPPER_SHIFT	0732#define VI6_HGT_LB_TH			0x3424733#define VI6_HGT_LBn_H(n)		(0x3428 + (n) * 8)734#define VI6_HGT_LBn_V(n)		(0x342c + (n) * 8)735#define VI6_HGT_HISTO(m, n)		(0x3450 + (m) * 128 + (n) * 4)736#define VI6_HGT_MAXMIN			0x3750737#define VI6_HGT_SUM			0x3754738#define VI6_HGT_LB_DET			0x3758739#define VI6_HGT_REGRST			0x37fc740#define VI6_HGT_REGRST_RCLEA		BIT(0)741 742/* -----------------------------------------------------------------------------743 * LIF Control Registers744 */745 746#define VI6_LIF_OFFSET			(-0x100)747 748#define VI6_LIF_CTRL			0x3b00749#define VI6_LIF_CTRL_OBTH_MASK		(0x7ff << 16)750#define VI6_LIF_CTRL_OBTH_SHIFT		16751#define VI6_LIF_CTRL_CFMT		BIT(4)752#define VI6_LIF_CTRL_REQSEL		BIT(1)753#define VI6_LIF_CTRL_LIF_EN		BIT(0)754 755#define VI6_LIF_CSBTH			0x3b04756#define VI6_LIF_CSBTH_HBTH_MASK		(0x7ff << 16)757#define VI6_LIF_CSBTH_HBTH_SHIFT	16758#define VI6_LIF_CSBTH_LBTH_MASK		(0x7ff << 0)759#define VI6_LIF_CSBTH_LBTH_SHIFT	0760 761#define VI6_LIF_LBA			0x3b0c762#define VI6_LIF_LBA_LBA0		BIT(31)763#define VI6_LIF_LBA_LBA1_MASK		(0xfff << 16)764#define VI6_LIF_LBA_LBA1_SHIFT		16765 766/* -----------------------------------------------------------------------------767 * Security Control Registers768 */769 770#define VI6_SECURITY_CTRL0		0x3d00771#define VI6_SECURITY_CTRL1		0x3d04772 773/* -----------------------------------------------------------------------------774 * IP Version Registers775 */776 777#define VI6_IP_VERSION			0x3f00778#define VI6_IP_VERSION_MASK		(0xffff << 0)779#define VI6_IP_VERSION_MODEL_MASK	(0xff << 8)780#define VI6_IP_VERSION_MODEL_VSPS_H2	(0x09 << 8)781#define VI6_IP_VERSION_MODEL_VSPR_H2	(0x0a << 8)782#define VI6_IP_VERSION_MODEL_VSPD_GEN2	(0x0b << 8)783#define VI6_IP_VERSION_MODEL_VSPS_M2	(0x0c << 8)784#define VI6_IP_VERSION_MODEL_VSPS_V2H	(0x12 << 8)785#define VI6_IP_VERSION_MODEL_VSPD_V2H	(0x13 << 8)786#define VI6_IP_VERSION_MODEL_VSPI_GEN3	(0x14 << 8)787#define VI6_IP_VERSION_MODEL_VSPBD_GEN3	(0x15 << 8)788#define VI6_IP_VERSION_MODEL_VSPBC_GEN3	(0x16 << 8)789#define VI6_IP_VERSION_MODEL_VSPD_GEN3	(0x17 << 8)790#define VI6_IP_VERSION_MODEL_VSPD_V3	(0x18 << 8)791#define VI6_IP_VERSION_MODEL_VSPDL_GEN3	(0x19 << 8)792#define VI6_IP_VERSION_MODEL_VSPBS_GEN3	(0x1a << 8)793#define VI6_IP_VERSION_MODEL_VSPD_GEN4	(0x1c << 8)794/* RZ/G2L SoCs have no version register, So use 0x80 as the model version */795#define VI6_IP_VERSION_MODEL_VSPD_RZG2L	(0x80 << 8)796 797#define VI6_IP_VERSION_SOC_MASK		(0xff << 0)798#define VI6_IP_VERSION_SOC_H2		(0x01 << 0)799#define VI6_IP_VERSION_SOC_V2H		(0x01 << 0)800#define VI6_IP_VERSION_SOC_V3M		(0x01 << 0)801#define VI6_IP_VERSION_SOC_M2		(0x02 << 0)802#define VI6_IP_VERSION_SOC_M3W		(0x02 << 0)803#define VI6_IP_VERSION_SOC_V3H		(0x02 << 0)804#define VI6_IP_VERSION_SOC_H3		(0x03 << 0)805#define VI6_IP_VERSION_SOC_D3		(0x04 << 0)806#define VI6_IP_VERSION_SOC_M3N		(0x04 << 0)807#define VI6_IP_VERSION_SOC_E3		(0x04 << 0)808#define VI6_IP_VERSION_SOC_V3U		(0x05 << 0)809#define VI6_IP_VERSION_SOC_V4H		(0x06 << 0)810/* RZ/G2L SoCs have no version register, So use 0x80 for SoC Identification */811#define VI6_IP_VERSION_SOC_RZG2L	(0x80 << 0)812 813#define VI6_IP_VERSION_VSP_SW		(0xfffe << 16) /* SW VSP version */814 815/* -----------------------------------------------------------------------------816 * RPF CLUT Registers817 */818 819#define VI6_CLUT_TABLE			0x4000820 821/* -----------------------------------------------------------------------------822 * 1D LUT Registers823 */824 825#define VI6_LUT_TABLE			0x7000826 827/* -----------------------------------------------------------------------------828 * 3D LUT Registers829 */830 831#define VI6_CLU_ADDR			0x7400832#define VI6_CLU_DATA			0x7404833 834/* -----------------------------------------------------------------------------835 * Formats836 */837 838#define VI6_FMT_RGB_332			0x00839#define VI6_FMT_XRGB_4444		0x01840#define VI6_FMT_RGBX_4444		0x02841#define VI6_FMT_XRGB_1555		0x04842#define VI6_FMT_RGBX_5551		0x05843#define VI6_FMT_RGB_565			0x06844#define VI6_FMT_AXRGB_86666		0x07845#define VI6_FMT_RGBXA_66668		0x08846#define VI6_FMT_XRGBA_66668		0x09847#define VI6_FMT_ARGBX_86666		0x0a848#define VI6_FMT_AXRXGXB_8262626		0x0b849#define VI6_FMT_XRXGXBA_2626268		0x0c850#define VI6_FMT_ARXGXBX_8626262		0x0d851#define VI6_FMT_RXGXBXA_6262628		0x0e852#define VI6_FMT_XRGB_6666		0x0f853#define VI6_FMT_RGBX_6666		0x10854#define VI6_FMT_XRXGXB_262626		0x11855#define VI6_FMT_RXGXBX_626262		0x12856#define VI6_FMT_ARGB_8888		0x13857#define VI6_FMT_RGBA_8888		0x14858#define VI6_FMT_RGB_888			0x15859#define VI6_FMT_XRGXGB_763763		0x16860#define VI6_FMT_XXRGB_86666		0x17861#define VI6_FMT_BGR_888			0x18862#define VI6_FMT_ARGB_4444		0x19863#define VI6_FMT_RGBA_4444		0x1a864#define VI6_FMT_ARGB_1555		0x1b865#define VI6_FMT_RGBA_5551		0x1c866#define VI6_FMT_ABGR_4444		0x1d867#define VI6_FMT_BGRA_4444		0x1e868#define VI6_FMT_ABGR_1555		0x1f869#define VI6_FMT_BGRA_5551		0x20870#define VI6_FMT_XBXGXR_262626		0x21871#define VI6_FMT_ABGR_8888		0x22872#define VI6_FMT_XXRGB_88565		0x23873#define VI6_FMT_RGB10_RGB10A2_A2RGB10	0x30874 875#define VI6_FMT_Y_UV_444		0x40876#define VI6_FMT_Y_UV_422		0x41877#define VI6_FMT_Y_UV_420		0x42878#define VI6_FMT_YUV_444			0x46879#define VI6_FMT_YUYV_422		0x47880#define VI6_FMT_YYUV_422		0x48881#define VI6_FMT_YUV_420			0x49882#define VI6_FMT_Y_U_V_444		0x4a883#define VI6_FMT_Y_U_V_422		0x4b884#define VI6_FMT_Y_U_V_420		0x4c885 886#endif /* __VSP1_REGS_H__ */887