You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

128 lines
4.3 KiB

/*
* Copyright (C) 2013 Samsung Electronics Co.Ltd
* Authors:
* Inki Dae <inki.dae@samsung.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef _FIMG2D_REG_H_
#define _FIMG2D_REG_H_
#define SOFT_RESET_REG (0x0000)
#define INTEN_REG (0x0004)
#define INTC_PEND_REG (0x000C)
#define FIFO_STAT_REG (0x0010)
#define AXI_MODE_REG (0x001C)
#define DMA_SFR_BASE_ADDR_REG (0x0080)
#define DMA_COMMAND_REG (0x0084)
#define DMA_EXE_LIST_NUM_REG (0x0088)
#define DMA_STATUS_REG (0x008C)
#define DMA_HOLD_CMD_REG (0x0090)
/* COMMAND REGISTER */
#define BITBLT_START_REG (0x0100)
#define BITBLT_COMMAND_REG (0x0104)
#define BLEND_FUNCTION_REG (0x0108) /* VER4.1 */
#define ROUND_MODE_REG (0x010C) /* VER4.1 */
/* PARAMETER SETTING REGISTER */
#define ROTATE_REG (0x0200)
#define SRC_MASK_DIRECT_REG (0x0204)
#define DST_PAT_DIRECT_REG (0x0208)
/* SOURCE */
#define SRC_SELECT_REG (0x0300)
#define SRC_BASE_ADDR_REG (0x0304)
#define SRC_STRIDE_REG (0x0308)
#define SRC_COLOR_MODE_REG (0x030c)
#define SRC_LEFT_TOP_REG (0x0310)
#define SRC_RIGHT_BOTTOM_REG (0x0314)
#define SRC_PLANE2_BASE_ADDR_REG (0x0318) /* VER4.1 */
#define SRC_REPEAT_MODE_REG (0x031C)
#define SRC_PAD_VALUE_REG (0x0320)
#define SRC_A8_RGB_EXT_REG (0x0324)
#define SRC_SCALE_CTRL_REG (0x0328)
#define SRC_XSCALE_REG (0x032C)
#define SRC_YSCALE_REG (0x0330)
/* DESTINATION */
#define DST_SELECT_REG (0x0400)
#define DST_BASE_ADDR_REG (0x0404)
#define DST_STRIDE_REG (0x0408)
#define DST_COLOR_MODE_REG (0x040C)
#define DST_LEFT_TOP_REG (0x0410)
#define DST_RIGHT_BOTTOM_REG (0x0414)
#define DST_PLANE2_BASE_ADDR_REG (0x0418) /* VER4.1 */
#define DST_A8_RGB_EXT_REG (0x041C)
/* PATTERN */
#define PAT_BASE_ADDR_REG (0x0500)
#define PAT_SIZE_REG (0x0504)
#define PAT_COLOR_MODE_REG (0x0508)
#define PAT_OFFSET_REG (0x050C)
#define PAT_STRIDE_REG (0x0510)
/* MASK */
#define MASK_BASE_ADDR_REG (0x0520)
#define MASK_STRIDE_REG (0x0524)
#define MASK_LEFT_TOP_REG (0x0528) /* VER4.1 */
#define MASK_RIGHT_BOTTOM_REG (0x052C) /* VER4.1 */
#define MASK_MODE_REG (0x0530) /* VER4.1 */
#define MASK_REPEAT_MODE_REG (0x0534)
#define MASK_PAD_VALUE_REG (0x0538)
#define MASK_SCALE_CTRL_REG (0x053C)
#define MASK_XSCALE_REG (0x0540)
#define MASK_YSCALE_REG (0x0544)
/* CLIPPING WINDOW */
#define CW_LT_REG (0x0600)
#define CW_RB_REG (0x0604)
/* ROP & ALPHA SETTING */
#define THIRD_OPERAND_REG (0x0610)
#define ROP4_REG (0x0614)
#define ALPHA_REG (0x0618)
/* COLOR SETTING */
#define FG_COLOR_REG (0x0700)
#define BG_COLOR_REG (0x0704)
#define BS_COLOR_REG (0x0708)
#define SF_COLOR_REG (0x070C) /* VER4.1 */
/* COLOR KEY */
#define SRC_COLORKEY_CTRL_REG (0x0710)
#define SRC_COLORKEY_DR_MIN_REG (0x0714)
#define SRC_COLORKEY_DR_MAX_REG (0x0718)
#define DST_COLORKEY_CTRL_REG (0x071C)
#define DST_COLORKEY_DR_MIN_REG (0x0720)
#define DST_COLORKEY_DR_MAX_REG (0x0724)
/* YCbCr src Color Key */
#define YCbCr_SRC_COLORKEY_CTRL_REG (0x0728) /* VER4.1 */
#define YCbCr_SRC_COLORKEY_DR_MIN_REG (0x072C) /* VER4.1 */
#define YCbCr_SRC_COLORKEY_DR_MAX_REG (0x0730) /* VER4.1 */
/*Y CbCr dst Color Key */
#define YCbCr_DST_COLORKEY_CTRL_REG (0x0734) /* VER4.1 */
#define YCbCr_DST_COLORKEY_DR_MIN_REG (0x0738) /* VER4.1 */
#define YCbCr_DST_COLORKEY_DR_MAX_REG (0x073C) /* VER4.1 */
#endif