summaryrefslogtreecommitdiff
path: root/drivers/video/wmt/hw/wmt-vpp-reg.h
diff options
context:
space:
mode:
authorSrikant Patnaik2015-01-11 20:10:08 +0530
committerSrikant Patnaik2015-01-11 20:10:08 +0530
commit6be9593ee4352c19377a47475fdcd8473897ac42 (patch)
treeb85d6e3d961374d41c446318e2c2598272a8e86c /drivers/video/wmt/hw/wmt-vpp-reg.h
parentddd6804ba90290b66ebff05b99752fcdd75fec45 (diff)
downloadFOSSEE-netbook-kernel-source-6be9593ee4352c19377a47475fdcd8473897ac42.tar.gz
FOSSEE-netbook-kernel-source-6be9593ee4352c19377a47475fdcd8473897ac42.tar.bz2
FOSSEE-netbook-kernel-source-6be9593ee4352c19377a47475fdcd8473897ac42.zip
Fix white screen issue during bootup
Signed-off-by: Manish Patel <manish.patel@xzadium.com>
Diffstat (limited to 'drivers/video/wmt/hw/wmt-vpp-reg.h')
-rw-r--r--[-rwxr-xr-x]drivers/video/wmt/hw/wmt-vpp-reg.h168
1 files changed, 67 insertions, 101 deletions
diff --git a/drivers/video/wmt/hw/wmt-vpp-reg.h b/drivers/video/wmt/hw/wmt-vpp-reg.h
index b96e64db..ffd02b87 100755..100644
--- a/drivers/video/wmt/hw/wmt-vpp-reg.h
+++ b/drivers/video/wmt/hw/wmt-vpp-reg.h
@@ -1,8 +1,8 @@
/*++
- * linux/drivers/video/wmt/hw/wmt-vpp-reg.h
+ * linux/drivers/video/wmt/register/wm8710/wmt-vpp-reg.h
* WonderMedia video post processor (VPP) driver
*
- * Copyright c 2014 WonderMedia Technologies, Inc.
+ * Copyright c 2013 WonderMedia Technologies, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -24,109 +24,75 @@
#ifndef WMT_VPP_REG_H
#define WMT_VPP_REG_H
-#define VPP_DAC_SEL_TV 1
-#define VPP_DAC_SEL_VGA 0
-
-struct vppm_base_regs {
- unsigned int _00; /* 0x00 */
-
- union {
- unsigned int val;
- struct {
- unsigned int _0_7:8;
- unsigned int govrh_pvbi:1;
- unsigned int govrh_vbis:1;
- unsigned int govrh_vbie:1;
- unsigned int _11:1;
- unsigned int govrh2_pvbi:1;
- unsigned int govrh2_vbis:1;
- unsigned int govrh2_vbie:1;
- unsigned int _15:1;
- unsigned int scl_pvbi:1;
- unsigned int scl_vbis:1;
- unsigned int scl_vbie:1;
- unsigned int _19:1;
- unsigned int ge_tg:1;
- } b;
- } int_sts; /* 0x4 */
-
- union {
- unsigned int val;
- struct {
- unsigned int _0_7:8;
- unsigned int govrh_pvbi:1;
- unsigned int govrh_vbis:1;
- unsigned int govrh_vbie:1;
- unsigned int _11:1;
- unsigned int govrh2_pvbi:1;
- unsigned int govrh2_vbis:1;
- unsigned int govrh2_vbie:1;
- unsigned int _15:1;
- unsigned int scl_pvbi:1;
- unsigned int scl_vbis:1;
- unsigned int scl_vbie:1;
- unsigned int _19:1;
- unsigned int ge_tg:1;
- } b;
- } int_en; /* 0x8 */
-
- unsigned int watch_sel; /* 0x0C */
-
- union {
- unsigned int val;
- struct {
- unsigned int scl:1;
- unsigned int _1_7:7;
- unsigned int vid:1;
- unsigned int _9_15:7;
- unsigned int ge:1;
- } b;
- } sw_reset1; /* 0x10 */
-
- union {
- unsigned int val;
- struct {
- unsigned int govrh:1;
- unsigned int _1_3:3;
- unsigned int lvds:1;
- unsigned int _5_7:3;
- unsigned int dvo:1;
- unsigned int dvo2:1;
- unsigned int _10_11:2;
- unsigned int cec:1;
- } b;
- } sw_reset2; /* 0x14 */
-
- unsigned int dac_sel; /* 0x18 */
-
- union {
- unsigned int val;
- struct {
- unsigned int hdmi:1;
- unsigned int _1_7:7;
- unsigned int ddc:1;
- unsigned int _9_15:7;
- unsigned int hdmi2:1;
- } b;
- } sw_reset3; /* 0x1C */
-
- union {
- unsigned int val;
- struct {
- unsigned int disable:1;
- unsigned int _1_7:7;
- unsigned int csi_act_lane_sel:1; /*0-lane 0/1,1-2/3*/
- } b;
- } sscg; /* 0x20 */
-};
-
#define REG_VPP_BEGIN (VPP_BASE_ADDR + 0x00)
+#define REG_VPP_INTSTS (VPP_BASE_ADDR + 0x04)
+#define REG_VPP_INTEN (VPP_BASE_ADDR + 0x08)
+#define REG_VPP_WATCH_SEL (VPP_BASE_ADDR + 0x0c)
+#define REG_VPP_SWRST1_SEL (VPP_BASE_ADDR + 0x10)
+#define REG_VPP_SWRST2_SEL (VPP_BASE_ADDR + 0x14)
+#define REG_VPP_DAC_SEL (VPP_BASE_ADDR + 0x18)
+#define REG_VPP_SWRST3_SEL (VPP_BASE_ADDR + 0x1C)
+#define REG_VPP_SSCG (VPP_BASE_ADDR + 0x20)
#define REG_VPP_END (VPP_BASE_ADDR + 0x28)
-#ifndef VPPM_C
-extern HW_REG struct vppm_base_regs *vppm_regs;
-#endif
+/* REG_VPP_INTSTS,0x04 */
+#define VPP_GE_INTSTS_TG REG_VPP_INTSTS, BIT20, 20
+#define VPP_SCL_INTSTS_VBIE REG_VPP_INTSTS, BIT18, 18
+#define VPP_SCL_INTSTS_VBIS REG_VPP_INTSTS, BIT17, 17
+#define VPP_SCL_INTSTS_PVBI REG_VPP_INTSTS, BIT16, 16
+#define VPP_SCL_INTSTS REG_VPP_INTSTS, 0x70000, 16
+#define VPP_GOVRH2_INTSTS_VBIE REG_VPP_INTSTS, BIT14, 14
+#define VPP_GOVRH2_INTSTS_VBIS REG_VPP_INTSTS, BIT13, 13
+#define VPP_GOVRH2_INTSTS_PVBI REG_VPP_INTSTS, BIT12, 12
+#define VPP_GOVRH2_INTSTS REG_VPP_INTSTS, 0x7000, 12
+#define VPP_GOVRH_INTSTS_VBIE REG_VPP_INTSTS, BIT10, 10
+#define VPP_GOVRH_INTSTS_VBIS REG_VPP_INTSTS, BIT9, 9
+#define VPP_GOVRH_INTSTS_PVBI REG_VPP_INTSTS, BIT8, 8
+#define VPP_GOVRH_INTSTS REG_VPP_INTSTS, 0x700, 8
+
+/* REG_VPP_INTEN,0x08 */
+#define VPP_GE_INTEN_TG REG_VPP_INTEN, BIT20, 20
+#define VPP_SCL_INTEN_VBIE REG_VPP_INTEN, BIT18, 18
+#define VPP_SCL_INTEN_VBIS REG_VPP_INTEN, BIT17, 17
+#define VPP_SCL_INTEN_PVBI REG_VPP_INTEN, BIT16, 16
+#define VPP_SCL_INTEN REG_VPP_INTEN, 0x70000, 16
+#define VPP_GOVRH2_INTEN_VBIE REG_VPP_INTEN, BIT14, 14
+#define VPP_GOVRH2_INTEN_VBIS REG_VPP_INTEN, BIT13, 13
+#define VPP_GOVRH2_INTEN_PVBI REG_VPP_INTEN, BIT12, 12
+#define VPP_GOVRH2_INTEN REG_VPP_INTEN, 0x7000, 12
+#define VPP_GOVRH_INTEN_VBIE REG_VPP_INTEN, BIT10, 10
+#define VPP_GOVRH_INTEN_VBIS REG_VPP_INTEN, BIT9, 9
+#define VPP_GOVRH_INTEN_PVBI REG_VPP_INTEN, BIT8, 8
+#define VPP_GOVRH_INTEN REG_VPP_INTEN, 0x700, 8
+
+/* REG_VPP_WATCH_SEL,0x0c */
+#define VPP_WATCH_SEL REG_VPP_WATCH_SEL, 0x1F, 0
+
+/* REG_VPP_SWRST1_SEL,0x10 */
+#define VPP_GE_RST REG_VPP_SWRST1_SEL, BIT16, 16
+#define VPP_VID_RST REG_VPP_SWRST1_SEL, BIT8, 8
+#define VPP_SCL_RST REG_VPP_SWRST1_SEL, BIT0, 0
+
+/* REG_VPP_SWRST2_SEL,0x14 */
+#define VPP_CEC_RST REG_VPP_SWRST2_SEL, BIT12,12
+#define VPP_DVO2_RST REG_VPP_SWRST2_SEL, BIT9, 9
+#define VPP_DVO_RST REG_VPP_SWRST2_SEL, BIT8, 8
+#define VPP_LVDS_RST REG_VPP_SWRST2_SEL, BIT4, 4
+#define VPP_GOVRH_RST REG_VPP_SWRST2_SEL, BIT0, 0
+
+/* REG_VPP_DAC_SEL,0x18 */
+#define VPP_DAC_SEL REG_VPP_DAC_SEL, BIT0, 0
+#define VPP_DAC_SEL_TV 1
+#define VPP_DAC_SEL_VGA 0
+
+/* REG_VPP_SWRST3_SEL,0x1C */
+#define VPP_HDMI_RST REG_VPP_SWRST3_SEL, BIT0, 0
+#define VPP_DDC_RST REG_VPP_SWRST3_SEL, BIT8, 8
+#define VPP_HDMI2_RST REG_VPP_SWRST3_SEL, BIT16, 16
+/* REG_VPP_SSCG,0x20 */
+#define VPP_SSCG_DISABLE REG_VPP_SSCG, BIT0, 0
+#define VPP_CSI_ACT_LANE_SELECT REG_VPP_SSCG, BIT8, 8 /* 0-Active lane 0/1, 1-Active lane 2/3 */
#endif /* WMT_VPP_REG_H */