Patchwork [U-Boot,v4,12/16] tegra: Align LCD frame buffer to section boundary

login
register
mail settings
Submitter Simon Glass
Date Sept. 28, 2012, 12:44 a.m.
Message ID <1348793077-10126-13-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/187641/
State Superseded, archived
Headers show

Comments

Simon Glass - Sept. 28, 2012, 12:44 a.m.
For tegra we want to enable the cache for the LCD. This is easier if
we can avoid using L2 page tages, so align the LCD to a section
boundary.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
Changes in v2:
- Align tegra display using new CONFIG_LCD_ALIGNMENT feature

 include/configs/tegra20-common.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/include/configs/tegra20-common.h b/include/configs/tegra20-common.h
index fa14a1c..a96233a 100644
--- a/include/configs/tegra20-common.h
+++ b/include/configs/tegra20-common.h
@@ -45,6 +45,9 @@ 
 
 #include <asm/arch/tegra.h>		/* get chip and board defs */
 
+/* Align LCD to 1MB boundary */
+#define CONFIG_LCD_ALIGNMENT	MMU_SECTION_SIZE
+
 /*
  * Display CPU and Board information
  */