Index: arch/arm/mach-s5pv210/include/mach/regs-vmx.h |
diff --git a/arch/arm/mach-s5pv210/include/mach/regs-vmx.h b/arch/arm/mach-s5pv210/include/mach/regs-vmx.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a43a40a968cde7b40443e6080851c4791f01952a |
--- /dev/null |
+++ b/arch/arm/mach-s5pv210/include/mach/regs-vmx.h |
@@ -0,0 +1,241 @@ |
+/* linux/arch/arm/mach-s5pv210/include/mach/regs-vmx.h |
+* |
+* Copyright (c) 2010 Samsung Electronics Co., Ltd. |
+* http://www.samsung.com/ |
+* |
+* S5PV210 - Mixer register header file for Samsung TVOut driver |
+* |
+* This program is free software; you can redistribute it and/or modify |
+* it under the terms of the GNU General Public License version 2 as |
+* published by the Free Software Foundation. |
+*/ |
+ |
+#ifndef __ASM_ARCH_REGS_VMX_H |
+#define __ASM_ARCH_REGS_VMX_H __FILE__ |
+ |
+#define S5P_MIXER_BASE(x) (x) |
+ |
+#define S5P_MXR_STATUS S5P_MIXER_BASE(0x0000) |
+#define S5P_MXR_CFG S5P_MIXER_BASE(0x0004) |
+#define S5P_MXR_INT_EN S5P_MIXER_BASE(0x0008) |
+#define S5P_MXR_INT_STATUS S5P_MIXER_BASE(0x000C) |
+#define S5P_MXR_LAYER_CFG S5P_MIXER_BASE(0x0010) |
+#define S5P_MXR_VIDEO_CFG S5P_MIXER_BASE(0x0014) |
+#define S5P_MXR_GRAPHIC0_CFG S5P_MIXER_BASE(0x0020) |
+#define S5P_MXR_GRAPHIC0_BASE S5P_MIXER_BASE(0x0024) |
+#define S5P_MXR_GRAPHIC0_SPAN S5P_MIXER_BASE(0x0028) |
+#define S5P_MXR_GRAPHIC0_SXY S5P_MIXER_BASE(0x002C) |
+#define S5P_MXR_GRAPHIC0_WH S5P_MIXER_BASE(0x0030) |
+#define S5P_MXR_GRAPHIC0_DXY S5P_MIXER_BASE(0x0034) |
+#define S5P_MXR_GRAPHIC0_BLANK S5P_MIXER_BASE(0x0038) |
+#define S5P_MXR_GRAPHIC1_CFG S5P_MIXER_BASE(0x0040) |
+#define S5P_MXR_GRAPHIC1_BASE S5P_MIXER_BASE(0x0044) |
+#define S5P_MXR_GRAPHIC1_SPAN S5P_MIXER_BASE(0x0048) |
+#define S5P_MXR_GRAPHIC1_SXY S5P_MIXER_BASE(0x004C) |
+#define S5P_MXR_GRAPHIC1_WH S5P_MIXER_BASE(0x0050) |
+#define S5P_MXR_GRAPHIC1_DXY S5P_MIXER_BASE(0x0054) |
+#define S5P_MXR_GRAPHIC1_BLANK S5P_MIXER_BASE(0x0058) |
+#define S5P_MXR_BG_CFG S5P_MIXER_BASE(0x0060) |
+#define S5P_MXR_BG_COLOR0 S5P_MIXER_BASE(0x0064) |
+#define S5P_MXR_BG_COLOR1 S5P_MIXER_BASE(0x0068) |
+#define S5P_MXR_BG_COLOR2 S5P_MIXER_BASE(0x006C) |
+#define S5P_MXR_CM_COEFF_Y S5P_MIXER_BASE(0x0080) |
+#define S5P_MXR_CM_COEFF_CB S5P_MIXER_BASE(0x0084) |
+#define S5P_MXR_CM_COEFF_CR S5P_MIXER_BASE(0x0088) |
+#define S5P_MXR_VER S5P_MIXER_BASE(0x0100) |
+ |
+#define S5P_MXR_STATUS_S S5P_MIXER_BASE(0x2000) |
+#define S5P_MXR_CFG_S S5P_MIXER_BASE(0x2004) |
+#define S5P_MXR_LAYER_CFG_S S5P_MIXER_BASE(0x2010) |
+#define S5P_MXR_VIDEO_CFG_S S5P_MIXER_BASE(0x2014) |
+#define S5P_MXR_GRAPHIC0_CFG_S S5P_MIXER_BASE(0x2020) |
+#define S5P_MXR_GRAPHIC0_BASE_S S5P_MIXER_BASE(0x2024) |
+#define S5P_MXR_GRAPHIC0_SPAN_S S5P_MIXER_BASE(0x2028) |
+#define S5P_MXR_GRAPHIC0_SXY_S S5P_MIXER_BASE(0x202C) |
+#define S5P_MXR_GRAPHIC0_WH_S S5P_MIXER_BASE(0x2030) |
+#define S5P_MXR_GRAPHIC0_DXY_S S5P_MIXER_BASE(0x2034) |
+#define S5P_MXR_GRAPHIC0_BLANK_PIXEL_S S5P_MIXER_BASE(0x2038) |
+#define S5P_MXR_GRAPHIC1_CFG_S S5P_MIXER_BASE(0x2040) |
+#define S5P_MXR_GRAPHIC1_BASE_S S5P_MIXER_BASE(0x2044) |
+#define S5P_MXR_GRAPHIC1_SPAN_S S5P_MIXER_BASE(0x2048) |
+#define S5P_MXR_GRAPHIC1_SXY_S S5P_MIXER_BASE(0x204C) |
+#define S5P_MXR_GRAPHIC1_WH_S S5P_MIXER_BASE(0x2050) |
+#define S5P_MXR_GRAPHIC1_DXY_S S5P_MIXER_BASE(0x2054) |
+#define S5P_MXR_GRAPHIC1_BLANK_PIXEL_S S5P_MIXER_BASE(0x2058) |
+#define S5P_MXR_BG_COLOR0_S S5P_MIXER_BASE(0x2064) |
+#define S5P_MXR_BG_COLOR1_S S5P_MIXER_BASE(0x2068) |
+#define S5P_MXR_BG_COLOR2_S S5P_MIXER_BASE(0x206C) |
+ |
+/* S5P_MXR_STATUS */ |
+#define S5P_MXR_STATUS_RUN (1<<0) |
+#define S5P_MXR_STATUS_STOP (0<<0) |
+#define S5P_MXR_STATUS_SYNC_DISABLE (0<<2) |
+#define S5P_MXR_STATUS_SYNC_ENABLE (1<<2) |
+#define S5P_MXR_STATUS_LITTLE (0<<3) |
+#define S5P_MXR_STATUS_BIT (1<<3) |
+#define S5P_MXR_STATUS_8_BURST (0<<7) |
+#define S5P_MXR_STATUS_16_BURST (1<<7) |
+ |
+/* S5P_MXR_CFG */ |
+#define S5P_MXR_CFG_SD (0<<0) |
+#define S5P_MXR_CFG_HD (1<<0) |
+#define S5P_MXR_CFG_NTSC (0<<1) |
+#define S5P_MXR_CFG_PAL (1<<1) |
+#define S5P_MXR_CFG_INTERLACE (0<<2) |
+#define S5P_MXR_CFG_PROGRASSIVE (1<<2) |
+#define S5P_MXR_CFG_VIDEO_DISABLE (0<<3) |
+#define S5P_MXR_CFG_VIDEO_ENABLE (1<<4) |
+#define S5P_MXR_CFG_GRAPHIC0_DISABLE (0<<4) |
+#define S5P_MXR_CFG_GRAPHIC0_ENABLE (1<<4) |
+#define S5P_MXR_CFG_GRAPHIC1_DISABLE (0<<5) |
+#define S5P_MXR_CFG_GRAPHIC1_ENABLE (1<<5) |
+#define S5P_MXR_CFG_HD_720P (0<<6) |
+#define S5P_MXR_CFG_HD_1080I (1<<6) |
+#define S5P_MXR_CFG_TV_OUT (0<<7) |
+#define S5P_MXR_CFG_HDMI_OUT (1<<7) |
+ |
+/* S5P_MXR_INT_EN */ |
+#define S5P_MXR_INT_EN_GRP0_DISABLE (0<<8) |
+#define S5P_MXR_INT_EN_GRP0_ENABLE (1<<8) |
+#define S5P_MXR_INT_EN_GRP1_DISABLE (0<<9) |
+#define S5P_MXR_INT_EN_GRP1_ENABLE (1<<9) |
+#define S5P_MXR_INT_EN_VP_DISABLE (0<<10) |
+#define S5P_MXR_INT_EN_VP_ENABLE (1<<10) |
+#define S5P_MXR_VSYNC_INT_ENABLE (1<<11) |
+ |
+/* S5P_MXR_INT_STATUS */ |
+#define S5P_MXR_STATUS_EN_GRP0_N_FIRED (0<<8) |
+#define S5P_MXR_STATUS_EN_GRP0_FIRED (1<<8) |
+#define S5P_MXR_STATUS_EN_GRP1_N_FIRED (0<<9) |
+#define S5P_MXR_STATUS_EN_GRP1_FIRED (1<<9) |
+#define S5P_MXR_STATUS_EN_VP_N_FIRED (0<<10) |
+#define S5P_MXR_STATUS_EN_VP_FIRED (1<<10) |
+ |
+/* S5P_MXR_LAYER_CFG */ |
+#define S5P_MXR_LAYER_CFG_VP_HIDE (0<<0) |
+#define S5P_MXR_LAYER_CFG_GRP0_HIDE (0<<4) |
+#define S5P_MXR_LAYER_CFG_GRP1_HIDE (0<<8) |
+ |
+/* S5P_MXR_VIDEO_CFG */ |
+#define S5P_MXR_VIDEO_CFG_BLEND_EN (1<<16) |
+ |
+/* MIXER_STATUS */ |
+#define S5P_MXR_BURST16_MODE (1<<7) |
+#define S5P_MXR_BURST8_MODE (0<<7) |
+#define S5P_MXR_BIG_ENDIAN_SOURCE_FORMAT (1<<3) |
+#define S5P_MXR_LITTLE_ENDIAN_SOURCE_FORMAT (0<<3) |
+#define S5P_MXR_MIXER_RESERVED (1<<2) |
+#define S5P_MXR_CMU_STOP_CLOCK (1<<1) |
+#define S5P_MXR_CMU_CANNOT_STOP_CLOCK (0<<1) |
+#define S5P_MXR_MIXER_START (1<<0) |
+#define S5P_MXR_MIXER_STOP (0<<0) |
+ |
+/* MIXER_CFG */ |
+#define S5P_MXR_DST_SEL_HDMI (1<<7) |
+#define S5P_MXR_DST_SEL_ANALOG (~(1<<7)) |
+#define S5P_MXR_HD_1080I_MODE (1<<6) |
+ |
+#define S5P_MXR_HD_1080P_MODE S5P_MXR_HD_1080I_MODE |
+ |
+#define S5P_MXR_HD_720P_MODE (0<<6) |
+#define S5P_MXR_GRAPHIC1_LAYER_SHOW (1<<5) |
+#define S5P_MXR_GRAPHIC1_LAYER_HIDE (0<<5) |
+#define S5P_MXR_GRAPHIC0_LAYER_SHOW (1<<4) |
+#define S5P_MXR_GRAPHIC0_LAYER_HIDE (0<<4) |
+#define S5P_MXR_VIDEO_LAYER_SHOW (1<<3) |
+#define S5P_MXR_VIDEO_LAYER_HIDE (0<<3) |
+#define S5P_MXR_PROGRESSVE_MODE (1<<2) |
+#define S5P_MXR_INTERLACE_MODE (~(1<<2)) |
+#define S5P_MXR_PAL (1<<1) |
+#define S5P_MXR_NTSC (0<<1) |
+#define S5P_MXR_HD (1<<0) |
+#define S5P_MXR_SD (0<<0) |
+ |
+/* MIXER_INT_EN */ |
+#define S5P_MXR_VP_INT_ENABLE (1<<10) |
+#define S5P_MXR_VP_INT_DISABLE (0<<10) |
+#define S5P_MXR_GRP1_INT_ENABLE (1<<9) |
+#define S5P_MXR_GRP1_INT_DISABLE (0<<9) |
+#define S5P_MXR_GRP0_INT_ENABLE (1<<8) |
+#define S5P_MXR_GRP0_INT_DISABLE (0<<8) |
+ |
+/* MIXER_INT_STATUS */ |
+#define S5P_MXR_VSYNC_INT_CLEARED (1<<11) |
+#define S5P_MXR_VP_INT_FIRED (1<<10) |
+#define S5P_MXR_GRP1_INT_FIRED (1<<9) |
+#define S5P_MXR_GRP0_INT_FIRED (1<<8) |
+#define S5P_MXR_INT_FIRED (1<<0) |
+ |
+#define S5P_MXR_ALPHA (0xff) |
+ |
+/* MIXER_LAYER_CFG */ |
+#define S5P_MXR_GRP1_LAYER_PRIORITY(x) ((0xf&x)<<8) |
+#define S5P_MXR_GRP0_LAYER_PRIORITY(x) ((0xf&x)<<4) |
+#define S5P_MXR_VP_LAYER_PRIORITY(x) ((0xf&x)<<0) |
+#define S5P_MXR_GRP1_LAYER_PRIORITY_CLEAR(x) ((~(0xf<<8))&x) |
+#define S5P_MXR_GRP0_LAYER_PRIORITY_CLEAR(x) ((~(0xf<<4))&x) |
+#define S5P_MXR_VP_LAYER_PRIORITY_CLEAR(x) ((~(0xf<<0))&x) |
+#define S5P_MXR_GRP1_LAYER_PRIORITY_INFO(x) ((0xf<<8)&x) |
+#define S5P_MXR_GRP0_LAYER_PRIORITY_INFO(x) ((0xf<<4)&x) |
+#define S5P_MXR_VP_LAYER_PRIORITY_INFO(x) ((0xf<<0)&x) |
+ |
+/* MIXER_VIDEO_CFG */ |
+#define S5P_MXR_VP_BLEND_ENABLE (1<<16) |
+#define S5P_MXR_VP_BLEND_DISABLE (0<<16) |
+#define S5P_MXR_VP_ALPHA_VALUE(x) ((0xff&x)<<0) |
+#define S5P_MXR_VP_ALPHA_VALUE_CLEAR(x) ((~(0xff<<0))&x) |
+ |
+/* MIXER_GRAPHx_CFG */ |
+#define S5P_MXR_BLANK_CHANGE_NEW_PIXEL (1<<21) |
+#define S5P_MXR_BLANK_NOT_CHANGE_NEW_PIXEL (0<<21) |
+#define S5P_MXR_PRE_MUL_MODE (1<<20) |
+#define S5P_MXR_NORMAL_MODE (0<<20) |
+#define S5P_MXR_WIN_BLEND_ENABLE (1<<17) |
+#define S5P_MXR_WIN_BLEND_DISABLE (0<<17) |
+#define S5P_MXR_PIXEL_BLEND_ENABLE (1<<16) |
+#define S5P_MXR_PIXEL_BLEND_DISABLE (0<<16) |
+#define S5P_MXR_EG_COLOR_FORMAT(x) ((0xf&x)<<8) |
+#define S5P_MXR_EG_COLOR_FORMAT_CLEAR(x) ((~(0xf<<8))&x) |
+#define S5P_MXR_GRP_ALPHA_VALUE(x) ((0xff&x)<<0) |
+#define S5P_MXR_GRP_ALPHA_VALUE_CLEAR(x) ((~(0xff<<0))&x) |
+ |
+/* MIXER_GRAPHx_BASE */ |
+#define S5P_MXR_GPR_BASE(x) (0xffffffff&x) |
+#define S5P_MXR_GRP_ADDR_ILLEGAL(x) (0x3&x) |
+ |
+/* MIXER_GRAPH1_SPAN */ |
+#define S5P_MXR_GRP_SPAN(x) (0x7fff&x) |
+ |
+/* MIXER_GRAPH1_WH */ |
+#define S5P_MXR_GRP_WIDTH(x) ((0x7ff&x)<<16) |
+#define S5P_MXR_GRP_HEIGHT(x) ((0x7ff&x)<<0) |
+ |
+/* MIXER_GRAPH1_SXY */ |
+#define S5P_MXR_GRP_STARTX(x) ((0x7ff&x)<<16) |
+#define S5P_MXR_GRP_STARTY(x) ((0x7ff&x)<<0) |
+ |
+/* MIXER_GRAPH1_DXY */ |
+#define S5P_MXR_GRP_DESTX(x) ((0x7ff&x)<<16) |
+#define S5P_MXR_GRP_DESTY(x) ((0x7ff&x)<<0) |
+ |
+/* MIXER_GRAPH1_BLANK */ |
+#define S5P_MXR_GPR_BLANK_COLOR(x) (0xffffffff&x) |
+ |
+/* MIXER_BG_CFG */ |
+#define S5P_MXR_BG_CR_DIHER_EN (1<<19) |
+#define S5P_MXR_BG_CB_DIHER_EN (1<<18) |
+#define S5P_MXR_BG_Y_DIHER_EN (1<<17) |
+ |
+/* MIXER_BG_COLORx */ |
+#define S5P_MXR_BG_COLOR_Y(x) ((0xff&x)<<16) |
+#define S5P_MXR_BG_COLOR_CB(x) ((0xff&x)<<8) |
+#define S5P_MXR_BG_COLOR_CR(x) ((0xff&x)<<0) |
+ |
+/* MIXER_CM_COEFF_x */ |
+#define S5P_MXR_BG_COLOR_WIDE (1<<30) |
+#define S5P_MXR_BG_COLOR_NARROW (0<<30) |
+#define S5P_MXR_BG_COEFF_0(x) ((0x3f&x)<<20) |
+#define S5P_MXR_BG_COEFF_1(x) ((0x3f&x)<<10) |
+#define S5P_MXR_BG_COEFF_2(x) ((0x3f&x)<<0) |
+ |
+#endif /* __ASM_ARCH_REGS_VMX_H */ |