diff options
author | Mike Rapoport <mike.rapoport@gmail.com> | 2016-02-15 20:54:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-16 05:26:17 +0300 |
commit | 8bac9c84cc3ca633184b435707d0e2ca34acd92c (patch) | |
tree | a195b3c6f35e0570d0308dd3573a7af980b181a4 /drivers/staging/sm750fb/sm750_accel.h | |
parent | f7a61fde48da20dc7f91b9ce76c23db4588b50d3 (diff) | |
download | linux-8bac9c84cc3ca633184b435707d0e2ca34acd92c.tar.xz |
staging: sm750fb: change definition of DE_WINDOW_WIDTH fields
Use stratight-forward definition of DE_WINDOW_WIDTH 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/sm750_accel.h')
-rw-r--r-- | drivers/staging/sm750fb/sm750_accel.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/sm750fb/sm750_accel.h b/drivers/staging/sm750fb/sm750_accel.h index 69aa47c35408..47b1a2782ded 100644 --- a/drivers/staging/sm750fb/sm750_accel.h +++ b/drivers/staging/sm750fb/sm750_accel.h @@ -157,8 +157,9 @@ #define DE_MONO_PATTERN_HIGH_PATTERN 31:0 #define DE_WINDOW_WIDTH 0x00003C -#define DE_WINDOW_WIDTH_DESTINATION 28:16 -#define DE_WINDOW_WIDTH_SOURCE 12:0 +#define DE_WINDOW_WIDTH_DST_SHIFT 16 +#define DE_WINDOW_WIDTH_DST_MASK (0x1fff << 16) +#define DE_WINDOW_WIDTH_SRC_MASK 0x1fff #define DE_WINDOW_SOURCE_BASE 0x000040 #define DE_WINDOW_SOURCE_BASE_EXT 27:27 |