xref: /openbmc/linux/drivers/gpu/drm/exynos/regs-scaler.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
201fb9185SAndrzej Pietrasiewicz /* drivers/gpu/drm/exynos/regs-scaler.h
301fb9185SAndrzej Pietrasiewicz  *
401fb9185SAndrzej Pietrasiewicz  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
501fb9185SAndrzej Pietrasiewicz  *		http://www.samsung.com/
69c0c4997SAndrzej Pietrasiewicz  * Author: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
701fb9185SAndrzej Pietrasiewicz  *
801fb9185SAndrzej Pietrasiewicz  * Register definition file for Samsung scaler driver
901fb9185SAndrzej Pietrasiewicz  */
1001fb9185SAndrzej Pietrasiewicz 
1101fb9185SAndrzej Pietrasiewicz #ifndef EXYNOS_REGS_SCALER_H
1201fb9185SAndrzej Pietrasiewicz #define EXYNOS_REGS_SCALER_H
1301fb9185SAndrzej Pietrasiewicz 
1401fb9185SAndrzej Pietrasiewicz /* Register part */
1501fb9185SAndrzej Pietrasiewicz 
1601fb9185SAndrzej Pietrasiewicz /* Global setting */
1701fb9185SAndrzej Pietrasiewicz #define SCALER_STATUS			0x0	/* no shadow */
1801fb9185SAndrzej Pietrasiewicz #define SCALER_CFG			0x4
1901fb9185SAndrzej Pietrasiewicz 
2001fb9185SAndrzej Pietrasiewicz /* Interrupt */
2101fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN			0x8	/* no shadow */
2201fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS		0xc	/* no shadow */
2301fb9185SAndrzej Pietrasiewicz 
2401fb9185SAndrzej Pietrasiewicz /* SRC */
2501fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_CFG			0x10
2601fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_Y_BASE		0x14
2701fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_CB_BASE		0x18
2801fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_CR_BASE		0x294
2901fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_SPAN			0x1c
3001fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_Y_POS		0x20
3101fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_WH			0x24
3201fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_C_POS		0x28
3301fb9185SAndrzej Pietrasiewicz 
3401fb9185SAndrzej Pietrasiewicz /* DST */
3501fb9185SAndrzej Pietrasiewicz #define SCALER_DST_CFG			0x30
3601fb9185SAndrzej Pietrasiewicz #define SCALER_DST_Y_BASE		0x34
3701fb9185SAndrzej Pietrasiewicz #define SCALER_DST_CB_BASE		0x38
3801fb9185SAndrzej Pietrasiewicz #define SCALER_DST_CR_BASE		0x298
3901fb9185SAndrzej Pietrasiewicz #define SCALER_DST_SPAN			0x3c
4001fb9185SAndrzej Pietrasiewicz #define SCALER_DST_WH			0x40
4101fb9185SAndrzej Pietrasiewicz #define SCALER_DST_POS			0x44
4201fb9185SAndrzej Pietrasiewicz 
4301fb9185SAndrzej Pietrasiewicz /* Ratio */
4401fb9185SAndrzej Pietrasiewicz #define SCALER_H_RATIO			0x50
4501fb9185SAndrzej Pietrasiewicz #define SCALER_V_RATIO			0x54
4601fb9185SAndrzej Pietrasiewicz 
4701fb9185SAndrzej Pietrasiewicz /* Rotation */
4801fb9185SAndrzej Pietrasiewicz #define SCALER_ROT_CFG			0x58
4901fb9185SAndrzej Pietrasiewicz 
5001fb9185SAndrzej Pietrasiewicz /* Coefficient */
5101fb9185SAndrzej Pietrasiewicz /*
5201fb9185SAndrzej Pietrasiewicz  * YHCOEF_{x}{A|B|C|D}			CHCOEF_{x}{A|B|C|D}
5301fb9185SAndrzej Pietrasiewicz  *
5401fb9185SAndrzej Pietrasiewicz  *	A	B	C	D	A	B	C	D
5501fb9185SAndrzej Pietrasiewicz  * 0	60	64	68	6c	140	144	148	14c
5601fb9185SAndrzej Pietrasiewicz  * 1	70	74	78	7c	150	154	158	15c
5701fb9185SAndrzej Pietrasiewicz  * 2	80	84	88	8c	160	164	168	16c
5801fb9185SAndrzej Pietrasiewicz  * 3	90	94	98	9c	170	174	178	17c
5901fb9185SAndrzej Pietrasiewicz  * 4	a0	a4	a8	ac	180	184	188	18c
6001fb9185SAndrzej Pietrasiewicz  * 5	b0	b4	b8	bc	190	194	198	19c
6101fb9185SAndrzej Pietrasiewicz  * 6	c0	c4	c8	cc	1a0	1a4	1a8	1ac
6201fb9185SAndrzej Pietrasiewicz  * 7	d0	d4	d8	dc	1b0	1b4	1b8	1bc
6301fb9185SAndrzej Pietrasiewicz  * 8	e0	e4	e8	ec	1c0	1c4	1c8	1cc
6401fb9185SAndrzej Pietrasiewicz  *
6501fb9185SAndrzej Pietrasiewicz  *
6601fb9185SAndrzej Pietrasiewicz  * YVCOEF_{x}{A|B}			CVCOEF_{x}{A|B}
6701fb9185SAndrzej Pietrasiewicz  *
6801fb9185SAndrzej Pietrasiewicz  *	A	B			A	B
6901fb9185SAndrzej Pietrasiewicz  * 0	f0	f4			1d0	1d4
7001fb9185SAndrzej Pietrasiewicz  * 1	f8	fc			1d8	1dc
7101fb9185SAndrzej Pietrasiewicz  * 2	100	104			1e0	1e4
7201fb9185SAndrzej Pietrasiewicz  * 3	108	10c			1e8	1ec
7301fb9185SAndrzej Pietrasiewicz  * 4	110	114			1f0	1f4
7401fb9185SAndrzej Pietrasiewicz  * 5	118	11c			1f8	1fc
7501fb9185SAndrzej Pietrasiewicz  * 6	120	124			200	204
7601fb9185SAndrzej Pietrasiewicz  * 7	128	12c			208	20c
7701fb9185SAndrzej Pietrasiewicz  * 8	130	134			210	214
7801fb9185SAndrzej Pietrasiewicz  */
7901fb9185SAndrzej Pietrasiewicz #define _SCALER_HCOEF_DELTA(r, c)	((r) * 0x10 + (c) * 0x4)
8001fb9185SAndrzej Pietrasiewicz #define _SCALER_VCOEF_DELTA(r, c)	((r) * 0x8 + (c) * 0x4)
8101fb9185SAndrzej Pietrasiewicz 
8201fb9185SAndrzej Pietrasiewicz #define SCALER_YHCOEF(r, c)		(0x60 + _SCALER_HCOEF_DELTA((r), (c)))
8301fb9185SAndrzej Pietrasiewicz #define SCALER_YVCOEF(r, c)		(0xf0 + _SCALER_VCOEF_DELTA((r), (c)))
8401fb9185SAndrzej Pietrasiewicz #define SCALER_CHCOEF(r, c)		(0x140 + _SCALER_HCOEF_DELTA((r), (c)))
8501fb9185SAndrzej Pietrasiewicz #define SCALER_CVCOEF(r, c)		(0x1d0 + _SCALER_VCOEF_DELTA((r), (c)))
8601fb9185SAndrzej Pietrasiewicz 
8701fb9185SAndrzej Pietrasiewicz 
8801fb9185SAndrzej Pietrasiewicz /* Color Space Conversion */
8901fb9185SAndrzej Pietrasiewicz #define SCALER_CSC_COEF(x, y)		(0x220 + (y) * 0xc + (x) * 0x4)
9001fb9185SAndrzej Pietrasiewicz 
9101fb9185SAndrzej Pietrasiewicz /* Dithering */
9201fb9185SAndrzej Pietrasiewicz #define SCALER_DITH_CFG			0x250
9301fb9185SAndrzej Pietrasiewicz 
9401fb9185SAndrzej Pietrasiewicz /* Version Number */
9501fb9185SAndrzej Pietrasiewicz #define SCALER_VER			0x260	/* no shadow */
9601fb9185SAndrzej Pietrasiewicz 
9701fb9185SAndrzej Pietrasiewicz /* Cycle count and Timeout */
9801fb9185SAndrzej Pietrasiewicz #define SCALER_CYCLE_COUNT		0x278	/* no shadow */
9901fb9185SAndrzej Pietrasiewicz #define SCALER_TIMEOUT_CTRL		0x2c0	/* no shadow */
10001fb9185SAndrzej Pietrasiewicz #define SCALER_TIMEOUT_CNT		0x2c4	/* no shadow */
10101fb9185SAndrzej Pietrasiewicz 
10201fb9185SAndrzej Pietrasiewicz /* Blending */
10301fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_COLOR		0x280
10401fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_ALPHA		0x284
10501fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_COLOR		0x288
10601fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_ALPHA		0x28c
10701fb9185SAndrzej Pietrasiewicz 
10801fb9185SAndrzej Pietrasiewicz /* Color Fill */
10901fb9185SAndrzej Pietrasiewicz #define SCALER_FILL_COLOR		0x290
11001fb9185SAndrzej Pietrasiewicz 
11101fb9185SAndrzej Pietrasiewicz /* Multiple Command Queue */
11201fb9185SAndrzej Pietrasiewicz #define SCALER_ADDR_Q_CONFIG		0x2a0	/* no shadow */
11301fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_ADDR_Q_STATUS	0x2a4	/* no shadow */
11401fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_ADDR_Q		0x2a8	/* no shadow */
11501fb9185SAndrzej Pietrasiewicz 
11601fb9185SAndrzej Pietrasiewicz /* CRC */
11701fb9185SAndrzej Pietrasiewicz #define SCALER_CRC_COLOR00_10		0x2b0	/* no shadow */
11801fb9185SAndrzej Pietrasiewicz #define SCALER_CRC_COLOR20_30		0x2b4	/* no shadow */
11901fb9185SAndrzej Pietrasiewicz #define SCALER_CRC_COLOR01_11		0x2b8	/* no shadow */
12001fb9185SAndrzej Pietrasiewicz #define SCALER_CRC_COLOR21_31		0x2bc	/* no shadow */
12101fb9185SAndrzej Pietrasiewicz 
12201fb9185SAndrzej Pietrasiewicz /* Shadow Registers */
12301fb9185SAndrzej Pietrasiewicz #define SCALER_SHADOW_OFFSET		0x1000
12401fb9185SAndrzej Pietrasiewicz 
12501fb9185SAndrzej Pietrasiewicz 
12601fb9185SAndrzej Pietrasiewicz /* Bit definition part */
12701fb9185SAndrzej Pietrasiewicz #define SCALER_MASK(hi_b, lo_b)		((1 << ((hi_b) - (lo_b) + 1)) - 1)
12801fb9185SAndrzej Pietrasiewicz #define SCALER_GET(reg, hi_b, lo_b)	\
12901fb9185SAndrzej Pietrasiewicz 	(((reg) >> (lo_b)) & SCALER_MASK(hi_b, lo_b))
13001fb9185SAndrzej Pietrasiewicz #define SCALER_SET(val, hi_b, lo_b) \
13101fb9185SAndrzej Pietrasiewicz 	(((val) & SCALER_MASK(hi_b, lo_b)) << lo_b)
13201fb9185SAndrzej Pietrasiewicz 
13301fb9185SAndrzej Pietrasiewicz /* SCALER_STATUS */
13401fb9185SAndrzej Pietrasiewicz #define SCALER_STATUS_SCALER_RUNNING		(1 << 1)
13501fb9185SAndrzej Pietrasiewicz #define SCALER_STATUS_SCALER_READY_CLK_DOWN	(1 << 0)
13601fb9185SAndrzej Pietrasiewicz 
13701fb9185SAndrzej Pietrasiewicz /* SCALER_CFG */
13801fb9185SAndrzej Pietrasiewicz #define SCALER_CFG_FILL_EN			(1 << 24)
13901fb9185SAndrzej Pietrasiewicz #define SCALER_CFG_BLEND_COLOR_DIVIDE_ALPHA_EN	(1 << 17)
14001fb9185SAndrzej Pietrasiewicz #define SCALER_CFG_BLEND_EN			(1 << 16)
14101fb9185SAndrzej Pietrasiewicz #define SCALER_CFG_CSC_Y_OFFSET_SRC_EN		(1 << 10)
14201fb9185SAndrzej Pietrasiewicz #define SCALER_CFG_CSC_Y_OFFSET_DST_EN		(1 << 9)
14301fb9185SAndrzej Pietrasiewicz #define SCALER_CFG_16_BURST_MODE		(1 << 8)
14401fb9185SAndrzej Pietrasiewicz #define SCALER_CFG_SOFT_RESET			(1 << 1)
14501fb9185SAndrzej Pietrasiewicz #define SCALER_CFG_START_CMD			(1 << 0)
14601fb9185SAndrzej Pietrasiewicz 
14701fb9185SAndrzej Pietrasiewicz /* SCALER_INT_EN */
14801fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_TIMEOUT			(1 << 31)
14901fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_BLEND		(1 << 24)
15001fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_RATIO		(1 << 23)
15101fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_DST_HEIGHT	(1 << 22)
15201fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_DST_WIDTH		(1 << 21)
15301fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_DST_V_POS		(1 << 20)
15401fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_DST_H_POS		(1 << 19)
15501fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_DST_C_SPAN	(1 << 18)
15601fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_DST_Y_SPAN	(1 << 17)
15701fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_DST_CR_BASE	(1 << 16)
15801fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_DST_CB_BASE	(1 << 15)
15901fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_DST_Y_BASE	(1 << 14)
16001fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_DST_COLOR		(1 << 13)
16101fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_SRC_HEIGHT	(1 << 12)
16201fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_SRC_WIDTH		(1 << 11)
16301fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_SRC_CV_POS	(1 << 10)
16401fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_SRC_CH_POS	(1 << 9)
16501fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_SRC_YV_POS	(1 << 8)
16601fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_SRC_YH_POS	(1 << 7)
16701fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_DST_SPAN		(1 << 6)
16801fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_SRC_Y_SPAN	(1 << 5)
16901fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_SRC_CR_BASE	(1 << 4)
17001fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_SRC_CB_BASE	(1 << 3)
17101fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_SRC_Y_BASE	(1 << 2)
17201fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_ILLEGAL_SRC_COLOR		(1 << 1)
17301fb9185SAndrzej Pietrasiewicz #define SCALER_INT_EN_FRAME_END			(1 << 0)
17401fb9185SAndrzej Pietrasiewicz 
17501fb9185SAndrzej Pietrasiewicz /* SCALER_INT_STATUS */
17601fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_TIMEOUT		(1 << 31)
17701fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_BLEND		(1 << 24)
17801fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_RATIO		(1 << 23)
17901fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_DST_HEIGHT	(1 << 22)
18001fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_DST_WIDTH	(1 << 21)
18101fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_DST_V_POS	(1 << 20)
18201fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_DST_H_POS	(1 << 19)
18301fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_DST_C_SPAN	(1 << 18)
18401fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_DST_Y_SPAN	(1 << 17)
18501fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_DST_CR_BASE	(1 << 16)
18601fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_DST_CB_BASE	(1 << 15)
18701fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_DST_Y_BASE	(1 << 14)
18801fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_DST_COLOR	(1 << 13)
18901fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_SRC_HEIGHT	(1 << 12)
19001fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_SRC_WIDTH	(1 << 11)
19101fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_SRC_CV_POS	(1 << 10)
19201fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_SRC_CH_POS	(1 << 9)
19301fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_SRC_YV_POS	(1 << 8)
19401fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_SRC_YH_POS	(1 << 7)
19501fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_DST_SPAN	(1 << 6)
19601fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_SRC_Y_SPAN	(1 << 5)
19701fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_SRC_CR_BASE	(1 << 4)
19801fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_SRC_CB_BASE	(1 << 3)
19901fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_SRC_Y_BASE	(1 << 2)
20001fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_ILLEGAL_SRC_COLOR	(1 << 1)
20101fb9185SAndrzej Pietrasiewicz #define SCALER_INT_STATUS_FRAME_END		(1 << 0)
20201fb9185SAndrzej Pietrasiewicz 
20301fb9185SAndrzej Pietrasiewicz /* SCALER_SRC_CFG */
20401fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_CFG_TILE_EN			(1 << 10)
20501fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_CFG_GET_BYTE_SWAP(r)		SCALER_GET(r, 6, 5)
20601fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_CFG_SET_BYTE_SWAP(v)		SCALER_SET(v, 6, 5)
20701fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_CFG_GET_COLOR_FORMAT(r)	SCALER_GET(r, 4, 0)
20801fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_CFG_SET_COLOR_FORMAT(v)	SCALER_SET(v, 4, 0)
20901fb9185SAndrzej Pietrasiewicz #define SCALER_YUV420_2P_UV			0
21001fb9185SAndrzej Pietrasiewicz #define SCALER_YUV422_2P_UV			2
21101fb9185SAndrzej Pietrasiewicz #define SCALER_YUV444_2P_UV			3
21201fb9185SAndrzej Pietrasiewicz #define SCALER_RGB_565				4
21301fb9185SAndrzej Pietrasiewicz #define SCALER_ARGB1555				5
21401fb9185SAndrzej Pietrasiewicz #define SCALER_ARGB8888				6
21501fb9185SAndrzej Pietrasiewicz #define SCALER_ARGB8888_PRE			7
21601fb9185SAndrzej Pietrasiewicz #define SCALER_YUV422_1P_YVYU			9
21701fb9185SAndrzej Pietrasiewicz #define SCALER_YUV422_1P_YUYV			10
21801fb9185SAndrzej Pietrasiewicz #define SCALER_YUV422_1P_UYVY			11
21901fb9185SAndrzej Pietrasiewicz #define SCALER_ARGB4444				12
22001fb9185SAndrzej Pietrasiewicz #define SCALER_L8A8				13
22101fb9185SAndrzej Pietrasiewicz #define SCALER_RGBA8888				14
22201fb9185SAndrzej Pietrasiewicz #define SCALER_L8				15
22301fb9185SAndrzej Pietrasiewicz #define SCALER_YUV420_2P_VU			16
22401fb9185SAndrzej Pietrasiewicz #define SCALER_YUV422_2P_VU			18
22501fb9185SAndrzej Pietrasiewicz #define SCALER_YUV444_2P_VU			19
22601fb9185SAndrzej Pietrasiewicz #define SCALER_YUV420_3P			20
22701fb9185SAndrzej Pietrasiewicz #define SCALER_YUV422_3P			22
22801fb9185SAndrzej Pietrasiewicz #define SCALER_YUV444_3P			23
22901fb9185SAndrzej Pietrasiewicz 
23001fb9185SAndrzej Pietrasiewicz /* SCALER_SRC_SPAN */
23101fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_SPAN_GET_C_SPAN(r)		SCALER_GET(r, 29, 16)
23201fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_SPAN_SET_C_SPAN(v)		SCALER_SET(v, 29, 16)
23301fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_SPAN_GET_Y_SPAN(r)		SCALER_GET(r, 13, 0)
23401fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_SPAN_SET_Y_SPAN(v)		SCALER_SET(v, 13, 0)
23501fb9185SAndrzej Pietrasiewicz 
23601fb9185SAndrzej Pietrasiewicz /* SCALER_SRC_Y_POS */
23701fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_Y_POS_GET_YH_POS(r)		SCALER_GET(r, 31, 16)
23801fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_Y_POS_SET_YH_POS(v)		SCALER_SET(v, 31, 16)
23901fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_Y_POS_GET_YV_POS(r)		SCALER_GET(r, 15, 0)
24001fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_Y_POS_SET_YV_POS(v)		SCALER_SET(v, 15, 0)
24101fb9185SAndrzej Pietrasiewicz 
24201fb9185SAndrzej Pietrasiewicz /* SCALER_SRC_WH */
24301fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_WH_GET_WIDTH(r)		SCALER_GET(r, 29, 16)
24401fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_WH_SET_WIDTH(v)		SCALER_SET(v, 29, 16)
24501fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_WH_GET_HEIGHT(r)		SCALER_GET(r, 13, 0)
24601fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_WH_SET_HEIGHT(v)		SCALER_SET(v, 13, 0)
24701fb9185SAndrzej Pietrasiewicz 
24801fb9185SAndrzej Pietrasiewicz /* SCALER_SRC_C_POS */
24901fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_C_POS_GET_CH_POS(r)		SCALER_GET(r, 31, 16)
25001fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_C_POS_SET_CH_POS(v)		SCALER_SET(v, 31, 16)
25101fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_C_POS_GET_CV_POS(r)		SCALER_GET(r, 15, 0)
25201fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_C_POS_SET_CV_POS(v)		SCALER_SET(v, 15, 0)
25301fb9185SAndrzej Pietrasiewicz 
25401fb9185SAndrzej Pietrasiewicz /* SCALER_DST_CFG */
25501fb9185SAndrzej Pietrasiewicz #define SCALER_DST_CFG_GET_BYTE_SWAP(r)		SCALER_GET(r, 6, 5)
25601fb9185SAndrzej Pietrasiewicz #define SCALER_DST_CFG_SET_BYTE_SWAP(v)		SCALER_SET(v, 6, 5)
25701fb9185SAndrzej Pietrasiewicz #define SCALER_DST_CFG_GET_COLOR_FORMAT(r)	SCALER_GET(r, 4, 0)
25801fb9185SAndrzej Pietrasiewicz #define SCALER_DST_CFG_SET_COLOR_FORMAT(v)	SCALER_SET(v, 4, 0)
25901fb9185SAndrzej Pietrasiewicz 
26001fb9185SAndrzej Pietrasiewicz /* SCALER_DST_SPAN */
26101fb9185SAndrzej Pietrasiewicz #define SCALER_DST_SPAN_GET_C_SPAN(r)		SCALER_GET(r, 29, 16)
26201fb9185SAndrzej Pietrasiewicz #define SCALER_DST_SPAN_SET_C_SPAN(v)		SCALER_SET(v, 29, 16)
26301fb9185SAndrzej Pietrasiewicz #define SCALER_DST_SPAN_GET_Y_SPAN(r)		SCALER_GET(r, 13, 0)
26401fb9185SAndrzej Pietrasiewicz #define SCALER_DST_SPAN_SET_Y_SPAN(v)		SCALER_SET(v, 13, 0)
26501fb9185SAndrzej Pietrasiewicz 
26601fb9185SAndrzej Pietrasiewicz /* SCALER_DST_WH */
26701fb9185SAndrzej Pietrasiewicz #define SCALER_DST_WH_GET_WIDTH(r)		SCALER_GET(r, 29, 16)
26801fb9185SAndrzej Pietrasiewicz #define SCALER_DST_WH_SET_WIDTH(v)		SCALER_SET(v, 29, 16)
26901fb9185SAndrzej Pietrasiewicz #define SCALER_DST_WH_GET_HEIGHT(r)		SCALER_GET(r, 13, 0)
27001fb9185SAndrzej Pietrasiewicz #define SCALER_DST_WH_SET_HEIGHT(v)		SCALER_SET(v, 13, 0)
27101fb9185SAndrzej Pietrasiewicz 
27201fb9185SAndrzej Pietrasiewicz /* SCALER_DST_POS */
27301fb9185SAndrzej Pietrasiewicz #define SCALER_DST_POS_GET_H_POS(r)		SCALER_GET(r, 29, 16)
27401fb9185SAndrzej Pietrasiewicz #define SCALER_DST_POS_SET_H_POS(v)		SCALER_SET(v, 29, 16)
27501fb9185SAndrzej Pietrasiewicz #define SCALER_DST_POS_GET_V_POS(r)		SCALER_GET(r, 13, 0)
27601fb9185SAndrzej Pietrasiewicz #define SCALER_DST_POS_SET_V_POS(v)		SCALER_SET(v, 13, 0)
27701fb9185SAndrzej Pietrasiewicz 
27801fb9185SAndrzej Pietrasiewicz /* SCALER_H_RATIO */
27901fb9185SAndrzej Pietrasiewicz #define SCALER_H_RATIO_GET(r)			SCALER_GET(r, 18, 0)
28001fb9185SAndrzej Pietrasiewicz #define SCALER_H_RATIO_SET(v)			SCALER_SET(v, 18, 0)
28101fb9185SAndrzej Pietrasiewicz 
28201fb9185SAndrzej Pietrasiewicz /* SCALER_V_RATIO */
28301fb9185SAndrzej Pietrasiewicz #define SCALER_V_RATIO_GET(r)			SCALER_GET(r, 18, 0)
28401fb9185SAndrzej Pietrasiewicz #define SCALER_V_RATIO_SET(v)			SCALER_SET(v, 18, 0)
28501fb9185SAndrzej Pietrasiewicz 
28601fb9185SAndrzej Pietrasiewicz /* SCALER_ROT_CFG */
28701fb9185SAndrzej Pietrasiewicz #define SCALER_ROT_CFG_FLIP_X_EN		(1 << 3)
28801fb9185SAndrzej Pietrasiewicz #define SCALER_ROT_CFG_FLIP_Y_EN		(1 << 2)
28901fb9185SAndrzej Pietrasiewicz #define SCALER_ROT_CFG_GET_ROTMODE(r)		SCALER_GET(r, 1, 0)
29001fb9185SAndrzej Pietrasiewicz #define SCALER_ROT_CFG_SET_ROTMODE(v)		SCALER_SET(v, 1, 0)
29101fb9185SAndrzej Pietrasiewicz #define SCALER_ROT_MODE_90			1
29201fb9185SAndrzej Pietrasiewicz #define SCALER_ROT_MODE_180			2
29301fb9185SAndrzej Pietrasiewicz #define SCALER_ROT_MODE_270			3
29401fb9185SAndrzej Pietrasiewicz 
29501fb9185SAndrzej Pietrasiewicz /* SCALER_HCOEF, SCALER_VCOEF */
29601fb9185SAndrzej Pietrasiewicz #define SCALER_COEF_SHIFT(i)			(16 * (1 - (i) % 2))
29701fb9185SAndrzej Pietrasiewicz #define SCALER_COEF_GET(r, i)			\
29801fb9185SAndrzej Pietrasiewicz 				(((r) >> SCALER_COEF_SHIFT(i)) & 0x1ff)
29901fb9185SAndrzej Pietrasiewicz #define SCALER_COEF_SET(v, i)			\
30001fb9185SAndrzej Pietrasiewicz 				(((v) & 0x1ff) << SCALER_COEF_SHIFT(i))
30101fb9185SAndrzej Pietrasiewicz 
30201fb9185SAndrzej Pietrasiewicz /* SCALER_CSC_COEFxy */
30301fb9185SAndrzej Pietrasiewicz #define SCALER_CSC_COEF_GET(r)			SCALER_GET(r, 11, 0)
30401fb9185SAndrzej Pietrasiewicz #define SCALER_CSC_COEF_SET(v)			SCALER_SET(v, 11, 0)
30501fb9185SAndrzej Pietrasiewicz 
30601fb9185SAndrzej Pietrasiewicz /* SCALER_DITH_CFG */
30701fb9185SAndrzej Pietrasiewicz #define SCALER_DITH_CFG_GET_R_TYPE(r)		SCALER_GET(r, 8, 6)
30801fb9185SAndrzej Pietrasiewicz #define SCALER_DITH_CFG_SET_R_TYPE(v)		SCALER_SET(v, 8, 6)
30901fb9185SAndrzej Pietrasiewicz #define SCALER_DITH_CFG_GET_G_TYPE(r)		SCALER_GET(r, 5, 3)
31001fb9185SAndrzej Pietrasiewicz #define SCALER_DITH_CFG_SET_G_TYPE(v)		SCALER_SET(v, 5, 3)
31101fb9185SAndrzej Pietrasiewicz #define SCALER_DITH_CFG_GET_B_TYPE(r)		SCALER_GET(r, 2, 0)
31201fb9185SAndrzej Pietrasiewicz #define SCALER_DITH_CFG_SET_B_TYPE(v)		SCALER_SET(v, 2, 0)
31301fb9185SAndrzej Pietrasiewicz 
31401fb9185SAndrzej Pietrasiewicz /* SCALER_TIMEOUT_CTRL */
31501fb9185SAndrzej Pietrasiewicz #define SCALER_TIMEOUT_CTRL_GET_TIMER_VALUE(r)	SCALER_GET(r, 31, 16)
31601fb9185SAndrzej Pietrasiewicz #define SCALER_TIMEOUT_CTRL_SET_TIMER_VALUE(v)	SCALER_SET(v, 31, 16)
31701fb9185SAndrzej Pietrasiewicz #define SCALER_TIMEOUT_CTRL_GET_TIMER_DIV(r)	SCALER_GET(r, 7, 4)
31801fb9185SAndrzej Pietrasiewicz #define SCALER_TIMEOUT_CTRL_SET_TIMER_DIV(v)	SCALER_SET(v, 7, 4)
31901fb9185SAndrzej Pietrasiewicz #define SCALER_TIMEOUT_CTRL_TIMER_ENABLE	(1 << 0)
32001fb9185SAndrzej Pietrasiewicz 
32101fb9185SAndrzej Pietrasiewicz /* SCALER_TIMEOUT_CNT */
32201fb9185SAndrzej Pietrasiewicz #define SCALER_TIMEOUT_CTRL_GET_TIMER_COUNT(r)	SCALER_GET(r, 31, 16)
32301fb9185SAndrzej Pietrasiewicz 
32401fb9185SAndrzej Pietrasiewicz /* SCALER_SRC_BLEND_COLOR */
32501fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_COLOR_SEL_INV		(1 << 31)
32601fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_COLOR_GET_SEL(r)	SCALER_GET(r, 30, 29)
32701fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_COLOR_SET_SEL(v)	SCALER_SET(v, 30, 29)
32801fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_COLOR_OP_SEL_INV	(1 << 28)
32901fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_COLOR_GET_OP_SEL(r)	SCALER_GET(r, 27, 24)
33001fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_COLOR_SET_OP_SEL(v)	SCALER_SET(v, 27, 24)
33101fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_COLOR_GET_COLOR0(r)	SCALER_GET(r, 23, 16)
33201fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_COLOR_SET_COLOR0(v)	SCALER_SET(v, 23, 16)
33301fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_COLOR_GET_COLOR1(r)	SCALER_GET(r, 15, 8)
33401fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_COLOR_SET_COLOR1(v)	SCALER_SET(v, 15, 8)
33501fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_COLOR_GET_COLOR2(r)	SCALER_GET(r, 7, 0)
33601fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_COLOR_SET_COLOR2(v)	SCALER_SET(v, 7, 0)
33701fb9185SAndrzej Pietrasiewicz 
33801fb9185SAndrzej Pietrasiewicz /* SCALER_SRC_BLEND_ALPHA */
33901fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_ALPHA_SEL_INV		(1 << 31)
34001fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_ALPHA_GET_SEL(r)	SCALER_GET(r, 30, 29)
34101fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_ALPHA_SET_SEL(v)	SCALER_SET(v, 30, 29)
34201fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_ALPHA_OP_SEL_INV	(1 << 28)
34301fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_ALPHA_GET_OP_SEL(r)	SCALER_GET(r, 27, 24)
34401fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_ALPHA_SET_OP_SEL(v)	SCALER_SET(v, 27, 24)
34501fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_ALPHA_GET_ALPHA(r)	SCALER_GET(r, 7, 0)
34601fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_BLEND_ALPHA_SET_ALPHA(v)	SCALER_SET(v, 7, 0)
34701fb9185SAndrzej Pietrasiewicz 
34801fb9185SAndrzej Pietrasiewicz /* SCALER_DST_BLEND_COLOR */
34901fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_COLOR_SEL_INV		(1 << 31)
35001fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_COLOR_GET_SEL(r)	SCALER_GET(r, 30, 29)
35101fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_COLOR_SET_SEL(v)	SCALER_SET(v, 30, 29)
35201fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_COLOR_OP_SEL_INV	(1 << 28)
35301fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_COLOR_GET_OP_SEL(r)	SCALER_GET(r, 27, 24)
35401fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_COLOR_SET_OP_SEL(v)	SCALER_SET(v, 27, 24)
35501fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_COLOR_GET_COLOR0(r)	SCALER_GET(r, 23, 16)
35601fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_COLOR_SET_COLOR0(v)	SCALER_SET(v, 23, 16)
35701fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_COLOR_GET_COLOR1(r)	SCALER_GET(r, 15, 8)
35801fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_COLOR_SET_COLOR1(v)	SCALER_SET(v, 15, 8)
35901fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_COLOR_GET_COLOR2(r)	SCALER_GET(r, 7, 0)
36001fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_COLOR_SET_COLOR2(v)	SCALER_SET(v, 7, 0)
36101fb9185SAndrzej Pietrasiewicz 
36201fb9185SAndrzej Pietrasiewicz /* SCALER_DST_BLEND_ALPHA */
36301fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_ALPHA_SEL_INV		(1 << 31)
36401fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_ALPHA_GET_SEL(r)	SCALER_GET(r, 30, 29)
36501fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_ALPHA_SET_SEL(v)	SCALER_SET(v, 30, 29)
36601fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_ALPHA_OP_SEL_INV	(1 << 28)
36701fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_ALPHA_GET_OP_SEL(r)	SCALER_GET(r, 27, 24)
36801fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_ALPHA_SET_OP_SEL(v)	SCALER_SET(v, 27, 24)
36901fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_ALPHA_GET_ALPHA(r)	SCALER_GET(r, 7, 0)
37001fb9185SAndrzej Pietrasiewicz #define SCALER_DST_BLEND_ALPHA_SET_ALPHA(v)	SCALER_SET(v, 7, 0)
37101fb9185SAndrzej Pietrasiewicz 
37201fb9185SAndrzej Pietrasiewicz /* SCALER_FILL_COLOR */
37301fb9185SAndrzej Pietrasiewicz #define SCALER_FILL_COLOR_GET_ALPHA(r)		SCALER_GET(r, 31, 24)
37401fb9185SAndrzej Pietrasiewicz #define SCALER_FILL_COLOR_SET_ALPHA(v)		SCALER_SET(v, 31, 24)
37501fb9185SAndrzej Pietrasiewicz #define SCALER_FILL_COLOR_GET_FILL_COLOR0(r)	SCALER_GET(r, 23, 16)
37601fb9185SAndrzej Pietrasiewicz #define SCALER_FILL_COLOR_SET_FILL_COLOR0(v)	SCALER_SET(v, 23, 16)
37701fb9185SAndrzej Pietrasiewicz #define SCALER_FILL_COLOR_GET_FILL_COLOR1(r)	SCALER_GET(r, 15, 8)
37801fb9185SAndrzej Pietrasiewicz #define SCALER_FILL_COLOR_SET_FILL_COLOR1(v)	SCALER_SET(v, 15, 8)
37901fb9185SAndrzej Pietrasiewicz #define SCALER_FILL_COLOR_GET_FILL_COLOR2(r)	SCALER_GET(r, 7, 0)
38001fb9185SAndrzej Pietrasiewicz #define SCALER_FILL_COLOR_SET_FILL_COLOR2(v)	SCALER_SET(v, 7, 0)
38101fb9185SAndrzej Pietrasiewicz 
38201fb9185SAndrzej Pietrasiewicz /* SCALER_ADDR_Q_CONFIG */
38301fb9185SAndrzej Pietrasiewicz #define SCALER_ADDR_Q_CONFIG_RST		(1 << 0)
38401fb9185SAndrzej Pietrasiewicz 
38501fb9185SAndrzej Pietrasiewicz /* SCALER_SRC_ADDR_Q_STATUS */
38601fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_ADDR_Q_STATUS_Y_FULL		(1 << 23)
38701fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_ADDR_Q_STATUS_Y_EMPTY	(1 << 22)
38801fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_ADDR_Q_STATUS_GET_Y_WR_IDX(r)	SCALER_GET(r, 21, 16)
38901fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_ADDR_Q_STATUS_CB_FULL	(1 << 15)
39001fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_ADDR_Q_STATUS_CB_EMPTY	(1 << 14)
39101fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_ADDR_Q_STATUS_GET_CB_WR_IDX(r)	SCALER_GET(r, 13, 8)
39201fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_ADDR_Q_STATUS_CR_FULL	(1 << 7)
39301fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_ADDR_Q_STATUS_CR_EMPTY	(1 << 6)
39401fb9185SAndrzej Pietrasiewicz #define SCALER_SRC_ADDR_Q_STATUS_GET_CR_WR_IDX(r)	SCALER_GET(r, 5, 0)
39501fb9185SAndrzej Pietrasiewicz 
39601fb9185SAndrzej Pietrasiewicz /* SCALER_DST_ADDR_Q_STATUS */
39701fb9185SAndrzej Pietrasiewicz #define SCALER_DST_ADDR_Q_STATUS_Y_FULL		(1 << 23)
39801fb9185SAndrzej Pietrasiewicz #define SCALER_DST_ADDR_Q_STATUS_Y_EMPTY	(1 << 22)
39901fb9185SAndrzej Pietrasiewicz #define SCALER_DST_ADDR_Q_STATUS_GET_Y_WR_IDX(r)	SCALER_GET(r, 21, 16)
40001fb9185SAndrzej Pietrasiewicz #define SCALER_DST_ADDR_Q_STATUS_CB_FULL	(1 << 15)
40101fb9185SAndrzej Pietrasiewicz #define SCALER_DST_ADDR_Q_STATUS_CB_EMPTY	(1 << 14)
40201fb9185SAndrzej Pietrasiewicz #define SCALER_DST_ADDR_Q_STATUS_GET_CB_WR_IDX(r)	SCALER_GET(r, 13, 8)
40301fb9185SAndrzej Pietrasiewicz #define SCALER_DST_ADDR_Q_STATUS_CR_FULL	(1 << 7)
40401fb9185SAndrzej Pietrasiewicz #define SCALER_DST_ADDR_Q_STATUS_CR_EMPTY	(1 << 6)
40501fb9185SAndrzej Pietrasiewicz #define SCALER_DST_ADDR_Q_STATUS_GET_CR_WR_IDX(r)	SCALER_GET(r, 5, 0)
40601fb9185SAndrzej Pietrasiewicz 
40701fb9185SAndrzej Pietrasiewicz /* SCALER_CRC_COLOR00_10 */
40801fb9185SAndrzej Pietrasiewicz #define SCALER_CRC_COLOR00_10_GET_00(r)		SCALER_GET(r, 31, 16)
40901fb9185SAndrzej Pietrasiewicz #define SCALER_CRC_COLOR00_10_GET_10(r)		SCALER_GET(r, 15, 0)
41001fb9185SAndrzej Pietrasiewicz 
41101fb9185SAndrzej Pietrasiewicz /* SCALER_CRC_COLOR20_30 */
41201fb9185SAndrzej Pietrasiewicz #define SCALER_CRC_COLOR20_30_GET_20(r)		SCALER_GET(r, 31, 16)
41301fb9185SAndrzej Pietrasiewicz #define SCALER_CRC_COLOR20_30_GET_30(r)		SCALER_GET(r, 15, 0)
41401fb9185SAndrzej Pietrasiewicz 
41501fb9185SAndrzej Pietrasiewicz /* SCALER_CRC_COLOR01_11 */
41601fb9185SAndrzej Pietrasiewicz #define SCALER_CRC_COLOR01_11_GET_01(r)		SCALER_GET(r, 31, 16)
41701fb9185SAndrzej Pietrasiewicz #define SCALER_CRC_COLOR01_11_GET_11(r)		SCALER_GET(r, 15, 0)
41801fb9185SAndrzej Pietrasiewicz 
41901fb9185SAndrzej Pietrasiewicz /* SCALER_CRC_COLOR21_31 */
42001fb9185SAndrzej Pietrasiewicz #define SCALER_CRC_COLOR21_31_GET_21(r)		SCALER_GET(r, 31, 16)
42101fb9185SAndrzej Pietrasiewicz #define SCALER_CRC_COLOR21_31_GET_31(r)		SCALER_GET(r, 15, 0)
42201fb9185SAndrzej Pietrasiewicz 
42301fb9185SAndrzej Pietrasiewicz #endif /* EXYNOS_REGS_SCALER_H */
424