aboutsummaryrefslogtreecommitdiff
path: root/common/lcd.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-10-16 15:02:58 -0600
committerAnatolij Gustschin <agust@denx.de>2022-10-30 20:07:16 +0100
commit832bcbb083ca66fe102e559b4fd96152e7145411 (patch)
tree02b57b2c9cd0eebb529b7261ea63656a950ef013 /common/lcd.c
parentb5b1ce8a21b6ff4c92af7e1942b9f97421a7f6df (diff)
downloadu-boot-832bcbb083ca66fe102e559b4fd96152e7145411.zip
u-boot-832bcbb083ca66fe102e559b4fd96152e7145411.tar.gz
u-boot-832bcbb083ca66fe102e559b4fd96152e7145411.tar.bz2
video: Drop CONFIG_LCD_ALIGNMENT
This option is not needed now that the LCD implementation is being removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/lcd.c')
-rw-r--r--common/lcd.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/common/lcd.c b/common/lcd.c
index a462b22..2134e60 100644
--- a/common/lcd.c
+++ b/common/lcd.c
@@ -35,10 +35,6 @@
#endif
#endif
-#ifndef CONFIG_LCD_ALIGNMENT
-#define CONFIG_LCD_ALIGNMENT PAGE_SIZE
-#endif
-
#if (LCD_BPP != LCD_COLOR8) && (LCD_BPP != LCD_COLOR16) && \
(LCD_BPP != LCD_COLOR32)
#error Unsupported LCD BPP.
@@ -239,10 +235,6 @@ ulong lcd_setmem(ulong addr)
size = lcd_get_size(&line_length);
- /* Round up to nearest full page, or MMU section if defined */
- size = ALIGN(size, CONFIG_LCD_ALIGNMENT);
- addr = ALIGN(addr - CONFIG_LCD_ALIGNMENT + 1, CONFIG_LCD_ALIGNMENT);
-
/* Allocate pages for the frame buffer. */
addr -= size;