diff options
author | Simon Glass | 2022-10-16 15:02:58 -0600 |
---|---|---|
committer | Anatolij Gustschin | 2022-10-30 20:07:16 +0100 |
commit | 832bcbb083ca66fe102e559b4fd96152e7145411 (patch) | |
tree | 02b57b2c9cd0eebb529b7261ea63656a950ef013 /common | |
parent | b5b1ce8a21b6ff4c92af7e1942b9f97421a7f6df (diff) |
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')
-rw-r--r-- | common/lcd.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/common/lcd.c b/common/lcd.c index a462b22a477..2134e603243 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; |