summaryrefslogtreecommitdiff
path: root/drivers/misc/sprd_vpp/sprd_dither/vpp_dither_reg.h
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2017-08-30 08:25:59 +0000
committerYuval Adam <_@yuv.al>2017-08-30 08:25:59 +0000
commit8e4bff4cab0ddac6060645b0715210484d02ff40 (patch)
tree3a5c3024371a04692a3a6d9974d001cdff8ebf84 /drivers/misc/sprd_vpp/sprd_dither/vpp_dither_reg.h
Initial file dump from open source releaseHEADmaster
Diffstat (limited to 'drivers/misc/sprd_vpp/sprd_dither/vpp_dither_reg.h')
-rw-r--r--drivers/misc/sprd_vpp/sprd_dither/vpp_dither_reg.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/drivers/misc/sprd_vpp/sprd_dither/vpp_dither_reg.h b/drivers/misc/sprd_vpp/sprd_dither/vpp_dither_reg.h
new file mode 100644
index 00000000..94991a73
--- /dev/null
+++ b/drivers/misc/sprd_vpp/sprd_dither/vpp_dither_reg.h
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2014 Spreadtrum Communications Inc.
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+#ifndef _VPP_DITHER_REG_H_
+#define _VPP_DITHER_REG_H_
+
+extern struct vpp_dither_device *vpp_dither_ctx;
+
+#define VPP_REG_BASE (vpp_dither_ctx->reg_base_addr)
+
+#define VPP_CFG (VPP_REG_BASE + 0x0000)
+#define VPP_INT_STS (VPP_REG_BASE + 0x0010)
+#define VPP_INT_MSK (VPP_REG_BASE + 0x0014)
+#define VPP_INT_CLR (VPP_REG_BASE + 0x0018)
+#define VPP_INT_RAW (VPP_REG_BASE + 0x001C)
+
+#define AXIM_STS (VPP_REG_BASE + 0x002C)
+
+#define DITH_PATH_CFG (VPP_REG_BASE + 0x1000)
+#define DITH_PATH_START (VPP_REG_BASE + 0x1004)
+#define DITH_IMG_SIZE (VPP_REG_BASE + 0x1008)
+#define DITH_MEM_SW (VPP_REG_BASE + 0x100C)
+#define DITH_SRC_ADDR (VPP_REG_BASE + 0x1010)
+#define DITH_DES_ADDR (VPP_REG_BASE + 0x1014)
+#define RB_COEF_CFG0 (VPP_REG_BASE + 0x1018)
+#define RB_COEF_CFG1 (VPP_REG_BASE + 0x101C)
+#define RB_COEF_CFG2 (VPP_REG_BASE + 0x1020)
+#define RB_COEF_CFG3 (VPP_REG_BASE + 0x1024)
+#define G_COEF_CFG0 (VPP_REG_BASE + 0x1028)
+#define G_COEF_CFG1 (VPP_REG_BASE + 0x102C)
+#define G_COEF_CFG2 (VPP_REG_BASE + 0x1030)
+#define G_COEF_CFG3 (VPP_REG_BASE + 0x1034)
+
+#define DITH_PATH_TABLE (VPP_REG_BASE + 0x1400)
+
+#define MM_ENABLE 0x402E0000
+#define VPP_ENABLE 0x60D00000
+#define AXI_ENABLE 0x60D00008
+
+#endif
+