diff options
author | Simon Glass <sjg@chromium.org> | 2012-10-17 13:24:54 +0000 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2012-11-19 08:15:38 -0700 |
commit | 676d319ef5f450ca7845555f75de496b96cd688e (patch) | |
tree | 8bb6a995ac1613fb5a6c5b95f55d0fc9f1f9936c /include | |
parent | 0dde7f53797098cf7021f6a7ca6c15bfee405db1 (diff) |
lcd: Add CONFIG_LCD_ALIGNMENT to select frame buffer alignment
The normal alignment is PAGE_SIZE, but if this is defined, we can support
other alignments.
The motivation for this change is to make the display section-aligned on
ARM so that we can easily turn off data caching for the frame buffer region
without resorting to level 2 page tables.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/lcd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/lcd.h b/include/lcd.h index 42070d7636..6a600eece4 100644 --- a/include/lcd.h +++ b/include/lcd.h @@ -297,6 +297,9 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y); /* Allow boards to customize the information displayed */ void lcd_show_board_info(void); +/* Return the size of the LCD frame buffer, and the line length */ +int lcd_get_size(int *line_length); + /************************************************************************/ /* ** BITMAP DISPLAY SUPPORT */ /************************************************************************/ |