aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/s5p-g2d/g2d-regs.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/platform/s5p-g2d/g2d-regs.h')
-rw-r--r--drivers/media/platform/s5p-g2d/g2d-regs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/platform/s5p-g2d/g2d-regs.h b/drivers/media/platform/s5p-g2d/g2d-regs.h
index 02e1cf50da4e..9bf31ad35d47 100644
--- a/drivers/media/platform/s5p-g2d/g2d-regs.h
+++ b/drivers/media/platform/s5p-g2d/g2d-regs.h
@@ -35,6 +35,9 @@
35#define SRC_COLOR_MODE_REG 0x030C /* Src Image Color Mode reg */ 35#define SRC_COLOR_MODE_REG 0x030C /* Src Image Color Mode reg */
36#define SRC_LEFT_TOP_REG 0x0310 /* Src Left Top Coordinate reg */ 36#define SRC_LEFT_TOP_REG 0x0310 /* Src Left Top Coordinate reg */
37#define SRC_RIGHT_BOTTOM_REG 0x0314 /* Src Right Bottom Coordinate reg */ 37#define SRC_RIGHT_BOTTOM_REG 0x0314 /* Src Right Bottom Coordinate reg */
38#define SRC_SCALE_CTRL_REG 0x0328 /* Src Scaling type select */
39#define SRC_XSCALE_REG 0x032c /* Src X Scaling ratio */
40#define SRC_YSCALE_REG 0x0330 /* Src Y Scaling ratio */
38 41
39/* Parameter Setting Registers (Dest) */ 42/* Parameter Setting Registers (Dest) */
40#define DST_SELECT_REG 0x0400 /* Dest Image Selection reg */ 43#define DST_SELECT_REG 0x0400 /* Dest Image Selection reg */
@@ -113,3 +116,7 @@
113#define DEFAULT_WIDTH 100 116#define DEFAULT_WIDTH 100
114#define DEFAULT_HEIGHT 100 117#define DEFAULT_HEIGHT 100
115 118
119#define DEFAULT_SCALE_MODE (2 << 0)
120
121/* Command mode register values */
122#define CMD_V3_ENABLE_STRETCH (1 << 4)