From cfa87b33e7227472532f00d1843b60d4117f6095 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 14 Jan 2012 12:46:15 +0800 Subject: [PATCH] Modules/Tegra2Disp - Little fixes --- BuildConf/armv7/tegra2.mk | 2 +- Modules/Display/Tegra2/main.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/BuildConf/armv7/tegra2.mk b/BuildConf/armv7/tegra2.mk index ad787821..ece6ccf5 100644 --- a/BuildConf/armv7/tegra2.mk +++ b/BuildConf/armv7/tegra2.mk @@ -1,4 +1,4 @@ include $(ACESSDIR)/BuildConf/armv7/default.mk -#MODULES += Display/Tegra2 +MODULES += Display/Tegra2 diff --git a/Modules/Display/Tegra2/main.c b/Modules/Display/Tegra2/main.c index 493dd607..dfafb2a2 100644 --- a/Modules/Display/Tegra2/main.c +++ b/Modules/Display/Tegra2/main.c @@ -47,15 +47,12 @@ const tKeyVal_ParseRules gTegra2Vid_KeyValueParser = { NULL, { {"Base", "P", &gTegra2Vid_PhysBase}, - {"IsVersatile", "i", &gbTegra2Vid_IsVersatile}, {NULL, NULL, NULL} } }; // -- Driver state int giTegra2Vid_CurrentMode = 0; int giTegra2Vid_BufferMode; - int giTegra2Vid_Width = 640; - int giTegra2Vid_Height = 480; size_t giTegra2Vid_FramebufferSize; Uint8 *gpTegra2Vid_IOMem; tPAddr gTegra2Vid_FramebufferPhys; @@ -71,7 +68,7 @@ int Tegra2Vid_Install(char **Arguments) { // KeyVal_Parse(&gTegra2Vid_KeyValueParser, Arguments); - gpTegra2Vid_IOMem = (void*)MM_MapHWPages(gTegra2Vid_PhysBase, 1); + gpTegra2Vid_IOMem = (void*)MM_MapHWPages(gTegra2Vid_PhysBase, 256/4); Tegra2Vid_int_SetMode(4); -- 2.20.1