video: tegra: dc: support 4096 sized windows
Jon Mayo [Mon, 3 Mar 2014 23:28:22 +0000 (15:28 -0800)]
Program the full 13-bit and 15-bit range of fields related to window size.

Bug 200003004

Change-Id: I388795e002a50f735303461d69841085d9fcfde9
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/376774
(cherry picked from commit 16dc3c06abcbe56e21d1d0951316bfd9e3f24ce7)
Reviewed-on: http://git-master/r/408617
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit

drivers/video/tegra/dc/dc_reg.h

index 8586d32..3580153 100644 (file)
 #define DC_WIN_COLOR_DEPTH                     0x703
 
 #define DC_WIN_POSITION                                0x704
-#define  H_POSITION(x)         (((x) & 0xfff) << 0)
-#define  V_POSITION(x)         (((x) & 0xfff) << 16)
+#define  H_POSITION(x)         (((x) & 0x1fff) << 0)
+#define  V_POSITION(x)         (((x) & 0x1fff) << 16)
 
 #define DC_WIN_SIZE                            0x705
-#define  H_SIZE(x)             (((x) & 0xfff) << 0)
-#define  V_SIZE(x)             (((x) & 0xfff) << 16)
+#define  H_SIZE(x)             (((x) & 0x1fff) << 0)
+#define  V_SIZE(x)             (((x) & 0x1fff) << 16)
 
 #define DC_WIN_PRESCALED_SIZE                  0x706
-#define  H_PRESCALED_SIZE(x)   (((x) & 0x3fff) << 0)
-#define  V_PRESCALED_SIZE(x)   (((x) & 0xfff) << 16)
+#define  H_PRESCALED_SIZE(x)   (((x) & 0x7fff) << 0)
+#define  V_PRESCALED_SIZE(x)   (((x) & 0x1fff) << 16)
 
 #define DC_WIN_H_INITIAL_DDA                   0x707
 #define DC_WIN_V_INITIAL_DDA                   0x708