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:48 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-16 02:26:17 (GMT)
commit1adb3c23383e3d2b2b2ae9badba1df9926609308 (patch)
tree63e1d84a120101b4865146b055ba4a0bb7a0d806 /drivers/staging/sm750fb/ddk750_reg.h
parent32849f85e6b86a8d08b58c635757aa4dd0e0b887 (diff)
downloadlinux-1adb3c23383e3d2b2b2ae9badba1df9926609308.tar.xz
staging: sm750fb: change definition of CRT_HORIZONTAL_SYNC fields
Use stratight-forward definition of CRT_HORIZONTAL_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 1b55a7f..fc6fa23 100644
--- a/drivers/staging/sm750fb/ddk750_reg.h
+++ b/drivers/staging/sm750fb/ddk750_reg.h
@@ -1382,8 +1382,9 @@
#define CRT_HORIZONTAL_TOTAL_DISPLAY_END_MASK 0xfff
#define CRT_HORIZONTAL_SYNC 0x080210
-#define CRT_HORIZONTAL_SYNC_WIDTH 23:16
-#define CRT_HORIZONTAL_SYNC_START 11:0
+#define CRT_HORIZONTAL_SYNC_WIDTH_SHIFT 16
+#define CRT_HORIZONTAL_SYNC_WIDTH_MASK (0xff << 16)
+#define CRT_HORIZONTAL_SYNC_START_MASK 0xfff
#define CRT_VERTICAL_TOTAL 0x080214
#define CRT_VERTICAL_TOTAL_TOTAL 26:16