Modules/Tegra2Vid - Fiddling!
authorJohn Hodge <[email protected]>
Thu, 8 Mar 2012 11:31:52 +0000 (19:31 +0800)
committerJohn Hodge <[email protected]>
Thu, 8 Mar 2012 11:31:52 +0000 (19:31 +0800)
KernelLand/Modules/Display/Tegra2Vid/main.c

index da71057..f091327 100644 (file)
@@ -98,12 +98,14 @@ int Tegra2Vid_Install(char **Arguments)
 //     return 1;\r
 \r
        // HACK!!!\r
-//     {\r
-//             int     w = 1980, h = 1080;\r
-//             gpTegra2Vid_IOMem[DC_DISP_DISP_ACTIVE_0] = (h << 16) | w;\r
-//             gpTegra2Vid_IOMem[DC_WIN_A_SIZE_0] = (h << 16) | w;\r
-//             gpTegra2Vid_IOMem[DC_WIN_A_PRESCALED_SIZE_0] = (h << 16) | w;\r
-//     }\r
+#if 0\r
+       {\r
+               int     w = 1680, h = 1050;\r
+               gpTegra2Vid_IOMem[DC_DISP_DISP_ACTIVE_0] = (h << 16) | w;\r
+               gpTegra2Vid_IOMem[DC_WIN_A_SIZE_0] = (h << 16) | w;\r
+               gpTegra2Vid_IOMem[DC_WIN_A_PRESCALED_SIZE_0] = (h << 16) | w;\r
+       }\r
+#endif\r
 \r
        giTegra2Vid_FramebufferSize =\r
                (gpTegra2Vid_IOMem[DC_WIN_A_SIZE_0]&0xFFFF)\r
@@ -116,8 +118,8 @@ int Tegra2Vid_Install(char **Arguments)
                );\r
        memset(gpTegra2Vid_Framebuffer, 0xFF, 0x1000);\r
 \r
-       gpTegra2Vid_IOMem[DC_WIN_A_WIN_OPTIONS_0] &= ~0x40;\r
-       gpTegra2Vid_IOMem[DC_WIN_A_COLOR_DEPTH_0] = 12; // Could be 13 (BGR/RGB)\r
+//     gpTegra2Vid_IOMem[DC_WIN_A_WIN_OPTIONS_0] &= ~0x40;\r
+//     gpTegra2Vid_IOMem[DC_WIN_A_COLOR_DEPTH_0] = 12; // Could be 13 (BGR/RGB)\r
        gTegra2Vid_DrvUtil_BufInfo.Width = 1024;\r
        gTegra2Vid_DrvUtil_BufInfo.Height = 768;\r
        gTegra2Vid_DrvUtil_BufInfo.Pitch = 1024*4;\r

UCC git Repository :: git.ucc.asn.au