summaryrefslogtreecommitdiff
path: root/drivers/staging/sm750fb/ddk750_reg.h
diff options
context:
space:
mode:
authorMike Rapoport <mike.rapoport@gmail.com>2016-02-15 17:53:53 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-16 02:26:17 (GMT)
commit8ffe46109b1f2eedc4c5fea61cf0cbe654f160f4 (patch)
tree5fd02fbea4d2a3daf3adab50854dc35161812f67 /drivers/staging/sm750fb/ddk750_reg.h
parent6014a31dd607a6e6224b17c6d74df45ffeb45328 (diff)
downloadlinux-8ffe46109b1f2eedc4c5fea61cf0cbe654f160f4.tar.xz
staging: sm750fb: change definition of PANEL_VERTICAL_SYNC fields
Use stratight-forward definition of PANEL_VERTICAL_SYNC register fields and use open-coded implementation for register manipulation Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb/ddk750_reg.h')
-rw-r--r--drivers/staging/sm750fb/ddk750_reg.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/sm750fb/ddk750_reg.h b/drivers/staging/sm750fb/ddk750_reg.h
index 0ecbac5..a274c31 100644
--- a/drivers/staging/sm750fb/ddk750_reg.h
+++ b/drivers/staging/sm750fb/ddk750_reg.h
@@ -873,8 +873,9 @@
#define PANEL_VERTICAL_TOTAL_DISPLAY_END_MASK 0x7ff
#define PANEL_VERTICAL_SYNC 0x080030
-#define PANEL_VERTICAL_SYNC_HEIGHT 21:16
-#define PANEL_VERTICAL_SYNC_START 10:0
+#define PANEL_VERTICAL_SYNC_HEIGHT_SHIFT 16
+#define PANEL_VERTICAL_SYNC_HEIGHT_MASK (0x3f << 16)
+#define PANEL_VERTICAL_SYNC_START_MASK 0x7ff
#define PANEL_CURRENT_LINE 0x080034
#define PANEL_CURRENT_LINE_LINE 10:0